[netperf-talk] affinitizing netserver threads
Matthew Faulkner
matthew.faulkner at gmail.com
Mon Dec 19 11:52:03 PST 2011
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.
On 19 Dec 2011 17:05, "Alexander Duyck" <alexander.h.duyck at intel.com> wrote:
> Have you guys looked at the "-T" option in netperf? That should control
> CPU affinity for both the netperf and netserver thread.
>
> Thanks,
>
> Alex
>
> On 12/18/2011 03:47 AM, Matthew Faulkner wrote:
>
>> A couple of years ago I had the same requirement, but at the time netperf
>> couldn't do this.
>>
>> I remember reading that the new version (4?) was going to support it, but
>> I couldn't wait for it. So a colleague and I wrote a similar application to
>> netperf which supported threaded affinity.
>>
>> Details about this project are at:
>>
>> http://bramp.net/blog/**threadnetperf-v1-0<http://bramp.net/blog/threadnetperf-v1-0>
>>
>> It was submitted to github and is available at:
>>
>> https://github.com/bramp/**threadnetperf<https://github.com/bramp/threadnetperf>
>>
>> Hope this helps.
>>
>> Dr. Matthew Faulkner
>>
>> On 18 December 2011 00:12, Vishal Ahuja <vahuja4 at gmail.com <mailto:
>> vahuja4 at gmail.com>> wrote:
>>
>> Hi All,
>>
>> netserver spawns one thread per connection. Is there a way to
>> affinitize the individual threads to specific cores.
>>
>> Thank you,
>> Vishal
>>
>> ______________________________**_________________
>> netperf-talk mailing list
>> netperf-talk at netperf.org <mailto:netperf-talk at netperf.**org<netperf-talk at netperf.org>
>> >
>> http://www.netperf.org/cgi-**bin/mailman/listinfo/netperf-**talk<http://www.netperf.org/cgi-bin/mailman/listinfo/netperf-talk>
>>
>>
>>
>>
>> ______________________________**_________________
>> netperf-talk mailing list
>> netperf-talk at netperf.org
>> http://www.netperf.org/cgi-**bin/mailman/listinfo/netperf-**talk<http://www.netperf.org/cgi-bin/mailman/listinfo/netperf-talk>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.netperf.org/pipermail/netperf-talk/attachments/20111219/793fa6b2/attachment.html>
More information about the netperf-talk
mailing list