virtio-balloon: add deflate_on_oom support

Sometimes we need balloon deflate automatically to give memory
back to guest, especially for some low priority guest processes
under memory pressure. Enable deflate_on_oom to support this.

Usage: --balloon "size=0,deflate_on_oom=on" \

Signed-off-by: Fei Li <lifei.shirley@bytedance.com>
This commit is contained in:
Fei Li
2021-01-21 19:22:29 +08:00
committed by Sebastien Boeuf
parent a6fe4aa7e9
commit aa27f0e743
4 changed files with 34 additions and 4 deletions

View File

@@ -745,6 +745,10 @@ components:
size:
type: integer
format: int64
deflate_on_oom:
type: boolean
default: false
description: Whether the balloon should deflate when the guest is under memory pressure.
FsConfig:
required: