Message ID | 69c25b17661499afe4b35f1d30b26dd346a649ec.1731566457.git.zhengqi.arch@bytedance.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 88038D65C52 for <linux-mm@archiver.kernel.org>; Thu, 14 Nov 2024 07:01:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 01FAA6B00A3; Thu, 14 Nov 2024 02:01:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EE9506B00A4; Thu, 14 Nov 2024 02:01:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D62A16B00A5; Thu, 14 Nov 2024 02:01:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id AF40C6B00A3 for <linux-mm@kvack.org>; Thu, 14 Nov 2024 02:01:41 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 53E6E140FE3 for <linux-mm@kvack.org>; Thu, 14 Nov 2024 07:01:41 +0000 (UTC) X-FDA: 82783802136.17.178264E Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by imf06.hostedemail.com (Postfix) with ESMTP id 54B98180476 for <linux-mm@kvack.org>; Thu, 14 Nov 2024 07:01:08 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=k1VPvIfr; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf06.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.216.42 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731567522; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Ux2VNbXo90ImX5V4UUDESmDG/GCgEeKifxWHEZQhBkY=; b=RWaX9hKoQoS8hJhCAuDQlJa4T2wlvkf5MIVFAzqcHrZdJWpqBNflf7pu8sDKO7NRxFcqbH 4wgDDjFRH/nTyJe0YBsS/blSPT9A5NIwj9S4bf2gvR+FFM7vEPeXanFY5bN4OyXKDVor3/ TQ4BR0gQJOCIw+f9GtRlKJWiX5MqcnE= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=k1VPvIfr; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf06.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.216.42 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731567522; a=rsa-sha256; cv=none; b=5jFpBsMucMvzbrEM5rITvu06kvNN73U/Y6Numf5I7Hg0T7FnsTP5hYAEw5MMZrUSFAA4nh V2iQm44c5epR3on0HEhcWilB8MftyYZ5CrMfM2DN7VnGMfYyk/70dXKDAA9AbQH5eWSHfP 2923YulTU7keqw6RC68+dMf7stMhlpI= Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2e91403950dso238667a91.3 for <linux-mm@kvack.org>; Wed, 13 Nov 2024 23:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1731567698; x=1732172498; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ux2VNbXo90ImX5V4UUDESmDG/GCgEeKifxWHEZQhBkY=; b=k1VPvIfrTIQvGl6euasvNN5LGa9fJwWhbbyHqTaJRmFjBj+/jO5YL6AVt7DifbgnOe dFUj9nGN3LTPGg5btNVLCnI5K06la8wx3PsqplhytYWse1WZ+vjX83dFflMaw/IOBYkG hMEDhHIYoDcPJ1xFizg4+c9Fp27zO8S6IfWLjdTEQakFYzyq01usiq2c3UdTenGnkXH+ qHOhurWHB/oRpZKxETezAVERN0tet7jK73HbcIfvpqHfQJKzns+A+af1JebWvl5rixk2 DBenQHZbYwO5y0zthBauYQ4cEQFvDNX6E6KCNpBZM8ijbaM6zPjvSwUg23wZ3+b6p7s/ nEDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731567698; x=1732172498; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ux2VNbXo90ImX5V4UUDESmDG/GCgEeKifxWHEZQhBkY=; b=oc2MUfo7jsYDXhhVKq6fKaoofcST4EKsBLQIb5IY0Op50u4m9aVGUfh9+UQUFSa/DY Obn153AYjffBV2tZFyoqS/9xswm9/TXamKem3LRAghk5htBnMwNS3QgDeLvjQ26jxGxh WI3iusD9mQM7tQFmm/Veu2Hqjbg58uETVmMZ30h+7tiKctSIRltHVGkJ75XsYAkN9R5x /fC/dDwMQ6TPiyZUZ6Wh+jTltSps8DM75vJBuZMR9lYaFc3oYAuqgiexKVNrKpQz7wMG Ap+n56mO8LXnApVpnVJv+kcZ6UzmvH71et7GHAZPTlHiKI0EaREw9RgikBVFMjIZjl/C 1j8A== X-Forwarded-Encrypted: i=1; AJvYcCUBCb43aDiYANYz4Bh26jPD7Kg5PHR2jQvHqtkX7NbEe4Jkga9J8d/+lqLW+ilSbqSeOZiq7+WS8w==@kvack.org X-Gm-Message-State: AOJu0YyqL4jyHuY/HorNt8p8kJkU4RRSAejSGBmEmC+J5aTb5qPfJ8Ia AAUjjdAVYbkPaDoLIqHGn+7SBL3svIKWfmZKJB1PLFmlcHnXL3RnNoU4tdVhTUE= X-Google-Smtp-Source: AGHT+IGD/Oma/paalKZqrPUZZp2giaMy+M6Rqmdoz0DNDtq/SsMG2116QxX53frrrDiQ+TqULr4MYA== X-Received: by 2002:a17:90b:17cb:b0:2e2:cef9:8f68 with SMTP id 98e67ed59e1d1-2e9b16ee943mr30937378a91.4.1731567698222; Wed, 13 Nov 2024 23:01:38 -0800 (PST) Received: from C02DW0BEMD6R.bytedance.net ([63.216.146.178]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-211c7d389c2sm4119065ad.268.2024.11.13.23.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 23:01:36 -0800 (PST) From: Qi Zheng <zhengqi.arch@bytedance.com> To: david@redhat.com, jannh@google.com, hughd@google.com, willy@infradead.org, muchun.song@linux.dev, vbabka@kernel.org, akpm@linux-foundation.org, peterx@redhat.com Cc: mgorman@suse.de, catalin.marinas@arm.com, will@kernel.org, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, x86@kernel.org, lorenzo.stoakes@oracle.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, zokeefe@google.com, rientjes@google.com, Qi Zheng <zhengqi.arch@bytedance.com> Subject: [PATCH v3 9/9] x86: select ARCH_SUPPORTS_PT_RECLAIM if X86_64 Date: Thu, 14 Nov 2024 15:00:00 +0800 Message-Id: <69c25b17661499afe4b35f1d30b26dd346a649ec.1731566457.git.zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <cover.1731566457.git.zhengqi.arch@bytedance.com> References: <cover.1731566457.git.zhengqi.arch@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 54B98180476 X-Stat-Signature: zm3pw3eczch1twus619igfr679hm9wr1 X-Rsp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K9OoQfLvMPjv6oBybYnSsU7k7jv7gqPSDK9KIWpKKzSD7yI6WWteCCtGmJZkU8v2khiCAmRnRteKyKpydej8F/gRxNQV/5riD+aiPuz8BhsYLY+xbIh+pt3M2lStluEbIgUFdlVzyfY8XFdUGO0ydAbm+bJ6v68LXMPCdRLsaSDtuByVzaFQ/JHRBF49MPbmvfUJ1J0+pzg8TVJpXWCI0ZEgjyZLMR4aR5cNjEighJIzc7QuSjYHQVTf2kX6Ep2aOJLzDTsOoRImDy0xZrpqokD91i6Tyi620uS692nvij/dtRu1AJiKdosDWc9744saV6tHVPKsEjyt2XDDNL4EZSskBDw3aXMFvBqfHyyzS5Tz/ipbzmrpthPP3iuLib9KUhSNNqS6ytQ== 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 |
synchronously scan and reclaim empty user PTE pages
|
expand
|
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index e74a611bff4a6..54526ce2b1d90 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -322,6 +322,7 @@ config X86 select FUNCTION_ALIGNMENT_4B imply IMA_SECURE_AND_OR_TRUSTED_BOOT if EFI select HAVE_DYNAMIC_FTRACE_NO_PATCHABLE + select ARCH_SUPPORTS_PT_RECLAIM if X86_64 config INSTRUCTION_DECODER def_bool y
Now, x86 has fully supported the CONFIG_PT_RECLAIM feature, and reclaiming PTE pages is profitable only on 64-bit systems, so select ARCH_SUPPORTS_PT_RECLAIM if X86_64. Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com> Cc: x86@kernel.org Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+)