From: nikita Date: Thu, 12 Oct 2006 20:05:47 +0000 (+0000) Subject: lu_object: cpu consumption reduction: increase hash table size. (Should be automatica... X-Git-Tag: v1_8_0_110~486^2~575 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=bd2a50867d93b9f0bcc165f33ca49cf37ab7c395;p=fs%2Flustre-release.git lu_object: cpu consumption reduction: increase hash table size. (Should be automatically tuned, in fact.) --- diff --git a/lustre/obdclass/lu_object.c b/lustre/obdclass/lu_object.c index 8f977cb..4b82b52 100644 --- a/lustre/obdclass/lu_object.c +++ b/lustre/obdclass/lu_object.c @@ -478,7 +478,10 @@ struct lu_object *lu_object_find(const struct lu_env *env, EXPORT_SYMBOL(lu_object_find); enum { - LU_SITE_HTABLE_BITS = 8, + /* + * XXX: make this depending on available physical memory. + */ + LU_SITE_HTABLE_BITS = 10, LU_SITE_HTABLE_SIZE = (1 << LU_SITE_HTABLE_BITS), LU_SITE_HTABLE_MASK = LU_SITE_HTABLE_SIZE - 1 };