Re: [PATCH 14/17] mm: introduce numa_emulation
Zi Yan <[email protected]>
| Newsgroups | gmane.linux.acpi.devel,gmane.linux.kernel,gmane.linux.ports.arm.kernel,gmane.linux.ports.mips,gmane.linux.ports.ppc64.devel,gmane.linux.ports.riscv,gmane.linux.ports.sh.devel,gmane.linux.ports.sparc,gmane.linux.drivers.devicetree,gmane.linux.kernel.cross-arch,gmane.linux.kernel.mm |
|---|---|
| Message-ID | <[email protected]> |
On 16 Jul 2024, at 7:13, Mike Rapoport wrote: > From: "Mike Rapoport (Microsoft)" <[email protected]> > > Move numa_emulation codfrom arch/x86 to mm/numa_emulation.c > > This code will be later reused by arch_numa. > > No functional changes. > > Signed-off-by: Mike Rapoport (Microsoft) <[email protected]> > --- > arch/x86/Kconfig | 8 -------- > arch/x86/include/asm/numa.h | 12 ------------ > arch/x86/mm/Makefile | 1 - > arch/x86/mm/numa_internal.h | 11 ----------- > include/linux/numa_memblks.h | 17 +++++++++++++++++ > mm/Kconfig | 8 ++++++++ > mm/Makefile | 1 + > mm/numa_emulation.c | 4 +--- > 8 files changed, 27 insertions(+), 35 deletions(-) After this code move, the document of numa=fake= should be moved from Documentation/arch/x86/x86_64/boot-options.rst to Documentation/admin-guide/kernel-parameters.txt too. Something like: diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index bc55fb55cd26..ce3659289b5e 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -4158,6 +4158,18 @@ Disable NUMA, Only set up a single NUMA node spanning all memory. + numa=fake=<size>[MG] + If given as a memory unit, fills all system RAM with nodes of + size interleaved over physical nodes. + + numa=fake=<N> + If given as an integer, fills all system RAM with N fake nodes + interleaved over physical nodes. + + numa=fake=<N>U + If given as an integer followed by 'U', it will divide each + physical node into N emulated nodes. + numa_balancing= [KNL,ARM64,PPC,RISCV,S390,X86] Enable or disable automatic NUMA balancing. Allowed values are enable and disable diff --git a/Documentation/arch/x86/x86_64/boot-options.rst b/Documentation/arch/x86/x86_64/boot-options.rst index 137432d34109..98d4805f0823 100644 --- a/Documentation/arch/x86/x86_64/boot-options.rst +++ b/Documentation/arch/x86/x86_64/boot-options.rst @@ -170,18 +170,6 @@ NUMA Don't parse the HMAT table for NUMA setup, or soft-reserved memory partitioning. - numa=fake=<size>[MG] - If given as a memory unit, fills all system RAM with nodes of - size interleaved over physical nodes. - - numa=fake=<N> - If given as an integer, fills all system RAM with N fake nodes - interleaved over physical nodes. - - numa=fake=<N>U - If given as an integer followed by 'U', it will divide each - physical node into N emulated nodes. - ACPI ==== Best Regards, Yan, Zi
signature.asc
(application/pgp-signature, 854 B)
-----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEh7yFAW3gwjwQ4C9anbJR82th+ooFAmaajj8PHHppeUBudmlk aWEuY29tAAoJEJ2yUfNrYfqKi50P/2StnFfVhyfIidxi4I4PviEIp07lK+a0HhUj GiUL0AoGmg41VTNcrPoAVr+L2nm5s7aAAswaJWre5Tg3suLl5ONshbWi5yf66f4C VhHdLA8XFmx40SaWkXjIz/80fhCZtfSI+8FQijjTllZyxVwpOZRZomUJoKJrndwJ doWGtBIxAMCgLBg+cZcx2nLCFP2Wx7pTXwL6mzPkmWvn514VtFOO7OyC6v6+b8e6 6PIs+lXBh1bQIsCdvbK3TlNMH0CQpEjD+YQbVzDG3sp2nQQfDxopYlfwZPZM9wzI Ty1jJ9GU1+B9Ex7n02ApOJSUbqB3DnoYQ3wmyZj/kxi/FJDj/xPffmpCIr6wo5SS 1SvP1UP4aEsTjrIIwctWDvu3sII3/kjTyrHBM9PRC86lhcU8sHV9vtreDn3ftuv+ bObTSTqi/XC0U25H3yVJCZscFflEfyYgtHpN4++Qh50rWR5yCe7M+nycJ+vmZQsK pp0fqQzABrterk06dkC88PFVRHhR78A3JbtCpILrBkUFNfuOjPj9tcc+yKtaiL0J 1rbL+ZS5xF86UYWN/S1ooLCYQwB6k+CL5dvOzqScJB6Q7yCcRsFaSy+DM87kfJVo 0VHeaXSxP0o1TgBWwq4guExScJ9otSZgS0ymc+aRiF2weG4ia4hjBH6ajBFv4wst rYpx8igp =Qe2B -----END PGP SIGNATURE-----