Reiserfs behaves a bit differently. After running the same test:
inode_cache 1190503 1883987 512 269141 269141 1 : 124 62
The inode_cache uses around 1GB of memory. This is a bit more than XFS,
which used only 750MB, but then XFS also has the xfs_inode cache, which uses
another 700MB. Also, after doing a few gigs of I/O to another filesystem,
the memory was freed, and the inode cache shrunk to around 80MB:
inode_cache 27043 135821 512 19403 19403 1 : 124 62
XFS before:
xfs_ili 505795 505848 136 18066 18066 1 : 252 126
xfs_inode 1433589 1501336 468 187667 187667 1 : 124 62
inode_cache 1188597 1279404 512 182772 182772 1 : 124 62
XFS after:
xfs_ili 114037 476924 136 17033 17033 1 : 252 126
xfs_inode 269159 753952 468 94244 94244 1 : 124 62
inode_cache 239429 577038 512 82434 82434 1 : 124 62
I haven't tried it on ext2 or anything else.
Sebastian
----- Original Message -----
From: "Steve Lord" <lord@xxxxxxx>
To: "Sebastian Kun" <seb@xxxxxxxxxxxxx>
Cc: <linux-xfs@xxxxxxxxxxx>
Sent: Monday, February 25, 2002 3:42 PM
Subject: Re: Inode cache uses a lot of memory
[...]
> Well, the xfs inode cache is pretty much controlled via the inode cache,
> which is only shrunk if you get into the cache pruning code if you run
> short of memory.
>
> I can easily prune out my inode cache without doing unmounts, but my
> memory size is a lot smaller than yours.
>
> I presume you do not see this issue with other filesystems?
>
> Steve
>
>
> --
>
> Steve Lord voice: +1-651-683-3511
> Principal Engineer, Filesystem Software email: lord@xxxxxxx
|