memsize(ADM)
memsize --
print memory size of active system or kernel panic dump
Syntax
/etc/memsize [ dumpfile [ swaplo swaplen ] ]
Description
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
/dev/mem.
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).
Exit values
memsize returns the following exit values:
0-
no error
1-
error reading from the swap device
2-
no system memory image was found on the swap device
Files
/dev/swap-
special device file access to swap area
/dev/mem-
special device file access to memory
See also
boot(HW),
dumpsave(ADM),
swap(ADM)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003