Re: WORKING_SET.COM gives all COM states when run at high priority

From: AEF (spamsink2001_at_yahoo.com)
Date: 06/30/05


Date: 29 Jun 2005 21:16:52 -0700


David J Dachtera wrote:
> AEF wrote:
> >
> > Hello,
> >
> > WORKING_SET.COM, which is in SYS$EXAMPLES, lists all processes and
> > various working set statistics for each. I recently found out that when
> > you run it at high priority, most or all of the states show up as COM.
> > The state is determined by the function
> >
> > f$getjpi("","STATE")
> >
> > The higher the priority, the higher the percentage of states which are
> > reported as COM.
> >
> > Why should the result of this function be dependent on the priority at
> > which it is run?
>
> Well, think about it: the priority effects CPU scheduling. If your
> process (running WORKING_SET.COM) is more eligible to be scheduled into
> the CPU than the other processes, what's going to happen to the CPU
> queue?
>

But many processes don't want the CPU, yet if their priority is less
than yours they always show up as COM, even a process running a WAIT
statement.

> --
> David J Dachtera
> dba DJE Systems
> http://www.djesys.com/
>
> Unofficial OpenVMS Hobbyist Support Page:
> http://www.djesys.com/vms/support/
>
> Unofficial Affordable OpenVMS Home Page:
> http://www.djesys.com/vms/soho/
>
> Unofficial OpenVMS-IA32 Home Page:
> http://www.djesys.com/vms/ia32/
>
> Coming soon:
> Unofficial OpenVMS Marketing Home Page



Relevant Pages