Message ID | 20240417071847.29584-5-byungchul@sk.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 B48E5C04FF9 for <linux-mm@archiver.kernel.org>; Wed, 17 Apr 2024 07:19:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A362D6B0095; Wed, 17 Apr 2024 03:19:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 850AA6B009A; Wed, 17 Apr 2024 03:19:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A3706B0095; Wed, 17 Apr 2024 03:19:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 33DA16B0093 for <linux-mm@kvack.org>; Wed, 17 Apr 2024 03:19:09 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id DF5ECA0D84 for <linux-mm@kvack.org>; Wed, 17 Apr 2024 07:19:08 +0000 (UTC) X-FDA: 82018172376.30.2128E40 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf14.hostedemail.com (Postfix) with ESMTP id 3726810000D for <linux-mm@kvack.org>; Wed, 17 Apr 2024 07:19:06 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713338347; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=zlgpfqZcUtFYBsemrF2WlxeqnIWPW0bYWCBa1n1XCu0=; b=l74+rmS4QlSTCQLMNYJ9FSwwTa0Tng1u/0O3CV1fhJBXWb5TycZjH/5NTx0vD8TCRenj3m eLlNDgfa+l3I5916vkNVsI5htbceDURZ7g1q4pauGitrcexrDJWuqV+cesXDRspoSOxCWT S/VDrSmo/Lsq5pCFkcoHf+0qCulFY/Q= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713338347; a=rsa-sha256; cv=none; b=pbiscMffXjZvKfnyjYn641UlYoUr/1eQoTjA08fwx7sOBU4yevyUK75f5NSgItHIAfEnB2 u8YgnLRgTCZIwGTQPnad/U5mY+y8ifgi14LvvV6VObx8Hyzr1glWQDXNCd7ddRlOisJapG WkjCM65f5sFFzWZIJIfIn4Nv3zUxxc4= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none X-AuditID: a67dfc5b-d6dff70000001748-a2-661f77e25f54 From: Byungchul Park <byungchul@sk.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: kernel_team@skhynix.com, akpm@linux-foundation.org, ying.huang@intel.com, vernhao@tencent.com, mgorman@techsingularity.net, hughd@google.com, willy@infradead.org, david@redhat.com, peterz@infradead.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, rjgolo@gmail.com Subject: [PATCH v9 4/8] x86/tlb, mm/rmap: separate arch_tlbbatch_clear() out of arch_tlbbatch_flush() Date: Wed, 17 Apr 2024 16:18:43 +0900 Message-Id: <20240417071847.29584-5-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240417071847.29584-1-byungchul@sk.com> References: <20240417071847.29584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Ogx/fWPhaPnbPusnss2FTqsXmFlsfiPS+ZPDat 6mTz2PRpErvHu3Pn2D1OzPjN4jHvZKDH+31X2TwWv/jA5LH1l51H49RrbB6fN8kF8Edx2aSk 5mSWpRbp2yVwZezevIqt4DhHxc9jj1kaGFvZuxg5OSQETCTezJjCAmKzCahL3LjxkxnEFhEw kzjY+geshlngLpPEgX42EFtYIFViwYG9YDaLgKrE5PsfGEFsXgFTic3tx1ghZspLrN5wAGwO J9Cczc1rwOqFgGq+n/jINoGRawEjwypGkcy8stzEzBxTveLsjMq8zAq95PzcTYzAQF5W+2fi DsYvl90PMQpwMCrx8BpEyaUJsSaWFVfmHmKU4GBWEuFtEZZNE+JNSaysSi3Kjy8qzUktPsQo zcGiJM7rFZ6aICSQnliSmp2aWpBaBJNl4uCUamCc/Fhtrcm3f1vZVc2/T4xN/ttwco908O3X s/MKlm6oWFa/8kS056Tj8ywMnaMWKXediak8u3exUapJaar24dWf32VsdZbxtOH/OkGhLfGG ycEtXxsCnk15tkLc7Xhm+vdt352+b3iy+ojohJj4n8XZ2TumvXqQdzvrd+GsP5Utlb7SXwME vCtjlViKMxINtZiLihMBeTy0bGACAAA= X-CFilter-Loop: Reflected X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 3726810000D X-Stat-Signature: 9cagxfcq669uttb3tpf3fkaconmq7ifz X-Rspam-User: X-HE-Tag: 1713338346-624649 X-HE-Meta: U2FsdGVkX1+MMQSYDqzPjY9p4jWydDqzdnjEBmVq9Fcp/iAr28vq0mzRv/YFHsZmQSkJdol+3ipEgNkEmUvUtWbhiSKX1t1jPfjgsoVlhTuNp8LTuKBYIql4dQETlZPymz5UtdPhikmSVAFIvxNDG+xFfVE5x1Lmw+dGGtGIQ8va3uiu9cvvh0KpYN07mfkIobSNiZ8+ZoIyzW5vIPDwjAztY9uzZTQqH3vHmkoaOdvbljXTpp1woHG5EZeviKWY067JLPMCrbziG9JKU3LfmiL/yVyjzHSczuijMGfxCxTF4378QLDKn7rZ0OLiDeObr8m52WScEzvq21vYch6DkN+n7Tcmi6zJlHH5vAzFKVIQuCrbSgk61XhBdmQHLrlXZgO3CyAkDrmYo6d0RgqVAv6qxyL/Xzmz3olXPJbdsYAQbuTHetcdAlyI2LreMAR6hM7FmvezQrymgD3GisnC48P9CQXRIEoOOO7vmnM6IyEbBbh9K5O+68xmnOVxku8n4Vyf+HWUqwkl5PB/k/mv0rqS8syn0XGZuAz1W5xJ0RJY3NQ5KAlV9rfYz+aRbzXWhoeh9wm+cbh4g314ZgwUzCVsWdTsSpDLdjp1YHLn7nOlgnaaMYzyqKlyBBM7eorqXDrNaaDY4voIZDc/EKLrn9vbR/kri1YU8jb75f3/GsifcR0AB4sWhsF5Ri9E6EnT8+N9BcJXttrp9SH1Xn2HHFC2S8JpZqMo5eql68wbRNBgoSztxr+CSbuHGMNmtB8/ 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Reduce tlb and interrupt numbers over 90% by improving folio migration
|
expand
|
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 44ac64f3a047..24bce69222cd 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -1265,8 +1265,6 @@ void arch_tlbbatch_flush(struct arch_tlbflush_unmap_batch *batch) local_irq_enable(); } - cpumask_clear(&batch->cpumask); - put_flush_tlb_info(); put_cpu(); } diff --git a/mm/rmap.c b/mm/rmap.c index 2542bfe1a947..d8671d0dc416 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -673,6 +673,7 @@ void try_to_unmap_flush(void) return; arch_tlbbatch_flush(&tlb_ubc->arch); + arch_tlbbatch_clear(&tlb_ubc->arch); tlb_ubc->flush_required = false; tlb_ubc->writable = false; }
This is a preparation for migrc mechanism that requires to avoid redundant tlb flushes by manipulating tlb batch's arch data. To achieve that, it's needed to separate the part clearing the tlb batch's arch data out of arch_tlbbatch_flush(). Signed-off-by: Byungchul Park <byungchul@sk.com> --- arch/x86/mm/tlb.c | 2 -- mm/rmap.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-)