Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp558155pxb; Fri, 8 Jan 2021 11:45:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDJRaPKGoCHO4nvi7qa2oGtUnjl2sY84GPM08NaK7i/PaVFfVEzIx9ge4IYkx7Hb7X48RX X-Received: by 2002:a17:906:4544:: with SMTP id s4mr3597346ejq.366.1610135153598; Fri, 08 Jan 2021 11:45:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610135153; cv=none; d=google.com; s=arc-20160816; b=JOH+26aKBLi1KCb+oM6JyEVMdH3vHx6dCk/f99ptBNSa05T8DdjJCKq4v/2dorcze6 lpr4prMm0SUzigh4kMti1hwkEqZRrn7gPQBKcmUhqjyy6dpy3HF2jxG5N7xcph3X6FHy SIwraOgYkYfSbTZYzDjjHlapehhIAzEEK3/3EadTJws2lxznbDrifAM2AFKy5tASlmnC WJ7GhzuFT3paJ9saJsZDMQgEQTKoTCXdqh7jI+Gh0AMT2dE61bFaps0b0m+ccWZz+aPY OGOfJc9pYRUqUDlny43PX867dQWXm+GBreYuEcxmOIXS4FvJqA8yhdyQVhEqM7zuykVW fq+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Zyk0hmvOCmlf96OHjavNOOWZKXPdqm3y4uCVwGOPVVs=; b=VF5iR9MHaJXJonJF9Pou7MBDuWs/gSzgHVZKzC8+O+HHkhfWQ+toi1HwpSEcX+lBEt ZXZfHOHGpawksGL4BmiZZ4MXKAOXX4Mpn8W8Ng6jTmVxOd0MVtQcu2Usz0yJeTiBYlBV q8XHOGhZ5BJ1dtPb/D0y9O0yi2sgqFtl/ryKphmYgwoLUzJ1c+L1hlDUNUmwksod0D/u 2fJ3rnxkshdUYTq4w3b4zLcoUO14Jn3ztP+nfOQHky9SrQJmbRfnydlELlq0IhT/diZE NfbfKKoum1+epbCYZhG5fN+8tcIkEGEWPSrx1PIxqFxE+A145JKRRfwUn84bgfIwfD3i K2+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Twey0HfD; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg3si2237212ejc.744.2021.01.08.11.45.28; Fri, 08 Jan 2021 11:45:53 -0800 (PST) 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=@linux-foundation.org header.s=google header.b=Twey0HfD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729048AbhAHTnj (ORCPT + 99 others); Fri, 8 Jan 2021 14:43:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728724AbhAHTnj (ORCPT ); Fri, 8 Jan 2021 14:43:39 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76D9CC061381 for ; Fri, 8 Jan 2021 11:42:58 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id m25so25533512lfc.11 for ; Fri, 08 Jan 2021 11:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Zyk0hmvOCmlf96OHjavNOOWZKXPdqm3y4uCVwGOPVVs=; b=Twey0HfDIE2MlqEURpSvHVkJLmkrIAf1QsDiId4VmSGRbgzqVpRXfv4JuljsdpWkY2 hBMh8AEu5reKfgO15Ne6WbVrqrp5hlLzOCuW0IwkjDbpEB4eLNTnEZXOtFjRixzY+rgU 5G8AG5Ypo8vvd+q3R6RgzYd1DGcjDChC5vVF0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Zyk0hmvOCmlf96OHjavNOOWZKXPdqm3y4uCVwGOPVVs=; b=L/eOPKwmpyQAau32rj6XiKD8Hs23fGEYXmbc52vy+HRXi/2TDLQ6jYgbnJZE57Z7+Z VYtqzMa2QCGlKfBqWMLKAkaYezxdvSxvyg7sUcnk1dSBLaFtfpAclz5S+VLP/D9VoA2I LSpn5r72b5efpUDt10+0DrcOE9GDeYXDj03OuZJXyq9At8q4xoD3+Oj2yZ/KqEmXi7Ch rQ7ErHRkyp1IAEyBEAQ6WR4BViecnPr5Hm/pdPwavrfzquP9wmQRlHGRzFKsM9Bi/Hqv W49YwpQnjfFhWp8bbp09DT6GF7dgQ+CNG+2Ut3lH7Ee7yhrjWGGdBZ+BP/QDfpXw3Emn sCCw== X-Gm-Message-State: AOAM530okOdhWxNHb0NBfcv//7GqKBAEsI/+xQdvryfLOQoTOokBjx99 y62x/jzFhD006irmdbU1/Ep/1UMxBvpFSw== X-Received: by 2002:a05:6512:3e7:: with SMTP id n7mr2133456lfq.585.1610134976489; Fri, 08 Jan 2021 11:42:56 -0800 (PST) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id y13sm2076496lfg.189.2021.01.08.11.42.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Jan 2021 11:42:55 -0800 (PST) Received: by mail-lf1-f41.google.com with SMTP id o13so25709255lfr.3 for ; Fri, 08 Jan 2021 11:42:55 -0800 (PST) X-Received: by 2002:a2e:6f17:: with SMTP id k23mr2233926ljc.411.1610134974839; Fri, 08 Jan 2021 11:42:54 -0800 (PST) MIME-Version: 1.0 References: <20210108171517.5290-1-will@kernel.org> In-Reply-To: From: Linus Torvalds Date: Fri, 8 Jan 2021 11:42:39 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/3] Create 'old' ptes for faultaround mappings on arm64 with hardware access flag To: Will Deacon Cc: Linux Kernel Mailing List , Linux-MM , Linux ARM , Catalin Marinas , Jan Kara , Minchan Kim , Andrew Morton , "Kirill A . Shutemov" , Vinayak Menon , Hugh Dickins , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 8, 2021 at 11:34 AM Linus Torvalds wrote: > > Yeah, I think that's a side effect of "now the code really makes a lot > more sense". Your subsequent patches 2-3 certainly are much simpler > now On that note - they could be simpler still if this was just done entirely unconditionally.. I'm taking your word for "it makes sense", but when you say On CPUs with hardware AF/DBM, initialising prefaulted PTEs as 'old' improves vmscan behaviour and does not appear to introduce any overhead. in the description for patch 3, it makes me wonder how noticeable the overhead is on the hardware that _does_ take a fault on old pte's.. IOW, it would be lovely to see numbers if you have any like that.. Both ways, actually. Because I also wonder how noticeable the vmscan improvement is. You say there's no measurable overhead for platforms with hardware dirty/accessed bits, but maybe there's not a lot of measurable improvements from a more exact accessed bit either? Linus