From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTP id 38B00ADD for ; Fri, 9 May 2014 17:21:39 +0000 (UTC) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id B83CE20364 for ; Fri, 9 May 2014 17:21:38 +0000 (UTC) Date: Fri, 9 May 2014 10:21:33 -0700 From: josh@joshtriplett.org To: Christoph Lameter Message-ID: <20140509172133.GD8289@cloud> References: <1399595490.2230.13.camel@dabdike.int.hansenpartnership.com> <20140509122451.5228a038@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Sarah Sharp , ksummit-discuss@lists.linuxfoundation.org, Greg KH , James Bottomley , Julia Lawall , Darren Hart , Dan Carpenter Subject: Re: [Ksummit-discuss] [CORE TOPIC] Kernel tinification: shrinking the kernel and avoiding size regressions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, May 09, 2014 at 11:55:23AM -0500, Christoph Lameter wrote: > On Fri, 9 May 2014, Steven Rostedt wrote: > > Size may not be as important as having reuse of code. Perhaps if you > > can tweak several functions to call one helper function, which may > > actually increase the total size of the kernel, but having more helper > > functions that live in cache longer may be of benefit. > > More helper functions means more use of l1 cache lines which reduces > performance. If done poorly, but on the other hand, factoring a common code path out of many call sites into one helper function makes it more likely that helper function will remain cached. - Josh Triplett