From the answer to my old question, I gone through this and some more from google. But I did not understand, how can I cpulimit for a python script.
Followings are my try:
cpulimit --limit 20 --exe ./read_heavy_csv.py
cpulimit --limit 20 --exe "python read_heavy_csv.py"
cpulimit -P ./read_heavy_csv.py -l 20
and some more...
But in each case getting warning :
Warning: no target process found. Waiting for it...
I could not find any documentation to explain running a python script with cpulimit. I also gone through these too but did not get any clue
cpulimitdoes not launch the process, it searches for it. So is your python program already running when you runcpulimit? If not, then it should be. Specifying the pid is probably safer.