-
Notifications
You must be signed in to change notification settings - Fork 185
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
memory: topology: expose per-numa memory #268
Conversation
df10a08
to
9c86f7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @fromanirh! Left some comments/questions/suggestions inline :)
Thanks for your early feedback @jaypipes ! you raise very valid points and this is totally consider moving forward. At very least I'll most likely remove the hugepage portion from this PR - it wasn't requested by the issue I'm trying to fix anyway. |
0ecf508
to
34b1055
Compare
2e702ed
to
8f0a67d
Compare
@jaypipes I think this PR is ready for another round of review. I removed all the hugepage reporting (it was at very least too premature, sorry for the noise) and fixed the pending items I had. |
8f0a67d
to
21d2581
Compare
2537b76
to
2b03367
Compare
@jaypipes - not urgent at all, but I think this PR is ready for review, so just keeping it on our radar |
This patch wants to add memory informations on topology.Node, so we can have per-NUMA-zone memory information. In order to do so, we extract a `memory.Area` struct from `memory.Info` to describe the basic properties of a memory zone, and we add it to `topology.Node`. In the future, we may want to add (or move) more fields to this basic building block, and we will get them for free in both system-wide and per-numa memory info. Fixes: jaypipes#200 Signed-off-by: Francesco Romani <[email protected]>
We can use `ctx.Warn` instead of raw calls to Fprintf. This patch does that in order to make the code base more regular. Signed-off-by: Francesco Romani <[email protected]>
2b03367
to
713a8e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, @fromanirh :) 👍
Thanks! |
This patch wants to add memory informations on topology.Node,
so we can have per-NUMA-zone memory information.
WIP: tests are broken (and more needs to come), doc is missing,
API is provisional. The basic concepts are there, though.
Signed-off-by: Francesco Romani [email protected]