[netperf-talk] affinitizing netserver threads

Andrew Gallatin gallatin at cs.duke.edu
Mon Dec 19 12:07:07 PST 2011


On 12/19/11 14:52, Matthew Faulkner wrote:
> That option set the affinity for the whole netperf process. I needed to
> set the affinity for the threads / processes (server or clients) within
> netperf, i.e. have two servers but running on different cores at the
> same time. Also I needed it to output the results coherently.

You don't mention in your readme, but do you synchronize your threads
to prevent over-reporting of bandwidth due to all threads running
not-quite-in-parallel?

In the past, when I've wanted multiple "threads" of netperf pinned to
different cores, I've used wrapper scripts to just start multiple
copies & parse the output.  The problem of not all copies starting
at the same time can be somewhat mitigated by running very long
tests.  But a real barrier would be nice..

Drew



More information about the netperf-talk mailing list