Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4636510imu; Mon, 12 Nov 2018 14:30:44 -0800 (PST) X-Google-Smtp-Source: AJdET5c+VLFD/zQW99zohTOEg04fGcBOROIZZBBJ/nh9+H7HQeTsIFSyYylcDKjsbK/52sGygANx X-Received: by 2002:a17:902:7248:: with SMTP id c8-v6mr2641498pll.22.1542061844753; Mon, 12 Nov 2018 14:30:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542061844; cv=none; d=google.com; s=arc-20160816; b=gV+ZThBzGVvC0kKTCUF10sewCVTSpwPGofi0jRxSt1iAzenWD8m6Ukd4aQtxeLjtM2 A+CWmXZD8Tq5fbXodwhGZRGL26YIg7kp96J+SPIGZ9WNxeoHx2jkxNUMKnxItlCAhLdD sfLBwqNupmsiuKgQUj0D06XGC/XodpXlnDVS2NE+KDPBGN7kgyvomHwOmFYtlK0RXCdf G6ICq4EVvbjGPCjOuUj8haQ1pO8tOvyxlWJEuBW7j/4N25dfn6RQyvOKvwtiiuCT7wSI V8FvxSuxgtKmOA2MCPnYnAVKP1Nb7UrKgnf9WebasAJL+OtJRWplvKdCh3o56xVhCEdp RFvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=CjRGL5+ducLZfCsBjhUis07QclufCwlmUk7k7nu89YA=; b=fsHxu7AXD1iBn/rXJSI5nWfupuWnj9C+7r/obM58xr1LdI7DKi4L6IYbt6EzAYiKsc K58qPk67qZoyrPsxrRA6C0uJEhnF8W24TySQJ9+DzYVR9qY5BqASUfL+IUhy7uqn8Q3F 7SfqSd3Rb4KRldGyUBqb2b/JG+ixGAHLzcKGaExCAcis8yAfzX5YoGQnvvh8dAOgIyPN wSS/zbjdtqiqmO2RkNDZV+kWNDTZnJRyr574//qrV2IBddEb67ZLoTp98l1annWShbb+ oACgfmuvdFXl0N6zX7MvAKPoSypOpzOxhx1aWsqeUh7BnK9srwnLROIAv/wkYFO5IExq lSZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1-v6si16870222pfa.120.2018.11.12.14.30.28; Mon, 12 Nov 2018 14:30:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730643AbeKMIZR (ORCPT + 99 others); Tue, 13 Nov 2018 03:25:17 -0500 Received: from smtprelay0164.hostedemail.com ([216.40.44.164]:43755 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728030AbeKMIZR (ORCPT ); Tue, 13 Nov 2018 03:25:17 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 0579D100E86D4; Mon, 12 Nov 2018 22:30:06 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3653:3865:3866:3867:3868:3870:3871:3872:3874:4250:4321:4559:5007:6119:7903:8603:10004:10400:10848:11232:11658:11914:12049:12555:12740:12760:12895:12986:13069:13311:13357:13439:14659:21080:21324:21433:21451:21611:21627:30012:30025:30054:30090:30091,0,RBL:172.58.27.5:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: beast30_74ed5e0c58a5f X-Filterd-Recvd-Size: 2375 Received: from XPS-9350 (unknown [172.58.27.5]) (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA; Mon, 12 Nov 2018 22:30:03 +0000 (UTC) Message-ID: Subject: Re: [PATCH] xfs: Remove noinline from #define STATIC From: Joe Perches To: Dave Chinner , Eric Sandeen Cc: "Darrick J. Wong" , Christoph Hellwig , linux-xfs@vger.kernel.org, LKML Date: Mon, 12 Nov 2018 14:30:01 -0800 In-Reply-To: <20181112214515.GN19305@dastard> References: <7302f4a13c1cbf62b07f636878ce25fcca84b6c4.camel@perches.com> <6420cf91-89c8-a876-7a0d-25ab8ba428b8@sandeen.net> <20181112214515.GN19305@dastard> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-11-13 at 08:45 +1100, Dave Chinner wrote: > On Mon, Nov 12, 2018 at 02:12:08PM -0600, Eric Sandeen wrote: > > On 11/10/18 7:21 PM, Joe Perches wrote: > > > Reduce total object size quite a bit (~32KB) and presumably > > > improve performance at the same time. > > > > > > Total object size old vs new (x86-64 defconfig with xfs) > > > > > > text data bss dec hex filename > > > - 959351 165573 632 1125556 112cb4 (TOTALS) (old) > > > + 924683 165669 632 1090984 10a5a8 (TOTALS) (new) > > > > And what does it do to maximum stack excursions? > > Better yet: what does it do to corruption stack traces and debugging > tools like profiling traces? > > i.e. this noinline directive isn't about stack usage, this is about > being able to debug production code. Basically the compiler inliner > is so agressive on static functions that it makes it impossible to > decipher the stack traces. It flattens them way too much to > be able to tell how we got to a specific location in the code. > > In reality, being able to find problems quickly and efficiently is > far more important to us than being able to run everything at > ludicrous speed.... Is that really a compelling argument given thw ~50:50 split of static/STATIC uses in xfs? $ git grep -w STATIC fs/xfs/ | wc -l 1064 $ git grep -w static fs/xfs/ | wc -l 942