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

topology: Fall back to cache 0 #196

Merged
merged 1 commit into from
Mar 21, 2024
Merged

topology: Fall back to cache 0 #196

merged 1 commit into from
Mar 21, 2024

Conversation

Byte-Lab
Copy link
Contributor

As described in #195, apparently some chips don't export information about their cache topology. There's not much we can do if we don't have that information, so let's just assume a unified cache per node if that happens.

Andrea suggested this patch -- I'm applying exactly what he proposed, with a slightly modified comment.

Suggested-by: Andrea Righi andrea.righi@canonical.com

As described in #195, apparently
some chips don't export information about their cache topology. There's
not much we can do if we don't have that information, so let's just
assume a unified cache per node if that happens.

Andrea suggested this patch -- I'm applying exactly what he proposed,
with a slightly modified comment.

Suggested-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: David Vernet <void@manifault.com>
@Byte-Lab Byte-Lab requested a review from arighi March 21, 2024 16:14
Copy link
Collaborator

@arighi arighi left a comment

Choose a reason for hiding this comment

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

That was basically tested already in #195, the change is the same as the one that I suggested with the addition of a nice comment.

Therefore, LGTM.

Thanks!

@Byte-Lab Byte-Lab merged commit 5bfd90b into main Mar 21, 2024
1 check passed
@Byte-Lab Byte-Lab deleted the topo_fallback branch March 21, 2024 16:18
@htejun
Copy link
Contributor

htejun commented Mar 23, 2024

We probably should further investigate why the cache ID is missing. Maybe we can ask for lstopo output?

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.

None yet

3 participants