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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4704ECCD193 for ; Mon, 20 Oct 2025 19:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9k9/XI8CsiYqEmuX8HZnzEnBP7pXKRSVVKQWm8zHdm4=; b=nGPhX4t7Y65+Y8kRMH3MiaS2c8 Cudbl5wSLWOm8b2SsLMtyeckFop0LotyWsahSbaZNp3Gs/U2IdgIU7uwzNuTvW3InOG+rGmXgsRuF y2micZ4QYDqGSeVoOgn+VWPcJ4rl+ceDwPwIhBUuxh//9lfROmIo5z5Hu+g+FzuXHKupaRKO7VYoi LZsOjjNWPrPr138gfGTcRMafqfU++weKfM/2g9ejsTCZ6fABxQ+uruC/0h8QommVdNYk4EwWnpnso 4llV5fccEBx3N+cZND44aijr9lS9Wau5IZr7sScolEz0Kvfx6ue0MR2e3t7akZfmnY1LChOtRATPi CFjVrhXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vAvOA-0000000ElSU-0RBm; Mon, 20 Oct 2025 19:17:50 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vAvO4-0000000ElP9-2RlC for linux-arm-kernel@lists.infradead.org; Mon, 20 Oct 2025 19:17:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1760987863; 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:autocrypt:autocrypt; bh=9k9/XI8CsiYqEmuX8HZnzEnBP7pXKRSVVKQWm8zHdm4=; b=gMem3QZ35bcoVmnkt0HY2au3AjeXwO4v1r+gCEM5HTrfxiRWFKDMlNPETT+5x5kgiblh6c sStm0WPcXPnXuKEDvkSSauaPcypBHR+dl6H+wD986/wJOauR7vrgw1/+6xld7F6+N0wVG9 GQMxxmKZNpgaORO+rCh7jqaG89kHqRM= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-124-yx-BXNrROXGnKEoqHSDfRw-1; Mon, 20 Oct 2025 15:17:41 -0400 X-MC-Unique: yx-BXNrROXGnKEoqHSDfRw-1 X-Mimecast-MFC-AGG-ID: yx-BXNrROXGnKEoqHSDfRw_1760987861 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-3f7b5c27d41so2830332f8f.0 for ; Mon, 20 Oct 2025 12:17:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760987860; x=1761592660; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9k9/XI8CsiYqEmuX8HZnzEnBP7pXKRSVVKQWm8zHdm4=; b=J3S+PyQxoYrQww9B+hcvzIJiaOzqE8o7KT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6FYgYsBLfZjnhJh6koQsAYWPO/y/Xt6p+I34MkpJ 8D1tga3eMVa3USpcrCWDDpgKHOcjo= X-Received: by 2002:a5d:64e8:0:b0:425:82b4:a099 with SMTP id ffacd0b85a97d-426fb64fb3bmr13513372f8f.0.1760987860568; Mon, 20 Oct 2025 12:17:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG981rLI5qROjih4tCXUS232eMtXMZElPCvd/sQ6LftPvcIGaIy/eNWcaPZ+/ZZMFOFmzOcxQ== X-Received: by 2002:a5d:64e8:0:b0:425:82b4:a099 with SMTP id ffacd0b85a97d-426fb64fb3bmr13513360f8f.0.1760987860154; Mon, 20 Oct 2025 12:17:40 -0700 (PDT) Received: from ?IPV6:2003:d8:2f0c:c200:fa4a:c4ff:1b32:21ce? (p200300d82f0cc200fa4ac4ff1b3221ce.dip0.t-ipconnect.de. [2003:d8:2f0c:c200:fa4a:c4ff:1b32:21ce]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-427f009a993sm16658313f8f.24.2025.10.20.12.17.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Oct 2025 12:17:39 -0700 (PDT) Message-ID: <02686adb-7575-4eb4-8d60-c5374de60752@redhat.com> Date: Mon, 20 Oct 2025 21:17:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64, mm: avoid always making PTE dirty in pte_mkwrite() To: Anshuman Khandual , Catalin Marinas , Huang Ying Cc: Will Deacon , Ryan Roberts , Gavin Shan , Ard Biesheuvel , "Matthew Wilcox (Oracle)" , Yicong Yang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20251015023712.46598-1-ying.huang@linux.alibaba.com> <0e6d1f1f-a917-4e36-80de-03ba94c6d850@arm.com> From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/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ga6x2rHyc8Sl86oK1tvAkwBNsfKou3v+jP/l14a7DGBvrmlYjO 59o3t6inu6H7pt7OL6u6BQj7DoMAEQEAAcLBfAQYAQgAJgIbDBYhBBvZyq1zXEw6Rg38yk3e EPcA/4NaBQJonNqrBQkmWAihAAoJEE3eEPcA/4NaKtMQALAJ8PzprBEXbXcEXwDKQu+P/vts IfUb1UNMfMV76BicGa5NCZnJNQASDP/+bFg6O3gx5NbhHHPeaWz/VxlOmYHokHodOvtL0WCC 8A5PEP8tOk6029Z+J+xUcMrJClNVFpzVvOpb1lCbhjwAV465Hy+NUSbbUiRxdzNQtLtgZzOV Zw7jxUCs4UUZLQTCuBpFgb15bBxYZ/BL9MbzxPxvfUQIPbnzQMcqtpUs21CMK2PdfCh5c4gS sDci6D5/ZIBw94UQWmGpM/O1ilGXde2ZzzGYl64glmccD8e87OnEgKnH3FbnJnT4iJchtSvx yJNi1+t0+qDti4m88+/9IuPqCKb6Stl+s2dnLtJNrjXBGJtsQG/sRpqsJz5x1/2nPJSRMsx9 5YfqbdrJSOFXDzZ8/r82HgQEtUvlSXNaXCa95ez0UkOG7+bDm2b3s0XahBQeLVCH0mw3RAQg r7xDAYKIrAwfHHmMTnBQDPJwVqxJjVNr7yBic4yfzVWGCGNE4DnOW0vcIeoyhy9vnIa3w1uZ 3iyY2Nsd7JxfKu1PRhCGwXzRw5TlfEsoRI7V9A8isUCoqE2Dzh3FvYHVeX4Us+bRL/oqareJ CIFqgYMyvHj7Q06kTKmauOe4Nf0l0qEkIuIzfoLJ3qr5UyXc2hLtWyT9Ir+lYlX9efqh7mOY qIws/H2t In-Reply-To: <0e6d1f1f-a917-4e36-80de-03ba94c6d850@arm.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 3kZ5gBMH04EGmZqa_wTLXYpltYikz_odqc1FhKAbWwE_1760987861 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251020_121744_705408_2D7D2475 X-CRM114-Status: GOOD ( 26.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 20.10.25 04:09, Anshuman Khandual wrote: > > > On 17/10/25 11:36 PM, Catalin Marinas wrote: >> On Wed, Oct 15, 2025 at 10:37:12AM +0800, Huang Ying wrote: >>> Current pte_mkwrite_novma() makes PTE dirty unconditionally. This may >>> mark some pages that are never written dirty wrongly. For example, >>> do_swap_page() may map the exclusive pages with writable and clean PTEs >>> if the VMA is writable and the page fault is for read access. >>> However, current pte_mkwrite_novma() implementation always dirties the >>> PTE. This may cause unnecessary disk writing if the pages are >>> never written before being reclaimed. >>> >>> So, change pte_mkwrite_novma() to clear the PTE_RDONLY bit only if the >>> PTE_DIRTY bit is set to make it possible to make the PTE writable and >>> clean. >>> >>> The current behavior was introduced in commit 73e86cb03cf2 ("arm64: >>> Move PTE_RDONLY bit handling out of set_pte_at()"). Before that, >>> pte_mkwrite() only sets the PTE_WRITE bit, while set_pte_at() only >>> clears the PTE_RDONLY bit if both the PTE_WRITE and the PTE_DIRTY bits >>> are set. >>> >>> To test the performance impact of the patch, on an arm64 server >>> machine, run 16 redis-server processes on socket 1 and 16 >>> memtier_benchmark processes on socket 0 with mostly get >>> transactions (that is, redis-server will mostly read memory only). >>> The memory footprint of redis-server is larger than the available >>> memory, so swap out/in will be triggered. Test results show that the >>> patch can avoid most swapping out because the pages are mostly clean. >>> And the benchmark throughput improves ~23.9% in the test. >>> >>> Fixes: 73e86cb03cf2 ("arm64: Move PTE_RDONLY bit handling out of set_pte_at()") >>> Signed-off-by: Huang Ying >>> Cc: Catalin Marinas >>> Cc: Will Deacon >>> Cc: Anshuman Khandual >>> Cc: Ryan Roberts >>> Cc: Gavin Shan >>> Cc: Ard Biesheuvel >>> Cc: "Matthew Wilcox (Oracle)" >>> Cc: Yicong Yang >>> Cc: linux-arm-kernel@lists.infradead.org >>> Cc: linux-kernel@vger.kernel.org >>> --- >>> arch/arm64/include/asm/pgtable.h | 3 ++- >>> 1 file changed, 2 insertions(+), 1 deletion(-) >>> >>> diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h >>> index aa89c2e67ebc..0944e296dd4a 100644 >>> --- a/arch/arm64/include/asm/pgtable.h >>> +++ b/arch/arm64/include/asm/pgtable.h >>> @@ -293,7 +293,8 @@ static inline pmd_t set_pmd_bit(pmd_t pmd, pgprot_t prot) >>> static inline pte_t pte_mkwrite_novma(pte_t pte) >>> { >>> pte = set_pte_bit(pte, __pgprot(PTE_WRITE)); >>> - pte = clear_pte_bit(pte, __pgprot(PTE_RDONLY)); >>> + if (pte_sw_dirty(pte)) >>> + pte = clear_pte_bit(pte, __pgprot(PTE_RDONLY)); >>> return pte; >>> } >> >> This seems to be the right thing. I recall years ago I grep'ed >> (obviously not hard enough) and most pte_mkwrite() places had a >> pte_mkdirty(). But I missed do_swap_page() and possibly others. >> >> For this patch: >> >> Reviewed-by: Catalin Marinas >> >> I wonder whether we should also add (as a separate patch): >> >> diff --git a/mm/debug_vm_pgtable.c b/mm/debug_vm_pgtable.c >> index 830107b6dd08..df1c552ef11c 100644 >> --- a/mm/debug_vm_pgtable.c >> +++ b/mm/debug_vm_pgtable.c >> @@ -101,6 +101,7 @@ static void __init pte_basic_tests(struct pgtable_debug_args *args, int idx) >> WARN_ON(pte_dirty(pte_mkclean(pte_mkdirty(pte)))); >> WARN_ON(pte_write(pte_wrprotect(pte_mkwrite(pte, args->vma)))); >> WARN_ON(pte_dirty(pte_wrprotect(pte_mkclean(pte)))); >> + WARN_ON(pte_dirty(pte_mkwrite_novma(pte_mkclean(pte)))); >> WARN_ON(!pte_dirty(pte_wrprotect(pte_mkdirty(pte)))); >> } >> >> For completeness, also (and maybe other combinations): >> >> WARN_ON(!pte_write(pte_mkdirty(pte_mkwrite_novma(pte)))); > > Adding similar tests to pte_wrprotect(). > > diff --git a/mm/debug_vm_pgtable.c b/mm/debug_vm_pgtable.c > index 830107b6dd08..573632ebf304 100644 > --- a/mm/debug_vm_pgtable.c > +++ b/mm/debug_vm_pgtable.c > @@ -102,6 +102,11 @@ static void __init pte_basic_tests(struct pgtable_debug_args *args, int idx) > WARN_ON(pte_write(pte_wrprotect(pte_mkwrite(pte, args->vma)))); > WARN_ON(pte_dirty(pte_wrprotect(pte_mkclean(pte)))); > WARN_ON(!pte_dirty(pte_wrprotect(pte_mkdirty(pte)))); > + > + WARN_ON(pte_dirty(pte_mkwrite_novma(pte_mkclean(pte)))); > + WARN_ON(!pte_write(pte_mkdirty(pte_mkwrite_novma(pte)))); > + WARN_ON(!pte_write(pte_mkwrite_novma(pte_wrprotect(pte)))); > + WARN_ON(pte_write(pte_wrprotect(pte_mkwrite_novma(pte)))); > } > > static void __init pte_advanced_tests(struct pgtable_debug_args *args) > @@ -195,6 +200,9 @@ static void __init pmd_basic_tests(struct pgtable_debug_args *args, int idx) > WARN_ON(pmd_write(pmd_wrprotect(pmd_mkwrite(pmd, args->vma)))); > WARN_ON(pmd_dirty(pmd_wrprotect(pmd_mkclean(pmd)))); > WARN_ON(!pmd_dirty(pmd_wrprotect(pmd_mkdirty(pmd)))); > + > + WARN_ON(!pmd_write(pmd_mkwrite_novma(pmd_wrprotect(pmd)))); > + WARN_ON(pmd_write(pmd_wrprotect(pmd_mkwrite_novma(pmd)))); > /* > * A huge page does not point to next level page table > * entry. Hence this must qualify as pmd_bad(). >> >> I cc'ed linux-mm in case we missed anything. If nothing raised, I'll >> queue it next week. Can we please send patches touching mm/debug_vm_pgtable.c properly to linux-mm? I wrote tools/testing/selftests/mm/mkdirty.c a while ago. I wonder whether that could also be expressed in these tests here. But my memory comes back: ARCH_HAS_DEBUG_VM_PGTABLE is not set by all architectures (and in particluar not sparc64 which I fixed back then) -- Cheers David / dhildenb