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

RE: [Xen-devel] [Patch][RFC] correct retry limit of balloon

To: "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [Patch][RFC] correct retry limit of balloon
From: "Puthiyaparambil, Aravindh" <aravindh.puthiyaparambil@xxxxxxxxxx>
Date: Mon, 26 Mar 2007 08:52:21 -0400
Delivery-date: Mon, 26 Mar 2007 05:51:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <EAC76E77868DFFtakebe_akio@xxxxxxxxxxxxxx>
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>
References: <EAC76E77868DFFtakebe_akio@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acdud7IfxF2QUvlrRPaUNp1rJuTVJQBLALVQ
Thread-topic: [Xen-devel] [Patch][RFC] correct retry limit of balloon
> But log.debug message show retries. (Why? retries is always 0.)

retries is not always 0 especially on large systems. And it is
incremented later on in the loop. I think patch should explain things
more clearly.

http://xenbits.xensource.com/xen-unstable.hg?rev/93db1b536f38

Thanks
Aravindh

> So I think the following patch is what you really want to do.
> What do you think?
> 
> Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
> 
> diff -r 2d918219f234 tools/python/xen/xend/balloon.py
> --- a/tools/python/xen/xend/balloon.py  Thu Mar 22 18:41:15 2007 +0000
> +++ b/tools/python/xen/xend/balloon.py  Sun Mar 25 09:38:02 2007 +0900
> @@ -127,7 +127,7 @@ def free(need_mem):
>                            free_mem, need_mem)
>                  return
> 
> -            if retries == 0:
> +            if retries != 0:
>                  rlimit += ((need_mem - free_mem)/1024/1024) *
> RETRY_LIMIT_INCR
>                  log.debug("Balloon: %d KiB free; %d to scrub; need
%d;
> retries: %d.",
>                            free_mem, scrub_mem, need_mem, rlimit)
> 
> Best Regards,
> 
> Akio Takebe
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

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

<Prev in Thread] Current Thread [Next in Thread>