cgroups: memory controller fixes
authorDaniel Golle <daniel@makrotopia.org>
Thu, 13 Aug 2020 00:54:21 +0000 (01:54 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 13 Aug 2020 09:22:06 +0000 (10:22 +0100)
commit5ade5673d9a0c9cc1e178f71bd4a20e8c392ec6f
tree7c0e4b9ed95c02cac580d2f127a0d9f41f7956da
parent80c951668c0e3bd66888302a5b3f12c7324d9c82
cgroups: memory controller fixes

OCI 'swap' value encodes memory+swap, make the best out of that.
Ignore 'kernel' and 'kernelTCP' values rather than returning with
error as kernel memory is accounted in the existing limits in cgroup2.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/cgroups.c