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

trace: hv shall provide a tool that can trace vcpu usage in pcpu sharing case #8621

Open
nacui-intel opened this issue Jun 14, 2024 · 0 comments

Comments

@nacui-intel
Copy link
Contributor

Show cpu usage by acrntrace when different vms share the same physical cpu.

nacui-intel added a commit to nacui-intel/acrn-hypervisor that referenced this issue Jun 19, 2024
To maximize the cpu utilization, core 0 is usually shared by service
vm and guest vm. But there are no statistics to show the cpu occupation
of each vm.

This patch is to provide cpu usage statistic for users. To calculate
it, a new trace event is added and marked in scheduling context switch,
accompanying with a new python script to analyze the data from acrntrace
output.

Tracked-On: projectacrn#8621
Signed-off-by: nacui <[email protected]>
Reviewed-by: Junjie Mao <[email protected]>
nacui-intel added a commit to nacui-intel/acrn-hypervisor that referenced this issue Jun 20, 2024
To maximize the cpu utilization, core 0 is usually shared by service
vm and guest vm. But there are no statistics to show the cpu occupation
of each vm.

This patch is to provide cpu usage statistic for users. To calculate
it, a new trace event is added and marked in scheduling context switch,
accompanying with a new python script to analyze the data from acrntrace
output.

Tracked-On: projectacrn#8621
Signed-off-by: nacui <[email protected]>
Reviewed-by: Junjie Mao <[email protected]>
Reviewed-by: Haiwei Li <[email protected]>
acrnsi-robot pushed a commit that referenced this issue Jun 28, 2024
To maximize the cpu utilization, core 0 is usually shared by service
vm and guest vm. But there are no statistics to show the cpu occupation
of each vm.

This patch is to provide cpu usage statistic for users. To calculate
it, a new trace event is added and marked in scheduling context switch,
accompanying with a new python script to analyze the data from acrntrace
output.

Tracked-On: #8621
Signed-off-by: nacui <[email protected]>
Reviewed-by: Junjie Mao <[email protected]>
Reviewed-by: Haiwei Li <[email protected]>
nacui-intel added a commit to nacui-intel/acrn-hypervisor that referenced this issue Aug 7, 2024
This patch adds the description of newly added parameter of acrntrace analyzer,
as well as the user guide that how to analyze the cpu usage of VMs in cpu sharing
case.

Tracked-On: projectacrn#8621

Signed-off-by: Na Cui <[email protected]>
nacui-intel added a commit to nacui-intel/acrn-hypervisor that referenced this issue Aug 7, 2024
This patch adds the description of newly added parameter of acrntrace analyzer,
as well as the user guide that how to analyze the cpu usage of VMs in cpu sharing
case.

Tracked-On: projectacrn#8621

Signed-off-by: Na Cui <[email protected]>
nacui-intel added a commit to nacui-intel/acrn-hypervisor that referenced this issue Aug 28, 2024
This patch adds the description of newly added parameter of acrntrace analyzer,
as well as the user guide that how to analyze the cpu usage of VMs in cpu sharing
case.

Tracked-On: projectacrn#8621

Signed-off-by: Na Cui <[email protected]>
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

No branches or pull requests

1 participant