Skip to content

add GetMemoryDomainsBySocket and TopologyMaps #364

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

brinkcoder
Copy link

When adding the numastats collector to our instance, we encountered the following error: METRICDATA/CCMS > TODO: unhandled case: native-scope=memoryDomain, requested-scope=socket. To address this, we added the GetMemoryDomainsBySocket function to cluster.go, which resolves the issue.

While reviewing cluster.go, we noticed triple-nested loops accompanied by comments such as TODO: Optimize this, there must be a more efficient way/algorithm. This PR introduces that optimization.

We implemented a topology mapping for each cluster and subcluster, which is initialized and cached in memory. This allows buildQueries and buildNodeQueries to perform simple lookups instead of iterating over every HWThread. After running this change in our environment for one week, we observed no error messages in the logs. However, we’d appreciate it if the maintainers could review this to ensure we haven’t inadvertently introduced any issues.

add memoryDomain to graph query and fix typo for scope granularity
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.

1 participant