[PATCH] Re: Fwd: Re: memory usage - dentry_cacheg

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Thu Apr 12 2001 - 01:53:36 EST


Alexander Viro wrote:
> We _have_ VM pressure there. However, such loads had never been used, so
> there's no wonder that system gets unbalanced under them.
>
> I suspect that simple replacement of goto next; with continue; in the
> fs/dcache.c::prune_dcache() may make situation seriously better.

Awesome. With the obvious patch attached, some local ramfs problems
disappeared, and my browser and e-mail program are no longer swapped out
when doing a kernel build.

Thanks :)

-- 
Jeff Garzik       | Sam: "Mind if I drive?"
Building 1024     | Max: "Not if you don't mind me clawing at the dash
MandrakeSoft      |       and shrieking like a cheerleader."

Index: fs/dcache.c =================================================================== RCS file: /cvsroot/gkernel/linux_2_4/fs/dcache.c,v retrieving revision 1.1.1.16 diff -u -r1.1.1.16 dcache.c --- fs/dcache.c 2001/03/13 04:23:27 1.1.1.16 +++ fs/dcache.c 2001/04/12 06:51:56 @@ -340,7 +340,7 @@ if (dentry->d_flags & DCACHE_REFERENCED) { dentry->d_flags &= ~DCACHE_REFERENCED; list_add(&dentry->d_lru, &dentry_unused); - goto next; + continue; } dentry_stat.nr_unused--;

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 15 2001 - 21:00:17 EST