Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-12-2016, 11:00 AM   #1
Senior Member
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
renice command failed from RHEL5

Trying to renice a command from the CLI with the following syntax, on RHEL5:

[root@ameda4aisrx0237 ~]# renice -n -10 -p 29083
renice: -10: bad value
29083: old priority 0, new priority 0

[root@ameda4aisrx0237 ~]# renice -n --10 $(pgrep 29083)
0: old priority 0, new priority 0

For the 2nd command, I can get it to work on RHEL7.

Of course, I can renice via top command, however I'm wondering why the syntax isn't working from the CLI.

I've also consulted the following:

Old 12-12-2016, 11:37 AM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,708
Blog Entries: 4

Rep: Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949
Notice that the syntax of renice is not consistent among all Unix/Linux systems. For instance, on my Mac, the documentation says that -n means that the number following will be an increment, whereas the same man-page on my Linux virtual machine the implication of the text is that it is an extraneous and meaningless keyword.

It certainly seems possible that release-5 vs. release-7 of RHEL might have changed the syntax and/or the interpretation of this command at some point in time. Check carefully that the documentation is, or isn't, the same. The Linux scheduler has changed quite substantially between releases.

A little puzzled why it isn't letting you, as the superuser, set the priority to -10.

... although here I would insert the usual caveats to the effect that negative priorities, in particular, can cause trouble. As for myself, I only use positive priorities, to designate "batch job type" activities. That is to say: "if a user-interface (UI) mouse-click message arrives right now, should I or should I not interrupt you?" And, that's about the full extent of it. Among the pool of "processes that are RUNNABLE right now," I don't attempt to pick favorites. Instead, I fairly-loosely just try to sort out "the ones who can afford to wait."

"Generally, broad-brushed, speaking," nearly all dispatcher workloads are "I/O-bound," not "CPU," and, by their very nature, forever they will continue to be. So, "niceness" is only of marginal usefulness most of the time.

Last edited by sundialsvcs; 12-12-2016 at 01:25 PM.


renice, rhel, top

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
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 07:19 AM
Command failed: device-mapper: reload ioctl failed: Invalid argument azza Programming 2 01-10-2011 03:16 AM
[SOLVED] renice command not helping bino_linux Linux - Server 4 08-23-2010 12:22 PM
rhel5 start xserver failed akino72 Linux - Server 3 03-31-2010 07:36 AM
failed dependency error while installing xmms and winamp in rhel5 srinu.reddy.linux007 Linux - Enterprise 8 10-16-2009 04:17 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 AM.

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