Skip to content

Virtio-balloon Improvement

Wei Wang linux-mm lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio-balloon: replace the coarse-grained balloon_lockdrivers/virtio/virtio_balloon.c+53 -490 replies
1/3virtio-balloon: replace the coarse-grained balloon_lockdrivers/virtio/virtio_balloon.c+53 -498 replies
2/3virtio-balloon: deflate up to oom_pages on OOMdrivers/virtio/virtio_balloon.c+9 -50 replies
2/3virtio-balloon: deflate up to oom_pages on OOMdrivers/virtio/virtio_balloon.c+9 -56 replies
3/3virtio-balloon: stop inflating when OOM occursdrivers/virtio/virtio_balloon.c+29 -40 replies
3/3virtio-balloon: stop inflating when OOM occursdrivers/virtio/virtio_balloon.c+29 -44 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/3] Virtio-balloon Improvement

This patch series intends to summarize the recent contributions made by Michael S. Tsirkin, Tetsuo Handa, Michal Hocko etc. via reporting and discussing the related deadlock issues on the mailinglist. Please check each patch for details.

Quoted 1 line

From a high-level point of view, this patch series achieves:

1) eliminate the deadlock issue fundamentally caused by the inability to run leak_balloon and fill_balloon concurrently;
2) enable OOM to release more than 256 inflated pages; and
3) stop inflating when the guest is under severe memory pressure (i.e. OOM).

Here is an example of the benefit brought by this patch series:
The guest sets virtio_balloon.oom_pages=100000. When the host requests to inflate 7.9G of an 8G idle guest, the guest can still run normally since OOM can guarantee at least 100000 pages (400MB) for the guest. Without the above patches, the guest will kill all the killable processes and fall into kernel panic finally.

Wei Wang (3):
virtio-balloon: replace the coarse-grained balloon_lock
virtio-balloon: deflate up to oom_pages on OOM
virtio-balloon: stop inflating when OOM occurs

 drivers/virtio/virtio_balloon.c | 149 ++++++++++++++++++++++++----------------
 1 file changed, 91 insertions(+), 58 deletions(-)
Signature · 1 line
2.7.4