LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2009, 06:38 PM   #1
mwkemo
Member
 
Registered: May 2009
Location: Croatia
Distribution: Debian
Posts: 31

Rep: Reputation: 16
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?
 
Old 09-01-2009, 05:57 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
Old 09-01-2009, 09:02 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by mwkemo View Post
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.
 
Old 09-02-2009, 12:38 AM   #4
mwkemo
Member
 
Registered: May 2009
Location: Croatia
Distribution: Debian
Posts: 31

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


Reply



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
priocntl, nice and renice linuxtesting2 Solaris / OpenSolaris 2 06-09-2006 02:39 PM
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
about renice the process Rex_chaos Linux - General 5 08-01-2004 06:24 AM
Nice and Renice KnightAzul Linux - General 1 09-17-2003 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration