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] [PATCH] Fix free() in balloon.py for shortening response tim

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix free() in balloon.py for shortening response time
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Tue, 25 Sep 2007 11:52:49 +0900
Delivery-date: Mon, 24 Sep 2007 19:53:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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,

My machine has only 1024MB physical memories.  When I required domain 
memory sizes larger than the physical memory size for creating a guest 
domain, the response time of xm create command was as follows. 

# xm create /xen/vm1.conf memory=1025
Using config file "/xen/vm1.conf".
  << wait 23 seconds >>
Error: I need 1049600 KiB, but dom0_min_mem is 262144 and shrinking to 262144 
KiB would leave only 765888 KiB free.
# xm create /xen/vm1.conf memory=10000
Using config file "/xen/vm1.conf".
  << wait 6 minutes 20 seconds >>
Error: I need 10240000 KiB, but dom0_min_mem is 262144 and shrinking to 262144 
KiB would leave only 765888 KiB free.
# xm create /xen/vm1.conf memory=100000
Using config file "/xen/vm1.conf".
  << wait 1 hour 8 minutes >>
Error: I need 102400000 KiB, but dom0_min_mem is 262144 and shrinking to 262144 
KiB would leave only 765888 KiB free.


If users require domain memory size larger than a physical memory size, 
I think that we do not need waiting for ballooning, and should cause 
xm create command error right away.
This patch fixes free() in balloon.py.  It does not wait ballooning 
if users require domain memory size larger than a physical memory size. 


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: balloon.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix free() in balloon.py for shortening response time, Masaki Kanno <=