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-changelog

[Xen-changelog] [xen-unstable] xend: Do not give up auto-ballooning if b

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Do not give up auto-ballooning if ballooning is proceeding okay.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Jun 2007 12:50:29 -0700
Delivery-date: Thu, 14 Jun 2007 15:23:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1181553414 -3600
# Node ID 6f06bd06ef473726b4132e6fe95309fce6963fd5
# Parent  a43a03d53781e159da41f79d8cc615905b95ab80
xend: Do not give up auto-ballooning if ballooning is proceeding okay.
Under a loaded system, don't give up ballooning dom0 unless it's not
responding at all.

Signed-off-by: Ryan Scott <ryan.scott@xxxxxxx>
---
 tools/python/xen/xend/balloon.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r a43a03d53781 -r 6f06bd06ef47 tools/python/xen/xend/balloon.py
--- a/tools/python/xen/xend/balloon.py  Mon Jun 11 10:14:54 2007 +0100
+++ b/tools/python/xen/xend/balloon.py  Mon Jun 11 10:16:54 2007 +0100
@@ -102,6 +102,7 @@ def free(need_mem):
         retries = 0
         sleep_time = SLEEP_TIME_GROWTH
         last_new_alloc = None
+        last_free = None
         rlimit = RETRY_LIMIT
         while retries < rlimit:
             physinfo = xc.physinfo()
@@ -140,7 +141,9 @@ def free(need_mem):
             time.sleep(sleep_time)
             if retries < 2 * RETRY_LIMIT:
                 sleep_time += SLEEP_TIME_GROWTH
-            retries += 1
+            if last_free != None and last_free >= free_mem + scrub_mem:
+                retries += 1
+            last_free = free_mem + scrub_mem
 
         # Not enough memory; diagnose the problem.
         if dom0_min_mem == 0:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend: Do not give up auto-ballooning if ballooning is proceeding okay., Xen patchbot-unstable <=