LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Non-root renice (https://www.linuxquestions.org/questions/linux-newbie-8/non-root-renice-751347/)

mwkemo 08-30-2009 06:38 PM

Non-root renice
 
Hello,

having problem with renice. I wont to renice users process from +19 to +13. I can renice from higher priority to lower but not reverse. I did try to add to /etc/security/limits.conf line with "* - nice -19" and "* - renice -19" but this is not working.
On my other box with same setup renice from lower to higher process is working, but the other box is Etch and the one with problem is Lenny. Any changes made for renice persmissions?

Help please?

anomie 09-01-2009 05:57 PM

From the renice(1) manpages:
Code:

Users other than the super-user may only alter the priority of processes
they own, and can only monotonically increase their ‘‘nice value’’ within
the range 0 to PRIO_MAX (20).

That's on my Fedora box. I'm surprised what you are describing is working at all on one of your systems.

Tinkster 09-01-2009 09:02 PM

Quote:

Originally Posted by mwkemo (Post 3663255)
Hello,

having problem with renice. I wont to renice users process from +19 to +13. I can renice from higher priority to lower but not reverse. I did try to add to /etc/security/limits.conf line with "* - nice -19" and "* - renice -19" but this is not working.
On my other box with same setup renice from lower to higher process is working, but the other box is Etch and the one with problem is Lenny. Any changes made for renice persmissions?

Help please?

I'd be looking at the Debian changelogs ... or compare
the man-pages for renice on both.

mwkemo 09-02-2009 12:38 AM

I just needed to start process with higher priority, after that i can renice to lower with no problems. On working system this was done within start script. I have forgotten that I changed start priority of process.

Anyway, Thanks for help


All times are GMT -5. The time now is 02:22 AM.