Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to artificially limit the memory size?

0
Posted

Is it possible to artificially limit the memory size?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123