Bug 12282 - hi cpu usage with simple 3d apps
Summary: hi cpu usage with simple 3d apps
Status: RESOLVED WONTFIX
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r300 (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-04 15:10 UTC by Nicolò Chieffo
Modified: 2014-07-07 16:43 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Nicolò Chieffo 2007-09-04 15:10:39 UTC
Hello I'm using ubungu gutsy, and the radeon driver version 6.7.192
I have an ati mobility 9700 agp4x 64MB, r300 card.

I've noticed that simple 3d apps are using lots of cpu. For instance after launching glxgears, my cpu goes to 50%.
with fglrx I don't notice any cpu usage.
the problem exists also in the 6.6 branch of the driver
Which might be the problem?
Comment 1 Corbin Simpson 2008-07-04 14:10:37 UTC
glxgears goes as fast as possible, and more often than not, it will consume a large amount of your CPU.

Do you have any other test cases?
Comment 2 Michel Dänzer 2008-07-07 04:06:53 UTC
(In reply to comment #1)
> glxgears goes as fast as possible, and more often than not, it will consume a
> large amount of your CPU.

I'm not convinced that's just a fact of life. I'm pretty sure that e.g. the r200 driver on my previous PowerBook (with a slower CPU) used less CPU than the r300 driver now, at about the same framerate. So I agree with the submitter of this bug that the r300 driver does seem rather CPU hungry, which can be a problem if the driver CPU usage becomes a bottleneck for useful apps.
Comment 3 Maciej Cencora 2009-10-10 03:04:21 UTC
Could you try newest mesa version? There have been many changes in r300 driver that should lower the CPU usage (e.g. dma rework, real VBO support).
Comment 4 Dymchenko Bogdan 2010-03-04 01:43:12 UTC
Hi. I have notebook, and I see that FPS of 3d applications depend on speed of cpu. When i run glxgears i see 
5673 frames in 5.0 seconds = 1134.531 FPS
and glxgears use over 30% cpu (and X server 20% cpu).

My Cpu Amd Turion TK-57 (1.9Ghz) 
When i set it to 900Mhz i see 
4266 frames in 5.0 seconds = 853.125 FPS
4360 frames in 5.0 seconds = 871.738 FPS

So speed of 3d rendering very depend on cpu speed
Comment 5 Dymchenko Bogdan 2010-03-04 01:44:46 UTC
sorry, i forgot to say that my videocard is Radeon Mobility X2300
Comment 6 Shawn Starr 2010-03-04 04:26:46 UTC
I'm not convinced this is r3xx specific, my r6xx with glxgears running alone shows 80-90% CPU usage and this is with mesa git master. 

2685 spstarr   20   0  338m 5132 2324 R 86.3  0.1   0:31.13 glxgears  
2685 spstarr   20   0  338m 5132 2324 R 93.2  0.1   1:36.52 glxgears

This being Fedora stock kernel and X.Org X Server 1.7.99.901 (1.8.0 RC 1)
Comment 7 Andreas Boll 2014-07-07 16:43:31 UTC
The classic r300 driver has been abandoned long ago.
It was replaced by the Gallium driver r300g.

If you have issues with r300g please file a new bug report with component Drivers/Gallium/r300

Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.