Red Hat Bugzilla – Bug 72576
up2date busy loops while downloading package
Last modified: 2015-01-07 18:59:52 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020809
Description of problem:
While downloading a package, up2date uses all the CPU time it can get. Seems
unnecessary - what could it be doing?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run up2date and start a package download
2. Watch the System Monitor
Actual Results: CPU load rises until it reaches 100% and stays there until the
package is downloaded
Expected Results: CPU load stays fairly low - downloading is not intensive
Marked as low severity & priority - this doesn't stop me from doing anything,
I'll take a look at it.
What kind of connection are you on?
package downloads are done via ssl, so can use
a fair amount of cpu on systems with fast
That makes more sense. I do have a pretty modern system, though - the
processor's an Athlon 1GHz. Downloading over a cable modem, random guess is 150KB/s.
You may want to turn SSL off (just for kicks), and see if the load is still high
during package downloads. Let us know how it turns out.
Okay, tried that - I toggled useNoSSLForPackages in /etc/sysconfig/rhn/up2date
and verified with tcpdump a lot of plain http packets were being sent around. It
still maxed out CPU usage.
I belive this is fixed in rhnlib 0.9-1.
(there was a bug where downloads were taking way too
much memory _and_ cpu). Too small of a buffer size
amongst other things.
Yep, I no longer see the problem.