Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp272528rbb; Fri, 23 Feb 2024 23:04:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUePjxlLSfk1MZ/qhI+6TRLTBJSotaOL4n/uVCAdVayN+SBqQQqUDueCoQEAiakumoljMTP5xVYp8weg2K1zxAzGnF49gG4n2NzIfd34w== X-Google-Smtp-Source: AGHT+IHD9bdNk/7yeHreTyu5AvCu4bXy3aNK2hP41N26QH7plmx1EVevp1Uep8pW9daC9sKMepze X-Received: by 2002:a6b:5a14:0:b0:7c7:7407:cc26 with SMTP id o20-20020a6b5a14000000b007c77407cc26mr2200871iob.10.1708758288661; Fri, 23 Feb 2024 23:04:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708758288; cv=pass; d=google.com; s=arc-20160816; b=axmcjAzCSixbfEbcpO1dpibaTgI8BqCOiH0KMciYjEuVkHbl6Eb3VklsbH80eaabNI Akta5ZQXHgB5ehFGaAQDROYE9x9aMjB10zL0rsktYM7bAwoy9plS75aPSRVP/v37p4jW JYNVn1JTOfXfp+ECMcAdbs0tvIcAV7i9RnJoAXQC4PY5sc2PeWqblMA2LOOa7RrGcG3w V+pIGJt8HNrhatLFqkE8CHOVzv/xS2VX4JbnnT3Yfi9QvQGqYqfpwBz6MnlNdr8nQ38v w5NS+NtUaZkmg3imhL8O++MvhmkLQb9yhSPxgTE0/rjjSqr4o0YK2GgJ0S0M37ws/qBd 5fow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9Q7xjM4y4fPUpaXOwztAM/evw0GuePSPAyYG73fUcOc=; fh=atrn5XwvXk2Xvao2+Fp9LDMysUJb5nk5lvKGmyX/pqs=; b=fXZXAi9gmgeO8xblzR6JOIqmqrEehFEjsKe7eNBpRMufmMmsH/KI7QM3x8tb7ZijHN 4jMt3odMW8YHJq+56y3xgBR56OFqZYJB0fgCBneC4boNbgUvW22ITzg71sSqI4VLGJA4 dUHq0eW1rLlZXjTZ2/UJyvZVbTmISammz8whJ0t3Zmb0ReYIrJq6/cyeAXqnQTl9Em/Y ow4FLQjs2BYcUv4CvN6stXjeBjAKUvqTHZ/juWpIS4Pxopvx+XVPVgmHpV4dkemWGRF0 EM5vcuV0JkStns7dWMTYiXCD60dyHsSs56kzPL6yaftYOMxCGqruVvPYUMDWyw0bhhec kFQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HAgUEvxj; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-79462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79462-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l3-20020a63f303000000b005e43cb68d87si512263pgh.438.2024.02.23.23.04.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 23:04:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HAgUEvxj; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-79462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79462-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 90E55B23214 for ; Sat, 24 Feb 2024 03:59:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62C3214264; Sat, 24 Feb 2024 03:59:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="HAgUEvxj" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A28151FAA; Sat, 24 Feb 2024 03:59:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708747173; cv=none; b=Hk5j4FlCMNfoQsqjgU6zZXKr/pQDvBvkI4IZca5XGbfS+tkT7L+PloUcAk5n29SD9Q3sm6+r+YNY/ay4WqRG9ua3N2bjO94hZWpIAJrbCHQwrZYTWGMZbfBF4Lwkhs4fRm+8eW+IMoM7sLlQ/HOjBjze3o/moEgpzldSCVSt7G0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708747173; c=relaxed/simple; bh=rbGyRrzI5Zzax0WXkXpgbEmPCzjOn1B4JAPKpQIVtfI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ktedcFgk0VtbjuLegQIwVu2ib0IWWeKjZklkMxVqmkXy460Ome588mUaXuMKAbZrI+su5qQJnefWiBj6IqoecDCfd2GrkjqFOTEOJPqscfvwdmgwGR1d4Aqkq8wt56ifkxfDPsfje0uY+wFF9UjFEHxEr2p8OClZxu0lZ4+hcnI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=HAgUEvxj; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org 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=9Q7xjM4y4fPUpaXOwztAM/evw0GuePSPAyYG73fUcOc=; b=HAgUEvxjqGsxmCjPf/mM0BhF3J 42ZExS+8AcRSrdBjctLVTmhRvuRjDCRO6+DyUW77Dhw7pytNsZ6B3jAFGVr57QkLGA3r9lkA0NcuE YWieIiKjPNZTzM0D6in+3cQOClgJEO9LsAFUdvLa9oEPW9xKLza1VKqcIWx087rvP0HxIIOJZf5k6 +X4xBTVnUlUUSQAawSmdmrNXSUWlcDxLo6/a43B3UnWrQ55JtdWWtPGJUcImhHKpRRaM+9dzUwuFK R6shKlaTicH7HYc+FZIAMjpwoMscmRTA0LU9nH+9xVZCjf70bzI7PsG5ee+JSVfdDXG+F6kEzuXjI 9HSDoSRw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdjBv-00000009SrZ-1ayo; Sat, 24 Feb 2024 03:59:11 +0000 Date: Sat, 24 Feb 2024 03:59:11 +0000 From: Matthew Wilcox To: Dan Williams Cc: Dave Hansen , John Groves , John Groves , Jonathan Corbet , Vishal Verma , Dave Jiang , Alexander Viro , Christian Brauner , Jan Kara , linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, john@jagalactic.com, Dave Chinner , Christoph Hellwig , dave.hansen@linux.intel.com, gregory.price@memverge.com Subject: Re: [RFC PATCH 16/20] famfs: Add fault counters Message-ID: References: <43245b463f00506016b8c39c0252faf62bd73e35.1708709155.git.john@groves.net> <05a12c0b-e3e3-4549-b02e-442e4b48a86d@intel.com> <65d8fa6736a18_2509b29410@dwillia2-mobl3.amr.corp.intel.com.notmuch> <65d92f49ee454_1711029468@dwillia2-mobl3.amr.corp.intel.com.notmuch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65d92f49ee454_1711029468@dwillia2-mobl3.amr.corp.intel.com.notmuch> On Fri, Feb 23, 2024 at 03:50:33PM -0800, Dan Williams wrote: > Certainly something like that would have satisified this sanity test use > case. I will note that mm_account_fault() would need some help to figure > out the size of the page table entry that got installed. Maybe > extensions to vm_fault_reason to add VM_FAULT_P*D? That compliments > VM_FAULT_FALLBACK to indicate whether, for example, the fallback went > from PUD to PMD, or all the way back to PTE. ugh, no, it's more complicated than that. look at the recent changes to set_ptes(). we can now install PTEs of many different sizes, depending on the architecture. someday i look forward to supporting all the page sizes on parisc (4k, 16k, 64k, 256k, ... 4G)