Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753891Ab2HDIwG (ORCPT ); Sat, 4 Aug 2012 04:52:06 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:54367 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753258Ab2HDIwC (ORCPT ); Sat, 4 Aug 2012 04:52:02 -0400 Date: Sat, 4 Aug 2012 09:51:42 +0100 From: Russell King - ARM Linux To: "Pandita, Vikram" Cc: Greg KH , Mike Turquette , Aaro Koskinen , Vimarsh Zutshi , kay@vrfy.org, linux-kernel@vger.kernel.org, Andi Kleen , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3] printk: add option to print cpu id Message-ID: <20120804085142.GP7405@n2100.arm.linux.org.uk> References: <1344013004-32211-1-git-send-email-vikram.pandita@ti.com> <20120803200822.GC731@harshnoise.musicnaut.iki.fi> <20120803215954.GA4489@kroah.com> <20120803221327.GA5102@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1254 Lines: 25 On Fri, Aug 03, 2012 at 03:25:17PM -0700, Pandita, Vikram wrote: > Other issue i found, using this patch, that on multi-core ARM systems, > almost 99% of times, IRQ's are handled by CPU0, > even if CPU0 was really busy and other CPU's were free. I am yet to > understand a good reason why. That is because you're probably not running irqbalanced on your platforms. Firstly, the hardware does no IRQ balancing itself - you have to manually route IRQs to CPUs in the hardware, and if you ask for an IRQ to be delivered to several CPUs, all CPUs will get it each time it fires (unlike x86 IOAPIC which picks a CPU to route the IRQ to.) The ARM kernel does no IRQ balancing itself across CPUs, because when I tried to implement it, every algorithm I tried gave completely sub-optimal results, and irqbalanced existed to do the job in userspace. So as there is a userspace solution which works, there was no point to doing this in the kernel. Please use the irqbalance daemon to spread IRQs across your CPUs. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/