login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
13
Re: [RFC][PATCH 1/2] Linux/Guest unmapped page cache control
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Balbir Singh
Subject:
Re: [RFC][PATCH 1/2] Linux/Guest unmapped page cache control
Date: Sunday, June 13, 2010 - 11:31 am
* Balbir Singh <balbir@linux.vnet.ibm.com> [2010-06-08 21:21:46]:
quoted text
> Selectively control Unmapped Page Cache (nospam version) > > From: Balbir Singh <balbir@linux.vnet.ibm.com> > > This patch implements unmapped page cache control via preferred > page cache reclaim. The current patch hooks into kswapd and reclaims > page cache if the user has requested for unmapped page control. > This is useful in the following scenario > > - In a virtualized environment with cache=writethrough, we see > double caching - (one in the host and one in the guest). As > we try to scale guests, cache usage across the system grows. > The goal of this patch is to reclaim page cache when Linux is running > as a guest and get the host to hold the page cache and manage it. > There might be temporary duplication, but in the long run, memory > in the guests would be used for mapped pages. > - The option is controlled via a boot option and the administrator > can selectively turn it on, on a need to use basis. > > A lot of the code is borrowed from zone_reclaim_mode logic for > __zone_reclaim(). One might argue that the with ballooning and > KSM this feature is not very useful, but even with ballooning, > we need extra logic to balloon multiple VM machines and it is hard > to figure out the correct amount of memory to balloon. With these > patches applied, each guest has a sufficient amount of free memory > available, that can be easily seen and reclaimed by the balloon driver. > The additional memory in the guest can be reused for additional > applications or used to start additional guests/balance memory in > the host. > > KSM currently does not de-duplicate host and guest page cache. The goal > of this patch is to help automatically balance unmapped page cache when > instructed to do so. > > There are some magic numbers in use in the code, UNMAPPED_PAGE_RATIO > and the number of pages to reclaim when unmapped_page_control argument > is supplied. These numbers were chosen to avoid aggressiveness in > reaping page cache ever so frequently, at the same time providing control. > > The sysctl for min_unmapped_ratio provides further control from > within the guest on the amount of unmapped pages to reclaim. >
Are there any major objections to this patch? -- Three Cheers, Balbir --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC/T/D][PATCH 0/2] KVM page cache optimization (v2)
, Balbir Singh
, (Tue Jun 8, 8:51 am)
[RFC][PATCH 1/2] Linux/Guest unmapped page cache control
, Balbir Singh
, (Tue Jun 8, 8:51 am)
[RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped page ...
, Balbir Singh
, (Tue Jun 8, 8:51 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Thu Jun 10, 2:43 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Thu Jun 10, 7:25 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Dave Hansen
, (Thu Jun 10, 5:07 pm)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, KAMEZAWA Hiroyuki
, (Thu Jun 10, 6:54 pm)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Thu Jun 10, 9:46 pm)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Thu Jun 10, 9:56 pm)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, KAMEZAWA Hiroyuki
, (Thu Jun 10, 10:08 pm)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Thu Jun 10, 11:14 pm)
Re: [RFC][PATCH 1/2] Linux/Guest unmapped page cache control
, Balbir Singh
, (Sun Jun 13, 11:31 am)
Re: [RFC][PATCH 1/2] Linux/Guest unmapped page cache control
, KAMEZAWA Hiroyuki
, (Sun Jun 13, 5:28 pm)
Re: [RFC][PATCH 1/2] Linux/Guest unmapped page cache control
, Balbir Singh
, (Mon Jun 14, 12:36 am)
Re: [RFC][PATCH 1/2] Linux/Guest unmapped page cache control
, KAMEZAWA Hiroyuki
, (Mon Jun 14, 12:49 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Mon Jun 14, 1:09 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Mon Jun 14, 1:48 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Mon Jun 14, 6:01 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Dave Hansen
, (Mon Jun 14, 8:12 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Dave Hansen
, (Mon Jun 14, 8:33 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Mon Jun 14, 8:44 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Mon Jun 14, 9:58 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Dave Hansen
, (Mon Jun 14, 10:09 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Mon Jun 14, 10:16 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Mon Jun 14, 10:45 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Dave Hansen
, (Mon Jun 14, 10:58 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Mon Jun 14, 11:58 pm)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Tue Jun 15, 12:11 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Tue Jun 15, 12:12 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Tue Jun 15, 12:52 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Tue Jun 15, 2:44 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Tue Jun 15, 2:54 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Tue Jun 15, 3:18 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Dave Hansen
, (Tue Jun 15, 7:47 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Avi Kivity
, (Wed Jun 16, 4:39 am)
Re: [RFC/T/D][PATCH 2/2] Linux/Guest cooperative unmapped ...
, Balbir Singh
, (Wed Jun 16, 11:04 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate