Fwd: What priority this app running?

2007-12-20 Thread C High
On Dec 20, 2007 12:54 PM, Pieter de Goeje [EMAIL PROTECTED] wrote:
 On Thursday 20 December 2007, Unga wrote:
  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).


I am not so familiar with the pri or rtprio columns as much as I am
the nice column, and I'm also new to this list. So, I hope I'm not
throwing in my 2 cents too early.

With nice, 20 is the lowest priority, 0 is the base, and -20 is the highest.

for me `ps auxl` shows both pri and ni, but not rtprio and I'm
definitely not the one to ask regarding pri and rtprio.

I should do some reading upon these, too.

Cheers,
Clair
-- 
tch3.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fwd: What priority this app running?

2007-12-20 Thread Norberto Meijome
On Thu, 20 Dec 2007 13:07:44 -0500
C High [EMAIL PROTECTED] wrote:

 With nice, 20 is the lowest priority, 0 is the base, and -20 is the highest.

that's right - it is because with nice you tell it 'how nice to be'. when you
ask a process to have a level 20 of niceness, it will be VERY nice and the
kernel will let other processes in front of it. If you say, this process will
have a negative value of niceness, it isn't very nice at all ;)

_
{Beto|Norberto|Numard} Meijome

We've been wrong so many times before, why stop now?

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fwd: What priority this app running?

2007-12-20 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Norberto Meijome wrote:
 On Thu, 20 Dec 2007 13:07:44 -0500 C High [EMAIL PROTECTED]
 wrote:

 With nice, 20 is the lowest priority, 0 is the base, and -20 is
 the highest.

 that's right - it is because with nice you tell it 'how nice to
 be'. when you ask a process to have a level 20 of niceness, it will
 be VERY nice and the kernel will let other processes in front of
 it. If you say, this process will have a negative value of
 niceness, it isn't very nice at all ;)

I think the kernel it self (this is based on 43BSD) has a niceness of -25.

- --
Aryeh M. Friedman
FloSoft Systems
http://www.flosoft-systems.com
Developer, not business, friendly
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHazRtzIOMjAek4JIRAtAlAJ4xgwq25KBQ9GAJF4XDr2JbNlXLGgCfa+mP
xr40CG6NrQFBl7GyyWvfbac=
=WRMK
-END PGP SIGNATURE-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]