From a9c51c03eaecb5234ba754b738877323a35bed51 Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Tue, 24 Jun 2014 12:14:55 -0400 Subject: [PATCH] LU-5240 obdclass: Increase minimum LU Cache for ZFS If the lu cache is too small threads will thrash for data including the OI tables and other important metadata. Test-Parameters: mdsfilesystemtype=zfs mdtfilesystemtype=zfs ostfilesystemtype=zfs testgroup=review-zfs Signed-off-by: Nathaniel Clark Change-Id: I1ce7ef9a160c8b028be0d3c9671a0b347cbe3331 Reviewed-on: http://review.whamcloud.com/10802 Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin Tested-by: Jenkins --- lustre/obdclass/lu_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/obdclass/lu_object.c b/lustre/obdclass/lu_object.c index fe43331..91b3693 100644 --- a/lustre/obdclass/lu_object.c +++ b/lustre/obdclass/lu_object.c @@ -71,7 +71,8 @@ enum { #define LU_CACHE_NR_UNLIMITED -1 #define LU_CACHE_NR_DEFAULT LU_CACHE_NR_UNLIMITED #define LU_CACHE_NR_LDISKFS_LIMIT LU_CACHE_NR_UNLIMITED -#define LU_CACHE_NR_ZFS_LIMIT 256 +/** This is set to roughly (20 * OSS_NTHRS_MAX) to prevent thrashing */ +#define LU_CACHE_NR_ZFS_LIMIT 10240 #define LU_SITE_BITS_MIN 12 #define LU_SITE_BITS_MAX 24 -- 1.8.3.1