[lxc-users] Memory limit fails in Ubuntu Server

CDR venefax at gmail.com
Fri May 9 13:29:22 UTC 2014


Sorry, where do I see that
memory.max_usage_in_bytes

for my container?

On Fri, May 9, 2014 at 9:21 AM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> Quoting CDR (venefax at gmail.com):
>> 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
>
> But did it actually fill up the memory?  What is memory.max_usage_in_bytes
> showing?
>
>> 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 6:09 AM, CDR <venefax at gmail.com> wrote:
>> > I found the issue
>> > This line
>> > lxc.cgroup.memory.limit_in_bytes = 5G
>> >
>> > makes the container fail to start
>> > while this one works
>> > lxc.cgroup.memory.limit_in_bytes = 536870910
>> >
>> > I think that we should be free to specify the memory in any format, be
>> > MB, G, etc.
>> >
>> > Philip
>> >
>> > On Fri, May 9, 2014 at 6:00 AM, CDR <venefax at gmail.com> wrote:
>> >> 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'
>> >>
>> >> the line in my config file is
>> >>
>> >> lxc.cgroup.memory.limit_in_bytes = 536870910
>> >>
>> >> Yours
>> >> Philip
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list