print memory size of active system or kernel panic dump
/etc/memsize [ dumpfile [ swaplo swaplen ] ]
memsize outputs the memory size in bytes of the active system or
a kernel panic dump to the standard output.
If no dumpfile is entered, memsize reads the
system's active memory via the special device file
memsize computes the memory size by examining
the bootinfo structure (defined in
/usr/include/sys/bootinfo.h), and summing the sizes
of all memory segments.
The arguments swaplo and swaplen should be
supplied if the dumpfile is the primary swap device
/dev/swap; such a dump
may be offset by swaplo blocks and be truncated to
swaplen blocks in length (a block is 512 bytes).
memsize returns the following exit values:
error reading from the swap device
no system memory image was found on the swap device
special device file access to swap area
special device file access to memory
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003