From: MaoXiaoyun Subject: RE: Re: VM hung after running sometime Date: Wed, 29 Sep 2010 14:01:22 +0800 Message-ID: References: , , <4C98EB42.4020808@goop.org>, , , <4C994B08.7050509@goop.org> , , <4C9A4B7A.3010308@goop.org>, , <4C9BE0A9.40709@goop.org>, , <4CA220D0.7070309@goop.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1094655503==" Return-path: In-Reply-To: <4CA220D0.7070309@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 --===============1094655503== Content-Type: multipart/alternative; boundary="_1220a8a5-643a-45a9-8798-0cf100d2be5e_" --_1220a8a5-643a-45a9-8798-0cf100d2be5e_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Well=A3=AC I just go throught the source of irqbalance, it shows that it = balances the irq through=20 updating /proc/irq/$irq/smp_affinity. That, in my understanding, set irq= affinity is almost=20 equal to irq migration. =20 I later find the NIC interrupt is not modified in dom0, so it is safe to= set its affinity,=20 but interrupt of xen event use handle_level_irq, set its affinity will s= ubject to irq lost. =20 Am I right?=20 =20 > Date: Tue, 28 Sep 2010 10:07:28 -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/28/2010 04:23 AM, MaoXiaoyun wrote: > > > > Is it safe to set irq affinity(including NIC, domain event, etc) manu= ally? > > Will it cause irq lost? >=20 > There's only a very small chance of a lost interrupt, especially if the > device is mostly idle at the time. The event can only be lost if: >=20 > 1. it is handling a device interrupt > 2. you migrate it to another cpu > 3. another interrupt comes in before the first one has finished > processing >=20 > J >=20 =20 --_1220a8a5-643a-45a9-8798-0cf100d2be5e_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable Well=A3=AC I just go throught the source of irqbalance, it shows tha= t it balances the irq through
updating /proc/irq/$irq/smp_affinity.  That, in my understanding, se= t irq affinity is almost
equal to irq migration.
 
I later find the NIC  interrupt is not modified in do= m0, so it is safe to set its  affinity, 
but  interrupt of xen event use handle_level_irq, set= its affinity will subject to irq
lost.
 
Am I right?
 
> Date: Tue, 28 Sep 2010 10:07:28 -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
>
> On 09/28/2010 04:23 = AM, MaoXiaoyun wrote:
> >
> > Is it safe to set irq aff= inity(including NIC, domain event, etc) manually?
> > Will it ca= use irq lost?
>
> There's only a very small chance of a lost= interrupt, especially if the
> device is mostly idle at the time. = The event can only be lost if:
>
> 1. it is handling a devic= e interrupt
> 2. you migrate it to another cpu
> 3. another i= nterrupt comes in before the first one has finished
> processing>
> J
>
--_1220a8a5-643a-45a9-8798-0cf100d2be5e_-- --===============1094655503== 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 --===============1094655503==--