[lxc-users] dynamic cgroup memory limit

Tian-Jian Wu tcwu2005 at gmail.com
Sat Mar 31 14:43:10 UTC 2018


We are developers of project clondroid (https://github.com/clondroid)
Our android porting lxc tools are at
https://github.com/clondroid/lxc-for-Android-7.1.2.
This command 'lxc config set my-container limits.memory 256MB' , the 'lxc'
command seems be part of LXD project.
If so, I guess it's written in GOLANG.  Wondering if there is a chance to
port LXD to android...

2018-03-31 18:28 GMT+08:00 Sergiusz Pawlowicz <sergiusz at pawlowicz.name>:

> On 31 March 2018 at 16:57, Tian-Jian Wu <tcwu2005 at gmail.com> wrote:
> > please allow my silly question , how?
> > I know it's ok to set memory limit in config file and it's set to kernel
> > later.
> > But after container started how to change memory limit?  What command?
>
> it is clearly described on:
>
> https://insights.ubuntu.com/2016/03/30/lxd-2-0-resource-control-412
>
> lxc config set my-container limits.memory 256MB
>
> s.
> _______________________________________________
> 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/20180331/c2515471/attachment.html>


More information about the lxc-users mailing list