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

find memory parents in hwloc-info #612

Closed
bgoglin opened this issue Aug 21, 2023 · 0 comments · Fixed by #614
Closed

find memory parents in hwloc-info #612

bgoglin opened this issue Aug 21, 2023 · 0 comments · Fixed by #614

Comments

@bgoglin
Copy link
Contributor

bgoglin commented Aug 21, 2023

NUMA may be attached at different levels (package, group, cache). The API provides "hwloc_get_memory_parents_depth()" to find that level. It would be nice to have a way to find the "CPU-side" parent from the command-line.

hwloc-info has a --ancestor option that currently accept explicit types. It could be extended to support "cpu-side" to return a first CPU-side parent (i.e. where the NUMA is attached).

hwloc-calc -I and -N would be extended to return something similar ("memory-parent"). That case will require to deduplicate multiple parents in the case of heterogeneous memory (those could even be at different levels). (finding these objects isn't actually useful, the locality is the same anyway)

bgoglin added a commit to bgoglin/hwloc that referenced this issue Aug 22, 2023
…scendants

Allow to select multiple types of ancestors/descendants.

Ref open-mpi#612.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
bgoglin added a commit to bgoglin/hwloc that referenced this issue Aug 22, 2023
Useful for finding where a NUMA is attached:
  $ hwloc-info --ancestor normal --first numa:1
  Package:0

Refs open-mpi#612.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
bgoglin added a commit to bgoglin/hwloc that referenced this issue Aug 28, 2023
…nd --descendants

Allow to select multiple types of ancestors/descendants.

Ref open-mpi#612.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
bgoglin added a commit to bgoglin/hwloc that referenced this issue Aug 28, 2023
Useful for finding where a NUMA is attached:
  $ hwloc-info --ancestor normal --first numa:1
  Package:0

Refs open-mpi#612.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
@bgoglin bgoglin changed the title find memory parents in hwloc-calc and hwloc-info find memory parents in hwloc-info Aug 28, 2023
bgoglin added a commit that referenced this issue Aug 28, 2023
…nd --descendants

Allow to select multiple types of ancestors/descendants.

Ref #612.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
(cherry picked from commit 9d35ec0)

The line checking show_first_only in hwloc_info_recurse_descendants()
is removed and kept for next commit to fix intermediate builds.
bgoglin added a commit that referenced this issue Aug 28, 2023
Useful for finding where a NUMA is attached:
  $ hwloc-info --ancestor normal --first numa:1
  Package:0

Refs #612.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
(cherry picked from commit b67f2f4)

The line checking show_first_only in hwloc_info_recurse_descendants()
was moved from previous commit to that one to fix intermediate builds.
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 a pull request may close this issue.

1 participant