[lxc-users] Is it possible to change lxc.cgroup.memory.limit_in_bytes in runtime? [LXD]

Ivan Kurnosov zerkms at zerkms.ru
Mon Jul 3 00:05:05 UTC 2017


Hi,

I've went through the lxd and go-lxc binding to find the answer myself but
I stuck at

bool go_lxc_set_config_item(struct lxc_container *c, const char *key, const
char *value) {
return c->set_config_item(c, key, value);
}

Internally - that's how the config parameters are changed.

But is it possible to change lxc config parameters
like lxc.cgroup.memory.memsw.limit_in_bytes
or lxc.cgroup.memory.limit_in_bytes in runtime using some of lxc or lxd cli
utils, so that it was not required to restart a container to get its new
memory limits.

Thanks

-- 
With best regards, Ivan Kurnosov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170703/1d9ea535/attachment.html>


More information about the lxc-users mailing list