LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How do i assign max cpu to applications? (https://www.linuxquestions.org/questions/debian-26/how-do-i-assign-max-cpu-to-applications-447478/)

RonaldUitAlmere 05-22-2006 05:58 PM

How do i assign max cpu to applications?
 
Hi,

I use my Debian box for listening to streams, browsing, news/torrent and amule downloading and software rendering with Yafray all at the same time.

When I start to render PAN crashes since Yafray takes 98% of CPU (so says top), the machine seems to hang but continues (ofcourse:Pengy: ) when the rendering is finished. Only Pan crashes.

Strange thing is that on my previous PC this was no problem. There was always enough CPU reserved to browse and listen to streams and torrent, amule and news at the same time.:scratch:

How do I assign less CPU to yafray? Say 95%

:study: I have seeked here, i have seeked there. All I found was setrlimit but thats for devices right?:confused:

Greetz.

pyrosim 05-22-2006 06:54 PM

"nice" is the tool you want. Run ksysguard and right click on the process you want to change. Click the "re-nice" option. I am not sure, but I think pushing the value twords the positive end lowers the priority.

RonaldUitAlmere 05-23-2006 02:56 AM

thnx
 
Great,

Indeed this seems to be the solution.

I use Gnome so I can use gnome-system-monitor but I have to set the niceness per session, and I want it lower by default.

I tried this:
ronald@debbie:~$ nice --adjustment=20 blender
nice: cannot set niceness: Permission denied :tisk:

I dont want to run blender as root obviously :p

So I will pursue this further to get blender or Yafray to start up with a lower niceness.

Thnx.

nx5000 05-23-2006 05:44 AM

Then renice it :)
Code:

$blender
$su
#renice +20 `pidof blender`
#exit



All times are GMT -5. The time now is 06:34 PM.