Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753828AbaFQAVb (ORCPT ); Mon, 16 Jun 2014 20:21:31 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.228]:23407 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753737AbaFQAV3 (ORCPT ); Mon, 16 Jun 2014 20:21:29 -0400 Date: Mon, 16 Jun 2014 20:21:20 -0400 From: Steven Rostedt To: David Rientjes Cc: Andrew Morton , Michal Nazarewicz , Hagen Paul Pfeifer , linux-kernel@vger.kernel.org Subject: Re: [PATCH] include: kernel.h: rewrite min3, max3 and clamp using min and max Message-ID: <20140616202120.27364ed9@gandalf.local.home> In-Reply-To: References: <1402952842-12886-1-git-send-email-mina86@mina86.com> <20140616161804.bb06ed842f59371c031d1252@linux-foundation.org> <20140616163525.46933b64320e220a6d806bb4@linux-foundation.org> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Jun 2014 16:54:32 -0700 (PDT) David Rientjes wrote: > > > On linux-next, allyesconfig has a 0.0001% savings as a result of the > patch, but I'd be worried about the extra temp variable it allocates on > the stack that is evident in the mm/slab.c disassembly unless all cases > can be audited to show that we're not potentially deep. A 0.0001% change means it's not worth changing, and we may be able to mark this up as a fluke in Michal's results. I'll give it a try on my 4.6.3 compiler. -- Steve > > text data bss dec hex filename > 108573045 23488016 51580928 183641989 af22785 vmlinux.before > 108572908 23488016 51580928 183641852 af226fc vmlinux.after