LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

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

Rep: Reputation: 0
Unhappy 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 ) 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?

Greetz.
 
Old 05-22-2006, 06:54 PM   #2
pyrosim
Member
 
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, 02:56 AM   #3
RonaldUitAlmere
LQ Newbie
 
Registered: Oct 2005
Location: Netherlands
Distribution: debian
Posts: 7

Original Poster
Rep: Reputation: 0
Wink 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

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.

Thnx.

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

Rep: Reputation: 52
Then renice it
Code:
$blender
$su
#renice +20 `pidof blender`
#exit
 
  


Reply


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 08:21 AM
How to assign one particular process to particular CPU, in multiprocessor Architeture sudha Linux - General 1 01-23-2005 10:53 AM
How to assign CPU usage with Thread wangru Programming 5 08-25-2004 10:14 AM
how can I run my centrino cpu on max speed ? balki Linux - Hardware 3 07-17-2004 03:37 PM
max cpu for Red hat 9 tpeacham Linux - Software 0 02-18-2004 02:42 AM


All times are GMT -5. The time now is 04:38 PM.

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