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-ia64-devel

Re: [Xen-ia64-devel] [Patch] improve response time at creating a guest

To: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [Patch] improve response time at creating a guest
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Tue, 22 Jul 2008 21:02:35 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 22 Jul 2008 05:02:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <487EF10D.7030107@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <487EF10D.7030107@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
Hi Akio.
At first I'm agree with you that the constant may needs
to be reduced. The issue is what value is appropriate.

Do you know how long the hypercall takes?
Your description sounds like that the hypercall takes several
seconds. So havling it seems just to halve the time which still
stays the order of seconds. So it doesn't seem to solve your real
issue.

I suppose the hypercall should return in small time enough.
The problem is what "enough" is compared to what?
One candidate is vcpu time slice. Another possible candidate would
be time related to tcp timeout.

thanks,

On Thu, Jul 17, 2008 at 04:13:17PM +0900, Akio Takebe wrote:
> Hi,
> 
> When I create a guest having large memory,
> Some guests could not get network response for several seconds.
> The issue is caused by xencomm_privcmd_memory_reservation_op().
> To improve the response time, the attached patch reduces
> MEMORYOP_MAX_EXTENTS.
> 
> Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
> 
> Best Regards,
> 
> Akio Takebe

> diff -r 3643a33de277 arch/ia64/xen/xcom_privcmd.c
> --- a/arch/ia64/xen/xcom_privcmd.c    Mon Jun 30 16:14:04 2008 +0100
> +++ b/arch/ia64/xen/xcom_privcmd.c    Fri Jul 18 01:00:05 2008 +0900
> @@ -445,7 +445,7 @@ xencomm_privcmd_memory_reservation_op(pr
>                *   increase adoptively measuring hypercall time.
>                *   It might be over-kill.
>                */
> -#define MEMORYOP_MAX_EXTENTS (MEMORYOP_XENCOMM_LIMIT / 4)
> +#define MEMORYOP_MAX_EXTENTS (MEMORYOP_XENCOMM_LIMIT / 8)
>  
>               while (nr_extents > 0) {
>                       xen_ulong_t nr_tmp = nr_extents;

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

-- 
yamahata

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

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