WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Problem with setmaxmem()

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Problem with setmaxmem()
From: Amitayu Das <amitayudas@xxxxxxxxx>
Date: Sat, 26 Nov 2005 16:34:27 -0500
Delivery-date: Sun, 27 Nov 2005 21:45:39 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=qCjrQSqr7gGns1oA5QbSw2RR7ONVyiSmnNKjQ2ELwF3G0x/Zw0RrqMUl/PUq7zH9/I8jSYAFxpDOd4hOhKzdgeZljHF3qt6N9qBMTzMV2SgiNbXZg0AyiqZtZMkn0wEoQnlcj2kCbNpbBzfpk6bQqhS9bEJjoXdMkrCyN36d+E4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>