OOM and Swappiness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi All,

I have a server that has its swappiness set to 0.  It is running a little
tight on memory and so there have been a couple of events where the
OOM_killer has been invoked and killed off MySQL, which you would expect.

Now if you have your swappiness at 0 then "A value of 0 instructs the
kernel not to initiate swap until the amount of free and file-backed pages
is less than the high water mark in a zone."[1]

So even in this event should I expect to start swapping instead of invoking
the oom_killer?

 Is the logic  Memory request -> OOM - > Can I swap? Y-> swap N-> OOM-Killer

Or as the OOM-Killer there to prevent an OOM Condition, that as the OOM
Condition is prevented by killing mysql and therefore we will never swap?

Any clarification on how this all works in this situation would be most
helpful.

[1]
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/sysctl/vm.txt

Kind Regads
-- 
Callum
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux