NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: i386 Misc questions: OOM-kill tuning and the `/stand`
On Dec 1, 2026, Rob Whitlock wrote:
> While you can configure NetBSD with no swap space, be aware that if the
> system runs out of VM space, the UVM subsystem will start killing processes.
Yeah, I'm aware. Though, is there any written rule about which process
got killed first in such out-of-memory condition? Would that be the process
that was currently holding the most memory [like kernel Linux],
or the process that issued the last-straw `malloc()`
(or write to the first overcommitted page) which broke the camel's back?
And could the kernel be configured not to kill process
but simply make `malloc()` return NULL instead
(like `sysctl -w vm.overcommit_memory=2` does under kernel Linux)?
> While the NetBSD kernel is (usually) /netbsd, it does support kernel
> modules, which are (usually) in /stand/`uname -m`/`uname -r`/modules.
Acknowledged.
Though I'm curious: I have seen the several mention of `/stand` directory now.
What does this "stand" directory name stands for?
And what are in the `/stand` directory other than kernel modules?
Regards,
Nutchanon Wetchasit
Home |
Main Index |
Thread Index |
Old Index