* Is it possible to load kernel code to a specific NUMA node when booting?
@ 2024-05-15 2:09 chang-liu22
2024-05-27 13:37 ` David Hildenbrand
0 siblings, 1 reply; 2+ messages in thread
From: chang-liu22 @ 2024-05-15 2:09 UTC (permalink / raw)
To: linux-mm
Hi all,
I'm doing a benchmark in Linux kernel. I want to make sure all the benchmarked kernel code is stored in the same NUMA node as the CPU that runs the code. I implement a system call to trigger the execution of the benchmarked kernel code, so I can specify the CPU to run the benchmarked code by binding CPU in userspace. However, I cannot guarantee the kernel code is stored in the same NUMA node as the CPU that runs the benchmark. I wonder is there any way that I can force Linux kernel code to be loaded in a specific NUMA node during the booting process. I've searched "The kernel’s command-line parameters" document (https://docs.kernel.org/admin-guide/kernel-parameters.html) using "numa" as a keyword, but did not find a useful parameter. I'd be very grateful if anyone can help :)
Chang Liu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is it possible to load kernel code to a specific NUMA node when booting?
2024-05-15 2:09 Is it possible to load kernel code to a specific NUMA node when booting? chang-liu22
@ 2024-05-27 13:37 ` David Hildenbrand
0 siblings, 0 replies; 2+ messages in thread
From: David Hildenbrand @ 2024-05-27 13:37 UTC (permalink / raw)
To: chang-liu22, linux-mm
Am 15.05.24 um 04:09 schrieb chang-liu22@mails.tsinghua.edu.cn:
> Hi all,
>
> I'm doing a benchmark in Linux kernel. I want to make sure all the benchmarked kernel code is stored in the same NUMA node as the CPU that runs the code. I implement a system call to trigger the execution of the benchmarked kernel code, so I can specify the CPU to run the benchmarked code by binding CPU in userspace. However, I cannot guarantee the kernel code is stored in the same NUMA node as the CPU that runs the benchmark. I wonder is there any way that I can force Linux kernel code to be loaded in a specific NUMA node during the booting process. I've searched "The kernel’s command-line parameters" document (https://docs.kernel.org/admin-guide/kernel-parameters.html) using "numa" as a keyword, but did not find a useful parameter. I'd be very grateful if anyone can help :)
I recall patches to replicate the kernel code multiple times, once per NUMA
node. See https://lwn.net/Articles/956900/ ("Kernel-text replication on NUMA
systems").
Maybe that helps.
--
Thanks,
David / dhildenb
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-27 13:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-15 2:09 Is it possible to load kernel code to a specific NUMA node when booting? chang-liu22
2024-05-27 13:37 ` David Hildenbrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox