Message ID | 8ed7cdb1e5fa5e0a357bec9178b8932d596573c9.1730360798.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 83672E68958 for <linux-mm@archiver.kernel.org>; Thu, 31 Oct 2024 08:14:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 10E156B00A2; Thu, 31 Oct 2024 04:14:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0BF0C6B00A3; Thu, 31 Oct 2024 04:14:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA2BA6B00A4; Thu, 31 Oct 2024 04:14:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id CAC196B00A2 for <linux-mm@kvack.org>; Thu, 31 Oct 2024 04:14:54 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 8C719A0F52 for <linux-mm@kvack.org>; Thu, 31 Oct 2024 08:14:54 +0000 (UTC) X-FDA: 82733185164.13.BED4DFD Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by imf11.hostedemail.com (Postfix) with ESMTP id E849F40012 for <linux-mm@kvack.org>; Thu, 31 Oct 2024 08:14:19 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=D4Dyk6UZ; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf11.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.181 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730362437; a=rsa-sha256; cv=none; b=LnW+FAbS7DvmIewYGCy9AG7Xf84zdoj/AiRewPCfEotKfQ6OuM+aGNhbFru+/wH3t9eo94 kl1Sx8VOgz56LN8AQqHjodlLKIUFAngXk/DB9xu7lS6Tes+QpAFPCdv7rOId0YIbmjVgAg cd1nK48D8zwHMP9GWfYvDWiD9yhZHso= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=D4Dyk6UZ; dmarc=pass (policy=quarantine) header.from=bytedance.com; spf=pass (imf11.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.181 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=1730362437; 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=iWdHYUgzbXn/U7M7SYCKm/NpDuEpbf7wkXka4/ylaW0=; b=zbjuYF/14dCkkuUfUG0IDc+nvzHvLrW5f79NerWgx5JwUJe/+BSa86rq/dWA0afXX7R1r5 G6OGCjIifomMD+Vn0tA7vEdxSVY26QWYnaxpwPJRh7MLvIf7Svy9OZD03E31Uj/gLetQlZ 89pAplH4Qyz9JkAAel7ccMSCQhPzoNQ= Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-20caccadbeeso6940615ad.2 for <linux-mm@kvack.org>; Thu, 31 Oct 2024 01:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1730362491; x=1730967291; 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=iWdHYUgzbXn/U7M7SYCKm/NpDuEpbf7wkXka4/ylaW0=; b=D4Dyk6UZVkSdpaX3FnKKYtbwm49RULGp5E40kWXMkvJkQmXzuBtwmAJHF5tAKlXMXO 24Nd2oTDtfNmad1QysjWGz32zkwdB2gJMcDcRVYTR/b954G5RbdYYYZL85tn/apjgRE9 t7XT0306pFTt10+/E2bE44K+N41qrGympfqagpeTMqS4xV5Dma3LXRxElT3wqV4r3ORQ ImI23Zgc1IdM/76+4mg2R9uHiNf3k6QockM+mhJQEIF6RweonzYP4v6Po3XGRMy326gL /g2Ku5E5y4RQ3+H41oSvx4qSjok7mIri1VIepCaqNfG45W1HCtUF0nTjdwEvI9U1dln5 O//g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730362491; x=1730967291; 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=iWdHYUgzbXn/U7M7SYCKm/NpDuEpbf7wkXka4/ylaW0=; b=JYcv4Dk3JxAFyQEf3+R7++BZVcPa8vIjdGxkOBK/2ytY/aU0ioqMpQI4mv+Oh88hLx 5J1kOVIwN2bpIbpnBbmOASN+rXI3PuG8oC+VyYVBy/wPK1i15wtVUkbIHtapBke+h4zp VQCvc4cq1X6Ok8Aqe6ZVI2k94/dNR9BOav53QS3ie9Zr1gKDqSyBMebKest53G2c7fK2 av0YmTe341U3ql670fXzjBXU3DXKk1FolXidGzaniNpdRDkUeU4tQ3c/LI/99lQaH8a2 Fe0r1/quMEFWegXImW2cERgFRs4+PmnCXnqHaDieCwoyh76RRN2cFL/Ns3C51TwePk6Y uz2g== X-Gm-Message-State: AOJu0Yw5C7xe57A2ONtCGTni1KyLs7rSkvBtAbmEq/Lf5z7yZbqMhsPs rZhvj2wJjLbPUS0PJ2OC4RQmFMjK7hS/3oSdXER/hSmHPVjZf2jBoc4Qo0xGJMk= X-Google-Smtp-Source: AGHT+IE3rqtNftE0bEC7q6UBe3srVwCXipxTTFqti2PirnO+trKsr5sr4dmd4R0xR3d7wiAw+7f4XQ== X-Received: by 2002:a17:90b:52c8:b0:2e2:a013:859a with SMTP id 98e67ed59e1d1-2e93c128a9cmr2763869a91.7.1730362491551; Thu, 31 Oct 2024 01:14:51 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([203.208.167.149]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9201b2586sm5163996a91.0.2024.10.31.01.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2024 01:14:51 -0700 (PDT) From: Qi Zheng <zhengqi.arch@bytedance.com> To: david@redhat.com, jannh@google.com, hughd@google.com, willy@infradead.org, mgorman@suse.de, muchun.song@linux.dev, vbabka@kernel.org, akpm@linux-foundation.org, zokeefe@google.com, rientjes@google.com, peterx@redhat.com, catalin.marinas@arm.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, x86@kernel.org, Qi Zheng <zhengqi.arch@bytedance.com> Subject: [PATCH v2 7/7] x86: select ARCH_SUPPORTS_PT_RECLAIM if X86_64 Date: Thu, 31 Oct 2024 16:13:23 +0800 Message-Id: <8ed7cdb1e5fa5e0a357bec9178b8932d596573c9.1730360798.git.zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <cover.1730360798.git.zhengqi.arch@bytedance.com> References: <cover.1730360798.git.zhengqi.arch@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Queue-Id: E849F40012 X-Rspamd-Server: rspam11 X-Stat-Signature: 39uiukw6dbcysng6u4w58ggcekwecae4 X-HE-Tag: 1730362459-114471 X-HE-Meta: U2FsdGVkX1+wiyHTiwojoEC4jcnlH/bR28ATbDdIjCGpPTjE5aspgRxwF90wvCvJz9sAUj5xcHwvWJmqb+IeZFwvt1431DyCUtSu7EgiRCi7odqQ5S8y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FUfQkb6ojXppfzdydBqS5K4ZjsADsWfL3reOQzvMfouqScGDzUIiMr93miQOxePR/Zww4Tl7bVymBiGHg9mCO0U+JR3thdajgph3xFIP1g97pbLnilcWm9RWQ+zwWDHmHsfzbecNePRRyXOiNYHmMnXTXb4= 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 1d194fb2f979e..194baed21ae5c 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -320,6 +320,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> --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+)