Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp153472pxb; Fri, 17 Sep 2021 22:06:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzbYT9hHNR2wNVaR6uIhOz1LVcFGWwX4S0JmwwBMXmgpNPxinoJXmaYcvSEmtyhCp+HwOq X-Received: by 2002:a5d:9708:: with SMTP id h8mr11097246iol.170.1631941605700; Fri, 17 Sep 2021 22:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631941605; cv=none; d=google.com; s=arc-20160816; b=h4lg5V6kQyyuvxItnCrFHQMpZiW2U7w12+3ZilZjpF2c0OtZCRTtlAaTaclaSFAXgQ QjCxIZ0n1+1JrYe7sZSSWBSt9Mv3T6wr3WKsvoBuwgJD1G2kcrxsm/HMTwNQkOShWS9K +B2xOMgivDFCfVu915HlNjOO17Fa47GC0rhxcuLELrtUkfslo83dpnWL5L7s42EcYu+1 7tlIOt4FKf2KJyzIedVVKRLoqniat7AI3RZnrTaMInNLQYpD5H5UxbdbTTy50mu2ipsB gQeVNMPGbrJdF6VPyf2CTHjoVNe8Bc7euq3m9WHQ3+WnR2A5VYcu1+vDu8MOYxjnauy4 w3jA== 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=znAe7ewx7rCSOAdsfm/NBUX+TUdTojIOSWYXmGT9kJY=; b=N0Kvl3GsMpYtSqwR2XsiwlBFclA0a73cNmgvatrwl3PwohYr72DLp+j/xWRaSvdvzy kZL2x17VRqAKHzQCFt2MUhgbxLmqkAogCZXjg3TdtO72E9exFi2TyIDTOmON6qkpriqq Vw0I1TuL4YnLP0EvMwggbHHDFCJ3gW/R+73+zZwpBqyzQeogzWy5Ldl1qIOPUCd6HC4x owqkohsV0eAl2uO6WCNGvNgZoDa1f/fwrLhgOC3dbHit7XZCKkICQmQYJo41+fOEj0do 8IDJBBwoPnzIribzj6eM67BmjTVrnSxTnbsWbHQRRvMr0BYQqEnDg+XnlBMMYQHlzv1h f9XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20210112.gappssmtp.com header.s=20210112 header.b="BiV/2Re8"; 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 x8si8446803jaq.91.2021.09.17.22.06.35; Fri, 17 Sep 2021 22:06:45 -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=@shutemov-name.20210112.gappssmtp.com header.s=20210112 header.b="BiV/2Re8"; 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 S1344584AbhIQWDh (ORCPT + 99 others); Fri, 17 Sep 2021 18:03:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344401AbhIQWDg (ORCPT ); Fri, 17 Sep 2021 18:03:36 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84E90C061574 for ; Fri, 17 Sep 2021 15:02:13 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id c8so38432986lfi.3 for ; Fri, 17 Sep 2021 15:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=znAe7ewx7rCSOAdsfm/NBUX+TUdTojIOSWYXmGT9kJY=; b=BiV/2Re8gTOEq754wm9xZr5SQTOn6jjqymEgSYMv/GPL37PMahL91jKVHZGSuxMQ/Y FpCVnXYOAefaT505OcZixPlQEyFF7emGaGoCcqyaa7u5+Haj7FlHN6KjNUY0O0iZ75zD b6pwrA6rQhAZNxIRkuZCLwM+udhUX4qCzZ00urqfyItObHUfW5VYEi+UX7rtDt16Gi9C XSRvBKiuo0aDlcRyteieFM2UYe3w4t4mNG3k1ZsqhLGVMEEND1U+m5WO5ZHUZYUyCmCx YSS1VH09OP14J1ADc6/JQ5Wj3sk07N60cGmqYI5tnERyT5CoCVVD7Xe91gITm7SXbRrp pReQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=znAe7ewx7rCSOAdsfm/NBUX+TUdTojIOSWYXmGT9kJY=; b=NkTRXpD2kAqWCb4jZzmlPsrPYBWnGpy+rcE/TISioxIdH8H2Jerk9AEEx7Juz5RY7L Xuefanvi/+QcibIdggXeuXVg5CjU6civQQJXbh15Xxi8hinM8AomnBe7Od0BfEpLA2e2 zdtgLvsKzaNEU5KAjBVjT7x5pVmEnHd81Gn/6lOsPCWjCUbuCb/tT24QBHpJ0dE15Akf 3JE905zpRCkCW/7ytzyj4QL45jM67k9fK3ZwbvkBEaxCpbQW0ZoWy93NtGbeRSV0a+uY NYp00iyHaKtdKBlIXMmny2RuvEcqU6hAf95/u4A0epIuu/OGQjx3OjfDa6PAVdGBesPX 0HsA== X-Gm-Message-State: AOAM533S1xfnfSleDNFAkWyo0dxc7tcqCx4+HIlMoR38ep6UTiAKinJO 43cqxyaUCHXv5L3PcWe30qIjMQ== X-Received: by 2002:a05:6512:344f:: with SMTP id j15mr9427594lfr.56.1631916131856; Fri, 17 Sep 2021 15:02:11 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id o21sm616352lfu.4.2021.09.17.15.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 15:02:11 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 52ECD103041; Sat, 18 Sep 2021 01:02:09 +0300 (+03) Date: Sat, 18 Sep 2021 01:02:09 +0300 From: "Kirill A. Shutemov" To: Kent Overstreet Cc: Johannes Weiner , Dave Chinner , "Darrick J. Wong" , Matthew Wilcox , Linus Torvalds , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , Christoph Hellwig , David Howells Subject: Re: Folio discussion recap Message-ID: <20210917220209.zhac33jiqtxvdttk@box> References: <20210916025854.GE34899@magnolia> <20210917052440.GJ1756565@dread.disaster.area> <20210917205735.tistsacwwzkcdklx@box.shutemov.name> 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 Fri, Sep 17, 2021 at 05:17:09PM -0400, Kent Overstreet wrote: > On Fri, Sep 17, 2021 at 11:57:35PM +0300, Kirill A. Shutemov wrote: > > On Fri, Sep 17, 2021 at 12:31:36PM -0400, Johannes Weiner wrote: > > > I didn't suggest to change what the folio currently already is for the > > > page cache. I asked to keep anon pages out of it (and in the future > > > potentially other random stuff that is using compound pages). > > > > It would mean that anon-THP cannot benefit from the work Willy did with > > folios. Anon-THP is the most active user of compound pages at the moment > > and it also suffers from the compound_head() plague. You ask to exclude > > anon-THP siting *possible* future benefits for pagecache. > > > > Sorry, but this doesn't sound fair to me. > > I'm less concerned with what's fair than figuring out what the consensus is so > we can move forward. I agree that anonymous THPs could benefit greatly from > conversion to folios - but looking at the code it doesn't look like much of that > has been done yet. > > I understand you've had some input into the folio patches, so maybe you'd be > best able to answer while Matthew is away - would it be fair to say that, in the > interests of moving forward, anonymous pages could be split out for now? That > way the MM people gain time to come to their own consensus and we can still > unblock the FS work that's already been done on top of folios. I can't answer for Matthew. Anon conversion patchset doesn't exists yet (but it is in plans) so there's nothing to split out. Once someone will come up with such patchset he has to sell it upstream on its own merit. Possible future efforts should not block code at hands. "Talk is cheap. Show me the code." -- Kirill A. Shutemov