Hello,On Fedora 20, I try the following:
1) create a cgroup called "0"
/sys/fs/cgroup/memory/0
run:
echo "1" > /sys/fs/cgroup/memory/0/memory.oom_control
bash: echo: write error: Invalid argument
Why am I having this error ?
According to the documentation:
You can disable the OOM-killer by writing "1" to memory.oom_control file, as:
754
755 #echo 1 > memory.oom_control
756
757 This operation is only allowed to the top cgroup of a sub-hierarchy.
758 If OOM-killer is disabled, tasks under cgroup will hang/sleep
759 in memory cgroup's OOM-waitqueue when they request accountable memory.
760
regards,
Kevin