Skip to contentSkip to conversation

Save scheduler parameters of managed domain to config.sxp

PATCH New Masaki Kanno 1 participant 1 message Jul 3, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Save scheduler parameters of managed domain to config.sxp

Hi,

When I restarted xend, the scheduler parameters of the managed domain were reverted to the first value.

 # xm new /xen/vm1.conf 
 Using config file "/xen/vm1.conf".
 # xm start vm1
 # xm sched-credit -d vm1
 Name                                ID Weight  Cap
 vm1                                  1    512  100
 # xm sched-credit -d vm1 -w 256 -c 50
 # xm sched-credit -d vm1
 Name                                ID Weight  Cap
 vm1                                  1    256   50
 # xm shutdown vm1
 # xend stop
 # xend start
 # xm start vm1
 # xm sched-credit -d vm1
 Name                                ID Weight  Cap
 vm1                                  3    512  100

This patch saves the scheduler parameters of the managed domain to config.sxp.

Best regards,
Kan

tools/python/xen/xend/XendDomain.py +1 -0
diff -r 713bac7cba46 tools/python/xen/xend/XendDomain.py
@@ -1442,6 +1442,7 @@ class XendDomain:
                     dominfo.setWeight(weight)
                 if set_cap:
                     dominfo.setCap(cap)
+                self.managed_config_save(dominfo)
             return rc
         except Exception, ex:
             log.exception(ex)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel