Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74bf773
)
lu_object: cpu consumption reduction: increase hash table size. (Should be automatica...
author
nikita
<nikita>
Thu, 12 Oct 2006 20:05:47 +0000
(20:05 +0000)
committer
nikita
<nikita>
Thu, 12 Oct 2006 20:05:47 +0000
(20:05 +0000)
lustre/obdclass/lu_object.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/lu_object.c
b/lustre/obdclass/lu_object.c
index
8f977cb
..
4b82b52
100644
(file)
--- 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
};