Whamcloud - gitweb
LU-15 shrink the cache to alleviate OST memory pressure
authorWang Di <di.wang@whamcloud.com>
Tue, 10 May 2011 03:00:38 +0000 (20:00 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 20 May 2011 17:00:09 +0000 (10:00 -0700)
Shrink file_max_cache_size to alleviate the memory pressure of OST.

Change-Id: I34c920cce65cd91f4793383b6563d7a296ec5307
Signed-off-by: wangdi <di.wang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/523
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdfilter/filter_internal.h

index 7c73619..d8cf3f9 100644 (file)
@@ -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... */