diff options
author | George Dunlap <george.dunlap@eu.citrix.com> | 2012-06-28 15:18:03 +0100 |
---|---|---|
committer | George Dunlap <george.dunlap@eu.citrix.com> | 2012-06-28 15:18:03 +0100 |
commit | 5a6a7ae5e6d79a72dc6b0b94f39441e64f664193 (patch) | |
tree | 5ac7e1dfddf263e982a5a4b276b6bb7cbc62a772 /tools/libxl/libxl_create.c | |
parent | a8a3ef6318f5fedaf539c77d00db37ef5a7ea7fc (diff) | |
download | xen-5a6a7ae5e6d79a72dc6b0b94f39441e64f664193.tar.gz xen-5a6a7ae5e6d79a72dc6b0b94f39441e64f664193.tar.bz2 xen-5a6a7ae5e6d79a72dc6b0b94f39441e64f664193.zip |
xen,pod: Zero-check recently populated pages (checklast)
When demand-populating pages due to guest accesses, check recently populated
pages to see if we can reclaim them for the cache. This should keep the PoD
cache filled when the start-of-day scrubber is going through.
The number 128 was chosen by experiment. Windows does its page
scrubbing in parallel; while a small nubmer like 4 works well for
single VMs, it breaks down as multiple vcpus are scrubbing different
pages in parallel. Increasing to 128 works well for higher numbers of
vcpus.
v2:
- Wrapped some long lines
- unsigned int for index, unsigned long for array
v3:
- Use PAGE_ORDER_2M instead of 9
- Removed inappropriate use of p2m_pod_zero_check_superpage() return value
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'tools/libxl/libxl_create.c')
0 files changed, 0 insertions, 0 deletions