[mod.computers.vax] physical memory

kholt@BBNCC3.ARPA (Karen Holt) (12/03/85)

Does anyone know how the DCL SHOW/MEMORY and SHOW/SYS commands decide how many
pages of physical memory are free / busy?  Although SYS$GETSYI seems like the
right idea, I don't see how to get the data I need.

Please reply directly.  Thanx,  keh

kholt@bbncc3.ARPA

stew%lhasa.UUCP@HARVARD.HARVARD.EDU (12/05/85)

They probably get the data from the system globals SCH$GL_FREECNT,
SCH$GL_MFYCNT, and SCH$GL_PHYPGCNT.  How you reference these depends
on the language you are using, but basically, you declare them to be
external symbols and resolve them at link-time by linking with

$ LINK MYPROG,SYS$SYSTEM:SYS.STB/SELECTIVE_SEARCH
or some such incantation.

Stew
<rubenstein@harvard.harvard.edu>