Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4516473pxv; Tue, 20 Jul 2021 05:43:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG2Q8pPSunEvHhdx5vVlaM1fNPk71sRhq0DvCxNCM47VB/GEUJtMkqO0bDG+rSP7MbCZSM X-Received: by 2002:a02:c8d0:: with SMTP id q16mr26460128jao.110.1626785021668; Tue, 20 Jul 2021 05:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626785021; cv=none; d=google.com; s=arc-20160816; b=zU6jp0NA99BXPIyZuwbZ3/ga6NiCkQWJkQv81rQZioMuBCKG21Rpk3y+PrTpBpXBpB el4oq8kDuPbDY1pTSEnpFmTlWfdrxkN7pjEyGHRfhiPJTUzpWn9ImFZ3dL4tIjGoQJOV 94V6ZnpjdrdZUUprHRxW27s2tvlMSVjgQXNSTtxPqMKzV+jSUXq2/3PwESfRfYU6/DQv O8FWd9FYtL1ASgo49n9D3AZl0lhpT3GFtnQIzHpFU9gweJ0oHu6Myb5IRnMiRjhVJOnC rzKiKvWN0bEnpIKC9/bG2hCk2i73drWUp8cI/qZkIKv4SxHesTFAGybdB/3pVBfwrDgH I+2A== 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=mPQYZ33BlIlkd+dlj726EPZl7tWfypJs/9dI+fk9jOI=; b=W+ibXqIxeKhzHNdpYdeP1Fbm/FaJ6z/MEavW4istG+fX2vZyiNKaHLIULl8KbXMw9o 5rDbSp1Nn6yu2Zogwudhpg6kd6d+RMZb1IXHN8SCu9EpWu7hE64hKQToD0VVo+JcbUsM Ih3yOpmGS0ZDZInqV7LRosEeUBUZdM0XsaJjaHLRqGqEg1GTqwRNDrzOWQ7X5RxJPW/G lxMPly9WxIeuZsFYEGaY8RDXGtN4ytak9mmqRQk1Hz7scwouXI1uXI6ki9ZXHV/kYN7r tUAxVLftVHMREprcFaTNCElz1nNhHrJq8gJRgNbdAp9zt5qGZnoVZ7+QkCZQWtwhGGgn rqMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=LlZjdT2l; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si23678014ilg.121.2021.07.20.05.43.30; Tue, 20 Jul 2021 05:43:41 -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=@infradead.org header.s=casper.20170209 header.b=LlZjdT2l; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231185AbhGTMBX (ORCPT + 99 others); Tue, 20 Jul 2021 08:01:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbhGTMBN (ORCPT ); Tue, 20 Jul 2021 08:01:13 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95248C061574; Tue, 20 Jul 2021 05:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=mPQYZ33BlIlkd+dlj726EPZl7tWfypJs/9dI+fk9jOI=; b=LlZjdT2lJ7hqhYOLaFTHZ2MrNS yMAxfTels85yLjDevtVIPWJKxmWb0TnPovMeXl3bNFDJyNWgdud/36VM5HX+hr56ZUpIRljS0aRbK CrknnuUKOrkUlgxJtW493IFjzhrFKB6keI2eARUJED7Q40VWDG3kYlF/ULL3KXMlkJDWgFbTBv5w/ zCNG4P1yyYS84/01BJ6h+bNiNthp01O0un6x2IVJSWvKZoHC/ldhiWqlXwGwNjkxpIecyJlI2tXcM 68dgVdzH/DcivgBiFnfU1+sX6WbYMr2H5ej78YxBoDSMuO91zB4Idth48sMWQ+1rg+pgVVOvHgdgj Z7xO1+kQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5p3j-0086gc-Lf; Tue, 20 Jul 2021 12:41:23 +0000 Date: Tue, 20 Jul 2021 13:41:15 +0100 From: Matthew Wilcox To: Mike Rapoport 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: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 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.