Skip to content

Commit b413f9c

Browse files
mairacanalJonathan Corbet
authored andcommitted
mm: Update shuffle documentation to match its current state
Commit 8391953 ("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 <mcanal@igalia.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20240422142007.1062231-1-mcanal@igalia.com
1 parent 8af2d1a commit b413f9c

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4169,13 +4169,11 @@
41694169

41704170
page_alloc.shuffle=
41714171
[KNL] Boolean flag to control whether the page allocator
4172-
should randomize its free lists. The randomization may
4173-
be automatically enabled if the kernel detects it is
4174-
running on a platform with a direct-mapped memory-side
4175-
cache, and this parameter can be used to
4176-
override/disable that behavior. The state of the flag
4177-
can be read from sysfs at:
4172+
should randomize its free lists. This parameter can be
4173+
used to enable/disable page randomization. The state of
4174+
the flag can be read from sysfs at:
41784175
/sys/module/page_alloc/parameters/shuffle.
4176+
This parameter is only available if CONFIG_SHUFFLE_PAGE_ALLOCATOR=y.
41794177

41804178
page_owner= [KNL,EARLY] Boot-time page_owner enabling option.
41814179
Storage of the information about who allocated

mm/Kconfig

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,9 @@ config SHUFFLE_PAGE_ALLOCATOR
333333

334334
While the randomization improves cache utilization it may
335335
negatively impact workloads on platforms without a cache. For
336-
this reason, by default, the randomization is enabled only
337-
after runtime detection of a direct-mapped memory-side-cache.
338-
Otherwise, the randomization may be force enabled with the
339-
'page_alloc.shuffle' kernel command line parameter.
336+
this reason, by default, the randomization is not enabled even
337+
if SHUFFLE_PAGE_ALLOCATOR=y. The randomization may be force enabled
338+
with the 'page_alloc.shuffle' kernel command line parameter.
340339

341340
Say Y if unsure.
342341

0 commit comments

Comments
 (0)