LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   about renice the process (https://www.linuxquestions.org/questions/linux-general-1/about-renice-the-process-212021/)

Rex_chaos 08-01-2004 12:23 AM

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?

frob23 08-01-2004 01:45 AM

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.

:cool:

Rex_chaos 08-01-2004 05:43 AM

thanks for your reply. I do it but can't find the file.

frob23 08-01-2004 06:02 AM

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.

Rex_chaos 08-01-2004 06:15 AM

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" {} \;

frob23 08-01-2004 06:24 AM

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.


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