[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd 3/5] ext2fs: tune the size of the inode cache
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd 3/5] ext2fs: tune the size of the inode cache |
Date: |
Wed, 10 Dec 2014 17:27:39 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Wed 10 Dec 2014 17:21:57 +0100, a écrit :
> 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.
Ack.
> ---
> 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
> --
> 2.1.3
>
--
Samuel
<s> je la connaissais pas celle la : "make: Entering an unknown directory"
-+- #ens-mim -+-
- [PATCH hurd 1/5] libpager: remove the `seqno' parameters, Justus Winter, 2014/12/10
- [PATCH hurd 2/5] libpager: use libports notification functions, Justus Winter, 2014/12/10
- [PATCH hurd 3/5] ext2fs: tune the size of the inode cache, Justus Winter, 2014/12/10
- Re: [PATCH hurd 3/5] ext2fs: tune the size of the inode cache,
Samuel Thibault <=
- [PATCH hurd 5/5] Replace `bcopy' with `memcpy' or `memmove' as appropriate, Justus Winter, 2014/12/10
- [PATCH hurd 4/5] Replace `bzero' with `memset', Justus Winter, 2014/12/10
- Re: [PATCH hurd 1/5] libpager: remove the `seqno' parameters, Samuel Thibault, 2014/12/10