[CentOS] kernel memory accounting

Fri Mar 10 19:25:15 UTC 2017
Wensheng Deng <wd35 at nyu.edu>

Hi CentOS experts,

I am using CentOS 7. Trying to disable kernel memory accounting:
according to https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt,
 passing cgroup.memory=nokmem to the kernel at boot time, should be able to
archive that.

However it is not the case in my exercise.  These are what I have now
$ grep CONFIG_MEMCG_KMEM /boot/config-3.10.0-327.36.3.el7.x86_64

CONFIG_MEMCG_KMEM=y

$ cat /proc/cmdline

BOOT_IMAGE=/vmlinuz-3.10.0-327.36.3.el7.x86_64
root=UUID=56568066-5719-46d9-981d-278c7559689b ro quiet cgroup.memory=nokmem
systemd.log_level=debug

But kernel memory is still accounted in user's applications. Any suggestion
on how to chase the issue is greatly appreciated!  Thank you!


Best Regards,
Wensheng