Monday, December 28, 2015

performance - Why does whoopsie increasingly take more CPU?



I am running Ubuntu 12.04 LTS and I've been following whoopsie with the top program and noticed something strange.



In the afternoon the daemon process was only using up to 2% of CPU power.



But during the evening this slowly increased to sometimes taking up to 40% of CPU power.



I am running a 10 year old machine, but even VLC which is normally running OK was having problems running smoothly due to this increase in usage.




Since i am running an old machine, should I just switch whoopsie off (as descrribed in What is the 'whoopsie' process and how can I remove it?) or is there a way to let whoopsie behave less CPU hungry?



I've got an idea as to how you could fix your problem: as a temporary measure you could cap the CPU usage of 'whoopsie' by using a program called CPU Limit.



You can download it below:



Install via the software center



This should ensure at least while watching movies that your film remains lag-free and once you've capped it, it shouldn't bother you until you next shutdown.I've found a well explained tutorial here if you need more information on how to install it and use it.




However as this isn't a permanent cap you'd need to get your Ubuntu to run it at startup each time if you want it to be capped on a more permanent basis. I'm not an expert on what commands you'd need to run but I think it should be possible to get it to run and limit the process at startup (see this post if you don't know how to set apps/processes to run at startup).



I'd suggest you try out CPU Limit and then if you're satisfied as to how well it copes with your problem and would like it to run at start-up you can use the instructions posted here by hhlp and by adding the following line:



cpulimit -e whoopsie -l 3 &


To the /etc/rc.local file it will run properly on every startup with Whoopsie capped at 3% cpu usage.



Ideally if it's a bug as commented it might be solved sometime soon, but until then this is the way I'd go about to stop the problem being an issue.



No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...