Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp146960pxb; Fri, 17 Sep 2021 21:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmxn8mWgk2mLGHFMywUW4bC0EDc7w055goxdqYpfrdfatE0XJbPxrJuD31/F3JFwLDEuoA X-Received: by 2002:a17:907:2cc6:: with SMTP id hg6mr16567883ejc.449.1631940857661; Fri, 17 Sep 2021 21:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631940857; cv=none; d=google.com; s=arc-20160816; b=s0VUwrZ4sahmOthZfGEQxd+ViF/34d0FLl3wX/9rCJtUrm5Ta6rFE6A6XoDQqz6mHT zQC3zl5212ndTgOPgb/ipI2s99AGYFws99zYgdsRz0VEOIgy82PoTx2fI8JvQIBTAkqT Lqpk34wwLp/tsbGIa2wH4klZFi2mUOlxPmAHbigj67cIa+FJeEw7TuPEwA/725d94L/e ueGbzn66h5/vA5viP7ER5Jvt2N7esX5bhwHZwI1lr5mZgyINvPqMe6t85h+RwHow9KTz uDkeN71rOvqNvYau6jM7gr2D+/lJ5S7rzzfz8Mnp6h2jsNe/7Ys5Cet/qp5W6+eq0JUm V+zA== 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=7y2hlBvrXziI3IvJBrIxyx+hcslOAnsyk0h3WElgiQM=; b=o0S2NPkz+x7SKtJQ/New8LfKYexyItwFGTK9pEbF/MRTvsiyBTj849j5/3a93ksFW2 bAtsYzcPx7mCBrE3uq5QOhD9HMOJa1KzdW0z08uBXYKkl4SWGx7StKhMEsnwQRsPQTy+ 4aoPaxhHeq9/m8h/4jLFZ90afmL06Ir0C8hzQZ4AJq9XjFPa+c/VI63j2LQARyQIAZ40 y4hz5NF4WQYBjiCObfJtHUI1cNEo/KmG8t3ljPSy9Knoaen2g8U3uNdJngVo2SQJNn8n IAwGWUH4VAW+e2qQeW8nOzT59RqeP4YveaoK2kKoOzcIweJlK2AMMM88RGIE1cbYNrr/ p5ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YhUzpzg0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si8843570edx.219.2021.09.17.21.53.53; Fri, 17 Sep 2021 21:54:17 -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=@gmail.com header.s=20210112 header.b=YhUzpzg0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239835AbhIQVOh (ORCPT + 99 others); Fri, 17 Sep 2021 17:14:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbhIQVOg (ORCPT ); Fri, 17 Sep 2021 17:14:36 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C30EEC061574; Fri, 17 Sep 2021 14:13:13 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id r21so9940966qtw.11; Fri, 17 Sep 2021 14:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7y2hlBvrXziI3IvJBrIxyx+hcslOAnsyk0h3WElgiQM=; b=YhUzpzg0wYgXhTIQgYtpVQo+Di+Z9+TAbAQY1M2JcfS7RmVqDtKpqT0AChc3ODGbcb GRvUx8gveyi9adfSYVUeXWxkaIXhCpXRt6+l2NWCabX3r2j+LqMx+6d8fDDEXI72fy9j w3I/J7K+x6lns6moYBks/jiCqKmEjvWtQbvpSmVTlV3gl5iGS3IPT3MZyNI5G04SvG5u rlNIuYdHIoAaO6aC0HbpjK0hPOcjW1jX8hhWeA8I8Z0wQ5bUe2yfNCOhZyGbzV5f5EyV YFQ8vGl94WSsxA1Ah/smYcGKbTFLQlTHEkyp/3fLCrVH8CKHKEddBflPF8JhzKsNy/bl CWxQ== 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=7y2hlBvrXziI3IvJBrIxyx+hcslOAnsyk0h3WElgiQM=; b=bunjlFDCLVlbHOKbcWL26QJFexgG7DcMeYNqFzDZD3H3/xnRxDcl3AqayfZMWxfDSM S0Zf7NDHeD6yNEh7NrQi4Tlo8XgLn5/L7KJWe/Iv0vCj1OUoHvW3LnTUL4zUjXuyWsvJ ZM9Ee9t8TnlGItB4AIZp8G2H/c8JtWNvBmmoKvGw8dIOYuh99ShwkLiWNf7JjVRP2lB7 wghqpxj9osxGv9UQNLIPB9IYwNbi2x17y7nLuj1QdNGlkIcl+weWcoUAJXqVYK3OR7eG Y0GIFa3nZSTnVMFHpcdqzO15fWlj0MsaMfxzFVhOpK2iHkTNFxNKb8Z48gAsurKE//5z zCSw== X-Gm-Message-State: AOAM533Dg8LCepzlICoB8BtClwcdUaclLGtOiLf8+Fabjhi5csY2uq54 R95AR4kCMB5OmJVfrDg/M8v/ik5y4QVE X-Received: by 2002:ac8:570f:: with SMTP id 15mr12568002qtw.335.1631913192909; Fri, 17 Sep 2021 14:13:12 -0700 (PDT) Received: from moria.home.lan (c-73-219-103-14.hsd1.vt.comcast.net. [73.219.103.14]) by smtp.gmail.com with ESMTPSA id o4sm4933735qti.24.2021.09.17.14.13.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 14:13:12 -0700 (PDT) Date: Fri, 17 Sep 2021 17:13:10 -0400 From: Kent Overstreet To: Johannes Weiner Cc: 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: References: <20210916025854.GE34899@magnolia> <20210917052440.GJ1756565@dread.disaster.area> 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 Snipped, reordered: On Fri, Sep 17, 2021 at 12:31:36PM -0400, Johannes Weiner wrote: > 2. Are compound pages a scalable, future-proof allocation strategy? > > For 2), nobody knows the answer to this. Nobody. Anybody who claims to > do so is full of sh*t. Maybe compound pages work out, maybe they > don't. We can talk a million years about larger page sizes, how to > handle internal fragmentation, the difficulties of implementing a > chunk cache, but it's completely irrelevant because it's speculative. Calling it compound pages here is a misnomer, and it confuses the discussion. The question is really about whether we should start using higher order allocations for data in the page cache, and perhaps a better way of framing that question is: should we continue to fragment all our page cache allocations up front into individual pages? But I don't think this really the blocker. > 1. Is the folio a good descriptor for all uses of anon and file pages > inside MM code way beyond the page cache layer YOU care about? > > For some people the answers are yes, for others they are a no. The anon page conversion does seem to be where all the disagreement is coming from. So my ask, to everyone involved is - if anonymous pages are dropped from the folio patches, do we have any other real objections to the patch series? It's an open question as to how much anonymous pages are like file pages, and if we continue down the route of of splitting up struct page into separate types whether anonymous pages should be the same time as file pages. Also, it appears even file pages aren't fully converted to folios in Willy's patch set - grepping around reveals plenty of references to struct page left in fs/. I think that even if anonymous pages are going to become folios it's a pretty reasonable ask for that to wait a cycle or two and see how the conversion of file pages fully plays out. Also: it's become pretty clear to me that we have crappy communications between MM developers and filesystem developers. Internally both teams have solid communications - I know in filesystem land we all talk to each other and are pretty good at working colaboratively, and it sounds like the MM team also has good internal communications. But we seem to have some problems with tackling issues that cross over between FS and MM land, or awkwardly sit between them. Perhaps this is something we could try to address when picking conference topics in the future. Johannes also mentioned a monthly group call the MM devs schedule - I wonder if it would be useful to get something similar going between MM and interested parties in filesystem land.