Skip to content

RFC KVM page cache optimization (v3)

Balbir Singh kvm linux-mm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Linux/Guest unmapped page cache controlinclude/linux/mmzone.h include/linux/swap.h mm/page_alloc.c +1 more+132 -443 replies
2/3Linux/Guest cooperative unmapped page cache controldrivers/virtio/virtio_balloon.c include/linux/gfp.h include/linux/swap.h +3 more+31 -110 replies
3/3QEmu changes to provide balloon hintballoon.c balloon.h hmp-commands.hx +3 more+40 -140 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC][PATCH 0/3] KVM page cache optimization (v3)

This is version 3 of the page cache control patches

From: Balbir Singh <[email protected]>

This series has three patches, the first controls the amount of unmapped page cache usage via a boot parameter and sysctl. The second patch controls page and slab cache via the balloon driver. Both the patches make heavy use of the zone_reclaim() functionality already present in the kernel.

The last patch in the series is against QEmu to make the ballooning hint optional.

V2 was posted a long time back (see http://lwn.net/Articles/391293/)
One of the review suggestions was to make the hint optional (discussed in the community call as well).

I'd appreciate any test results with the patches.

TODO

1. libvirt exploits for optional hint

page-cache-control
balloon-page-cache
provide-memory-hint-during-ballooning

---
 b/balloon.c                       |   18 +++-
 b/balloon.h                       |    4
 b/drivers/virtio/virtio_balloon.c |   17 +++
 b/hmp-commands.hx                 |    7 +
 b/hw/virtio-balloon.c             |   14 ++-
 b/hw/virtio-balloon.h             |    3
 b/include/linux/gfp.h             |    8 +
 b/include/linux/mmzone.h          |    2
 b/include/linux/swap.h            |    3
 b/include/linux/virtio_balloon.h  |    3
 b/mm/page_alloc.c                 |    9 +-
 b/mm/vmscan.c                     |  162 ++++++++++++++++++++++++++++----------
 b/qmp-commands.hx                 |    7 -
 include/linux/swap.h              |    9 --
 mm/page_alloc.c                   |    3
 mm/vmscan.c                       |    2
 16 files changed, 202 insertions(+), 69 deletions(-)
Signature · 8 lines
	Three Cheers,
	Balbir

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