Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2007 07:50:48 -0800 (PST)
From:      Unga <unga888@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Process priority questions
Message-ID:  <425294.13225.qm@web57015.mail.re3.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi all

I'm sorry to trouble you guys with this issue again. 


As per /usr/include/sys/priority.h:

/*
 * Priorities range from 0 to 255, but differences of
less then 4 (RQ_PPQ)
 * are insignificant.  Ranges are as follows:
 *
 * Interrupt threads:           0 - 63
 * Top half kernel threads:     64 - 127
 * Realtime user threads:       128 - 159
 * Time sharing user threads:   160 - 223
 * Idle user threads:           224 - 255
 *
 */


ps aux -o pri,ni,rtprio,command shows following:

USER     PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  
   TIME COMMAND          PRI NI  RTPRIO COMMAND

root      12 91.0  0.0     0     8  ??  RL    9:50AM
830:41.81 [idle: cpu0]     171  0 idle:25 [idle: cpu0]

root      13  0.0  0.0     0     8  ??  WL    9:50AM  
3:28.96 [swi4: clock sio -32  0 intr:52 [swi4: clock
sio

root     696  0.0  0.1  3240   764  ??  Is    9:51AM  
0:00.06 /usr/sbin/moused  96  0  normal
/usr/sbin/moused


1. I want understand how to interpret above numbers
related to process priorities?

1a) 171  0 idle:25
    What is 171? Does it mean it has upgraded to “Time
sharing user
threads” range to be executed? What is  idle:25? Is it
its default priority 224+25=249?
 
1b) -32  0 intr:52
    What is -32? What is 52?  Is it its default
priority 52 in the “Interrupt threads” range?

1c) 96  0  normal
    The “normal” is what? Is it priority 160 or 223?


2. What is the value range can be specified for
process
priority in /etc/login.conf?


3. What is the name of the program which process or
validate priority values specified in /etc/login.conf?


Regards
Unga


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?425294.13225.qm>