[PATCH 0/3] make containers memory settings API consistent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Typical HVM hypervisor has 2 memory settings - maximum and current memory.
(there could be more memory options of course but let's consider these
two and their correlation). Current limit is implemented via ballooning
and is not greater than maximum. Containers are different, we need only one 
parameter to control their memory consumption - current memory.

Memory settings API, domain XML schema and domain internal representation
arises obviously for HVMs where we have 2 different parameters. How
one should adopt it for containers?

This patch series makes these 2 parameters synonyms for containers.

 1. API - make maximum memory API behaviour same to just memory.
 2. internally keep cur_balloon and initial (or total) the same.
 3. ignore cur_ballon in XML (we do it already, just keep internal 
  representation consistent)

Nikolay Shirokovskiy (3):
  lxc: make maximum and current settings same
  conf: keep cur_balloon and initial_memory the same
  docs: update memory setting descripitons

 docs/formatdomain.html.in |  6 ++---
 src/conf/domain_conf.c    |  8 +++++--
 src/libvirt-domain.c      |  6 ++++-
 src/lxc/lxc_driver.c      | 58 ++++++++++++-----------------------------------
 tools/virsh.pod           |  6 +++++
 5 files changed, 34 insertions(+), 50 deletions(-)

-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]