Recently I experienced the memory problem on my box, hosting the SIMH with the OpenVMS on board.
So, it was the beginning of the road to understand and know the memory issues within my OpenVMS 7.3 on VAX.
My VAX machine was allocated with 64MB of memory.
$ grep -A1 mem vax.ini ; This virtual machine has 64M memory set cpu 64m
I tried to verify what is te current consumption of this resource.
% in:="sys$input" % pi sh mem | sea 'in phy,main Physical Memory Usage (pages): Total Free In Use Modified Main Memory (64.00Mb) 131072 97050 32505 1517 Of the physical pages in use, 20737 pages are permanently allocated to OpenVMS.
Searching the HP OpenVMS Systems Documentations gave me the solution how to print the results already counted in Bytes:
The display is shown as blocks or bytes depending on the current default setting. You can use SHOW PROCESS/UNITS to display the current default. To change the default, execute the DCL command SET PROCESS/UNITS=BYTES or SET PROCESS/UNITS=BLOCKS.
% set proc/units=bytes %DCL-W-IVQUAL, unrecognized qualifier - check validity, spelling, and placement \UNITS\
but unfortunately it not works on 7.3 and/or VAX platform.
As I’ve figured out already the page of memory, and page on disk is 512 bytes.
% pagesize = f$getsyi("page_size") % sh sym pagesize PAGESIZE = 512 Hex = 00000200 Octal = 00000001000
So, the total and in-use memory values are respectively 64 and 15 MB.
% total=pagesize*131072/1048576 % inuse=pagesize*32505/1048576 % sh sym total TOTAL = 64 Hex = 00000040 Octal = 00000000100 % sh sym inuse INUSE = 15 Hex = 0000000F Octal = 00000000017