joezaofsky1
Posts: 1
Joined: Mon Jan 25, 2016 3:29 pm

cpu usage run 100%

Mon Jan 25, 2016 3:51 pm

Could you help me please?
I do my project with raspberry pi , processing but I am facing a problem. when I run code, it show that cpu usage run 100%.
My question is
1. Can I resolve problem (cpu usage run 100%) anyway?
If I change SD card that can help me?
or I have only one way to adapt my code?
2. The size of data that I received when I ran code ,it is not stable. (My code has sleep time)
Do you think it's because the problem (cpu usage run 100%) ?
Thank a lot !!!
:D:D:D

jahboater
Posts: 4928
Joined: Wed Feb 04, 2015 6:38 pm

Re: cpu usage run 100%

Mon Jan 25, 2016 6:59 pm

joezaofsky1 wrote:Could you help me please?
I do my project with raspberry pi , processing but I am facing a problem. when I run code, it show that cpu usage run 100%.
My question is
1. Can I resolve problem (cpu usage run 100%) anyway?
If I change SD card that can help me?
or I have only one way to adapt my code?
2. The size of data that I received when I ran code ,it is not stable. (My code has sleep time)
Do you think it's because the problem (cpu usage run 100%) ?
Thank a lot !!!
:D:D:D
Far more information is needed to answer this ....
Changing your SD card just might reduce your CPU utilization - but only if you change it for a slower one (so more time is spent in I/O wait) :D
"We are in the beginning of a mass extinction, and all you can talk
about is money and fairy tales of eternal economic growth."
- Greta Thunberg

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: cpu usage run 100%

Mon Jan 25, 2016 7:26 pm

Which OS are you using? What code are you running?
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.

Return to “Beginners”