cpu usage


9 posts
by jcrowson12 » Mon Nov 05, 2012 11:48 pm
My RPi's cpu is constantly maxed out. The python games that come with it use more than 90% of the cpu, but only uses ~44mb of the 512mb. Is that normal?

Thanks for all of your support.
Posts: 11
Joined: Thu Sep 27, 2012 2:41 pm
by abishur » Tue Nov 06, 2012 2:15 am
Many questions come to mind, namely are you trying to run these programs from within X or from the bash prompt? Which Disto are you using? what's your current memory split? :-)
Dear forum: Play nice ;-)
User avatar
Forum Moderator
Forum Moderator
Posts: 4313
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
by jcrowson12 » Tue Nov 06, 2012 3:18 am
I'm not using bash. Not sure about X. Raspbian. 384 and 128.
Posts: 11
Joined: Thu Sep 27, 2012 2:41 pm
by abishur » Tue Nov 06, 2012 4:31 am
X is the thing you enter when you type "startx" (The desktop environment), bash is just the command prompt
Dear forum: Play nice ;-)
User avatar
Forum Moderator
Forum Moderator
Posts: 4313
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
by jcrowson12 » Tue Nov 06, 2012 12:16 pm
Well I am using the GUI x.
Posts: 11
Joined: Thu Sep 27, 2012 2:41 pm
by redhawk » Tue Nov 06, 2012 12:35 pm
There's no hardware acceleration for your X display therefore any moving images would cause the CPU usage to rise.

Richard S.
User avatar
Posts: 3519
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1
by jcrowson12 » Tue Nov 06, 2012 12:43 pm
Would another OS be faster?
Posts: 11
Joined: Thu Sep 27, 2012 2:41 pm
by redhawk » Tue Nov 06, 2012 12:52 pm
You could try Xming it's an X-Windows client for Windows I use it to access my PI desktop on my desktop since I don't have HDMI. - viewtopic.php?f=26&t=18420
In theory it should help to off-load some of the processing power to Windows which would be handling the images and not the PI.

Richard S.
User avatar
Posts: 3519
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1
by pluggy » Tue Nov 06, 2012 1:15 pm
It doesn't take much to max out the CPU, truth of the matter is the Pi has a puny CPU. It has an impressive GPU, which is what invariably gets demoed when they are showing it off, but most stuff doesn't use the GPU.

Running a remote X server like redhawk says helps, since it takes a lot of the weight off the Pi.
Don't judge Linux by the Pi.......
User avatar
Posts: 2742
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK