Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 05-22-2006, 06:58 PM   #1
LQ Newbie
Registered: Oct 2005
Location: Netherlands
Distribution: debian
Posts: 7

Rep: Reputation: 0
Unhappy How do i assign max cpu to applications?


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 ) 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.

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

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

Old 05-22-2006, 07:54 PM   #2
Registered: Jul 2005
Location: Las Cruces, NM
Distribution: Fedora
Posts: 49

Rep: Reputation: 15
"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.
Old 05-23-2006, 03:56 AM   #3
LQ Newbie
Registered: Oct 2005
Location: Netherlands
Distribution: debian
Posts: 7

Original Poster
Rep: Reputation: 0
Wink thnx


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

I dont want to run blender as root obviously

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


Last edited by RonaldUitAlmere; 05-23-2006 at 03:57 AM.
Old 05-23-2006, 06:44 AM   #4
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
Then renice it
#renice +20 `pidof blender`


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
max % of CPU for one process uselpa Slackware 2 07-30-2005 09:21 AM
How to assign one particular process to particular CPU, in multiprocessor Architeture sudha Linux - General 1 01-23-2005 11:53 AM
How to assign CPU usage with Thread wangru Programming 5 08-25-2004 11:14 AM
how can I run my centrino cpu on max speed ? balki Linux - Hardware 3 07-17-2004 04:37 PM
max cpu for Red hat 9 tpeacham Linux - Software 0 02-18-2004 03:42 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration