Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1015311imm; Wed, 8 Aug 2018 09:19:12 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyqFMwsPGN/Y8iHnz+fOtPy+/OtCboLPEorUSykwjz8SNVIdwiARfoCsZ9ix7Yhn4reQbvn X-Received: by 2002:a17:902:8bc4:: with SMTP id r4-v6mr3150034plo.257.1533745152300; Wed, 08 Aug 2018 09:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533745152; cv=none; d=google.com; s=arc-20160816; b=fMHcfVnc5SavECd5Vf2c25zVBBWA3xpfdycWwqzPWDdTMPWPAwkyp6QTemvCE0RZ0x gBijJQBYe9VDLWUTT6AXKQy1VXuMQQU7v+zkEJf+fehiYhg7Be4lVIwB2Yv6jT68bUnm BMIceyA943TiAGzRl8d/rdDxkjMGV4n9gAaEKVuXHjAdD6KKwPTujWSygu86sKoKQsbO Q578xV9jQHd1h+rxNH+4gweJq+BenbikeCGJmcFxSmNkXvfNVoYGyvwVEsXFQHhytuVU jT7SyQlLpibQKf8yxX0Zo1/PvPbFG2fxpLPeWihiEm4SMzoRO/rX1UN/e6KH6If/O91w uj3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=lAFCutpetVUfgeoz751fHcNb3JpdMgXItpF0xiD3h2w=; b=wOq0EPThtMzUb0z5KKOvf6QR3RZgyqmSYxu67VHOC0Rq38Zopmn1uh3J5iRVGVx7ku zChYDW/4ECt/qeaYmhjkTfcHJv3fQPJCKF2GinOQbTULEQMObCszvJGE34Z60kKdLY70 SArBv8SYpX2ql3og0PeVg1EZZrrMtxQkdmmY+D0jg5ZR50Nd2qz8/TxVMuLrBHN39HdV cry4XyRT9EWE7+4zr7jdb1+n+vCvoS7Pk3PdJfJ7NRKzUDUhcCzNLf+ACSeNNKpbtHFu zQ7eldHM4lPeP+I8Gg8ADY4XHNJdCG7qRiTFAKR27B+eXYqT0vDnkrsT0PBg3hS5VeDH ZQbQ== 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 v65-v6si4891612pfk.261.2018.08.08.09.18.57; Wed, 08 Aug 2018 09:19:12 -0700 (PDT) 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 S1728258AbeHHSif (ORCPT + 99 others); Wed, 8 Aug 2018 14:38:35 -0400 Received: from mslow2.mail.gandi.net ([217.70.178.242]:58144 "EHLO slow1-d.mail.gandi.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727062AbeHHSif (ORCPT ); Wed, 8 Aug 2018 14:38:35 -0400 Received: from relay7-d.mail.gandi.net (unknown [217.70.183.200]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id 199753A01E6; Wed, 8 Aug 2018 18:13:53 +0200 (CEST) X-Originating-IP: 50.39.174.102 Received: from localhost (50-39-174-102.bvtn.or.frontiernet.net [50.39.174.102]) (Authenticated sender: josh@joshtriplett.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id DF6E52000A; Wed, 8 Aug 2018 16:13:32 +0000 (UTC) Date: Wed, 8 Aug 2018 09:13:30 -0700 From: Josh Triplett To: Kirill Tkhai Cc: Michal Hocko , akpm@linux-foundation.org, gregkh@linuxfoundation.org, rafael@kernel.org, viro@zeniv.linux.org.uk, darrick.wong@oracle.com, paulmck@linux.vnet.ibm.com, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, hughd@google.com, shuah@kernel.org, robh@kernel.org, ulf.hansson@linaro.org, aspriel@gmail.com, vivek.gautam@codeaurora.org, robin.murphy@arm.com, joe@perches.com, heikki.krogerus@linux.intel.com, sfr@canb.auug.org.au, vdavydov.dev@gmail.com, chris@chris-wilson.co.uk, penguin-kernel@I-love.SAKURA.ne.jp, aryabinin@virtuozzo.com, willy@infradead.org, ying.huang@intel.com, shakeelb@google.com, jbacik@fb.com, mingo@kernel.org, mhiramat@kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH RFC 01/10] rcu: Make CONFIG_SRCU unconditionally enabled Message-ID: <20180808161330.GA22863@localhost> References: <153365347929.19074.12509495712735843805.stgit@localhost.localdomain> <153365625652.19074.8434946780002619802.stgit@localhost.localdomain> <20180808072040.GC27972@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 08, 2018 at 01:17:44PM +0300, Kirill Tkhai wrote: > On 08.08.2018 10:20, Michal Hocko wrote: > > On Tue 07-08-18 18:37:36, Kirill Tkhai wrote: > >> This patch kills all CONFIG_SRCU defines and > >> the code under !CONFIG_SRCU. > > > > The last time somebody tried to do this there was a pushback due to > > kernel tinyfication. So this should really give some numbers about the > > code size increase. Also why can't we make this depend on MMU. Is > > anybody else than the reclaim asking for unconditional SRCU usage? > > I don't know one. The size numbers (sparc64) are: > > $ size image.srcu.disabled > text data bss dec hex filename > 5117546 8030506 1968104 15116156 e6a77c image.srcu.disabled > $ size image.srcu.enabled > text data bss dec hex filename > 5126175 8064346 1968104 15158625 e74d61 image.srcu.enabled > The difference is: 15158625-15116156 = 42469 ~41Kb 41k is a *substantial* size increase. However, can you compare tinyconfig with and without this patch? That may have a smaller change.