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] [IPF-ia64] with Cset 10690, creating a VTImake xen0

To: Alex Williamson <alex.williamson@xxxxxx>
Subject: Re: [Xen-ia64-devel] [IPF-ia64] with Cset 10690, creating a VTImake xen0 hang
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 12 Jul 2006 12:08:53 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 11 Jul 2006 20:09:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1152620559.5637.14.camel@lappy>
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/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CA502B3E9EE27B4490C87C12E3C7C8510B2584@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1152620559.5637.14.camel@lappy>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Tue, Jul 11, 2006 at 06:22:39AM -0600, Alex Williamson wrote:
> On Tue, 2006-07-11 at 19:42 +0800, Zhang, Xiantao wrote:
> > Hi Alex,
> >     Seems this issue was caused by Cset 10688. In vcpu_itr_d, the current
> > logic purges vhpt with cpu_flush_vhpt_range but it is very heavy to
> > xen0. When creating VTi domain @ early stage, IO operation is very
> > excessive, so qemu was scheduled out and in very frequently and this
> > logic was executed every time. In addition, cpu_flush_vhpt_range using
> > identity map to purge vhpt may cause more tlb miss due to no TR map.
> > If remove vcpu_flush_tlb_vhpt_range logic although it definitely
> > needed, seems VTi becomes healthy. Maybe potential bugs exist there.:)
> 
>    Thanks for investigating Xiantao.  Isaku, any thoughts on how to
> regain VTI performance?  Thanks,

To be honest, I'm seeing considerable perfomance loss with the C/Set.
I haven't found any good optimization idea to lower the cost of
vcpu_flush_tlb_vhpt_range() in vcpu_itr_{i, d}().
I also looked the commit log to check whether a consideration on this issues
was given. But I couldn't find.

Given that the xen page size is 16KB, the VHPT size is 64KB, 
the vhpt long format entry size is 32 bytes and
Linux uses dtr[IA64_TR_CURRENT_STACK] with 64MB page size.
The first attached patch halvs the flush cost.
However I don't think this optimization solves the issue.


It seems to be safe not to flush vTLB considering linux dtr usage.
As a short term work around, vcpu_itr_{i, d}() vTLB flush can be 
disabled.
-- 
yamahata

Attachment: 10717:0ac7c4c8ae50_slight_optimization_vcpu_itr_d_vcpu_itr_i.patch
Description: Text document

Attachment: 10718:99174e194b6a_disable_vtlb_flush_in_vcpu_itr.patch
Description: Text document

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>