Linux virtualization list
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Virtio-balloon Improvement
@ 2017-10-20 11:54 Wei Wang
  0 siblings, 0 replies; 16+ messages in thread
From: Wei Wang @ 2017-10-20 11:54 UTC (permalink / raw)
  To: mst, penguin-kernel, mhocko, linux-kernel, linux-mm,
	virtualization

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.

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(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-11-03  8:35 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1508500466-21165-1-git-send-email-wei.w.wang@intel.com>
2017-10-20 11:54 ` [PATCH v1 1/3] virtio-balloon: replace the coarse-grained balloon_lock Wei Wang
2017-10-20 11:54 ` [PATCH v1 2/3] virtio-balloon: deflate up to oom_pages on OOM Wei Wang
2017-10-20 11:54 ` [PATCH v1 3/3] virtio-balloon: stop inflating when OOM occurs Wei Wang
2017-10-22  3:19 ` [PATCH v1 0/3] Virtio-balloon Improvement Michael S. Tsirkin
     [not found] ` <1508500466-21165-3-git-send-email-wei.w.wang@intel.com>
2017-10-22  3:21   ` [PATCH v1 2/3] virtio-balloon: deflate up to oom_pages on OOM Michael S. Tsirkin
     [not found]   ` <20171022062119-mutt-send-email-mst@kernel.org>
2017-10-22  4:11     ` Tetsuo Handa
     [not found]     ` <201710221311.FFI17148.VStOJQLHOFFMOF@I-love.SAKURA.ne.jp>
2017-10-22 11:31       ` Wei Wang
     [not found] ` <1508500466-21165-2-git-send-email-wei.w.wang@intel.com>
2017-10-22  5:20   ` [PATCH v1 1/3] virtio-balloon: replace the coarse-grained balloon_lock Tetsuo Handa
     [not found]   ` <201710221420.FHG17654.OOMFQSFJVFHLtO@I-love.SAKURA.ne.jp>
2017-10-22 11:24     ` Wei Wang
     [not found]     ` <59EC7FF5.6070906@intel.com>
2017-10-22 11:50       ` Tetsuo Handa
     [not found]       ` <201710222050.GIF35945.FHOMQFOVSFLtOJ@I-love.SAKURA.ne.jp>
2017-10-24  1:46         ` Wei Wang
     [not found] ` <1508500466-21165-4-git-send-email-wei.w.wang@intel.com>
2017-10-22 17:13   ` [PATCH v1 3/3] virtio-balloon: stop inflating when OOM occurs Michael S. Tsirkin
     [not found]   ` <20171022062159-mutt-send-email-mst@kernel.org>
2017-10-24  1:58     ` Wei Wang
     [not found] ` <20171022061307-mutt-send-email-mst@kernel.org>
2017-10-22 11:19   ` [PATCH v1 0/3] Virtio-balloon Improvement Wei Wang
2017-11-03  8:35   ` Wei Wang
2017-10-20 11:54 Wei Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox