Comment on The MySQL “swap insanity” problem and the effects of the NUMA architectureparentComments−lawnchair_larry14yOvercommit does not use or require swap. You can have overcommit enabled on linux and not be using swap at all.−wmf14yBut then you may meet the OOM killer.−lawnchair_larry14yAgain, that has nothing to do with swap being enabled.−wmf14yMy understanding is that swap would delay or prevent the OOM killer from kicking in. Is that wrong?−lawnchair_larry14yIf you have 8GB of ram and 8GB of swap, the OOM killer will kick in at 16GB.If you have 16GB of ram, and 0GB of swap, the OOM killer will kick in at 16GB.
Comments
Overcommit does not use or require swap. You can have overcommit enabled on linux and not be using swap at all.
But then you may meet the OOM killer.
Again, that has nothing to do with swap being enabled.
My understanding is that swap would delay or prevent the OOM killer from kicking in. Is that wrong?
If you have 8GB of ram and 8GB of swap, the OOM killer will kick in at 16GB.
If you have 16GB of ram, and 0GB of swap, the OOM killer will kick in at 16GB.