2 Aug 2009 00:33
[PATCH] RFC: Changes to tcpbench.
Christiano Farina Haesbaert <christiano.fh <at> gmail.com>
2009-08-01 22:33:00 GMT
2009-08-01 22:33:00 GMT
Hi there, Here is a much better diff proposal than my previous one. - Don't fork use poll instead. - Collect usefull overall statistics, as % bandwith being used by each connection, total and average rate since last calculation,and peak transfer rate. - There is still a lot of work to be done, as the calculation time overhead for a lot of fds is a factor. - I've added an option (-m) which sets how many displays are done for each individual connection prior to displaying overall stats. I don't know if the following is acceptable: - If we've reached the maximum number of fds, we stop polling the listening sockets until one fd is free. - I'm testing RLIMIT_NOFILE, and if it's lower than 1024, I'm setting it to 1024. My thanks to Damien Miller who helped me understanding kvm. What do you guys think ? I'm open to any changes that might be necessary. What follows is an output example for 10 connections, as you can see the calculation overhead gets higher as the fd increases. So still a lot of work to be done.(Continue reading)
>
> So now we can, perhaps, get back (if at all) to the man pages and what
> they are implying wrt original question.
>
> Leon.
I'm just back from vacation, so I'm late to jump in. The answer krw <at>
has given is right. We (and as a consequence the kernel) take the
liberty to change fields in disklabel, especially the entry for the
'c' partition.
Furthermore, there are partition specific entries used by fsck_ffs to
locate the alternate superblocks. These entries are NOT maintained for
the 'c' partition.
You might want to check the source of fsck_ffs. It contains code to
locate alternate superblocks, and that code will not work for the 'c'
partition.
As for the slighly off-topic part of the thread: if we write a
guideline into our manual page, it has a good reason to be there.
Consider the man page to be your much needed authorative source of
information.
-Otto
RSS Feed