commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 07/37: ext2fs: tune the size of the inode cache


From: Samuel Thibault
Subject: [hurd] 07/37: ext2fs: tune the size of the inode cache
Date: Mon, 09 Feb 2015 09:59:09 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to annotated tag upstream/hurd/0.5.git20150208
in repository hurd.

commit 51c2bd7408b0a4ee73ecd1928d4c17d4fafb1ec2
Author: Justus Winter <address@hidden>
Date:   Mon Dec 8 12:53:06 2014 +0100

    ext2fs: tune the size of the inode cache
    
    The node cache uses a fixed number of buckets giving it a linear
    access complexity, although with a small constant factor.  Paper over
    this issue by increasing the number of buckets.
    
    * ext2fs/inode.c (INOHSZ): Increase from 512 to 8192 entries.
---
 ext2fs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext2fs/inode.c b/ext2fs/inode.c
index ed78265..27530fb 100644
--- a/ext2fs/inode.c
+++ b/ext2fs/inode.c
@@ -39,7 +39,7 @@
 #define UF_IMMUTABLE 0
 #endif
 
-#define        INOHSZ  512
+#define        INOHSZ  8192
 #if    ((INOHSZ&(INOHSZ-1)) == 0)
 #define        INOHASH(ino)    ((ino)&(INOHSZ-1))
 #else

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]