I just tested and in fact, the memory restriction does not work. a) set a 5G limit for the container b) started the container c) gave 16 G memory to mysql D) restarted mysql it works fine and it also shows the memory on "show variable like '%buffer%'
Any idea how to work around this? I am afraid any container can take down the box. Philip On Fri, May 9, 2014 at 5:58 AM, CDR <[email protected]> wrote: > The memory limit falis in Ubuntu Server > > lxc-start -n utel-kde > lxc-start: call to cgmanager_set_value_sync failed: invalid request > lxc-start: Error setting cgroup memory.limit_in_bytes limit lxc/utel-kde > lxc-start: Error setting memory.limit_in_bytes to 5GB for utel-kde > lxc-start: failed to setup the cgroup limits for 'utel-kde' > lxc-start: failed to spawn 'utel-kde' > > > Yours > Philip > > On Fri, May 9, 2014 at 5:22 AM, Wojciech Arabczyk <[email protected]> wrote: >> This is a drawback of the procutils package, and nothing you can >> really do about it. Better explained here: >> >> http://fabiokung.com/2014/03/13/memory-inside-linux-containers/ >> >> On 9 May 2014 11:13, CDR <[email protected]> wrote: >>> Dear Serge >>> I type inside the container >>> free -g >>> and it shows the memory of the whole box. >>> Am sure that is not by design. >>> The customer must not see that. >>> >>> Philip >>> >>> >>> On Thu, May 8, 2014 at 11:04 PM, Serge Hallyn <[email protected]> >>> wrote: >>>> Quoting CDR ([email protected]): >>>>> Dear Friends >>>>> I found an example for the config file >>>>> lxc.cgroup.memory.limit_in_bytes = 5GB >>>>> lxc.cgroup.memory.memsw.limit_in_bytes = 6G >>>>> >>>>> But the container still shows100% of the memoty. >>>> >>>> what do you mean by 'shows'? >>>> _______________________________________________ >>>> lxc-users mailing list >>>> [email protected] >>>> http://lists.linuxcontainers.org/listinfo/lxc-users >>> _______________________________________________ >>> lxc-users mailing list >>> [email protected] >>> http://lists.linuxcontainers.org/listinfo/lxc-users >> >> >> >> -- >> pozdrawiam >> Wojciech Arabczyk >> _______________________________________________ >> lxc-users mailing list >> [email protected] >> http://lists.linuxcontainers.org/listinfo/lxc-users _______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
