Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!CITHEX.CALTECH.EDU!carl
From: carl@CITHEX.CALTECH.EDU (Carl J Lydick)
Newsgroups: comp.os.vms
Subject: Re: PAGE FILE USAGE
Message-ID: <880608072410.274@CitHex.Caltech.Edu>
Date: 8 Jun 88 14:28:45 GMT
References: <581380654.0.RIC@RML2.SRI.COM>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 15


 > I would like to find out how many pages one (or more) processes has
 > been allocated from the system page file at a given instant in time.
 > I don't see any particular DCL command that makes this available.
 > Does anyone have any ideas?  Is this information retreivable from
 > the system?  Thanks to all who reply.

How about using
	F$GETJPI(PID,"PGFLQUOTA") - F$GETJPI(PID,"PAGFILCNT")
to compute what you want?  The help info for F$GETJPI describes the two
keywords as causing F$GETJPI to return:
       PAGFILCNT   integer  Remaining paging file quota
       PGFLQUOTA   integer  Paging file quota (maximum virtual page
                            count)
If the documentation's correct, the above expression should give the number of
pages allocated.