From: Wang Di Date: Tue, 10 May 2011 03:00:38 +0000 (-0700) Subject: LU-15 shrink the cache to alleviate OST memory pressure X-Git-Tag: 2.0.61.0~6 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=491a448008d8f8a4dc61789c14bd96de205f856e LU-15 shrink the cache to alleviate OST memory pressure Shrink file_max_cache_size to alleviate the memory pressure of OST. Change-Id: I34c920cce65cd91f4793383b6563d7a296ec5307 Signed-off-by: wangdi Reviewed-on: http://review.whamcloud.com/523 Tested-by: Hudson Reviewed-by: Oleg Drokin --- diff --git a/lustre/obdfilter/filter_internal.h b/lustre/obdfilter/filter_internal.h index 7c73619..d8cf3f9 100644 --- a/lustre/obdfilter/filter_internal.h +++ b/lustre/obdfilter/filter_internal.h @@ -113,8 +113,7 @@ enum { LPROC_FILTER_LAST, }; -//#define FILTER_MAX_CACHE_SIZE (32 * 1024 * 1024) /* was OBD_OBJECT_EOF */ -#define FILTER_MAX_CACHE_SIZE OBD_OBJECT_EOF +#define FILTER_MAX_CACHE_SIZE (8 * 1024 * 1024) /* We have to pass a 'created' array to fsfilt_map_inode_pages() which we * then ignore. So we pre-allocate one that everyone can use... */