From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEEB1C433EF for ; Mon, 7 Feb 2022 17:39:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6C8B46B007B; Mon, 7 Feb 2022 12:39:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 679796B007D; Mon, 7 Feb 2022 12:39:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 51B306B007E; Mon, 7 Feb 2022 12:39:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 42F516B007B for ; Mon, 7 Feb 2022 12:39:55 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id E3D2C22ED4 for ; Mon, 7 Feb 2022 17:39:54 +0000 (UTC) X-FDA: 79116696708.01.492090D Received: from server.lespinasse.org (server.lespinasse.org [63.205.204.226]) by imf25.hostedemail.com (Postfix) with ESMTP id 62BF7A0009 for ; Mon, 7 Feb 2022 17:39:54 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-54-ed; t=1644255593; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=tmDPD28soEhWKnT4DxmAlJVsPBF7OE1oQKQpzgysMBQ=; b=JWSanQhlWOlcCshcpo0ZLiIFik09w09xx0LOoJpxqM/35WhVvLXux5ETCN/tYTwOPZOmH Sz+OEp1YBGocQSbDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-54-rsa; t=1644255593; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=tmDPD28soEhWKnT4DxmAlJVsPBF7OE1oQKQpzgysMBQ=; b=azqVTrJC2t9aHb73Mc7K5JF3T+Ei7qWcPfKtwXIkOLCBlUKpwcUefS5+HLMknaaJNR7tX 09k3gRggYZbk6RtWhH4dLIy/iIqvJ1mtxDJYhJA0vrlg+DDxHMbSwE4oEQZGwu48sFU/O/H HKLYjp2GJkyyYBkNbcIspA33ASwU7aZ2YF7ilD7i05GCftosl6T4Gab299dyBrBjS89/M7Y ULbWqTUcGqS9ybPDUrMfFx/BhdL2OWcKqfx/Ru7gz73vplukNMscipuB9HYboK/J6I3Mkbm 8bMdrDEZgMi7U0O5ugo7YkWZPidtJ9w/Vt627tq3RR1wLfmtdri8qwpugHSw== Received: by server.lespinasse.org (Postfix, from userid 1000) id 8910E160B2F; Mon, 7 Feb 2022 09:39:53 -0800 (PST) Date: Mon, 7 Feb 2022 09:39:53 -0800 From: Michel Lespinasse To: Matthew Wilcox Cc: Andrew Morton , Michel Lespinasse , Linux-MM , linux-kernel@vger.kernel.org, kernel-team@fb.com, Laurent Dufour , Jerome Glisse , Peter Zijlstra , Michal Hocko , Vlastimil Babka , Davidlohr Bueso , Liam Howlett , Rik van Riel , Paul McKenney , Song Liu , Suren Baghdasaryan , Minchan Kim , Joel Fernandes , David Rientjes , Axel Rasmussen , Andy Lutomirski , Sebastian Andrzej Siewior Subject: Re: [PATCH v2 00/35] Speculative page faults Message-ID: <20220207173953.GD12302@lespinasse.org> References: <20220128131006.67712-1-michel@lespinasse.org> <20220131171434.89870a8f1ae294912e7ff19e@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 62BF7A0009 X-Stat-Signature: nzugeia5gfcipa4j5rzhm7og5zwx4jcm Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=lespinasse.org header.s=srv-54-ed header.b=JWSanQhl; dkim=pass header.d=lespinasse.org header.s=srv-54-rsa header.b=azqVTrJC; dmarc=pass (policy=none) header.from=lespinasse.org; spf=pass (imf25.hostedemail.com: domain of michel@lespinasse.org designates 63.205.204.226 as permitted sender) smtp.mailfrom=michel@lespinasse.org X-Rspam-User: nil X-HE-Tag: 1644255594-993402 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Feb 01, 2022 at 02:20:39AM +0000, Matthew Wilcox wrote: > On Mon, Jan 31, 2022 at 05:14:34PM -0800, Andrew Morton wrote: > > On Fri, 28 Jan 2022 05:09:31 -0800 Michel Lespinasse wrote: > > > The next step is to walk down the existing page table tree to find the > > > current pte entry. This is done with interrupts disabled to avoid > > > races with munmap(). > > > > Sebastian, could you please comment on this from the CONFIG_PREEMPT_RT > > point of view? > > I am not a fan of this approach. For other reasons, I think we want to > switch to RCU-freed page tables, and then we can walk the page tables > with the RCU lock held. Some architectures already RCU-free the page > tables, so I think it's just a matter of converting the rest. Note - I have no problem with switching to RCU-freed page tables everywhere when and if we end up needing to. I just don't see that this need comes from the SPF patchset, so I don't think this should be introduced as an artificial dependency. -- Michel "walken" Lespinasse