From: harish Subject: Re: Question Also regarding interrupt balancing Date: Mon, 12 Jun 2006 12:05:24 -0700 Message-ID: References: <3289dc4a0f8d31e751f7fb5edbb0066a@cl.cam.ac.uk> <260b1f3e22421d58dd152a6969f106fc@cl.cam.ac.uk> <9bae6f237b7ec1b9cd78ca745bee1e41@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2015276930==" Return-path: In-Reply-To: <9bae6f237b7ec1b9cd78ca745bee1e41@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2015276930== Content-Type: multipart/alternative; boundary="----=_Part_993_26826514.1150139124177" ------=_Part_993_26826514.1150139124177 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Keir, Thanks a lot. I shall sync up to the latest unstable then. Shall keep you posted on how it goes. thanks harish On 6/11/06, Keir Fraser wrote: > > > On 10 Jun 2006, at 17:58, harish wrote: > > > echo "2" > /proc/irq/23/smp_affinity does not seem to change the > > value in smp_affinity > > cat /proc/irq/23/smp_affinity still shows 0f > > > > Could there some bug or configuration problem that you can think of? > > It was a bug, which I've just fixed in -unstable and -testing staging > trees. When that reaches the public trees you should find that writing > to smp_affinity has the usual effect, but note: > 1. As when running on native, a request to change affinity is not > processed until the next interrupt occurs for that irq. If the > interrupt rate on that irq is very low, you may be able to observe old > value in smp_affinity before it is changed. > 2. You cannot change affinity of CPU-local interrupts (timer, resched, > callfunc). Requests to do so are silently ignored. > 3. If you try to set a multi-cpu cpumask for affinity, it will be > changed to a single-cpu cpumask automatically. Linux-on-Xen does not > automatically balance irq load across cpus -- that has to be done by a > user-space daemon (e.g., irqbalance). > > -- Keir > > ------=_Part_993_26826514.1150139124177 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Keir,
Thanks a lot. I shall sync up to the latest unstable then. Shall keep you posted on how it goes.

thanks
harish

On 6/11/06, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:

On 10 Jun 2006, at 17:58, harish wrote:

>  echo "2" > /proc/irq/23/smp_affinity does not seem to change the
> value in smp_affinity
>  cat /proc/irq/23/smp_affinity still shows 0f
>
>  Could there some bug or configuration problem that you can think of?

It was a bug, which I've just fixed in -unstable and -testing staging
trees. When that reaches the public trees you should find that writing
to smp_affinity has the usual effect, but note:
  1. As when running on native, a request to change affinity is not
processed until the next interrupt occurs for that irq. If the
interrupt rate on that irq is very low, you may be able to observe old
value in smp_affinity before it is changed.
  2. You cannot change affinity of CPU-local interrupts (timer, resched,
callfunc). Requests to do so are silently ignored.
  3. If you try to set a multi-cpu cpumask for affinity, it will be
changed to a single-cpu cpumask automatically. Linux-on-Xen does not
automatically balance irq load across cpus -- that has to be done by a
user-space daemon (e.g., irqbalance).

  -- Keir


------=_Part_993_26826514.1150139124177-- --===============2015276930== 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 --===============2015276930==--