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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E855EC4345F for ; Mon, 22 Apr 2024 14:21:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 502436B0087; Mon, 22 Apr 2024 10:21:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 48BC66B0089; Mon, 22 Apr 2024 10:21:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 32C066B008C; Mon, 22 Apr 2024 10:21:08 -0400 (EDT) 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 101206B0087 for ; Mon, 22 Apr 2024 10:21:08 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id AD49D1C1317 for ; Mon, 22 Apr 2024 14:21:07 +0000 (UTC) X-FDA: 82037379774.25.24AC458 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by imf16.hostedemail.com (Postfix) with ESMTP id 87A10180018 for ; Mon, 22 Apr 2024 14:21:03 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=ms1kULvc; spf=pass (imf16.hostedemail.com: domain of mcanal@igalia.com designates 178.60.130.6 as permitted sender) smtp.mailfrom=mcanal@igalia.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713795665; a=rsa-sha256; cv=none; b=7Kpy+EUX5PuURTJdmX8g9r5w9O0PNJ1bDa4+TA2PLsNVGBEA5CKgrd/ZDkwjZk41ngTmeS Lg0jFhb7HhMpEN1IelwAudwERQTpMJZRhY0Vd71dwwxAtOz0Vog/5kpBxVHxH6E9e+0A6M aFl4UHA7jzO+aGXlueCDpESuu3Tf49w= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=ms1kULvc; spf=pass (imf16.hostedemail.com: domain of mcanal@igalia.com designates 178.60.130.6 as permitted sender) smtp.mailfrom=mcanal@igalia.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713795665; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=gDB1GmbLM1RgLFgDDRHYfTCreFTNn/hu28SEK8oaIj0=; b=Ht7MgaCI81/dNoD3hxSIpy4rwQHJTQ8SDF74RZPVN5tYcfUh0W0qaJQJ9sh1Swj3+XpQ9x HMwzKXcyCbWuRQz05kI9IYkov5xs+/SyI1zCZspNP4BYewGYuICRV+Z1qBXL61s9FUKC8W XX2vb1R/1PFzmgbZjE5CQ/c6OCKmCCc= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gDB1GmbLM1RgLFgDDRHYfTCreFTNn/hu28SEK8oaIj0=; b=ms1kULvct7a4ce6WyMgmW1r7nl cfRnf6+dSPUkoWok5LeTV6xdjjUPDGIGDB65WOhPGGg3lxvqSkuQYCTyvJu8//VZ1Qs2oOHHbm+7O 9sYNCsJu1RGwd/R8LJNK+uoGdC+OYuNjgvYWjlEgLW4+rQ/xYbmhnqED72RkJM/pNA2bYrpjMJJ+O HdgrA5HBqJ0w1tctOJsEo1XDl1L8LcrPMWlFT6sbv4lPo6MaYy92wuvSxC1XCqkFYhQAxc5whQHBn Lf+ydJ1HccDQRkx+zjZe0BQpTaPSz2xGS75VAzXB5gk8zW0a3cOeCfB5Gh0p8HCil2iEGY4y82TzM lf52I8CA==; Received: from [179.234.232.152] (helo=morissey..) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1ryuWz-007HEu-GN; Mon, 22 Apr 2024 16:20:30 +0200 From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Jonathan Corbet , Andrew Morton , Josh Poimboeuf , Tejun Heo , David Hildenbrand , Wei Yang , Michal Hocko , Johannes Weiner , Minchan Kim , Huang Ying , Mel Gorman , Dan Williams Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-dev@igalia.com, =?UTF-8?q?Ma=C3=ADra=20Canal?= Subject: [PATCH] mm: Update shuffle documentation to match its current state Date: Mon, 22 Apr 2024 11:18:40 -0300 Message-ID: <20240422142007.1062231-1-mcanal@igalia.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 87A10180018 X-Stat-Signature: 43ge3xq873o7pgfcudsf5hpuug9qoisi X-Rspam-User: X-HE-Tag: 1713795663-703963 X-HE-Meta: U2FsdGVkX19qUXkcYrTUXvIuizeXRhGPBvL7X865DmoLIutwEpKWc/io6KkImHNMVlvJ6oKoitiIKRrBqD40lkagr9Q216Pg3moLGJgjxKp8QcsT2g2V3MWE8e2v9LJGgn88rqJ6KDE1CJltPCSxLcGmJVFcpZ6TzBahGSg2SVobvkjUrMYyZAkJPMpS1inmZ7FYD9sjHz3mRVCzyfHBGJfrTHohl1cU8p/OEnQCCTHObrYbmdq79zS5+GfDMtoVqBFu5U98kh249MUV618S6D5UoSS6uzwgD7QHH4D2ctPV8bqNNFl7sFXaTskmuNRh93fqy2EGf5m7wa+NIMr4P5HMbjhiNl639RoxhPtC64+aDDVP0Ql+xzgh3Okxiq+3MdLFGO/9jlkUK4U1SAy0xAqRdEf01TozacqUMs59PMeMUH0GoHPtAE8ZunTpYhOsN/RBfndlOMNh6X85cOpALrYyp2puE0GGtB+OpZlE7V0/86dYU67M1T2MVv2HXTiXJTQWbw9IENKqg50UsYvDcgwRnvNFfJ6lwdS2TBAuqx0dNoFhtJPoGlW/b/3yYZO4fBViRIbJe8T8niIafFdJ5SxNQidMBAjt6Gsm39Drnr5NgD2D6wT5PjQOJb5lxnEAd3SxEafFBxlaZn/3LoPJSVMFCpqFkK8docB7wok1rjOrTu1XuO6ZTexzAtSagGYFAQ7NxddfIW529SiBSkfk4fbW9F2jATOHquyMCuPuG1v1SYC6APlrvUO/OTf14esu7iRcAA+dNmB7YHAMSD6rRJGQUGKAjWm84sCHQ6cyMGO5CvLr+WXPMmkghiGoiWH51SW/p+i9GJN7NXZYSlsBd4xdAs7U5Qf7I2Y3XQ4DsVOP3wCISGohJQ== 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: List-Subscribe: List-Unsubscribe: Commit 839195352d82 ("mm/shuffle: remove dynamic reconfiguration") removed the dynamic reconfiguration capabilities from the shuffle page allocator. This means that, now, we don't have any perspective of an "autodetection of memory-side-cache" that triggers the enablement of the shuffle page allocator. Therefore, let the documentation reflect that the only way to enable the shuffle page allocator is by setting `page_alloc.shuffle=1`. Signed-off-by: MaĆ­ra Canal --- Documentation/admin-guide/kernel-parameters.txt | 10 ++++------ mm/Kconfig | 7 +++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 902ecd92a29f..924bb8ddd8a8 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -4170,13 +4170,11 @@ page_alloc.shuffle= [KNL] Boolean flag to control whether the page allocator - should randomize its free lists. The randomization may - be automatically enabled if the kernel detects it is - running on a platform with a direct-mapped memory-side - cache, and this parameter can be used to - override/disable that behavior. The state of the flag - can be read from sysfs at: + should randomize its free lists. This parameter can be + used to enable/disable page randomization. The state of + the flag can be read from sysfs at: /sys/module/page_alloc/parameters/shuffle. + This parameter is only available if CONFIG_SHUFFLE_PAGE_ALLOCATOR=y. page_owner= [KNL,EARLY] Boot-time page_owner enabling option. Storage of the information about who allocated diff --git a/mm/Kconfig b/mm/Kconfig index b1448aa81e15..f30a18a0e37d 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -333,10 +333,9 @@ config SHUFFLE_PAGE_ALLOCATOR While the randomization improves cache utilization it may negatively impact workloads on platforms without a cache. For - this reason, by default, the randomization is enabled only - after runtime detection of a direct-mapped memory-side-cache. - Otherwise, the randomization may be force enabled with the - 'page_alloc.shuffle' kernel command line parameter. + this reason, by default, the randomization is not enabled even + if SHUFFLE_PAGE_ALLOCATOR=y. The randomization may be force enabled + with the 'page_alloc.shuffle' kernel command line parameter. Say Y if unsure. -- 2.44.0