In <1993Aug12.180057.7018@greenwich.com> mark@greenwich.com (Mark Sirota) writes:
>What I'm saying here is true for SunOS 4.1.x, or (I think) any BSD-based
>system.
Okay, I'm on a SunOS4.1.2 system.
>The formula is something like
> p_usrpri = (p_cpu / 4) + PUSER + (2 * p_nice);
> if (p_flag | SFAVORED)
> p_userpri -= 20;
> if (p_rss >= maxrss && freemem < desfree)
> p_userpri += 8;
> if (p_userpri < 1)
> p_userpri = 1;
> else if (p_userpri > 127)
> p_userpri = 127;
>p_cpu is incremented each tick that the process has executed, so the longer
>it has been around, the lower the priority.
So it's always positive.
>PUSER is 50, the base priority for a user process.
So a process that has just started should have a priority of PUSER, or 50?
When I use 'ps alxgww', I see NO process with a priority over 50, and the
only one over 30 is the 'ps' command.
-- | Open the pod bay doors please Hal. | | Open the pod bay doors please Hal. Rob Quinn | | Hal, can you hear me? rjq@phys.ksu.edu | | Open the pod bay doors Hal! QuinnBob@KSUVM.BITNET |
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:06 CDT