Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 292383

Summary: dev-lang/python-2.6 - ridiculous CPU usage. Using more CPU than GCC FFS.
Product: Gentoo Linux Reporter: Martyn Braithwaite <Martyn_B>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: IA64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martyn Braithwaite 2009-11-08 13:39:57 UTC
Since updating to Python2.6 and running python-updater emerging has taken 2x as long. This is because rediculous amounts of cpu are being devoured by python. Right now 80% of one of my cores is being used by 1 single "Python2.6" thread. During compilation, gcc uses huge quantities of CPU this is expected, but python is using up more cpu than GCC. This should not happen. It's massively increasing compilation times.

Reproducible: Always

Steps to Reproduce:
1.Install Python2.6
2.run python-updater
3.emerge something

Actual Results:  
between 30%-80% cpu usage for each python thread. Usually two threads. Emerge world takes 50-100% longer to compile.

Expected Results:  
Overhead from emerge should only be about 5%. Python certainly shouldn't be eating up more cpu than gcc is!!!

Do >not< use python. Use a faster language. Python adds too much overhead to a system when it's maxed out using gcc anyway.

Purge python out of emerge completely for god sakes so we can do some compiling here.
Comment 1 Rafał Mużyło 2009-11-08 16:33:55 UTC
Somehow, I suspect you're misinterpreting whatever results 
you're getting.
Also, without seeing some logs, discussion would be quite pointless.