From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754789AbZELOZV (ORCPT ); Tue, 12 May 2009 10:25:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752530AbZELOZG (ORCPT ); Tue, 12 May 2009 10:25:06 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:62318 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752521AbZELOZF (ORCPT ); Tue, 12 May 2009 10:25:05 -0400 Date: Tue, 12 May 2009 10:25:05 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Ingo Molnar cc: linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH 0/5] [GIT PULL] ring-buffer: optimize to 17% performance increase In-Reply-To: Message-ID: References: <20090512040832.681953177@goodmis.org> <20090512083301.GA20435@elte.hu> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 May 2009, Steven Rostedt wrote: > > > > It's also interesting to see that text size went down when speed > > went up. I'm wondering how these compiler options: > > But that was not always the case. The biggest boost in performance of the > series (the last patch) also increased the size. > > > > > CONFIG_CC_OPTIMIZE_FOR_SIZE=y > > CONFIG_OPTIMIZE_INLINING=y > > Note, my test runs had both the above configure options disabled. > I'll run it again and see how they affect the results: Here's the results: size=n inline=n 270 size=n inline=y 290 size=y inline=n 315 size=y inline=y 372 (ouch!) Thus it seems to keep both optimizations off is best for performance. -- Steve