Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add simple NUMA support #164

Merged
merged 2 commits into from
Apr 22, 2022
Merged

add simple NUMA support #164

merged 2 commits into from
Apr 22, 2022

Conversation

umezawatakeshi
Copy link
Contributor

@umezawatakeshi umezawatakeshi commented Apr 21, 2022

part of cybozu-go/neco#1977

Signed-off-by: UMEZAWA Takeshi takeshi-umezawa@cybozu.co.jp

Signed-off-by: UMEZAWA Takeshi <takeshi-umezawa@cybozu.co.jp>
docs/resource.md Outdated Show resolved Hide resolved
if c.numa.nodes != 0 {
cpuPerNode := c.smp.cpus / c.numa.nodes
for i := 0; i < c.numa.nodes; i++ {
params = append(params, "-numa", fmt.Sprintf("node,cpus=%d-%d", cpuPerNode*i, cpuPerNode*(i+1)-1))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether this is valid for the latest QEMU.
It would be OK to care only after a user has complained about this.
https://www.qemu.org/docs/master/about/removed-features.html#numa-node-without-memory-specified-removed-in-5-2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... it may seem a problem. Ubuntu 20.04 uses QEMU 4.2 but Ubuntu 22.04 uses QEMU 6.2.

Signed-off-by: UMEZAWA Takeshi <takeshi-umezawa@cybozu.co.jp>
Copy link
Contributor

@morimoto-cybozu morimoto-cybozu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@umezawatakeshi umezawatakeshi merged commit ea7a798 into main Apr 22, 2022
@umezawatakeshi umezawatakeshi deleted the simple-numa-support branch April 22, 2022 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants