[Users] OOM and /etc/vz/oom-groups.conf
Mark J.
mjohanson at a2hosting.com
Wed Oct 2 12:07:13 PDT 2013
On Wed, Oct 02, 2013 at 11:48:02AM -0700, Kir Kolyshkin wrote:
> >15195 ? S 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/server.noticias365.net.pid
> >31661 ? Sl 1:43 \_ /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysql.error.log --open-files-limit=8192 --pid-file=/var/lib/mysql/server.noticias365.net.pid --socket=/tmp/mysql.sock --port=3306
>
> As you can see, mysqld parent is not "init" as it is set in config file,
> but "mysqld_safe", therefore the rule is not applicable.
I noticed that and tried using mysqld_safe and it was still killed off. Does the oom killer use the process in the vm or the node? Cause from the node it looks to be run by init:
init-+-atop
|-auditd---{auditd}
|-cf-execd
|-crond
|-init-+-/usr/local/cpan---spamd\040child
| |-atd
| |-atop
| |-cPhulkd\040-\040proce
| |-cf-execd
| |-cpanellogd\040-\040sl
| |-cpdavd\040-\040accept
| |-cpsrvd-ssl
| |-crond
| |-dovecot-+-dovecot-auth
| | |-3*[imap]
| | |-2*[imap-login]
| | `-2*[pop3-login]
| |-exim
| |-httpd-+-2*[httpd]
| | |-6*[httpd---26*[{httpd}]]
| | `-leechprotect
| |-mysqld_safe---mysqld---24*[{mysqld}]
And I was only using init because thats what the file had itself for most everything in it I just changed the numbers around.
vm config is:
ONBOOT="yes"
PHYSPAGES="0:524288"
SWAPPAGES="0:131072"
KMEMSIZE="1073741824"
LOCKEDPAGES="262144"
PRIVVMPAGES="unlimited"
SHMPAGES="unlimited"
NUMPROC="unlimited"
VMGUARPAGES="unlimited"
OOMGUARPAGES="unlimited"
NUMTCPSOCK="unlimited"
NUMFLOCK="unlimited"
NUMPTY="unlimited"
NUMSIGINFO="unlimited"
TCPSNDBUF="unlimited"
TCPRCVBUF="unlimited"
OTHERSOCKBUF="unlimited"
DGRAMRCVBUF="unlimited"
NUMOTHERSOCK="unlimited"
DCACHESIZE="536870912"
NUMFILE="unlimited"
NUMIPTENT="unlimited"
DISKSPACE="78643200:78643200"
DISKINODES="39321600:39321600"
QUOTATIME="86400"
CPUUNITS="1000"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-6-x86_64-cpanel-default"
ORIGIN_SAMPLE="vswap-solus"
IP_ADDRESS="removed"
HOSTNAME="removed"
NAMESERVER="removed"
CPULIMIT="400"
CPUS="8"
AVNUMPROC="unlimited"
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://lists.openvz.org/mailman/listinfo/users
More information about the Users
mailing list