ow2-proactive / agent-linux

Linux Agent for ProActive Workflows & Scheduling
http://proactive.activeeon.com/
GNU Affero General Public License v3.0
0 stars 8 forks source link

Setting cgroup memory limit prevents the node from starting on default ubuntu 14.04 #99

Open activeeon-bot opened 10 years ago

activeeon-bot commented 10 years ago

Original issue created by Sergei Dolgov on 18, Sep 2014 at 11:47 AM - LINAGENT-99


        <memoryLimit cgroup_mount_point="/opt/proactive-agent/cgroups">1000</memoryLimit>
2014-09-18 09:32:38 - agent.evg  - INFO     - stderr 30545 : ERROR: Failed to configure cgroup to limit the available memory: %s [Errno 13] Permission denied: '/opt/proactive-agent/cgroups/proactive-agent/memory.memsw.limit_in_bytes'

Apparently the swap accounting, which is a prerequisite of "memsw" (https://www.kernel.org/doc/Documentation/cgroups/memory.txt), is not enabled by default. The workaround seems to be to boot with swapaccount=1 (https://lists.linuxcontainers.org/pipermail/lxc-users/2014-February/006171.html)

lpellegr commented 8 years ago

Not setting cgroup mount point with memory limit on default Fedora 23 desktop prevents the agent to start when Cgroups are used for memory resource:

Nov 12 16:14:58 vmfedora proactive-agent[6331]: Starting proactive-agent services: Invalid configuration file: cgroup is not mounted at /opt/proactive-agent/...ation file

To solve the issue I have to define memory limit as follows:

<memoryLimit cgroup_mount_point="/opt/proactive-agent/cgroups">4096</memoryLimit>