Re:What's the right amount of swap space for a modern Linux ...
by kim0 on Monday February 18, 2019 @12:35PM
(#19192397)
It more like, I prefer to get out of memory error sometimes, rather than watch a slow death via tons of swapping
[ Parent
| on HN ]
Re:What's the right amount of swap space for a modern Linux ...
by znpy on Monday February 18, 2019 @03:20PM
(#19194024)
The thing is that you don't get "out of memory errors" you get the kernel to almost randomly choose a process and sacrifice it in order to free ram.
If the chosen process is a database... That's not funny. At all.
Edit: you could adjust the oom score to avoid Linux killing important process, but I don't want to discover if Linux is actually going to follow the oom score or just "keep it in mind" when choosing a process to sacrifice.
Re:What's the right amount of swap space for a modern Linux ...
by kfwhp on Monday February 18, 2019 @01:34PM
(#19192947)
When you get out of RAM, the computer becomes completely unusable for an unspecified amount of time and you end up force rebooting after minutes of frustration. I'd rather have the OOM killer step up and keep things in order.