Для CentOS 6:
vim /etc/init.d/mysqld
Додаємо в розділ start
pgrep -f "mysql" | while read PID; do echo -17 > /proc/$PID/oom_adj; done
ще один спосіб Для CentOS 7:
vim /etc/systemd/system/mysqld
OOMScoreAdjust=-1000
Інфо:
http://geckich.blogspot.com/2013/12/linux-out-of-memory-killer-oom.html
https://habrahabr.ru/company/infobox/blog/241237/
https://habrahabr.ru/company/centosadmin/blog/255845/
