From: chang-liu22@mails.tsinghua.edu.cn
To: linux-mm@kvack.org
Subject: Is it possible to load kernel code to a specific NUMA node when booting?
Date: Wed, 15 May 2024 10:09:42 +0800 (GMT+08:00) [thread overview]
Message-ID: <40d77047.5269a.18f7a0336a0.Coremail.chang-liu22@mails.tsinghua.edu.cn> (raw)
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
next reply other threads:[~2024-05-15 2:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-15 2:09 chang-liu22 [this message]
2024-05-27 13:37 ` David Hildenbrand
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=40d77047.5269a.18f7a0336a0.Coremail.chang-liu22@mails.tsinghua.edu.cn \
--to=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