Skip to content

Commit

Permalink
Bump default CPU cores
Browse files Browse the repository at this point in the history
To prevent frustrations like #68
  • Loading branch information
fkorotkov committed May 18, 2022
1 parent ea4fb9a commit 430782c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/tart/VM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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),
memorySizeMin: requirements.minimumSupportedMemorySize
)
try config.save(toURL: vmDir.configURL)
Expand Down

0 comments on commit 430782c

Please sign in to comment.