LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-01-2004, 12:23 AM   #1
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Rep: Reputation: 30
about renice the process


Hi all,
I am using a laptop and mandrake 10. everytime when I bootup the OS, the priority of the process event/0 is -10 and occupy almost 99% CPU time. I must renice the prority of event/0 to 10 myself so everything is all right. However, I must do it again when every boot. How can I set the priority once and make it work forever?
 
Old 08-01-2004, 01:45 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
I am not an expert on Mandrake but my advice would be to find out where that process is being started at boot... then edit that so it starts with a high nice. Be aware that you should have at least a vague understanding of why it wants to be so un-nice (maybe it needs to be run like that, although I doubt it).

Code:
find /etc/ -exec grep "PROCESS_NAME" {} /dev/null \;
That will give you a list -- it may be long -- of lines which the process name. They will be like

filename: asfdljasd dsafljdf PROCESS_NAME sdfasfsdf

Or whatever... read through them and look for where the process is being started and if it is niced. If you see a line:

filename: nice --10 PROCESS_NAME

Then you know you have found the culprit. Remove one of the "-"s and you should be set.


Last edited by frob23; 08-01-2004 at 06:03 AM.
 
Old 08-01-2004, 05:43 AM   #3
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Original Poster
Rep: Reputation: 30
thanks for your reply. I do it but can't find the file.
 
Old 08-01-2004, 06:02 AM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Do you mean that you can't find the file or nothing shows up?

If you can't find the file you can change the find command to spit out the full path Under each line it finds. I usually use the other way as it halves the output.

Code:
find /etc/ -exec grep "PROCESS_NAME" {} \; -print
And that will show you the full path to the file.
 
Old 08-01-2004, 06:15 AM   #5
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Original Poster
Rep: Reputation: 30
I mean no "executable" file corresponding to the process , there are only some configuration files. BTW, i use the top command to show the process in the system

-----------------------------------------------------------------------------
PID USER .. ......................................... COMMAND
-----------------------------------------------------------------------------
3 root events/0

I just issue
Code:
find /etc/ -exec grep "events/0" {} \;
 
Old 08-01-2004, 06:24 AM   #6
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
In any of the configuration files is does it look like they are setting a nice value?

Maybe search for the word "nice" instead of the name of the program. I wish I was at a real computer instead of at work... ugh.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Renice a process yenonn Linux - General 2 10-03-2005 07:59 PM
nice / renice problem g-string 3 Linux - Software 2 09-16-2005 04:53 PM
nice / renice question Grobbendonk Linux - Newbie 5 08-13-2005 04:05 PM
nice and renice (question) podollb Linux - Software 7 10-19-2004 12:10 PM
Nice and Renice KnightAzul Linux - General 1 09-17-2003 11:59 AM


All times are GMT -5. The time now is 01:59 AM.

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