From: Keir Fraser Subject: Re: Question Also regarding interrupt balancing Date: Mon, 22 May 2006 17:52:05 +0100 Message-ID: <3289dc4a0f8d31e751f7fb5edbb0066a@cl.cam.ac.uk> References: 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 22 May 2006, at 17:43, harish wrote: > Hi, > Was doing some netperf tests and noticed that all the interrupts (for=20= > network) were being serviced by pcp0 although dom0 was configured to=20= > use all the pcpus [4vcpus]. > Questions: > 1) Is there a way dom0 can be configured to process the interrupts=20 > using 4pcpus instead of just one? Running irqbalance daemon in dom0 should do the trick. If there's no=20 other load in domain0 though, irqbalance may decide not to change irq=20 affinity. There's no way to do fine-grained interrupt balancing (e.g.,=20= round-robin interrupts). > 2) What is the recommended scheduling policy for a network I/O=20 > intensive workload? If delivering to a domU, you want dom0 and domU running on different=20 CPUs or CPU will be the bottleneck. -- Keir > Sample output: > > cat /proc/xen/interrupts > > =A0cat /proc/interrupts > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CPU0=A0=A0=A0=A0=A0=A0 CPU1=A0=A0=A0=A0=A0= =A0 CPU2=A0=A0=A0=A0=A0=A0 CPU3 > =A0 1:=A0=A0=A0=A0=A0=A0=A0=A0=A0 8=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0= =A0=A0 Phys-irq=A0=20 > i8042 > =A0 8:=A0=A0=A0=A0=A0=A0=A0=A0=A0 1=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0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q=A0=20 > timer0 > 257:=A0=A0=A0=A0=A0 52873=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20 > resched0 > 258:=A0=A0=A0=A0=A0=A0=A0 282=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20= > callfunc0 > 259:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0 7935=A0=A0=A0=A0=A0= =A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20= > resched1 > 260:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0 33665=A0=A0=A0=A0=A0=A0= =A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20 > callfunc1 > 261:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 508258=A0=A0=A0=A0=A0=A0=A0= =A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20 > timer1 > 262:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0= =A0=A0=A0 3827=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20= > resched2 > 263:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0= =A0=A0 33835=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20 > callfunc2 > 264:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0= =A0 390316=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20 > timer2 > 265:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0 43953=A0=A0=A0=A0 = Dynamic-irq=A0=20 > resched3 > 266:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0 33870=A0=A0=A0=A0 = Dynamic-irq=A0=20 > callfunc3 > 267:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 311447=A0=A0=A0=A0 = Dynamic-irq=A0=20 > timer3 > 268:=A0=A0=A0=A0=A0=A0 5091=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20= > xenbus > 269:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 = Dynamic-irq=A0=20 > console > 270:=A0=A0=A0=A0=A0 31532=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20 > blkif-backend > 271:=A0=A0=A0 1107498=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0 Dynamic-irq=A0=20 > vif7.0 > NMI:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0 > LOC:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0 > ERR:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0 > MIS:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0 > > Ran multiple while loops to confirm that dom0 can use all the 4pcpus=20= > if required. And so believe it must be something to do with the way=20 > the interrupts are being handled. > > Thanks in advance, > hmv > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel