From 1db376bbc2359602e39e2994bc3e097923fde584 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Dec 2007 22:25:37 +0000 Subject: 2007-12-30 Samuel Thibault * vm/vm_pageout.h (VM_PAGE_EXTERNAL_LIMIT): Increase to 2/3 free memory. (VM_PAGE_EXTERNAL_TARGET): Increase to 1/2 free memory. --- debian/patches/14_alloc_params.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'debian/patches') diff --git a/debian/patches/14_alloc_params.patch b/debian/patches/14_alloc_params.patch index d2ce0cf..836c6f3 100644 --- a/debian/patches/14_alloc_params.patch +++ b/debian/patches/14_alloc_params.patch @@ -3,6 +3,8 @@ * linux/dev/glue/block.c (MAX_BUF): Set to sane stack-friendly 8 instead of blindly following VM_MAP_COPY_PAGE_LIST_MAX. * vm/vm_map.h (VM_MAP_COPY_PAGE_LIST_MAX): Increase to 64. + * vm/vm_pageout.h (VM_PAGE_EXTERNAL_LIMIT): Increase to 2/3 free memory. + (VM_PAGE_EXTERNAL_TARGET): Increase to 1/2 free memory. 2007-08-20 Samuel Thibault @@ -91,3 +93,22 @@ diff -u -p -r1.2.4.9 vm_object.c typedef struct vm_map_copy { int type; +--- vm/vm_pageout.c 3 Dec 2006 21:50:21 -0000 1.7.2.5 ++++ vm/vm_pageout.c 30 Dec 2007 22:20:30 -0000 +@@ -111,14 +111,14 @@ + */ + + #ifndef VM_PAGE_EXTERNAL_LIMIT +-#define VM_PAGE_EXTERNAL_LIMIT(free) ((free) / 2) ++#define VM_PAGE_EXTERNAL_LIMIT(free) (((free) * 2) / 3) + #endif /* VM_PAGE_EXTERNAL_LIMIT */ + + /* Attempt to keep the number of externally paged pages less + * than vm_pages_external_target. + */ + #ifndef VM_PAGE_EXTERNAL_TARGET +-#define VM_PAGE_EXTERNAL_TARGET(free) ((free) / 4) ++#define VM_PAGE_EXTERNAL_TARGET(free) ((free) / 2) + #endif /* VM_PAGE_EXTERNAL_TARGET */ + + /* -- cgit v1.2.3