Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp686295pxb; Thu, 23 Sep 2021 08:36:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7L9tbGbhfy3mrGmTMn+zY+zA9ndOp5OZIHRHUvMbNYE4rrjX39T6pceveosCfyaw/gx/D X-Received: by 2002:a17:906:7047:: with SMTP id r7mr5589023ejj.342.1632411406491; Thu, 23 Sep 2021 08:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632411406; cv=none; d=google.com; s=arc-20160816; b=vs9W99KSsDXq9PYVLLBzrxR8RtBRwjPZw3tCzsx5UOTg+RxpvHCAGk7oJ/BdG16K/k Q3J1JNhfkBAnVU1x1vsjR0gKqnOm+whVhTBDRQBJFVuAc+M9oina6oTxbImBnOpmRmLs SjJmep1oSVYjnosGVlW2TsPcGd6jTvCiHVZkyL1ErBKKtUWmdTdN5jjXZG+SMTKRq105 k9AXwaRwRttITIHTqMM/dxJHhPUH5u4UyKCXc1hD5OmA87vX4oH1vBd1UrU2oVSmTeUt ozu6HPlvDXQvYJNWSON2xES/rMHhjSfVuj5rWyVY4hOtEDd1rCKbZryGBzUzbWC6gDKE wgEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject :organization:from:references:cc:to:dkim-signature; bh=B6vU7I66Oh4IvVlNoUJK6FShhyszDTfSEBuK0IXxA/U=; b=CNktdTy9AUo4XLbyGVcUZYVixGVDLWJz6pPDFMhEo6H+9DITtSATr2Za7gwza1MQ44 fo594/9qGHfS0sgRUyGI4FLIFPJEc5+xdrliQ675J4CQ5B6BtC9ed1ggIZblPZmHTfMN 2M/02+8RZKo3VpjYDPyKwXkWeQL7o3YIcfK8Z7b6uCf11MMDQlFBDqrlu750HWnGlE8N pME6mw1Xc3Lz//JMmUEj8NPd+cPFhbQUmH14z5JsNgPPBrY8wEMkpnNPixtcR2ZuEv93 CHJDtfGlG1Z2zeoggXkD6ch95krOQO2R7Y5GUpqhVhNZWc39fQHnQONdqG4hzjMBY3Hl FChg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IYxo3Y+i; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm16si6282977edb.317.2021.09.23.08.36.22; Thu, 23 Sep 2021 08:36:46 -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=@redhat.com header.s=mimecast20190719 header.b=IYxo3Y+i; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241988AbhIWPgY (ORCPT + 99 others); Thu, 23 Sep 2021 11:36:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:36415 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241735AbhIWPgY (ORCPT ); Thu, 23 Sep 2021 11:36:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632411292; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B6vU7I66Oh4IvVlNoUJK6FShhyszDTfSEBuK0IXxA/U=; b=IYxo3Y+iOYuE5tml4mU0gciEH4eHsQDvX45pUQswaxp++thszBWz9b6OkmcvcUmSA3VrLA izpc+yxLcpbSqBrNQJjHqNU/FB/gBxuqucPQ61Drplq7JDi02BfJ/lRUDDTB6iGST/SokF Q3g5BO1EtfnCZyCurAfSEkgiFAQVBRQ= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-40-b7CIvMhvNFKQwmWikgFKgg-1; Thu, 23 Sep 2021 11:34:50 -0400 X-MC-Unique: b7CIvMhvNFKQwmWikgFKgg-1 Received: by mail-wr1-f71.google.com with SMTP id f11-20020adfc98b000000b0015fedc2a8d4so5547431wrh.0 for ; Thu, 23 Sep 2021 08:34:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:references:from:organization:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=B6vU7I66Oh4IvVlNoUJK6FShhyszDTfSEBuK0IXxA/U=; b=lymal6g1o9L/CK+QD/nw/Yy5LKceUXjP/Cu0Cf7gM4l5hMIPfYLDG0b1OcOI93Gdj/ cDEM3EF6KD+Wi2e24jeSPkFEuFYGqg+dcmEyXhXKY/fos1X6qEWcHsca7ekT6VDQajkS vpAFCngRgX1729XVM7cZ0xNLsBUZHD47Z8Xv/rOXuNOWVtJeo9ptgLM5DSfcLK5cyDpK Dc7XvLxUsaA4Q8TIa3UwoL2WY3v4MykdvX7MNt9E1lyMYoRmkNTSkPjUwzvAYri+87GD Y6A6w9xQLSzEjmiOeV3WHPpWgqLOxH67iqJnEABfuCFOCzyEc+4sTJ1j5ywBEx+CBI32 K35g== X-Gm-Message-State: AOAM5305tUMynEfDkdNNP5pQjb82dMnL/Eo+QHo5W9r3BuXRnKOgoejx ypPmFRtc0Rq4iAq9ZaBsnT083B0aMjow2NSoKNRXeaq677J8FzS9RibmdktD6vSnxH22xl6erBV /lGkH2FYvMutB9LNFSUlWU209 X-Received: by 2002:a05:600c:4a16:: with SMTP id c22mr16730727wmp.72.1632411289512; Thu, 23 Sep 2021 08:34:49 -0700 (PDT) X-Received: by 2002:a05:600c:4a16:: with SMTP id c22mr16730710wmp.72.1632411289286; Thu, 23 Sep 2021 08:34:49 -0700 (PDT) Received: from [192.168.3.132] (p4ff23e5d.dip0.t-ipconnect.de. [79.242.62.93]) by smtp.gmail.com with ESMTPSA id b187sm9825989wmd.33.2021.09.23.08.34.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Sep 2021 08:34:48 -0700 (PDT) To: Kent Overstreet Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Johannes Weiner , Matthew Wilcox , Linus Torvalds , Andrew Morton , "Darrick J. Wong" , Christoph Hellwig , David Howells References: From: David Hildenbrand Organization: Red Hat Subject: Re: Struct page proposal Message-ID: <2116e35d-019d-67e3-e163-a0ef0a821a87@redhat.com> Date: Thu, 23 Sep 2021 17:34:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.09.21 17:22, Kent Overstreet wrote: > On Thu, Sep 23, 2021 at 11:03:44AM +0200, David Hildenbrand wrote: >> Don't get me wrong, but before there are answers to some of the >> very basic questions raised above (especially everything that lives >> in page->flags, which are not only page flags, refcount, ...) this >> isn't very tempting to spend more time on, from a reviewer >> perspective. > > Did you miss the part of the folios discussion where we were talking > about how acrimonious it had gotten and why, and talking about (Chris > Mason in particular) writing design docs up front and how they'd been > pretty successful in other places? > > We're trying something new here, and trying to give people an > opportunity to discussion what we're trying to do _before_ dumping > thousands and thousands of lines of refactoring patches on the list. > This here is different: the very basic questions haven't been solved. Folios compiled. Folios worked. I stopped following the discussion at one point, though. Again, don't get me wrong, but what I read in this mail was "I don't know how to solve most of this but this is what we could do.". Would we want to reduce the struct page size? Sure! Do we have a concrete plan on how all the corner cases would work? No. IIRC Windows uses exactly one pointer (8 bytes) to track the state of a physical page by linking it into the right list. So what would you say if I proposed that without tackling the hard cases? Corner cases is what make it hard. Memory holes. Memory hot(un)plug. Page isolation. Memory poisoning. Various memory allocators. Lock-free physical memory walkers. And that's all outside the scope of filesystems. -- Thanks, David / dhildenb