Setting nice levels in ubuntu 11.10?
I am trying to write an intensive application on Windows and Linux. When I test on Linux the CPU performance shows as being one tenth that of the performance levels on my similar Windows machine. Iḿ guessing that the problem might be related to the nice settings which I can see are all set to 0 for all processes - I suppose this prevents my app from claiming most of the system resources.
Unfortunately attempting to change the nice levels in System Monitor just gives a Permission Denied message. Any suggestions? |
You can only renice as root; try from the command-line.
man renice for all the gory details. =o) |
Thank you, I eventually figured out
sudo renice -5 processid It did not solve my problem unfortunately. I see bizarrely a factor of 20 difference between a single thread and a multithread approach. Two cores should not give me more than a factor of 3 or 4 (assuming the first thread shares a core with other processes). |
Sounds like there's something wrong in your multithread compilation.
|
And thanks for the reminder about man commandname, that is truly helpful.
|
Quote:
of your source to discuss your work w/ other coders. Cheers, Tink |
Thanks. I suffered a brain failiure and posted pretty much the same question in the prgramming forum, with a bit of source code. By the way, I discovered the nice command, but that also seems to have had no effect on my results (nice, if I understand it right, lets me set the priority of a process when I start it). -19 did nothing.
|
Quote:
|
All times are GMT -5. The time now is 11:35 PM. |