Determine memory load based on cgroup usage. (#19518)
authorTom Deseyn <tom.deseyn@gmail.com>
Thu, 16 Aug 2018 18:47:20 +0000 (20:47 +0200)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 16 Aug 2018 18:47:20 +0000 (20:47 +0200)
commitca5b0d1caa47abdebac13233553c6e44db2e3168
treec799ed2aad140fce723ad9a0796c12ae994c90ca
parent6a2ce4748f043d8c0dc9e4d30d415cffbef1958f
Determine memory load based on cgroup usage. (#19518)

cgroup usage is used to trigger oom kills. It includes rss and file cache
of the cgroup.

The implementation was only using the process rss to determine memory load.
This is less than the cgroup usage and leads to oom kills due to GC not
being triggered soon enough.
src/gc/unix/cgroup.cpp
src/gc/unix/gcenv.unix.cpp
src/pal/inc/pal.h
src/pal/src/misc/cgroup.cpp
src/vm/gcenv.os.cpp