I am running a program written in python that makes heavy computations using theano.
As it is a very CPU-intensive program, it is disrupting all my other activies on my laptop.
For this reason I have been setting the nice level of the process to 19 and have used
cpulimit to reduce its CPU usage to 10%.
Unfortunately these attempts were not effective, as the laptop sometimes gets stuck even for minutes.
Do you have any idea on how to tackle with this problem? How can I instruct the scheduler to behave properly?
The laptop is a Samsung Ultrabook (New Series 9) with an Intel Core i5-3317U. The operating system is Linux, Ubuntu 15.10 with kernel 4.2.0.
EDIT: The problem seems to be caused by trashing (low memory, constantly swapping)