What priority this app running?
unga888 at yahoo.com
Fri Dec 21 04:30:06 PST 2007
--- Pieter de Goeje <pieter at degoeje.nl> wrote:
> On Thursday 20 December 2007, Unga wrote:
> > Hi all
> > $ ps auxl -w | grep amarok
> > test 1707 0.0 9.4 61680 48544 ?? S
> > 0:17.29 amarokapp 1003 1 1 20 0
> > Could I check with the list what is the priority
> > amarokapp is running?
> Priority isn't shown in the output above. Try
> $ ps -o pri,ni,rtprio,command -p `pgrep amarok`
> This will display priority, nice value and realtime
> priority (in that order).
> > The ps man page doesn't show the values for
> > therefore, what should be the values it should
> > for lowest and highest priority (realtime)?
> A lower value means higher priority. Realtime
> priority 0 is as high as you can
> get. See also rtprio(1).
Thanks all for replies.
Priority is still not clear to me.
$ ps -o pri,ni,rtprio,command -p `pgrep amarok`
PRI NI RTPRIO COMMAND
20 0 normal amarokapp
1) I wonder why there are 3 columns for priority, not
2) How should I read above? Is it Priority=20, ie.
NI=0, RTPRIO=normal? Does it all mean the same thing,
like the bytes=1048576 and KB=1024 and MB=1?
3) The rtprio(1) says "Priority is an integer between
0 and RTP_PRIO_MAX (usually 31). 0 is the highest
priority". But when I run following command:
$ ps aux -o pri,ni,rtprio,command
USER PID %CPU %MEM VSZ RSS TT STAT STARTED
TIME COMMAND PRI NI RTPRIO COMMAND
root 10 99.2 0.0 0 8 ?? RL 7:40PM
0:00.00 [idle: cpu1] 171 0 idle:25 [idle: cpu1]
root 26 0.0 0.0 0 8 ?? WL 7:40PM
0:00.02 [irq18: envy24ht -80 0 intr:4 [irq18:
test 1212 0.0 9.3 58544 48176 ?? S 8:06PM
0:06.15 amarokapp 20 0 normal amarokapp
PID PRI NI RTPRIO
10 171 0 idle:25
26 -80 0 intr:4
1212 20 0 normal
This shows priority ranges at least from -80 to 171
contrary to the range mentioned in rtprio(1). Does
this means PID=26 has a higher priority than PID=1212?
4) Can a PRI=0 be considered Realtime?
5) What is the meaning of priority=0 in
6) What is the value should I set for priority in
/etc/login.conf if I want Realtime?
Never miss a thing. Make Yahoo your home page.
More information about the freebsd-questions