1
linux/Documentation/admin-guide/mm
Maíra Canal 652e1a5146 mm: fix docs for the kernel parameter `thp_anon=`
If we add ``thp_anon=32,64K:always`` to the kernel command line, we
will see the following error:

[    0.000000] huge_memory: thp_anon=32,64K:always: error parsing string, ignoring setting

This happens because the correct format isn't ``thp_anon=<size>,<size>[KMG]:<state>```,
as [KMG] must follow each number to especify its unit. So, the correct
format is ``thp_anon=<size>[KMG],<size>[KMG]:<state>```.

Therefore, adjust the documentation to reflect the correct format of the
parameter ``thp_anon=``.

Link: https://lkml.kernel.org/r/20241101165719.1074234-3-mcanal@igalia.com
Fixes: dd4d30d1cd ("mm: override mTHP "enabled" defaults at kernel cmdline")
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Acked-by: Barry Song <baohua@kernel.org>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Lance Yang <ioworker0@gmail.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-11-07 14:14:59 -08:00
..
damon Docs/damon: use damonitor GitHub organization instead of awslabs 2024-09-09 16:39:00 -07:00
cma_debugfs.rst
concepts.rst
hugetlbpage.rst
idle_page_tracking.rst
index.rst docs/admin-guide/mm: correct typo 'quired' to 'queried' 2024-07-03 16:22:36 -06:00
ksm.rst Docs: typos/spelling 2024-05-02 10:02:29 -06:00
memory-hotplug.rst Document/kexec: generalize crash hotplug description 2024-09-01 20:43:37 -07:00
multigen_lru.rst
nommu-mmap.rst
numa_memory_policy.rst
numaperf.rst
pagemap.rst kpageflags: detect isolated KPF_THP folios 2024-07-12 15:52:21 -07:00
shrinker_debugfs.rst
soft-dirty.rst
swap_numa.rst
transhuge.rst mm: fix docs for the kernel parameter `thp_anon=` 2024-11-07 14:14:59 -08:00
userfaultfd.rst
zswap.rst mm: zswap: remove same_filled module params 2024-05-05 17:53:38 -07:00