<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Eric, thank you for your response. Virsh memtune, setmaxmem and setmem won't survive a reboot. I'm hoping to find  a solution that can survive reboot. <br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>  </span></div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Thursday, January 30, 2014 11:36 AM, Eric Blake
 <eblake@redhat.com> wrote:<br> </font> </div>  <div class="y_msg_container">On 01/30/2014 10:11 AM, mallu mallu wrote:<br>> I'm trying to permanently change memory allocation for a libvirt-lxc domain. So far I tried changing memory in memory.limit_in_bytes under /cgroup/memory/libvirt/lxc/<container>/.  This didn't help. It appears that libvirt is not reading changes in cgroup.<br>> <br>> My requirements are <br>> <br>> 1) Be able to dynamically change memory of a LXC domain without reboot<br>> 2) The memory change must survive LXC domain reboot.<br><br>virsh memtune, virsh setmaxmem, and virsh setmem are the appropriate<br>tools to use.  Changing things directly in cgroups goes behind libvirt's<br>back, while changing it through the libvirt API allows you to hot-plug<br>the changes as well as control whether the next boot will have the same<br>new limits.<br><br>-- <br>Eric Blake   eblake redhat com 
   +1-919-301-3266<br>Libvirt virtualization library <a href="http://libvirt.org/" target="_blank">http://libvirt.org</a><br><br><br></div>  </div> </div>  </div> </div></body></html>