Solutions to high CPU usage causing system shutdown

Discussion forum for the Picoscope 6 Linux software
Post Reply
JamesK
Newbie
Posts: 0
Joined: Thu Dec 12, 2019 10:19 pm

Solutions to high CPU usage causing system shutdown

Post by JamesK »

Scope arrived from Pico today and am pleased so far (a Pico 2204a - 0ce9:1007).

I have windows/ linux and osx machines here, currently testing on Linux (Linux Mint 19.2 Cinnamon, kernel: 4.15.0-58-generic).

Picoscope won't launch from the menu so I launch from the command line:
sudo picoscope
The problem I have is excessive CPU usage (~400%) leading to the laptop cutting power after a few minutes. My solution is to use the 'top' command to get the PID of the process called 'Main' and then run:
sudo cpulimit -l DESIRED_CPU_PERCENTAGE -p MAIN_PID
e.g:
sudo cpulimit -l 80 -p 5619
This results in a mildly jittery but (for my current purposes) useable UI and no thermal shutdown. Is this safe for the pico usb device? I have started looking into how cpulimit works and can't see anything that would cause a problem so far.

Is there anyone else who's had a similar experience and can improve upon this fix?

Psi
Newbie
Posts: 0
Joined: Mon Dec 23, 2019 10:36 pm

Re: Solutions to high CPU usage causing system shutdown

Post by Psi »

Had a deadlock today with opened picoscope

Post Reply