echo 1 > memory.oom_control bash: echo: write error: Invalid argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:

http://lxr.free-electrons.com/source/Documentation/cgroups/memory.txt:
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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux