Re: Reducing inode cache usage on 2.4?

From: Andrea Arcangeli
Date: Tue Dec 21 2004 - 08:24:24 EST

On Tue, Dec 21, 2004 at 11:33:24AM +0000, James Pearson wrote:
> Setting vm_mapped_ratio to 20 seems to give a 'better' memory usage
> using my very contrived test - running a find will result in about 900Mb
> of dcache/icache, but then running a cat to /dev/null will shrink the
> dcache/icache down to between 100-300Mb - running the find and cat at
> the same time results in about the same dcache/icache usage.
> I'll give this a go on the production NFS server and I'll see if it
> improves things.

Ok great. If 20 isn't enough just set it to 40, just be careful that if
you set it too high the system may swap a bit too early.

Overall this is still a workaround, real fix would be a background
scanning of the icache/dcache collisions in the hash buckets but that's
not for 2.4 ;).
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at