[lxc-users] How to set the resource limits to a container
Flo
florian.engelmann at gmail.com
Mon Mar 24 16:22:46 UTC 2014
Hi,
max_usage is the amount of memory that WAS used by the container at it's
maximum(!) since it was started.
Regards,
Flo
On Mon, Mar 24, 2014 at 1:34 PM, Mingjiang Shi <mrjewes at gmail.com> wrote:
> Thank you, Andreas. The file memory.limit_in_bytes is
> under /cgroup/memory/lxc/[container].
>
> By the way, what's the difference between memory.limit_in_bytes
> and memory.max_usage_in_bytes? On my system, the values are:
> [root at devmachine lxc110]# cat memory.limit_in_bytes
> 9223372036854775807
> [root at devmachine lxc110]# cat memory.max_usage_in_bytes
> 495345664
>
>
>
> On Fri, Mar 21, 2014 at 5:42 PM, Andreas Laut <andreas.laut at spark5.de>wrote:
>
>> The memory limit is set through cgroup.
>> You can change this through lxc-cgroup -n [Container]
>> memory.limit_in_bytes = XG
>> Or echo into the /sys/fs/cgroup/lxc/[Container] memory.limit_in_bytes
>> (and change this in container config: lxc.cgroup.memory.limit_in_bytes =
>> XG)
>>
>> Regards,
>> Andreas
>>
>> Am 21.03.2014 10:28, schrieb Mingjiang Shi:
>>
>> Hi there,
>> My application in the container is running out of memory. How to set the
>> resource such as memory limits to a container so that it gets more memory?
>> I googled a lot but didn't find straightforward tutorials. Thanks!
>>
>> --
>> Thanks
>> -Mingjiang
>>
>>
>> _______________________________________________
>> lxc-users mailing listlxc-users at lists.linuxcontainers.orghttp://lists.linuxcontainers.org/listinfo/lxc-users
>>
>>
>>
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>
>
>
>
> --
> Thanks
> -Mingjiang
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140324/4672b518/attachment.html>
More information about the lxc-users
mailing list