Memory size change
To change the memory size and exit, use the -c flag of the rmss command.
# rmss -c 128The memory size is an integer or decimal fraction number of megabytes (for example, 128.25). Additionally, the size must be between 8 MB and the amount of physical real memory in your machine. Depending on the hardware and software configuration, the rmss command may not be able to change the memory size to small sizes, because of the size of inherent system structures such as the kernel. When the rmss command is unable to change to a given memory size, it displays an error message.
The rmss command reduces the effective memory size of a system by stealing free page frames from the list of free frames that is maintained by the VMM. The stolen frames are kept in a pool of unusable frames and are returned to the free frame list when the effective memory size is to be increased. Also, the rmss command dynamically adjusts certain system variables and data structures that must be kept proportional to the effective size of memory.
Simulated memory size changed to 128.00 Mb.# rmss -pSimulated memory size is 128.00 Mb.# rmss -rNo matter what the current simulated memory size, using the -r flag sets the memory size to be the physical real memory size of the machine.
Because this example was run on a 256 MB machine, the rmss command responded as follows:
Simulated memory size changed to 256.00 Mb. Simulated memory size changed to 79.9062 Mb.This could be a result of some pages being marked bad or a result of a device that is reserving some pages for its own use and thus not available to the user.