--- Pieter de Goeje <[EMAIL PROTECTED]> wrote: > On Thursday 20 December 2007, Unga wrote: > > Hi all > > > > $ ps auxl -w | grep amarok > > test 1707 0.0 9.4 61680 48544 ?? S > 12:29AM > > 0:17.29 amarokapp 1003 1 1 20 0 > ksere > > > > Could I check with the list what is the priority > this > > 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 > priority, > > therefore, what should be the values it should > display > > 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 just one? 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: envy24ht test 1212 0.0 9.3 58544 48176 ?? S 8:06PM 0:06.15 amarokapp 20 0 normal amarokapp That is, 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 /etc/login.conf? Realtime? 6) What is the value should I set for priority in /etc/login.conf if I want Realtime? Kind Regards Unga ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs _______________________________________________ firstname.lastname@example.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"