RIC@RML2.SRI.COM (Ric Steinberger) (06/04/88)
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. -Ric Steinberger steinberger@kl.sri.com or ric@rml2.sri.com -------
carl@CITHEX.CALTECH.EDU (Carl J Lydick) (06/08/88)
> 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.
XRBEO@VPFVM.BITNET (Bruce O'Neel) (07/05/88)
My GUESS is that the following will work. You need to call sys$getjpi with two different Item descriptors in one request. The first is JPI$_PAGFILCNT - The process's remaining pageing file quota The other is JPI$_PGFLQOUTA - THe process's pageing file quota The number of pages in the page file for this process should be the pageing file quota minus the remaining pageing file quota. THis is page SYS-209 in Manual 8D Dated April 1986. A working example of how to call system services in fortran can be found on SYS-268 in the same manual. bruce <xrbeo@vpfvm>