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

CPU% limit is very disproportional when host frequency scaling is in effect #138

Open
LekKit opened this issue Jul 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working host issue Issue caused by host OS or setup

Comments

@LekKit
Copy link
Owner

LekKit commented Jul 9, 2024

The issue

  • Setting RVVM_OPT_MAX_CPU_CENT to a value below 70-80% leads to guest CPU slowing down much more than actual CPU percentage requested on host machines with frequency scaling

Steps to reproduce

  • Set non-performance governor
  • rvvm_set_opt(machine, RVVM_OPT_MAX_CPU_CENT, 50);
  • The guest is actually much slower than half of the peak CPU speed

Investigation

  • RVVM has the assumption that during any given timeslice host CPU does the same amount of work
  • Host governor has the assumption that when a process consumes <100% of CPU, frequency might be lowered since that process is likely doing fixed amount of work
  • Lowering frequency reduces the amount of work performed during RVVM guest CPU timeslice, which is now disproportionate to the actual peak host CPU speed

Workarounds

  • Use performance governor on Linux host
  • Set performance mode on Windows host
@LekKit LekKit added bug Something isn't working host issue Issue caused by host OS or setup labels Jul 9, 2024
@LekKit LekKit self-assigned this Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working host issue Issue caused by host OS or setup
Projects
None yet
Development

No branches or pull requests

1 participant