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:15:25 -0700


Jeff Cameron wrote:
> On 6/29/05 4:33 PM, in article
> 1120087981.900047.325720@f14g2000cwb.googlegroups.com, "AEF"
> <spamsink2001@yahoo.com> 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?
> >
> > (Tested on VMS v6.1 and v6.2, both on VAX systems.)
> >
> > (On some systems it may be called WORKSET.COM.)
> >
> > Thanks.
> >
> This is because you arte at a high priority and when ever you are executing
> the function f$getjpi, you will always be at the CUR or current state, that
> is the one process on the system that has the CPU above all others, so
> anyone else that wants the CPU at that time will show up as COM or
> computable. You are preempting all lower processes that want the CPU.
>
> Jeff

But don't many processes NOT want the CPU? Shouldn't they still be
reported as LEF and HIB?

I did some more experimentation. I found that any process whose
priority is less than yours always shows up as COM no matter what. Even
a WAIT command shows up as COM. It seems to me that it really is in an
LEF state.



Relevant Pages

  • Re: WORKING_SET.COM gives all COM states when run at high priority
    ... Jeff Cameron wrote: ... >> you run it at high priority, most or all of the states show up as COM. ... > is the one process on the system that has the CPU above all others, ...
    (comp.os.vms)
  • Re: WORKING_SET.COM gives all COM states when run at high priority
    ... > Jeff Cameron wrote: ... >> This is because you arte at a high priority and when ever you are executing ... >> is the one process on the system that has the CPU above all others, ... > LEF state. ...
    (comp.os.vms)
  • Setting (thread) priority of DirectShow Graphs/Filters ?
    ... using a DirectShow filter graph to transcode ... idle priority. ... playback etc) it would be nice to be able to set a high priority so ... that a normal priority process using 100% CPU would cause problems. ...
    (microsoft.public.win32.programmer.directx.video)
  • [ckpatch][3/29] 2.6.17-smpnice-staircase-16
    ... Implement the "staircase" hybrid foreground-background single priority ... array cpu scheduler policy. ... extern struct user_struct root_user; ... goto out_running; ...
    (Linux-Kernel)
  • [RFC][PATCH] O(1) Entitlement Based Scheduler
    ... This patch is a modification of the Oscheduler that introduces ... _entitlement_ to CPU resources that is determined by the number of _shares_ ... This patch provides both soft and hard CPU usage rate caps per ... one getting the most can be given a better priority, ...
    (Linux-Kernel)

Loading