[Users] OOM killed process, altough there is enough memory

Roman Haefeli reduzent at gmail.com
Wed Oct 10 12:25:48 EDT 2012


Hi all

We're having issues with processes in a container being killed by OOM,
although the hostnode does not have even half of its memory used.
How can it be that there is a failcnt for oomguarpages, although the
barrier wasn't even reached?

This is on Debian Squeeze with the OpenVZ Kernel shipped by Debian.


uname -r
2.6.32-5-openvz-amd64

from dmesg:

 [498530.406463] OOM killed process java (pid=4143, ve=2018) exited, free=11882227 gen=17.

from /proc/user_beancounters


       uid  resource                     held              maxheld              barrier                limit              failcnt
     2018:  kmemsize                 12790390             34388183             34379782             38379782                 1255
            lockedpages                     0                  239                 1024                 1200                    6
            privvmpages                416902              1559453              2097152  9223372036854775807                    0
            shmpages                     7929                 8954                21504                21504                    0
            dummy                           0                    0                    0                    0                    0
            numproc                       184                  372                 1000                 1200                    0
            physpages                   71964               529494                    0  9223372036854775807                    0
            vmguarpages                     0                    0              2097152  9223372036854775807                    0
            oomguarpages                71964               529494              2097152  9223372036854775807                    1
            numtcpsock                     43                  117                  360                  360                    0
            numflock                        7                   29                  188                  206                    0
            numpty                          0                    1                   16                   16                    0
            numsiginfo                      0                    7                  256                  256                    0
            tcpsndbuf                  213904               955224              1720320              2703360                    0
            tcprcvbuf                  212992               282952              1720320              2703360                    0
            othersockbuf                18496                43600              1126080              2097152                    0
            dgramrcvbuf                     0                 4360               262144               262144                    0
            numothersock                  214                  253                  360                  360                    0
            dcachesize                 611724              1746754              3409920              3624960                    0
            numfile                      3745                 7966                 9312                 9312                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            numiptent                      10                   10                  128                  128                    0


Roman




More information about the Users mailing list