Re:BeagleV – An affordable RISC-V computer designed to run L...
by knorker on Wednesday January 13, 2021 @06:25PM
(#25769456)
The OOM killer makes running out of memory on Linux not fun. I've found that turning of overcommit avoids this problem.
Then again, I've seen BSDs handle it even worse.
Re:BeagleV – An affordable RISC-V computer designed to run L...
by 1vuio0pswjnm7 on Wednesday January 13, 2021 @06:47PM
(#25769658)
"I've found that turning of overcommit avoids this problem."
("tuning of" or "turning off")
Do you mean something like
sysctl vm.overcommit_memory=2
Re:BeagleV – An affordable RISC-V computer designed to run L...
by k_sze on Wednesday January 13, 2021 @06:53PM
(#25769719)
The grand parent maybe meant “turning off”. One could argue that’s the ultimate “tuning”. :P
Re:BeagleV – An affordable RISC-V computer designed to run L...
by knorker on Thursday January 14, 2021 @04:51AM
(#25774348)
I meant "turning off". Sorry.
Yes, something exactly like that.
Seems too late to edit now.
Re:BeagleV – An affordable RISC-V computer designed to run L...
by 1vuio0pswjnm7 on Wednesday January 13, 2021 @06:41PM
(#25769594)
I disable swap. If I run out of RAM, thrashing may occur but it is not fatal. Some process that needs to write to "disk" might fail, but the system does not. I just delete some file(s) to free up the needed RAM, restart the process and continue working. I don't think NetBSD has anything like "OOM killer".
Note that one drawback with "disk-less" via read-only SD card or USB stick is how to have a good source of entropy at boot time.
Could you elaborate a bit more on that, please ?
It's been a while since I last touched NetBSD, but I don't remember anything special regarding that aspect.