summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-05-28 04:43:05 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-03 00:47:02 -0700
commit9ccb6f74410a20eaa831ecc9e4601fcb724e63d5 (patch)
treeb7f32a19d444782eaed57f0c0874bdc3af39628a /libglusterfsclient
parent1a0cf7dc85967387fe2c458914409b888fc86235 (diff)
libglusterfsclient: Increase readdir block size
This improves the potential for pre-fetching a larger number of dirents. Consider that, with 255 chars as the max name length for each dirent, in the worst case scenario, where we actually have files with such large names, we're not getting more than 4 entries with the current block size of 1024. Generally also, increasing the size to 4k provides us with a higher chance that directories with low to medium number of dirents will be pre-fetched in a single readdir fop. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 807fafaf016..c05918e2148 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -53,7 +53,7 @@
#define LIBGF_XL_NAME "libglusterfsclient"
#define LIBGLUSTERFS_INODE_TABLE_LRU_LIMIT 1000 //14057
-#define LIBGF_READDIR_BLOCK 1024
+#define LIBGF_READDIR_BLOCK 4096
static inline xlator_t *
libglusterfs_graph (xlator_t *graph);