Skip to content

Commit 38cf46f

Browse files
slakkalaastro
authored andcommitted
Enable deflate-on-oom and free-page-reporting for qemu
Signed-off-by: Santtu Lakkala <[email protected]>
1 parent a18d7ba commit 38cf46f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/runners/qemu.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ lib.warnIf (mem == 2048) ''
208208
] ++
209209
lib.optionals (user != null) [ "-user" user ] ++
210210
lib.optionals (socket != null) [ "-qmp" "unix:${socket},server,nowait" ] ++
211-
lib.optionals (balloonMem > 0) [ "-device" "virtio-balloon" ] ++
211+
lib.optionals (balloonMem > 0) [ "-device" "virtio-balloon,free-page-reporting=on,id=balloon0,deflate-on-oom=on" ] ++
212212
builtins.concatMap ({ image, letter, serial, direct, readOnly, ... }:
213213
[ "-drive"
214214
"id=vd${letter},format=raw,file=${image},if=none,aio=io_uring,discard=unmap${

0 commit comments

Comments
 (0)