[libvirt] [RFC] memory settings interface for containers
Daniel P. Berrange
berrange at redhat.com
Thu Jan 14 13:03:07 UTC 2016
On Fri, Nov 13, 2015 at 01:55:15PM +0300, Dmitry Guryanov wrote:
> On Thu, 2015-11-12 at 11:11 +0300, Nikolay Shirokovskiy wrote:
> > Hi, everyone.
> >
> > I plan to add means to configure vz containers memory setting and have trouble
> > getting it done thru libvirt interface. Looks like current interface fits good
> > for vm memory managment but its not clear how to use it with containers. First
> > let's take aside memory hotplugging which is obviously not suitable for
> > containers. Then memory interface is represented by 2 parameters: total_memory
> > and cur_balloon. For VMs total_memory can't be changed at runtime, cur_ballon
> > can't be greater than total_memory. But for containers memory model is
> > different. We have only one parameter and it can be changed for running
> > domains.
>
> Not only one parameter, there are a lot of parameters, that can be tuned with
> memory cgroup. But at least physical pages limit (memory.limit_in_bytes) and
> swap pages (memory.memsw.limit_in_bytes) have sense.
The memory.limit_in_bytes maps to the current max memory limit.
For LXC we also support setting the soft limit and swap limit
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list