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

Introduce reserve / pinning / affinity of CPUs #609

Open
zimmski opened this issue Sep 22, 2023 · 4 comments
Open

Introduce reserve / pinning / affinity of CPUs #609

zimmski opened this issue Sep 22, 2023 · 4 comments
Labels
not possible atm Not possible at the moment question Further information is requested

Comments

@zimmski
Copy link

zimmski commented Sep 22, 2023

We currently try to fix problems around benchmarking for our MacOS VMs that use Tart. One problem i noticed is that there is no option to "reserve" CPU cores for the VMs nor to pin them on the same cores. Would be nice if such options could be introduced or at least documented on why they do not exist.

@fkorotkov fkorotkov added question Further information is requested not possible atm Not possible at the moment labels Sep 22, 2023
@fkorotkov
Copy link
Contributor

Unfortunately, this is behaviour of the underlying Virtualizaiton.Framework which I tried to document in #584

We also see disturbances when running on a M2 chip with 4 performance and 4 efficiency cores. When running a single VM with 4 cores it will use all the performance cores and when there are 2 VMs they will split 2 and 2 cores which lowers the performance.

What kind of testing are you performing? Do you run two VMs at a time?

@theonetheycallneo
Copy link

@fkorotkov @zimmski Is there a way to limit CPUs or default to use them all? Also, is there a way to set the RAM size for memory?

@fkorotkov
Copy link
Contributor

There is no way to default to use all the available resource. You can configure CPUs and memory via tart set though. Please refer to tart set --help.

@ruimarinho
Copy link
Contributor

@fkorotkov https://eclecticlight.co/2023/10/23/how-does-macos-manage-virtual-cores-on-apple-silicon/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not possible atm Not possible at the moment question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants