Skip to content

Extend virtio-balloon for fast (de)inflating & fast live migration

Wei Wang kvm linux-mm lkml qemu-devel virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v7 Latest5 patches 46 repliesIn review

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5virtio-balloon: rework deflate to add page to a listdrivers/virtio/virtio_balloon.c+8 -140 replies
1/5virtio-balloon: rework deflate to add page to a listdrivers/virtio/virtio_balloon.c+8 -140 replies
2/5virtio-balloon: VIRTIO_BALLOON_F_CHUNK_TRANSFERinclude/uapi/linux/virtio_balloon.h+12 -04 replies
2/5virtio-balloon: VIRTIO_BALLOON_F_CHUNK_TRANSFERinclude/uapi/linux/virtio_balloon.h+12 -00 replies
3/5virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFERdrivers/virtio/virtio_balloon.c+323 -2836 replies
3/5virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFERdrivers/virtio/virtio_balloon.c+323 -280 replies
4/5virtio-balloon: define flags and head for host request vqinclude/uapi/linux/virtio_balloon.h+22 -02 replies
4/5virtio-balloon: define flags and head for host request vqinclude/uapi/linux/virtio_balloon.h+22 -00 replies
5/5This patch contains two parts:drivers/virtio/virtio_balloon.c include/linux/mm.h mm/page_alloc.c+255 -54 replies
5/5This patch contains two parts:drivers/virtio/virtio_balloon.c include/linux/mm.h mm/page_alloc.c+255 -50 replies

Reviews trailers per patch

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

Read the v7 thread

Cover letter [PATCH v7 kernel 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration

Take over this work from Liang.

This patch series implements two optimizations: 1) transfer pages in chuncks between the guest and host; 1) transfer the guest unused pages to the host so that they can be skipped to migrate in live migration.

Please check patch 0003 for more details about optimization 1).

For an idle guest with 8GB RAM, optimization 2) can help shorten the total live migration time from 2Sec to about 500ms in 10Gbps network environment. For a guest with quite a lot of page cache and little unused pages, it's possible to let the guest drop its page cache before live migration, this case can benefit from this new feature too.

Cc Michael S. Tsirkin <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Cornelia Huck <[email protected]>
Cc Amit Shah <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Andrea Arcangeli <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Liang Li <[email protected]>
Cc Wei Wang <[email protected]>

Liang Li (5):
virtio-balloon: rework deflate to add page to a list
virtio-balloon: VIRTIO_BALLOON_F_CHUNK_TRANSFER
virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER
virtio-balloon: define flags and head for host request vq This patch contains two parts:

 drivers/virtio/virtio_balloon.c     | 510 ++++++++++++++++++++++++++++++++----
 include/linux/mm.h                  |   3 +
 include/uapi/linux/virtio_balloon.h |  34 +++
 mm/page_alloc.c                     | 120 +++++++++
 4 files changed, 620 insertions(+), 47 deletions(-)
Signature · 7 lines
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>