LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-16-2008, 08:47 PM   #1
CJS
Member
 
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:
Code:
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
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey There,

Try using

Quote:
ni
instead of

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

Quote:
rtprio
Hope that helps

, Mike
 
  


Reply


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


All times are GMT -5. The time now is 09:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration