From: Keir Fraser Subject: Re: Question Also regarding interrupt balancing Date: Sun, 11 Jun 2006 10:09:02 +0100 Message-ID: <9bae6f237b7ec1b9cd78ca745bee1e41@cl.cam.ac.uk> References: <3289dc4a0f8d31e751f7fb5edbb0066a@cl.cam.ac.uk> <260b1f3e22421d58dd152a6969f106fc@cl.cam.ac.uk> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: harish Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 10 Jun 2006, at 17:58, harish wrote: > echo "2" > /proc/irq/23/smp_affinity=A0 does not seem to change the=20= > 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=20 trees. When that reaches the public trees you should find that writing=20= to smp_affinity has the usual effect, but note: 1. As when running on native, a request to change affinity is not=20 processed until the next interrupt occurs for that irq. If the=20 interrupt rate on that irq is very low, you may be able to observe old=20= value in smp_affinity before it is changed. 2. You cannot change affinity of CPU-local interrupts (timer, resched,=20= callfunc). Requests to do so are silently ignored. 3. If you try to set a multi-cpu cpumask for affinity, it will be=20 changed to a single-cpu cpumask automatically. Linux-on-Xen does not=20 automatically balance irq load across cpus -- that has to be done by a=20= user-space daemon (e.g., irqbalance). -- Keir