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 (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2013-05-29 21:20 UTC by olivier
Modified: 2022-10-17 12:33 UTC (History)
1 user (show)

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, patch)
2013-06-22 08:54 UTC, olivier
no flags Details | Diff
freebsd-stable.pthread-netblast.patch.txt (9.78 KB, patch)
2013-06-22 08:54 UTC, olivier
no flags Details | Diff
patch for FreeBSD head (11.16 KB, patch)
2020-07-12 06:40 UTC, Olivier Cochard
no flags Details | Diff

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
Comment 3 Olivier Cochard freebsd_committer freebsd_triage 2020-07-12 06:40:40 UTC
Created attachment 216402 [details]
patch for FreeBSD head

Updating the patch
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:33:59 UTC
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>