Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread Guido Jäkel
On 26.02.2015 20:53, Serge Hallyn wrote: I've opened https://github.com/lxc/lxc/issues/453 . I may implement it at some point, but it should be a pretty easy one so I'm going to see if someone else is interested in doing so. Serge, i'm very sorry for my bad English, but i wasn't able work out

Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread PONCET Anthony
. Greetings Guido -Original Message- From: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On Behalf Of PONCET Anthony Sent: Thursday, February 26, 2015 4:06 PM To: LXC users mailing-list Subject: Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04. Le 26

Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread Jäkel , Guido
Dear Serge, Might be worth having lxc order the rules so that it'll always just work. The order of execution needed depends on the actual and desired values crossover the items. The setters of the Memory Controller should be act like Set_MemSwap(Limit) { Mem :=

Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread Jäkel , Guido
: lxc-users [mailto:lxc-users-boun...@lists.linuxcontainers.org] On Behalf Of PONCET Anthony Sent: Thursday, February 26, 2015 4:06 PM To: LXC users mailing-list Subject: Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04. Le 26/02/2015 15:36, Fajar A. Nugraha a écrit

Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread Serge Hallyn
Quoting Jäkel, Guido (g.jae...@dnb.de): Dear Anthony, Dear Fajar, On may unit letters like 'G' while setting the values of the memory cgroup controller. But note that memsw stands for the sum of memory and swap. Therefore, can't set memory.memsw.limit_in_bytes to a value *lower*

Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread Fajar A. Nugraha
On Thu, Feb 26, 2015 at 6:51 PM, PONCET Anthony ff...@msn.com wrote: Hello, I'm trying to used the memory.memsw.limit_in_bytes, and I have this error when I trying to set this : lxc-cgroup -n c_name memory.memsw.limit_in_bytes 2G The name does say limit_in_bytes, not

Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread CDR
It should work with 2G. The rest a bad excuse. It has become a standard in the software industry. On Thu, Feb 26, 2015 at 8:49 AM, Fajar A. Nugraha l...@fajar.net wrote: On Thu, Feb 26, 2015 at 6:51 PM, PONCET Anthony ff...@msn.com wrote: Hello, I'm trying to used the

Re: [lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread Fajar A. Nugraha
You're apprently right. 2G is not the cause. Rather, it should be this (I didn't test it): http://cateee.net/lkddb/web-lkddb/MEMCG_SWAP_ENABLED.html at least ubuntu's 3.16.0-28-generic has # CONFIG_MEMCG_SWAP_ENABLED is not set On Thu, Feb 26, 2015 at 9:19 PM, CDR vene...@gmail.com wrote: It

[lxc-users] Problem with memory.memsw.limit_in_bytes on Ubuntu 14.04.

2015-02-26 Thread PONCET Anthony
Hello, I'm trying to used the memory.memsw.limit_in_bytes, and I have this error when I trying to set this : lxc-cgroup -n c_name memory.memsw.limit_in_bytes 2G lxc_container: cgmanager.c: do_cgm_set: 1013 Error setting cgroup value memory.memsw.limit_in_bytes for