I should note that I mostly test on WiFi networks or 10G. There may be improvements on 100G+ with CPU affinity and I just haven't tried it.
Bob On Fri, Sep 22, 2023, 10:52 AM Bob McMahon <bob.mcma...@broadcom.com> wrote: > Hi Bruce, > > Iperf 2 doesn't support CPU affinity. It lets the OS schedule threads on > cores. I tried to use CPU affinity a few years ago and I didn't notice any > performance impact. I was kinda of surprised by this. I have no idea why > there is different behavior between 2 & 3 per this. > > Bob > > On Fri, Sep 22, 2023 at 10:29 AM Bruce A. Mah <b...@es.net> wrote: > >> Hey Bob-- >> >> As we're doing some testing of the multi-threaded iperf3 in various >> environments, we've observed (not surprisingly) that CPU pinning of threads >> can have a significant impact on the throughput of tests. Generally we're >> running on some recent Ubuntu distribution of Linux. >> >> I'm trying to understand a report that iperf2 seems to automatically Do >> The Right Thing (tm) with respect to getting threads on the right CPU cores >> (particularly on multiple CPU package systems). But by contrast, good >> performance with iperf3 needs either the -A option for CPU affinity or >> running iperf3 within an invocation of numactl. I haven't yet had the >> opportunity to experiment with iperf2 much in this kind of environment. >> >> Is there some magic that iperf2 does to automatically figure out a good >> placement for the threads it spawns? I've looked through the source code >> (in particular compat/Thread.c) but I can't find anything applicable. I'd >> love to do something similar, if indeed this exists, in iperf3. >> >> Thanks! >> >> Bruce. >> > -- This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Iperf-users mailing list Iperf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iperf-users