From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79924C07E95 for ; Tue, 20 Jul 2021 15:35:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F18D56113B for ; Tue, 20 Jul 2021 15:35:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F18D56113B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A113B6B005D; Tue, 20 Jul 2021 11:35:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9C1C66B006C; Tue, 20 Jul 2021 11:35:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 889536B0070; Tue, 20 Jul 2021 11:35:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0028.hostedemail.com [216.40.44.28]) by kanga.kvack.org (Postfix) with ESMTP id 664FB6B005D for ; Tue, 20 Jul 2021 11:35:59 -0400 (EDT) Received: from smtpin37.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id D7AC41850EB57 for ; Tue, 20 Jul 2021 15:35:57 +0000 (UTC) X-FDA: 78383366754.37.7A2A97B Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf03.hostedemail.com (Postfix) with ESMTP id 85987300009B for ; Tue, 20 Jul 2021 15:35:57 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 24149601FD; Tue, 20 Jul 2021 15:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626795356; bh=6WWbHG/Fa5709pODcaChGeaGj3p2RG9Qp8c92oe20zI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JQKtkHgtu6oCFgE8fW9thT3eytInZV3idh1LlWRc/P0FRUiv8NTrsAeqyvPR0tk/z SDRabWk8G6xfWiZf36Rj0S2TFnEp3Ov1e+odU8Ld39pdfNN3ZmiSGlST3OvHnFtjx2 OY7l50V5VXFeqfqVhKMLPOoHsJU5yWsQdpboDBTH9exrO64daiyQtBpU/W8qJ7BMYb c0ZyP8452/1RH3t7P70w8nDGP41Z7tlQOjutKH2mfwi5bkOW8Rx3wAeDcL7y8RbRhz EcPGzNjnZF7cLbi7QT/jvxOBfsB0+0qYju73pgV88ubSipoKUbl/1JNMtAytQX8myD SWCbbC145IMAg== Date: Tue, 20 Jul 2021 18:35:50 +0300 From: Mike Rapoport To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v14 000/138] Memory folios Message-ID: References: <20210715033704.692967-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 85987300009B X-Stat-Signature: 1ybttw88zstdpwy59frrr796ybmbtnph Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=JQKtkHgt; spf=pass (imf03.hostedemail.com: domain of rppt@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-HE-Tag: 1626795357-827139 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Jul 20, 2021 at 04:23:29PM +0100, Matthew Wilcox wrote: > On Tue, Jul 20, 2021 at 06:17:26PM +0300, Mike Rapoport wrote: > > On Tue, Jul 20, 2021 at 01:41:15PM +0100, Matthew Wilcox wrote: > > > On Tue, Jul 20, 2021 at 01:54:38PM +0300, Mike Rapoport wrote: > > > > Most of the changelogs (at least at the first patches) mention reduction of > > > > the kernel size for your configuration on x86. I wonder, what happens if > > > > you build the kernel with "non-distro" configuration, e.g. defconfig or > > > > tiny.config? > > > > > > I did an allnoconfig build and that reduced in size by ~2KiB. > > > > > > > Also, what is the difference on !x86 builds? > > > > > > I don't generally do non-x86 builds ... feel free to compare for > > > yourself! > > > > I did allnoconfig and defconfig for arm64 and powerpc. > > > > All execpt arm64::defconfig show decrease by ~1KiB, while arm64::defconfig > > was actually increased by ~500 bytes. > > Which patch did you go up to for that? If you're going past patch 50 or > so, then you're starting to add functionality (ie support for arbitrary > order pages), so a certain amount of extra code size might be expected. > I measured 6KB at patch 32 or so, then between patch 32 & 50 was pretty > much a wash. I've used folio_14 tag: commit 480552d0322d855d146c0fa6fdf1e89ca8569037 (HEAD, tag: folio_14) Author: Matthew Wilcox (Oracle) Date: Wed Feb 5 11:27:01 2020 -0500 mm/readahead: Add multi-page folio readahead -- Sincerely yours, Mike.