Ah, I see!  I had tweaked the code in Client.cpp myself, replacing "delay_loop( 
0 );" with "usleep ( 1000 ); 

This definitely fixed my high cpu load - it barely uses any now for 100Mb/s 
streams.  But, since I have almost no clue what I'm doing I'll integrate the 
SVN source you pointed out!

Thanks so much for your help!  Once I get this "working" I can deploy it to my 
HelpDesk staff and it will make my life a LITTLE tiny bit easier!

G


-----Original Message-----
From: Tom Throckmorton [mailto:thr...@mcnc.org] 
Sent: Thursday, March 25, 2010 8:56 PM
To: Gary Gatten
Cc: 'iperf-users@lists.sourceforge.net'
Subject: Re: [Iperf-users] Gerrit Renker patch for high CPU

On 3/25/10 6:19 PM, Gary Gatten wrote:
> Hello all,
> 
> I've searched and read numerous posts on "high cpu for udp" issue.
> Following a pretty long string I found and applied the "Ingo Molnar"
> patch and it seemed to have work when iperf is RECEIVING traffic.
> However, no love when it's sending traffic.
> 
> So, I read some stuff that Gerrit Renker had a patch for the client
> side (Client.cpp?) ; doing away with gettimeofday() and delay_loop().
> I can't find this patch anywhere!  The link in this thread
> http://www.mail-archive.com/iperf-users@lists.sourceforge.net/msg00028.html
> doesn't work directly - and it appears to be the same location as the
> "Ingo Molnar" patch - which isn't what I need.

Hi Gary,

I believe Gerrit merged that patch shortly after that thread - see:

http://iperf.svn.sourceforge.net/viewvc/iperf/trunk/ChangeLog?view=log

> 2008-05-09 Gerrit Renker <gren...@users.sourceforge.net>
> 
> * replace costly gettimeofday() with nanonsleep() See:
> https://sourceforge.net/tracker/index.php?func=detail&aid=1940009&group_id=128336&atid=711373


> So, where is this magic patch?  I fetched the latest SVN and it's the
> same as the 2.0.4 distro.

You won't find it in the 2.0.4 tarball, only in trunk

http://iperf.svn.sourceforge.net/viewvc/iperf?view=rev&revision=43

> I found one linux distro that has purportedly integrated these
> patches into their package called 2.0.4-4, but I have not reviewed
> that source yet...

2.0.4-4 in Fedora and EPEL do appear to contain the patches - see also:

https://bugzilla.redhat.com/show_bug.cgi?id=506884

Cheers,

-tt

-- 
Tom Throckmorton
MCNC - Advanced Services Development
3021 Cornwallis Road
Research Triangle Park, NC 27709
919.248.1448

"Connecting North Carolina's future today"

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Iperf-users mailing list
Iperf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to