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

Caculate vCPU count by using core per cluster #1758

Merged
merged 1 commit into from
Feb 18, 2022
Merged

Conversation

lubaihua33
Copy link
Collaborator

The concept of a "cluster" of CPUs was recently added in the Linux 5.16 kernel in commit c5e22feffdd7. There is "Core(s) per cluster" and "Cluster(s)" in the output of lscpu. If so, calculate vCPU count by core_per_cluster_count * cluster_count * thread_per_core_count

lisa/tools/lscpu.py Outdated Show resolved Hide resolved
lisa/tools/lscpu.py Outdated Show resolved Hide resolved
lisa/tools/lscpu.py Outdated Show resolved Hide resolved
@squirrelsc squirrelsc merged commit ec92914 into main Feb 18, 2022
@squirrelsc squirrelsc deleted the baihua/cpu_count branch February 18, 2022 03:50
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

2 participants