Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp230903pxb; Mon, 13 Sep 2021 17:49:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ97HK5XLvLoe5E9NNiiLMP4oXJ5Kh6SfOsEkvkzo8u7mtt89WiqAdoA9YkCE6HELvp5Ke X-Received: by 2002:a17:906:7d42:: with SMTP id l2mr11097176ejp.467.1631580583740; Mon, 13 Sep 2021 17:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631580583; cv=none; d=google.com; s=arc-20160816; b=AQcJKVaKENzBJ9VvFjgjKmOui/EP0jxZWlQE5uyaTZHe3K/bdiQwImksN94dnGx8HQ NruhloH6uiplypvT0aLYnDlp9K+KddJVopGzoXb+ueuzM1jQe56tYKQWnw3ARdjh6+jb FGk0HD/Borfz3aB0Mx505eA3+WM4BaClzf7W9Su+NehJe4y20HS7FFFsC0AWb3FYxdgm X4j6TQcxif/HxSYnmgGkj08uQCxrxRB1Z2p+lqWcpwMx566T7tjRNJj/W70oIbD26HFR ZKwJxFmZ5CTqFz3Bj+LfmAJOGznbASPXtHkErRBhsltsuW45QnM/XuHXMLwyZALQsTIk T40w== 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=CrTVtOmuoVf96nTz7kdFQqbCSVSV3Q0MJ1SBqM620bA=; b=GxEoAZr+RJIvKbW9HQbZowTGtO6JkLinjpMZQhgXqf4JHSVbDpjm4Nn0X//97wfZOi ZxCwMW6NMXNHeQcB/Zz+1wH88/7EZxWaz4qizo2SPF+jK1YM79iqOUDRHDCRFnjIx0Ir EbUaoS5YXysej3ugasqC4PKeqkhlWz162oCkOxdaNGJM4THGz9qAB93cOtdqV19wvfxB 6kNUB2fv7ahj1lceFE5rMZh0OyzdBKK59W48rncM7HfHcHyvlmuG8kgciwbMuEp26D/v tnh0s/JUa6hE1afov28NFnK+h4yed51PJy8utb3NsofrwT/6x+wudgYkONa1q5SucsOt sMrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=rz8dgkQc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si11570024ejy.385.2021.09.13.17.49.20; Mon, 13 Sep 2021 17:49:43 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=rz8dgkQc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346599AbhIMSLg (ORCPT + 99 others); Mon, 13 Sep 2021 14:11:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346579AbhIMSLf (ORCPT ); Mon, 13 Sep 2021 14:11:35 -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 4240EC061574 for ; Mon, 13 Sep 2021 11:10:19 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id t35so8914657qtc.6 for ; Mon, 13 Sep 2021 11:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=CrTVtOmuoVf96nTz7kdFQqbCSVSV3Q0MJ1SBqM620bA=; b=rz8dgkQc9No0pdPKYoTN02+zFUzynYahwSz0IDpfNXzhpDj9cUye/fY4OMS9zG1tRi 5ciewBsc9nwisACmpHlIWZ3wxX2L+7AgD3ff0mYtnk9TCXin1RANN2wSDyTQgvdVMpw6 U+uQMLb7b+iyqAarJxk3vHZWPN3JCEaCm6CXnJoLuXLyhCS0LbWomjixD4MrxQnR3S8j U3IWknP8CN0rfpAhJ0O0C8wurzEmSDBsMUEnCGCayf2Q3jDlbHIm2QB+kAghaDA9m8b4 Pkd7R8QiwhuoCnNuqcI1iH+DiVesej6zB7o4rrPzzYRfMf55BUxL9i6W8ECN6vy77fe2 Qk7g== 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=CrTVtOmuoVf96nTz7kdFQqbCSVSV3Q0MJ1SBqM620bA=; b=qtM3CELbgoE7f+T70kcISABK3r/JkU1yROHhgcmpwQ0cqgFwEBRYcNvYDQF6mz9yfw t/wG/SmcgtDEDVJ/9QNzs9odQt07F0zcwV23Q19ptwl9GwHQ9k1f9BVzqFpotukSrkc1 k0F1FJmrF0PAtVYwc5+t9x68DJ8MjOsOZShOcZzld+tpP3a8Sy/Khwcs4nsmFeGJ0mIe FVKVMDmyS5SGWCyQTNGdK0uBtbXOdkxIPHAN0YJp6u3M1MSUL6DNc1Ty87kDLBxxiXtM dFN5/pz3whF89CZ0Xc/U+The7eRMCDhfiLOd1X5CDyzRVozbF9lOUxQoGElZ0h2WbBki eOFw== X-Gm-Message-State: AOAM532sSpXedjY9chc4+d3j0ZaNjmntEqpexnol+Tz4xOW02G5CIdcN LcsOKKphS8cDr0RBq1YInA5ERw== X-Received: by 2002:ac8:7dc6:: with SMTP id c6mr817719qte.25.1631556618418; Mon, 13 Sep 2021 11:10:18 -0700 (PDT) Received: from localhost (cpe-98-15-154-102.hvc.res.rr.com. [98.15.154.102]) by smtp.gmail.com with ESMTPSA id b12sm5554868qkk.3.2021.09.13.11.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 11:10:17 -0700 (PDT) Date: Mon, 13 Sep 2021 14:12:12 -0400 From: Johannes Weiner To: Michal Hocko Cc: "Kirill A. Shutemov" , Kent Overstreet , Matthew Wilcox , Linus Torvalds , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , "Darrick J. Wong" , Christoph Hellwig , David Howells Subject: Re: Folio discussion recap Message-ID: References: <20210911012324.6vb7tjbxvmpjfhxv@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 Mon, Sep 13, 2021 at 01:32:30PM +0200, Michal Hocko wrote: > The existing code (fs or other subsystem interacting with MM) is > going to require quite a lot of changes to move away from struct > page notion but I do not see folios to add fundamental blocker > there. The current folio seems to do quite a bit of that work, actually. But it'll be undone when the MM conversion matures the data structure into the full-blown new page. It's not about hopes and dreams, it's the simple fact that the patches do something now that seems very valuable, but which we'll lose again over time. And avoiding that is a relatively minor adjustment at this time compared to a much larger one later on. So yeah, it's not really a blocker. It's just a missed opportunity to lastingly disentangle struct page's multiple roles when touching all the relevant places anyway. It's also (needlessly) betting that compound pages can be made into a scalable, reliable, and predictable allocation model, and proliferating them into fs/ based on that. These patches, and all the ones that will need to follow to finish the conversion, are exceptionally expensive. It would have been nice to get more out of this disruption than to identify the relatively few places that genuinely need compound_head(), and having a datatype for N contiguous pages. Is there merit in solving those problems? Sure. Is it a robust, forward-looking direction for the MM space that justifies the cost of these and later patches? You seem to think so, I don't. It doesn't look like we'll agree on this. But I think I've made my points several times now, so I'll defer to Linus and Andrew.