From 6555fba33522172a76866c72503f850bae637266 Mon Sep 17 00:00:00 2001 From: "shuwen.wu" Date: Fri, 25 Sep 2026 16:34:31 +0800 Subject: [PATCH] fix(orchestrator): enable balloon DeflateOnOom to prevent guest OOM When the guest approaches its memory ceiling, the virtio-balloon was not automatically deflated to return previously reclaimed pages. This caused guest OOM kills even though the host could give pages back instantly by deflating the balloon. Set DeflateOnOom = true to enable automatic balloon deflation when the guest is under memory pressure. Fixes #3379 --- packages/orchestrator/pkg/sandbox/fc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/orchestrator/pkg/sandbox/fc/client.go b/packages/orchestrator/pkg/sandbox/fc/client.go index 662bca1d3d..76c08e3079 100644 --- a/packages/orchestrator/pkg/sandbox/fc/client.go +++ b/packages/orchestrator/pkg/sandbox/fc/client.go @@ -454,7 +454,7 @@ func (c *apiClient) installBalloon(ctx context.Context, freePageReporting, freeP defer span.End() amountMib := int64(0) - deflateOnOom := false + deflateOnOom := true balloonConfig := operations.PutBalloonParams{ Context: ctx,