|
|
/sbin/memsize [-f [N][.n][kmgp]] dumpfile
Note that all integer divisions are rounded up. For example, memsize -fg reports ``1'' if your system has <= 1GB, and reports ``2'' if your system has >1GB and <= 2GB. Floating-point divisions (triggered by a .prec) are conventionally rounded, so a command like -f1000.1g returns ``0.0''). The -f option is very flexible but, in practice, there are only a few useful cases. In particular, dumpcheck and dumpsave use memsize -f512 to get 32-bit results that can be used for dd block sizes.
# /sbin/memsize -fp 32669To report general memory size in megabytes with 2 digits of floating point precision execute:
# /sbin/memsize -g -f.2m 121.27