From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932466AbXBWO6z (ORCPT ); Fri, 23 Feb 2007 09:58:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932458AbXBWO6z (ORCPT ); Fri, 23 Feb 2007 09:58:55 -0500 Received: from mail.astral.ro ([193.230.240.11]:48289 "EHLO mail.astral.ro" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932474AbXBWO6y (ORCPT ); Fri, 23 Feb 2007 09:58:54 -0500 Message-ID: <45DF012D.3080802@astral.ro> Date: Fri, 23 Feb 2007 16:58:53 +0200 From: Gergely Imre User-Agent: Thunderbird 1.5.0.9 (X11/20070212) MIME-Version: 1.0 To: Arjan van de Ven CC: linux-kernel@vger.kernel.org, hancockr@shaw.ca Subject: Re: irq balancing question References: <45DED0D6.1040700@astral.ro> <1172241917.3241.4.camel@laptopd505.fenrus.org> In-Reply-To: <1172241917.3241.4.camel@laptopd505.fenrus.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Arjan van de Ven wrote: > On Fri, 2007-02-23 at 13:32 +0200, Imre Gergely wrote: >> hi >> >> i have a SMP with 2x duo-core Opteron processors, and i have an ethernet card >> (eth0). i want to balance the interrupts generated by the card to all 4 >> processors. > > you have only one card? then balancing like you say will only really > hurt you; neither linux nor the chipset will do this. in fact i have two cards, and 4 CPUs, but i was interested in then answer Robert gave, that only _some_ machines distribute interrupts in hardware. software distribution is obviously not good. consider this scenario: you have one machine with 4 cpus, and two ethernet cards with a lot of traffic on them. if you bind every card to one cpu, two of them are not used, so you really use only half the power. not let's say you have so much traffic (with limiting enabled, htb or something), that the two CPUs are on 100% all the time, but the other two are doing nothing. now if you could balance that to all 4 cpus, you could use all the power AND no cpu would be used 100%. but i guess the machine has to do it in hardware, and that was the real question. irqbalance has no use here, i think, only if the hardware supports it. is there a way to find out (some easy way) for sure, if one particular hardware supports this interrupt distribution?