From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46132 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBb8m-000135-BA for qemu-devel@nongnu.org; Thu, 28 Oct 2010 18:40:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBb8k-0000rV-TO for qemu-devel@nongnu.org; Thu, 28 Oct 2010 18:40:12 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:42734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBb8k-0000qu-8l for qemu-devel@nongnu.org; Thu, 28 Oct 2010 18:40:10 -0400 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by e28smtp05.in.ibm.com (8.14.4/8.13.1) with ESMTP id o9SMe4ud029180 for ; Fri, 29 Oct 2010 04:10:04 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9SMe37Q4530350 for ; Fri, 29 Oct 2010 04:10:03 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9SMe3gE009828 for ; Fri, 29 Oct 2010 09:40:03 +1100 From: Balbir Singh Date: Fri, 29 Oct 2010 04:10:02 +0530 Message-Id: <20101028224002.32626.13015.sendpatchset@localhost.localdomain> Subject: [Qemu-devel] [RFC][PATCH 0/3] KVM page cache optimization (v3) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org Cc: linux-mm@kvack.org, qemu-devel@nongnu.org, Balbir Singh This is version 3 of the page cache control patches From: Balbir Singh 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(-) -- Three Cheers, Balbir