From: MaoXiaoyun Subject: RE: Re: VM hung after running sometime Date: Fri, 24 Sep 2010 12:29:48 +0800 Message-ID: References: , <4C98EB42.4020808@goop.org>, , <4C994B08.7050509@goop.org> , <4C9A4B7A.3010308@goop.org> , <4C9BE0A9.40709@goop.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1582151799==" Return-path: In-Reply-To: <4C9BE0A9.40709@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: jeremy@goop.org Cc: xen devel , keir.fraser@eu.citrix.com List-Id: xen-devel@lists.xenproject.org --===============1582151799== Content-Type: multipart/alternative; boundary="_12466f5b-9d2d-49e3-a1fb-ece5270e85fc_" --_12466f5b-9d2d-49e3-a1fb-ece5270e85fc_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Thank you very much, Jeremy. I will have a try. =20 > Date: Thu, 23 Sep 2010 16:20:09 -0700 > From: jeremy@goop.org > To: tinnycloud@hotmail.com > CC: xen-devel@lists.xensource.com; keir.fraser@eu.citrix.com > Subject: Re: [Xen-devel] Re: VM hung after running sometime >=20 > On 09/22/2010 05:55 PM, MaoXiaoyun wrote: > > The interrputs file is attached. The server has 24 HVM domains > > runnning about 40 hours. > > > > Well, we may upgrade to the new kernel in the further, but currently > > we prefer the fix has least impact on our present server. > > So it is really nice of you if you could offer the sets of patches, > > also, it would be our fisrt choice. >=20 > Try cherry-picking: > 8401e9b96f80f9c0128e7c8fc5a01abfabbfa021 xen: use percpu interrupts for > IPIs and VIRQs > 66fd3052fec7e7c21a9d88ba1a03bc062f5fb53d xen: handle events as > edge-triggered > 29a2e2a7bd19233c62461b104c69233f15ce99ec xen/apic: use handle_edge_irq > for pirq events > f61692642a2a2b83a52dd7e64619ba3bb29998af xen/pirq: do EOI properly for > pirq events > 0672fb44a111dfb6386022071725c5b15c9de584 xen/events: change to using fa= steoi > 2789ef00cbe2cdb38deb30ee4085b88befadb1b0 xen: make pirq interrupts use > fasteoi > d0936845a856816af2af48ddf019366be68e96ba xen/evtchn: rename > enable/disable_dynirq -> unmask/mask_irq > c6a16a778f86699b339585ba5b9197035d77c40f xen/evtchn: rename > retrigger_dynirq -> irq > f4526f9a78ffb3d3fc9f81636c5b0357fc1beccd xen/evtchn: make pirq > enable/disable unmask/mask > 43d8a5030a502074f3c4aafed4d6095ebd76067c xen/evtchn: pirq_eoi does unma= sk > cb23e8d58ca35b6f9e10e1ea5682bd61f2442ebd xen/evtchn: correction, pirq > hypercall does not unmask > 2390c371ecd32d9f06e22871636185382bf70ab7 xen/events: use > PHYSDEVOP_pirq_eoi_gmfn to get pirq need-EOI info > 158d6550716687486000a828c601706b55322ad0 xen/pirq: use eoi as enable > d2ea486300ca6e207ba178a425fbd023b8621bb1 xen/pirq: use fasteoi for MSI = too > f0d4a0552f03b52027fb2c7958a1cbbe210cf418 xen/apic: fix pirq_eoi_gmfn re= sume >=20 > > Later I will kick off the irqbalance disabled test in different > > servers, will keep you noticed. >=20 > Thanks, > J >=20 > > > > Thanks for your kindly assitance. > > > > > Date: Wed, 22 Sep 2010 11:31:22 -0700 > > > From: jeremy@goop.org > > > To: tinnycloud@hotmail.com > > > CC: keir.fraser@eu.citrix.com; xen-devel@lists.xensource.com > > > Subject: Re: [Xen-devel] Re: VM hung after running sometime > > > > > > On 09/21/2010 06:19 PM, MaoXiaoyun wrote: > > > > Thanks for the details. > > > > > > > > Currently guest VM hang in our heavy IO stress test, (In detail, = we > > > > have created more than 12 HVMS on our 16cores physical server, > > > > and each of HVM inside, iometer and ab regard as heavy IO periodi= cally > > > > run). Guest hang shows up in 1 or 2 days. So the IO is very > > > > heavy, so as the interrupts, I think. > > > > > > What does /proc/interrupts look like? > > > > > > > > > > > According to the hang log, the domain blocked in _VPF_blocked_in_= xen, > > > > indicates "x=3D1" in log file below, and that is port 1, 2. And > > > > all our HVM a re have PVdriver installed, one thing I am not clea= r > > > > right now is the IO event in these two ports. Does it only includ= e > > > > "mouse, vga"event, or it also includes hard disk events? (If it h= as > > > > hard disk events included, the interrupt would be very heavy, rig= ht? > > > > and right now we have 4 physical CPU allocated to domain 0, is it > > > > appropriate ? ) > > > > > > I'm not sure of the details of how qemu<->hvm interaction works, bu= t it > > > was hangs in blkfront in PV domains which brought the lost event pr= oblem > > > to light. At the basic event channel level, they will both look the > > > same, and suffer from the same problems. > > > > > > > > > > > Anyway, I think I can have irqbalance disabled for a quick test. > > > > > > Thanks; that should confirm the diagnosis. > > > > > > > Meanwhile, I will spent some time on the patch merge. > > > > > > If you're not willing to go to t he current kernel, I can help you = with > > > the minimal set of patches to backport. > > > > > > J > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel >=20 =20 --_12466f5b-9d2d-49e3-a1fb-ece5270e85fc_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable Thank you very much,  Jeremy.
I will have a try.
 
> Date: Thu, 23 Sep 2010 16:20:09 -070= 0
> From: jeremy@goop.org
> To: tinnycloud@hotmail.com
>= ; CC: xen-devel@lists.xensource.com; keir.fraser@eu.citrix.com
> Su= bject: Re: [Xen-devel] Re: VM hung after running sometime
>
>= ; On 09/22/2010 05:55 PM, MaoXiaoyun wrote:
> > The interrputs f= ile is attached. The server has 24 HVM domains
> > runnning abou= t 40 hours.
> >
> > Well, we may upgrade to the new ker= nel in the further, but currently
> > we prefer the fix has leas= t impact on our present server.
> > So it is really nice of you = if you could offer the sets of patches,
> > also, it would be ou= r fisrt choice.
>
> Try cherry-picking:
> 8401e9b96f80= f9c0128e7c8fc5a01abfabbfa021 xen: use percpu interrupts for
> IPIs = and VIRQs
> 66fd3052fec7e7c21a9d88ba1a03bc062f5fb53d xen: handle ev= ents as
> edge-triggered
> 29 a2e2a7bd19233c62461b104c69233f15ce99ec xen/apic: use handle_edge_irq
= > for pirq events
> f61692642a2a2b83a52dd7e64619ba3bb29998af xen= /pirq: do EOI properly for
> pirq events
> 0672fb44a111dfb638= 6022071725c5b15c9de584 xen/events: change to using fasteoi
> 2789ef= 00cbe2cdb38deb30ee4085b88befadb1b0 xen: make pirq interrupts use
> = fasteoi
> d0936845a856816af2af48ddf019366be68e96ba xen/evtchn: rena= me
> enable/disable_dynirq -> unmask/mask_irq
> c6a16a778f= 86699b339585ba5b9197035d77c40f xen/evtchn: rename
> retrigger_dynir= q -> irq
> f4526f9a78ffb3d3fc9f81636c5b0357fc1beccd xen/evtchn: = make pirq
> enable/disable unmask/mask
> 43d8a5030a502074f3c4= aafed4d6095ebd76067c xen/evtchn: pirq_eoi does unmask
> cb23e8d58ca= 35b6f9e10e1ea5682bd61f2442ebd xen/evtchn: correction, pirq
> hyperc= all does not unmask
> 2390c371ecd32d9f06e22871636185382bf70ab7 xen/= events: use
> PHYSDEVOP_pirq_eoi_gmf n to get pirq need-EOI info
> 158d6550716687486000a828c601706b5532= 2ad0 xen/pirq: use eoi as enable
> d2ea486300ca6e207ba178a425fbd023= b8621bb1 xen/pirq: use fasteoi for MSI too
> f0d4a0552f03b52027fb2c= 7958a1cbbe210cf418 xen/apic: fix pirq_eoi_gmfn resume
>
> &g= t; Later I will kick off the irqbalance disabled test in different
>= ; > servers, will keep you noticed.
>
> Thanks,
> J=
>
> >
> > Thanks for your kindly assitance.
= > >
> > > Date: Wed, 22 Sep 2010 11:31:22 -0700
>= > > From: jeremy@goop.org
> > > To: tinnycloud@hotmail= .com
> > > CC: keir.fraser@eu.citrix.com; xen-devel@lists.xen= source.com
> > > Subject: Re: [Xen-devel] Re: VM hung after r= unning sometime
> > >
> > > On 09/21/2010 06:19 P= M, MaoXiaoyun wrote:
> > > > Thanks for the details.
&g= t; > > >
> > > > C urrently guest VM hang in our heavy IO stress test, (In detail, we
&g= t; > > > have created more than 12 HVMS on our 16cores physical = server,
> > > > and each of HVM inside, iometer and ab reg= ard as heavy IO periodically
> > > > run). Guest hang show= s up in 1 or 2 days. So the IO is very
> > > > heavy, so a= s the interrupts, I think.
> > >
> > > What does = /proc/interrupts look like?
> > >
> > > >
&= gt; > > > According to the hang log, the domain blocked in _VPF_= blocked_in_xen,
> > > > indicates "x=3D1" in log file belo= w, and that is port 1, 2. And
> > > > all our HVM a re hav= e PVdriver installed, one thing I am not clear
> > > > rig= ht now is the IO event in these two ports. Does it only include
> &= gt; > > "mouse, vga"event, or it also includes hard disk events? (I= f it has
> > > > hard disk ev ents included, the interrupt would be very heavy, right?
> > &g= t; > and right now we have 4 physical CPU allocated to domain 0, is it=
> > > > appropriate ? )
> > >
> > &g= t; I'm not sure of the details of how qemu<->hvm interaction works,= but it
> > > was hangs in blkfront in PV domains which broug= ht the lost event problem
> > > to light. At the basic event = channel level, they will both look the
> > > same, and suffer= from the same problems.
> > >
> > > >
>= > > > Anyway, I think I can have irqbalance disabled for a quic= k test.
> > >
> > > Thanks; that should confirm t= he diagnosis.
> > >
> > > > Meanwhile, I will = spent some time on the patch merge.
> > >
> > > I= f you're not willing to go to t he current kernel, I can help you with> > > the minimal set of patches to backport.
> > >
> > > J
> >
>= >
> > _______________________________________________
>= ; > Xen-devel mailing list
> > Xen-devel@lists.xensource.com<= BR>> > http://lists.xensource.com/xen-devel
>
= --_12466f5b-9d2d-49e3-a1fb-ece5270e85fc_-- --===============1582151799== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1582151799==--