Hi, I''m having problem in reducing the memory-size for Dom0. I got it running after compiling the xen-unstable source code on FC4. The domain0 starts fine and I can start DomU also. Initially, Dom0 starts with default memory (although I''m not sure what that is). However, if I get the following when trying to reduce the memory-size for Dom0 as I needed more memory for the DomU''s. #xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 581 1 r----- 12353.5 # xm mem-max 0 384 Error: domain_setmaxmem() takes no keyword arguments I tried to set a lower value of memory-size (384MB) by putting that value inside grub entry, which did not help. tools/python/xen/lowlevel/xc/xc.c has got the definition of pyxc_domain_setmaxmem() as static PyObject *pyxc_domain_setmaxmem(XcObject *self, PyObject *args) [** note that no keywords in the list of parameters] although, /usr/lib/python/xen/xend/XendDomain.py is using this function as try: return xc.domain_setmaxmem(dominfo.getDomid(), maxmem_kb = maxmem) [** note that keywords are being sent as arguments] Since, the things are not matching, is this a bug or am I missing something. Please help........ Thanks, Amitayu _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi, I''m having problem in reducing the memory-size for Dom0. I got it running after compiling the xen-unstable source code on FC4. The domain0 starts fine and I can start DomU also. Initially, Dom0 starts with default memory (although I''m not sure what that is). However, if I get the following when trying to reduce the memory-size for Dom0 as I needed more memory for the DomU''s. #xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 581 1 r----- 12353.5 # xm mem-max 0 384 Error: domain_setmaxmem() takes no keyword arguments I tried to set a lower value of memory-size (384MB) by putting that value inside grub entry, which did not help. tools/python/xen/lowlevel/xc /xc.c has got the definition of pyxc_domain_setmaxmem() as static PyObject *pyxc_domain_setmaxmem(XcObject *self, PyObject *args) [** note that no keywords in the list of parameters] although, /usr/lib/python/xen/xend/XendDomain.py is using this function as try: return xc.domain_setmaxmem(dominfo.getDomid(), maxmem_kb = maxmem) [** note that keywords are being sent as arguments] Since, the things are not matching, is this a bug or am I missing something. Please help........ Thanks, Amitayu _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Sat, Nov 26, 2005 at 08:10:26PM -0500, Amitayu Das wrote:> [Snip] > static PyObject *pyxc_domain_setmaxmem(XcObject *self, PyObject *args) [** > note that no keywords in the list of parameters] > > although, /usr/lib/python/xen/xend/XendDomain.py is using this function > as > > try: > return xc.domain_setmaxmem(dominfo.getDomid(), > maxmem_kb = maxmem) [** note that > keywords are being sent as arguments] > > Since, the things are not matching, is this a bug or am I missing > something. Please help........That''s a bug. Thanks for your report. You can just remove the maxmem_kb here and anywhere else that this problem occurs (I recently tidied up the argument handling, and obviously have broken this call). Please note, however, that xm mem-max is dangerous, and using it to shrink the domain will probably crash it. You want to try xm mem-set, which sets a soft limit instead, and will shrink the domain without crashing it. There is a bug outstanding (#212) to remove the xm mem-set command (or at the very least to reduce its potency). Please don''t use it, and use xm mem-set instead. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel