From: David Hildenbrand <dhildenb@redhat.com>
To: chang-liu22@mails.tsinghua.edu.cn, linux-mm@kvack.org
Subject: Re: Is it possible to load kernel code to a specific NUMA node when booting?
Date: Mon, 27 May 2024 15:37:08 +0200 [thread overview]
Message-ID: <16477bf6-27aa-499a-b29b-307acb4c042b@redhat.com> (raw)
In-Reply-To: <40d77047.5269a.18f7a0336a0.Coremail.chang-liu22@mails.tsinghua.edu.cn>
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
prev parent reply other threads:[~2024-05-27 13:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-15 2:09 chang-liu22
2024-05-27 13:37 ` David Hildenbrand [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16477bf6-27aa-499a-b29b-307acb4c042b@redhat.com \
--to=dhildenb@redhat.com \
--cc=chang-liu22@mails.tsinghua.edu.cn \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox