Bug 179085 - [tools] [patch] pthread patch for netblast
Summary: [tools] [patch] pthread patch for netblast
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-29 21:20 UTC by olivier
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments
file.diff (7.00 KB, patch)
2013-05-29 21:20 UTC, olivier
no flags Details | Diff
freebsd-current.pthread-netblast.patch.txt (7.98 KB, text/plain; charset=US-ASCII; name="freebsd-current.pthread-netblast.patch.txt")
2013-06-22 08:54 UTC, olivier
no flags Details
freebsd-stable.pthread-netblast.patch.txt (9.78 KB, text/plain; charset=US-ASCII; name="freebsd-stable.pthread-netblast.patch.txt")
2013-06-22 08:54 UTC, olivier
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description olivier 2013-05-29 21:20:00 UTC
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:
Comment 1 olivier 2013-06-22 08:54:07 UTC
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
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:28 UTC
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