No, image accounting gives the resource usage of terminated process/images. To get the current memory use, easiest is to use SHOW MEMORY: it summarizes everything. It depends in what You are interested (working sets, virtual size,global pages,...), You have to loop over all current processes and sum up the values using f$getjpi() lexical function. As a starting point, look into the procedure http://wwwvms.mppmu.mpg.de/vms$comm... (Was posted to comp.os.vms some years ago). It lists all process. Modify it to sum up e.g. all working set sizes.
|