Monorepo for Tangled tangled.org
2

Configure Feed

Select the types of activity you want to include in your feed.

spindle/microvm: add a certain amount of memory as buffer for qemu / slirp4netns into budget

Signed-off-by: dawn <dawn@tangled.org>

+4 -1
+4 -1
spindle/engines/microvm/budget.go
··· 10 10 "tangled.org/core/spindle/models" 11 11 ) 12 12 13 + // memory buffer for qemu process / slirp4netns itself 14 + const runnerBufferMiB = 96 15 + 13 16 type Resources struct { 14 17 MemoryMiB int64 15 18 VCPUs int64 ··· 84 87 diskMiB += volume.SizeMiB 85 88 } 86 89 return Resources{ 87 - MemoryMiB: int64(spec.MemoryMiB), 90 + MemoryMiB: int64(spec.MemoryMiB) + runnerBufferMiB, 88 91 VCPUs: int64(spec.VCPUs), 89 92 DiskMiB: diskMiB, 90 93 }