From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756232AbYDVMvw (ORCPT ); Tue, 22 Apr 2008 08:51:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752649AbYDVMvn (ORCPT ); Tue, 22 Apr 2008 08:51:43 -0400 Received: from sandeen.net ([209.173.210.139]:29523 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752329AbYDVMvm (ORCPT ); Tue, 22 Apr 2008 08:51:42 -0400 Message-ID: <480DDF5C.6090808@sandeen.net> Date: Tue, 22 Apr 2008 07:51:40 -0500 From: Eric Sandeen User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Denys Vlasenko CC: David Chinner , Adrian Bunk , Alan Cox , Shawn Bohrer , Ingo Molnar , Andrew Morton , Linux Kernel Mailing List , Arjan van de Ven , Thomas Gleixner Subject: Re: [PATCH] xfs: do not pass unused params to xfs_flush_pages References: <20080419142329.GA5339@elte.hu> <200804220503.16888.vda.linux@googlemail.com> <480D586C.1030305@sandeen.net> <200804221057.33324.vda.linux@googlemail.com> In-Reply-To: <200804221057.33324.vda.linux@googlemail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Denys Vlasenko wrote: > On Tuesday 22 April 2008 05:15, Eric Sandeen wrote: >>> Compile-tested only. >> FWIW this one actually does not seem to reduce stack usage anywhere. > > I hope this will not deteriorate into a contest whether > every particular patch reduces stack usage or not, but: Sorry if you took it that way; since the patch was in response to Dave's mention of accepting stack-reducing patches, I thought it was worth checking and highlighting whether it seemed to help. It wasn't supposed to be an attack or argument. > You do not see reduced stack usage in "make checkstack", > because "make checkstack" shows only stack usage caused by > local variables (it analyses sub %esp,NN instructions which > make room for them). Parameters also take up stack, but > they are pushed on stack with push instruction, > and so are invisible in "make checkstack" output. Hm, I had assumed that the %esp subtraction also made room for the arguments pushed onto the stack. Is there no way to analyze that part? Thanks, -Eric