Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4666512pxv; Tue, 20 Jul 2021 08:54:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOsIejYszGnQKvQedeSRiPGm4OjEyHgkYUB26qsoTwgC/7jPuZDu82c/d3kMLymllYaZm4 X-Received: by 2002:a92:cc85:: with SMTP id x5mr19545182ilo.266.1626796477051; Tue, 20 Jul 2021 08:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626796477; cv=none; d=google.com; s=arc-20160816; b=WChXGgCJpw2ozSsh5uFoN0G+9Cn16RsCuTtW9PcnsqZ9WHYfdX2W74cwCgZqAYzeLz rM1EuszfzT6qIDS6rMGJ+PEf4ldDQQDeWgu7ptlHgQkIhTmJeK+wY17zcEB3O27HY7Kx glCbj6R0ctM6M0wuER9IPqiWIcvq9DbIqCwGLg58wBQzGvAO0wTPMs6xfgllsxm71MPu WI9ocur9uPS99bqTl6cUNB3FIDmZDFW7hYhTU7BEUooAp1XU58ID5Wti8P/dQCJCNTQK BfC1zl16z2xRUt5zEqypIxB8ZJN3UGmgclrIEDHROGVUY5YXuJ3wyPsKneTyGh7RjoCk E1Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EiSI1ymN9r2px3dCoS9yHgxl1K27coPABEzZdDz1Gv0=; b=vVtMw5l1EH03KkAwdu8WntQCAxIlF0fqmnTciLWpxaId1V0jW4c0lBENz5ftoSmRlB 9klsvg9mzdcJElnTWWKJzGOOHlwV5Xw3CY/H/bY/dXui7r6iAQKNA/U40vVJBC46D5xT cnIiaQTQ846yP6G8OMBOOrXc5+Ky9I3nBdej2SV3J98uaBfQOh5XY0zWUzae9F0/E1Do WiHwGkvtjUVQtirPWc6V3DFdRlQyIYAP+nmZuFQJaiF5zkugsM6vwTzIcsmDGsO+lq/p pEzx5cuY4mrrHPfZxWCG12B8Wy1Vlt1aa0+BeLOvM1aFJjRw/RxjAqegdMd1h0nmItvu dezQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ej0xHGEH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si15032068jak.77.2021.07.20.08.54.22; Tue, 20 Jul 2021 08:54:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ej0xHGEH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237908AbhGTPFo (ORCPT + 99 others); Tue, 20 Jul 2021 11:05:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:37568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240510AbhGTOhQ (ORCPT ); Tue, 20 Jul 2021 10:37:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 160BC60BBB; Tue, 20 Jul 2021 15:17:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626794252; bh=LtjPryF5wQ+xbt8V4dRvkcVmj+HVQ3+YnBKjwD6ZnZc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ej0xHGEHA2478zU7X6ZJ6wQtMml81/PK3gzs2kynQQbFxwA4cRIYlr5JoLwHFq61N kL6nNiKsbUvN2RkvRPPiKppvpu9YNJsW28LzfwgduA87qbRnWHPMUG40PvSdvnxO2o 4PRE51ENn5DrcS5asbNlvG5H3wW6q8d9ucu2wBe0zJmqorMpd37QkaJOt5G35rrog2 qIzpu47nfzNUQhXBiYpvrX+jLwXyl6sRMBUdt1KlLO8D6o5oMwCG3ehnvEkAeISnQm vrhBkCvECcc3RbfsMAwuDCCzLj7sCOEhrZlZ/Tk/Rtt6tMmJKgO8uFExcuq7Cw+ERI jctuzM8Vw77+Q== Date: Tue, 20 Jul 2021 18:17:26 +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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. I didn't dig into objdumps yet. I also tried to build arm but it failed with: CC fs/remap_range.o fs/remap_range.c: In function 'vfs_dedupe_file_range_compare': fs/remap_range.c:250:3: error: implicit declaration of function 'flush_dcache_folio'; did you mean 'flush_cache_louis'? [-Werror=implicit-function-declaration] 250 | flush_dcache_folio(src_folio); | ^~~~~~~~~~~~~~~~~~ | flush_cache_louis cc1: some warnings being treated as errors > I imagine it'll be 2-4 instructions per call to > compound_head(). ie something like: > > load page into reg S > load reg S + 8 into reg T > test bottom bit of reg T > cond-move reg T - 1 to reg S > becomes > load folio into reg S > > the exact spelling of those instructions will vary from architecture to > architecture; some will take more instructions than others. Possibly it > means we end up using one fewer register and so reducing the number of > registers spilled to the stack. Probably not, though. -- Sincerely yours, Mike.