From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264827AbUEYJ7A (ORCPT ); Tue, 25 May 2004 05:59:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264846AbUEYJ7A (ORCPT ); Tue, 25 May 2004 05:59:00 -0400 Received: from fw.osdl.org ([65.172.181.6]:53699 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S264827AbUEYJ66 (ORCPT ); Tue, 25 May 2004 05:58:58 -0400 Date: Tue, 25 May 2004 02:58:26 -0700 From: Andrew Morton To: Ingo Molnar Cc: linux-kernel@vger.kernel.org Subject: Re: Help understanding slow down Message-Id: <20040525025826.6c31c71f.akpm@osdl.org> In-Reply-To: <20040525114258.GA6674@elte.hu> References: <20040524062754.GO1833@holomorphy.com> <20040524063959.5107.qmail@web90007.mail.scd.yahoo.com> <20040524005331.71465614.akpm@osdl.org> <20040525103238.GA4212@elte.hu> <20040525022941.62ab4cc4.akpm@osdl.org> <20040525114258.GA6674@elte.hu> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ingo Molnar wrote: > > > * Andrew Morton wrote: > > > Ingo Molnar wrote: > > > > > > with the patch below we will print a big fat warning. (I did not want to > > > deny idle=poll altogether - future HT implementations might work fine > > > with polling idle.) > > > > idle=poll is handy when profiling the kernel with oprofile > > clock-unhalted events. Because if you use the normal halt-based idle > > loop no profile "ticks" are accounted to idle time at all and the > > results are really hard to understand. > > it makes it a bit more plausible, but kernel profiling based on ticks in > a HT environment is still quite unreliable, even with idle=poll. The HT > cores will yield to each other on various occasions - like spinlock > loops. This disproportionatly increases the hits of various looping > functions, creating false impressions of lock contention where there's > only little contention. Plus idle=poll is a constant ~20% performance > drain on the non-idle HT core, further distorting the profile. HT makes > profiling really hard, no matter what. But often one is looking for relativities rather than real absolute numbers. (In which case the absent idle time doesn't matter, but it freaks me out...) > but ... we agree on the warning printk, right? yup.