Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-16-2008, 08:47 PM   #1
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
Question "ps" does not give nice value of process if realtime priority set...

I'm using a realtime-enabled kernel, and I noticed that when I do the command:
ps axo pid,nice,rtprio,comm
It does not print the nice value for a process if the process has a realtime value. If I "renice" a process that has a realtime value set, renice will give the old nice value as well as the new value being set, so I know that the nice value doesn't seem to be lost just by setting the realtime priority. Also, the correct nice value is also displayed in ksysguard for example.

So why doesn't the ps command above display the nice value for realtime prioritized processes?

I'm wondering if maybe the crucial question to ask first is--does the nice value matter if the process has a realtime priority? In other words, does a process with a realtime priority (even the lowest realtime priority) always take precedence over other processes that may have a nice value of -20 (highest nice priority)? Is that why the ps command above doesn't give a nice value for realtime prioritized processes? Thanks for any help.

Last edited by CJS; 07-16-2008 at 09:22 PM.
Old 07-16-2008, 09:23 PM   #2
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey There,

Try using

instead of

although it shouldn't make a difference. This option should get you the real time priority if your OS supports it:

Hope that helps

, Mike


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
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
adjust network priority, a la "nice" grooveharder Linux - Networking 1 05-27-2007 02:34 PM
Where to find a "nice" Howto" for modem setup and use for IPS usage xerxesii Linux - Hardware 2 03-27-2007 12:21 AM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 10:22 AM
Making process priority "stick"? Phaethar Linux - Software 1 07-15-2004 08:33 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration