Skip to content

fix(orchestrator): enable balloon DeflateOnOom to prevent guest OOM - #3665

Open
dajiaohuang wants to merge 1 commit into
e2b-dev:mainfrom
dajiaohuang:fix/deflateonoom-true
Open

dajiaohuang wants to merge 1 commit into
e2b-dev:mainfrom
dajiaohuang:fix/deflateonoom-true

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

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.

Fix

Set DeflateOnOom = true to enable automatic balloon deflation when the guest is under memory pressure. This is Gap 2 from issue #3379, which is the trivial fix among the three gaps identified.

Related issue

Fixes #3379

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 e2b-dev#3379
@cla-bot

cla-bot Bot commented Sep 25, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @dajiaohuang on file. You can sign our CLA at https://e2b.dev/docs/cla . Once you've signed, post a comment here that says '@cla-bot check'

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(placement,fc): memory-unaware scheduling risks host OOM; balloon DeflateOnOom should be true

1 participant