RE: [Xen-ia64-devel] [IPF-ia64] with Cset 10690, creating a VTImake xen0 hang

2006-07-11 Thread Zhang, Xiantao
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  Best Regards
-Xiantao

OTC,Intel Corporation

 -Original Message-
 From: Alex Williamson [mailto:[EMAIL PROTECTED]
 Sent: 2006年7月11日 11:28
 To: Zhang, Jingke
 Cc: xen-ia64-devel@lists.xensource.com; Zhang, Xiantao;
 [EMAIL PROTECTED]
 Subject: RE: [Xen-ia64-devel] [IPF-ia64] with Cset 10690, creating a VTImake
 xen0 hang
 
 On Tue, 2006-07-11 at 10:13 +0800, Zhang, Jingke wrote:
  Just add comments to this problem:
  With Cset 10684, VTI domain creating does well.
 
Cset 10685 emulate PAL_HALT_LIGHT on domU seems to play a
 significant part of this.  On cset 10690 it takes ~30 seconds to get to
 an EFI shell prompt for a VTI domain.  If I 'hg export 10685 | patch -p1
 -R' (ie. back out cset 10685), VTI domains start in ~5 seconds.
 
   Alex
 
 --
 Alex Williamson HP Open Source  Linux Org.

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


RE: [Xen-ia64-devel] [IPF-ia64] with Cset 10690, creating a VTImake xen0 hang

2006-07-11 Thread Alex Williamson
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,

Alex

-- 
Alex Williamson HP Open Source  Linux Org.


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


RE: [Xen-ia64-devel] [IPF-ia64] with Cset 10690, creating a VTImake xen0 hang

2006-07-11 Thread Zhang, Xiantao
Hi Alex,
Our QA team reported that xen0 would hang after creating VTi domain 
@CSet 10688-10694. Should we reverse the logic of vcpu_itr_d first ?  Maybe we 
can find out the real bottleneck later.:)
Thanks  Best Regards
-Xiantao

OTC,Intel Corporation

 -Original Message-
 From: Atsushi SAKAI [mailto:[EMAIL PROTECTED]
 Sent: 2006年7月11日 21:46
 To: Alex Williamson; Zhang, Xiantao
 Cc: Isaku Yamahata; xen-ia64-devel@lists.xensource.com
 Subject: Re: [Xen-ia64-devel] [IPF-ia64] with Cset 10690, creating a VTImake
 xen0 hang
 
 Hi, Alex
 
 Sorry for late.
 
 I found your problem(boot time difference w/ PAL_HALT_LIGHT emulation patch)
 occurred in SMP(credit).
 But, it does not occurred in UP, SMP(bvt) and SMP(credit w/ affinity).
 
 I think the emulation of pal_halt_light for domU
 does not good work for DomVTI boot up
 under credit scheduling w/o affinity.
 
 And consider the Xiantao survey,
 qemu make heavy I/O operations at the boot up.
 
 Consider the above two conditions,
 I think credit scheduler algorithm does not consider
 the block state.(caused by pal_halt_light emulation)
 So I want to switch off the vcpu migration at heavy load
 
 
 I planned as follows.
 
 1)In the short term,
 I want to avoid this problem by
 HALT the PAL_HALT_LIGHT emulation while DomVTI boot up.
 or
 Lock VCPUs migrations while DomVTI boot up.
 (when Credit scheduler runs)
 
 2)In the long term,
 I will make a patch to avoid this problem.
 (Consider the heavy io w/ vcpu migration)
 
 N.B.
 I checked under CS:10559.(original patch made)
 
 Thanks,
 Atsushi SAKAI
 
 
 
 
 
 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,
 
  Alex
 
 --
 Alex Williamson HP Open Source  Linux Org.
 
 
 ___
 Xen-ia64-devel mailing list
 Xen-ia64-devel@lists.xensource.com
 http://lists.xensource.com/xen-ia64-devel
 
 
 
 

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


Re: [Xen-ia64-devel] [IPF-ia64] with Cset 10690, creating a VTImake xen0 hang

2006-07-11 Thread Isaku Yamahata
On Wed, Jul 12, 2006 at 11:12:00AM +0800, Xu, Anthony wrote:
 Hi Alex,
   When VTI-domain does IO operation, an event is sent to dom0, then
 Qemu is woken up to handle this request. Process switch on dom0 may call 
 itr_d,
 if task_struct of qemu is not covered by TR. But the emulation of itr_d is 
 very 
 slow, due to purge vhpt. This is the root cause of slowness of vti-domain boot
 on your side, and vti-domain can't boot on my side.
 
   I think purging vhpt in emulating itr_d also slow down dom0 and domU,
 So the question is, is purging vhpt in emulating itr_d necessary?

For correctness, yes. (SDM vol2 4.1.1.4 and table 4-1.)
For Linux working, no (at least linux 2.6.16.13). 
I don't know other OSes other than Linux.

Thanks.
-- 
yamahata

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


RE: [Xen-ia64-devel] [IPF-ia64] with Cset 10690, creating a VTImake xen0 hang

2006-07-11 Thread Xu, Anthony
From: Isaku Yamahata 
For correctness, yes. (SDM vol2 4.1.1.4 and table 4-1.)
For Linux working, no (at least linux 2.6.16.13).
I don't know other OSes other than Linux.
If PAGE_SIZE is 16M, thing may becomes simple.

Thanks.
--
yamahata

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