<p>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.</p>
<div class="gmail_quote">On 19 Dec 2011 17:05, "Alexander Duyck" <<a href="mailto:alexander.h.duyck@intel.com">alexander.h.duyck@intel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have you guys looked at the "-T" option in netperf? That should control CPU affinity for both the netperf and netserver thread.<br>
<br>
Thanks,<br>
<br>
Alex<br>
<br>
On 12/18/2011 03:47 AM, Matthew Faulkner wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A couple of years ago I had the same requirement, but at the time netperf couldn't do this.<br>
<br>
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.<br>
<br>
Details about this project are at:<br>
<br>
<a href="http://bramp.net/blog/threadnetperf-v1-0" target="_blank">http://bramp.net/blog/<u></u>threadnetperf-v1-0</a><br>
<br>
It was submitted to github and is available at:<br>
<br>
<a href="https://github.com/bramp/threadnetperf" target="_blank">https://github.com/bramp/<u></u>threadnetperf</a><br>
<br>
Hope this helps.<br>
<br>
Dr. Matthew Faulkner<br>
<br>
On 18 December 2011 00:12, Vishal Ahuja <<a href="mailto:vahuja4@gmail.com" target="_blank">vahuja4@gmail.com</a> <mailto:<a href="mailto:vahuja4@gmail.com" target="_blank">vahuja4@gmail.com</a>>> wrote:<br>
<br>
Hi All,<br>
<br>
netserver spawns one thread per connection. Is there a way to<br>
affinitize the individual threads to specific cores.<br>
<br>
Thank you,<br>
Vishal<br>
<br>
______________________________<u></u>_________________<br>
netperf-talk mailing list<br>
<a href="mailto:netperf-talk@netperf.org" target="_blank">netperf-talk@netperf.org</a> <mailto:<a href="mailto:netperf-talk@netperf.org" target="_blank">netperf-talk@netperf.<u></u>org</a>><br>
<a href="http://www.netperf.org/cgi-bin/mailman/listinfo/netperf-talk" target="_blank">http://www.netperf.org/cgi-<u></u>bin/mailman/listinfo/netperf-<u></u>talk</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
netperf-talk mailing list<br>
<a href="mailto:netperf-talk@netperf.org" target="_blank">netperf-talk@netperf.org</a><br>
<a href="http://www.netperf.org/cgi-bin/mailman/listinfo/netperf-talk" target="_blank">http://www.netperf.org/cgi-<u></u>bin/mailman/listinfo/netperf-<u></u>talk</a><br>
</blockquote>
<br>
</blockquote></div>