From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [bloat] Measuring header file bloat effects on kernel build performance: a more than 2x slowdown ... Date: Mon, 23 May 2011 12:55:22 +0200 Message-ID: <20110523105522.GC24674@elte.hu> References: <20110520161210.81bbef3a.sfr@canb.auug.org.au> <20110523090918.GA5474@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Alexey Dobriyan Cc: Linus Torvalds , Stephen Rothwell , Thomas Gleixner , "H. Peter Anvin" , David Miller , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Peter Zijlstra , Andrew Morton List-Id: linux-next.vger.kernel.org * Alexey Dobriyan wrote: > On Mon, May 23, 2011 at 12:09 PM, Ingo Molnar wrote: > > =A0 =A0 =A024594a2bfcaa: [PATCH] x86-64 merge > > > > =A0 =A0 - Remove some unneeded prefetches. =A0Just two are enough t= o kickstart > > =A0 =A0 =A0 the hardware prefetcher. > > > > =A0 But despite touching prefetches explicitly, this too sloppily l= eft the (now > > =A0 dangling) prefetch.h include file around. >=20 > Well, developer removes include, developer risks compile breakage. If developer removes the final prefetch() from an unrelated header he m= ight as=20 well think of removing the prefetch.h header. If there's compile breaka= ge we=20 want to fix the breakage. But yes, this is easily forgotten and the basic psychology is for heade= r file=20 dependencies to grow, almost never to shrink. To counteract that in a really good way we need tooling help - we are f= ighting=20 entropy here ... > > Anway, what i tried to demonstrate with this mail how much *real* s= lowdown=20 > > in the kernel build our current header file bloat is causing. We co= uld=20 > > literally halve our kernel build times if we fixed this! >=20 > News at 11! I have not seen *actual hard numbers* measured before, so how exactly i= s this=20 news at 11? So i think your condescending reply is neither fair nor jus= tified. Yes, we all knew that there's build time costs of header bloat - but it= was=20 never AFAIK measured and posted to lkml in such a clear way. Thanks, Ingo