Here is a patch that add multithread support to tools/tools/netrate/netblast (I've used the netreceive code). WARNING: It need full review because it's my first try with pthread. Fix: Patch attached with submission follows:
I've updated my patch for displaying approx througput (ethernet and payload): Network admin want ethernet throughput but system admin want payload throughput :-) Here are an output example: netblast 1.1.1.2 4121 10 30 `sysctl -n hw.ncpu` netblast 4 threads sending on UDP port 4121 start: 1371890360.734221251 finish: 1371890360.734307388 send calls: 37678622 send errors: 5996263 send success: 31682359 approx send rate: 1056078 approx error rate: 0 approx Ethernet throughput: 439 Mib/s approx payload throughput: 84 Mib/s I've attached the patch for 9-stable and -current to this mail, but you can found it here too (if gmail mangle the attached file): 9-stable: http://sourceforge.net/p/bsdrp/code/HEAD/tree/trunk/BSDRP/patches/freebsd.netblast.patch?format=raw -current: http://sourceforge.net/p/bsdrp/code/HEAD/tree/trunk/BSDRPcur/patches/freebsd.netblast.patch?format=raw Regards, Olivier
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Created attachment 216402 [details] patch for FreeBSD head Updating the patch
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>