Message ID | 841c1f35478d5354872d307888979c9e20de9c09.1733305182.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 12D2DE7716D for <linux-mm@archiver.kernel.org>; Wed, 4 Dec 2024 11:11:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 98C7C6B00A5; Wed, 4 Dec 2024 06:11:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 93D5F6B00A6; Wed, 4 Dec 2024 06:11:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7B8306B00A7; Wed, 4 Dec 2024 06:11:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 5A4AF6B00A5 for <linux-mm@kvack.org>; Wed, 4 Dec 2024 06:11:47 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 03BDE80ED5 for <linux-mm@kvack.org>; Wed, 4 Dec 2024 11:11:46 +0000 (UTC) X-FDA: 82857011076.15.6215F09 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by imf27.hostedemail.com (Postfix) with ESMTP id 7F0CD4001A for <linux-mm@kvack.org>; Wed, 4 Dec 2024 11:11:27 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b="cSUJ/vsm"; spf=pass (imf27.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.176 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733310698; 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=S+2TKl5mjR1/DeVU9OKWZNhWFB9aKSgXlEoedfavFGk=; b=dfTp0gYJdGBCoVRhy0iF2YIE9jrdjxHXpVOpFjKSI3zfVlFbA3+RlwLvugu1RS4xKDz8mA ljU0tZt9G6oUuDBFqjTSBWosCXIBAK1HgDIVr/bZlpGYzoiJxP5Ri1mdDvFfvABxVEQ0FX b+I/NOfn6pos5cPbvaV/V8w401ncC9M= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733310698; a=rsa-sha256; cv=none; b=zxzzDI9vcXbc0jDeLjzhpKoEdn8Aj/1GhokVlSOZ/mc+pVrBV0paT5mzN5Q9zdgZW1gni3 Ah31v8FvYqnCbTBoe1CZa98NHpbwnzeLmj/dGEDgmA9yOysW0s+yc7NDLgE4tteNtiRiqg HokV0/Xx2aQaTJtPxFyJfhbraceKj/s= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b="cSUJ/vsm"; spf=pass (imf27.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.176 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-215e194b65aso3573975ad.1 for <linux-mm@kvack.org>; Wed, 04 Dec 2024 03:11:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1733310704; x=1733915504; 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=S+2TKl5mjR1/DeVU9OKWZNhWFB9aKSgXlEoedfavFGk=; b=cSUJ/vsmcbJPJ39NNugmuSgh5smZuWhBO4EIN5TNQyfmtXjTgwQ6ZxPp5N9sZEgPMs aKVi9/uuehI44fn853ypEiQa97Fan3Y0pie7tmOf2DQQcrKmC0NLBP035OF3yRYrrzVc 9kKNN8BMN1sB7AWnIS/EdM+1Xq31VbIpuYD0DD7q/ZHRhHeq8mtjVfXYmehixii5Sgu6 elOSH7hUyfY4eDagmEbxApDrY1QJVvER38gVb3M2yXSZ6L64x+0axH6j3V32D9qCCirq iHNKgWOaex3Ki6ZsX2iuLy+Wrc49lPAW3A1mwstEl2CIYtEcgD8ocfCqAjkM7f4m4pqJ TBKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733310704; x=1733915504; 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=S+2TKl5mjR1/DeVU9OKWZNhWFB9aKSgXlEoedfavFGk=; b=NI4h73UUVWS24JDG5ev4mbcAmaLxYJ9StbpWImoBwdWYPeRhCmg0lmPvZfRyVZ5HCs 5fDgCXBt089Xw6BL0zyRou8fpqKre58CIA3kqhwu42963isif9x/rVww5Tm/zemao5/5 F81tW2mD0HIRNrcmDjwZ9OX366KuxsiKPYMD+/N+ONGF2DRi91f3xTXzlh2NwXfg2or0 7YnHl2CEq063lnFGRXLmH3s3Zs67V2EeoO9WNmxO7HRmQOj3LXDr5A/eceF3QtqkYCZe VgxwYXFpjMIkV45pPiKWVvpucW2FDx117tGhyLWq82LTKAhqD1jX4IvnWvDJKww3hjdF qjhQ== X-Forwarded-Encrypted: i=1; AJvYcCUszSLLSQeSPDmApSS1RK2igiZmaWaSCrhwSdF1y0kyqXY2Tiahvf4tQPALhN9dAFHBUk9lfxlRVw==@kvack.org X-Gm-Message-State: AOJu0Yy0QalAybjgzU1/XrqXLfHorrMTII5elb4s9p+QbRDWHOQ97tHP mWzw88Y9MuHTmFtqoWbsoXJkVTDnGlb1lYD2Vh9sL0DeEA2TXQ5neCQYggZ0vJA= X-Gm-Gg: ASbGncuK1+6jkzCj5yN1dlz/LAhCTW9q309IHxju6QXgJitY/YlJejbsfi9s8cIuesb G8/KO13GQSeCxuHvNlfl4ufeEe6XZOjwPV+eKEiQL/181KQVgQ48I9Dk95VJEVdDDUiECoewNrl OE0Gct0CT2jm04zhMNcvp1RFShXHM9osr3YKtuijx+A22Wnqmt5wCxupcycQLNGGdUH0HMfhMmw SmT62wK63JFKfQ5WeL8qPYhU5nAsbEQuF9J2m3mu+sTflgD0Gh40kc3Py3YUty7IsaeIrXujOGk jKkZpFdBoBXYlJQ= X-Google-Smtp-Source: AGHT+IGw0dejDQHZRzw7N1ju/UdXqXmsmAXf2JNNoAGHvDVcgOtViNVAc4qWa1MErCGtacjUW7kRdQ== X-Received: by 2002:a17:902:f543:b0:20c:a44b:3221 with SMTP id d9443c01a7336-215bd1cb76emr76174235ad.15.1733310703813; Wed, 04 Dec 2024 03:11:43 -0800 (PST) Received: from C02DW0BEMD6R.bytedance.net ([203.208.167.148]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21527515731sm107447495ad.192.2024.12.04.03.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 03:11:42 -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, peterx@redhat.com, akpm@linux-foundation.org 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, zokeefe@google.com, rientjes@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng <zhengqi.arch@bytedance.com> Subject: [PATCH v4 11/11] x86: select ARCH_SUPPORTS_PT_RECLAIM if X86_64 Date: Wed, 4 Dec 2024 19:09:51 +0800 Message-Id: <841c1f35478d5354872d307888979c9e20de9c09.1733305182.git.zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <cover.1733305182.git.zhengqi.arch@bytedance.com> References: <cover.1733305182.git.zhengqi.arch@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 7F0CD4001A X-Stat-Signature: 5s753z4zc4ngw8x5cbhddcndmr3nka7f X-Rspam-User: X-HE-Tag: 1733310687-603484 X-HE-Meta: U2FsdGVkX1+itke7qyH/pk3moTer2qJduQejPBTmHzGxJuGj47OTwIgP+siXjEsv+yoqeel5/YUKNzJlKZv+2P9qXAAfGlz46AgnthpKQQ5+YDx0udOEdX4+qEtRC2OyvJ0dda+VEWQHT80Dju7IKF6dbQU9ImWqStDGCFZR2BLuFDbb0cS8reSM0oANSNBiYRQBOO19rMRPmNs4C6xeewk1CXknu/f23JMvDy5eqwuKP2UT+cKP7zHwhWjm0e44QTcVAbrzKtcShjN18clcfpa4e4NLSROZTK7uCER50RfGQhg5IjFps2NUGx12gBMz1wwZZAv0awmISfl5od+XTvCvEBMcsqRmWqQGkbNdTQVAtyoWdr9j6ToEZcYSJLvgk2vUnKoOXXGnO2mVDZJWuPu9k3Y7Pchxd4Q+iIoSGwKx5bPPCHg0pP9MG7G/9YlawlQUkBDPHMUX7Ssdjz9syq42vJ/m7tOmQO9s9UekUEe+9tZ4W49gU/6I8JmWoL8Rj4HP+XFmbWxqefyTb32FnDmyN9S2WFQnC13vqTZDB0GUs3F5Ay4gDPLJOATRtButI3ZaPjUinMFSXPpgoXMVo0LOwKNuD0o0RjxpidQxAdl+fKKQdxf18KjQRODzuBWseLnBVJFb1JfRpqcDUxzhCWlRIEmEC8+831lxpG1NMKVudJMuPdmIOa9O+KkVtodiO52SPyy1LttzXvoBl9fGqX89kUtwzkU8DK4kaF5/tYJpHp2f9X9/ueaTdhR8uf3sz+VPilBtn7XzcXBTUae9drlCNkS1V9ugHmfV6IrSoE25B+nMTyY1Fni1W3AjBDKzlRig7mI6VUSZFKRu3GY2x2310e3P0+rXCE1MJ8Lm7jKjJU32piuMTHLYA2EzafBVdxtq6B8G3kAFtIusW5xLUBuw5pnIVDKijrAW2nd1BJ1FvZmn4xDOJFZs0IhyNRfZa28fLjcIQl2GoC/hsGD ijXaxMKq na6hbwcULkx8E562UUF9MZi7zZzPBOW0B4P8m2hwoLhROFcCH9IC2i18NsKEbZX8qXTzJRoLqWleFhcRPPedX8AymnQKvb2bbXJX0zp2tl4AFuFGvVPhBJw9hPiRUQBQbrrXYLsPNvo5vMZo6OHrBKOxLIQDXL/WRusTSz4dnkQoNNkSwp+5TdvI8PzqSunLJWVCrLWjgM51vBSpQ/RHsw+BANDaVhmA6kqYwdClypPmbNHyV4OAFKFAttxcUQAmzXTAuoGq8RTZg2Xzf8bdOz03vswqiCR/jF2zsleEHJsYmuFyJCH+IkyMmllU5DalfgSa4MrLo3DI7XA/zI86QkBk3sfRtCCEIg6OWkLv9HeMeNwj1MYN1G5I3jDwcf9lHbV76DU4VqWpJ/fpvgThQAa2WwSt6OGGF7CdM1BedUvl+Vni0xQPW4cKFLoVxNOp/r50hva17+nhw8lUpuN6RyVZpwg== 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 65f8478fe7a96..77f001c6a5679 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -324,6 +324,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(+)