[Vm-dev] testOutOfMemorySignalExtreme

Tobias Pape Das.Linux at gmx.de
Tue Aug 3 20:19:01 UTC 2021


> On 3. Aug 2021, at 20:05, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> Hi All,
>     something needs to be done about this test.  Whenever I run it on macos it never runs out of memory before the system starts complaining. I've just been presented with a dialog telling me that the system is out of application memory and something needs to quit, while the Squeak process is 236 Gb big.  A test that locks up the system isn't very useful.

macOS uses the dynamic_pager(8) to handle swap.
It tries very very hard to satisfy your ram demands.
just out of curiosity, do a 

	ls -hal /var/vm

and see all the swap files it happily creates when you ask for more ram than you have.

The test really only makes sense if the OS does not pretend to have an infinite amount of random access bits.
Thus probably only sensible on linux these days (it presume even iOS has the dynamic pager…)

(Note: it seems dynamic_pager got stripped down over releases, and does not do much anymore;
functionality still exists but is less configurable and problably in-kernel only.
Main point stands tho)

Best regards

> _,,,^..^,,,_
> best, Eliot

More information about the Vm-dev mailing list