Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "7.33 How come my processes keep dying at 67M memory usage?"
Next document is "7.35 How come my alt key combinations don't work in emacs X mode?"

7.34 Is it possible to artificially limit the memory size?

WARNING: this is non-standard, unsupported, and may change
from release-to-release.

For 9.01 and 9.03, there is a variable in the kernel called
"soft_pages".  The value is normally zero.  If set to some number
between 256 and the number of pages in your system, only that number
of pages will be allocated as the physical memory in your system.

To use this, first copy your kernel from /hp-ux to something else,
so that you can recover, if necessary (this variable can be set to
a small enough value that the system will be unbootable).  Then
to set up a, say, 16 MByte system, do:

adb -w /hp-ux
soft_pages?W 0D4096

or

soft_pages?W 1000

Remember that the number of physical pages is not the only thing that
goes into a minimum configuration---you also have to scale kernel
parameters such as nproc and other tunables appropriately.

Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "7.33 How come my processes keep dying at 67M memory usage?"
Next document is "7.35 How come my alt key combinations don't work in emacs X mode?"