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

Bump default CPU cores #86

Merged
merged 2 commits into from
May 18, 2022
Merged

Bump default CPU cores #86

merged 2 commits into from
May 18, 2022

Conversation

fkorotkov
Copy link
Contributor

@fkorotkov fkorotkov commented May 18, 2022

To prevent frustrations like #84

To prevent frustrations like #68
@fkorotkov fkorotkov requested a review from edigaryev May 18, 2022 14:32
@fkorotkov
Copy link
Contributor Author

fkorotkov commented May 18, 2022

@edigaryev both me, you and now @ryanbooker experienced the freezes with the default 2 CPUs. Let's bump the default to prevent bad experience when creating VMs from scratch.

@fkorotkov fkorotkov enabled auto-merge (squash) May 18, 2022 14:34
@@ -103,7 +103,8 @@ class VM: NSObject, VZVirtualMachineDelegate, ObservableObject {
// Create config
config = VMConfig(
hardwareModel: requirements.hardwareModel,
cpuCountMin: requirements.minimumSupportedCPUCount,
// allocate at least 4 CPUs because otherwise VMs are frequently freezing
cpuCountMin: max(4, requirements.minimumSupportedCPUCount),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should preserve the cpuCountMin in the VM configuration and update the cpuCount instead, otherwise it won't be possible do reduce the amount of CPU cores via the tart set.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! See 958febf

@fkorotkov fkorotkov merged commit a1bcbdb into main May 18, 2022
@fkorotkov fkorotkov deleted the bump-default-cpu branch May 18, 2022 15:12
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.

2 participants