Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sources/Containerization/LinuxContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ extension LinuxContainer {

// Calculate VM memory with overhead for the guest agent.
// The container cgroup limit stays at the requested memory, but the VM
// gets an additional 50MB for the guest agent (could be higher, could be lower
// but this is a decent baseline for now).
let guestAgentOverhead: UInt64 = 50.mib()
// gets an additional 75MiB for the guest agent (could be higher, could
// be lower but this is a decent baseline for now).
let guestAgentOverhead: UInt64 = 75.mib()
let mib: UInt64 = 1.mib()
let vmMemory = (self.memoryInBytes + guestAgentOverhead + mib - 1) & ~(mib - 1)

Expand Down
4 changes: 2 additions & 2 deletions vminitd/Sources/vminitd/AgentCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ struct AgentCommand: AsyncParsableCommand {
}
t.start()

let eg = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)
let blockingPool = NIOThreadPool(numberOfThreads: System.coreCount)
let eg = MultiThreadedEventLoopGroup(numberOfThreads: 1)
let blockingPool = NIOThreadPool(numberOfThreads: 2)
blockingPool.start()
let server = Initd(log: log, group: eg, blockingPool: blockingPool)

Expand Down
Loading