Skip to content

Commit bf1a7d8

Browse files
committed
docs: Update documentation on balloon device
Add notes around known limitations of the balloon device Signed-off-by: Jack Thomson <[email protected]>
1 parent 525e686 commit bf1a7d8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/ballooning.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,17 @@ cannot be enabled later by providing a `polling_interval` non-zero value.
263263
Furthermore, if the balloon was configured with statistics pre-boot through a
264264
non-zero `stats_polling_interval_s` value, the statistics cannot be disabled
265265
through a `polling_interval` value of zero post-boot.
266+
267+
## Balloon Caveats
268+
269+
- Firecracker has no control over the speed of inflation or deflation; this is dictated by the guest kernel driver.
270+
271+
- The balloon will continually attempt to reach its target size, which can be a CPU-intensive process. It is therefore
272+
recommended to set realistic targets or, after a period of stagnation in the inflation, update the target size
273+
to be close to the inflated size.
274+
275+
- The `deflate_on_oom` flag is a mechanism to prevent the guest from crashing or terminating processes; it is not
276+
meant to be used continually to free memory. Doing this will be a CPU-intensive process, as the balloon driver is
277+
designed to release memory slowly. This is also compounded if the balloon has yet to reach its target size, as it will
278+
attempt to inflate while also deflating.
279+

0 commit comments

Comments
 (0)