Re: Kernel 2.4 diskcache pushes applications into swap?

From: Marcin Kowalski (kowalski@datrix.co.za)
Date: Thu Apr 26 2001 - 10:03:55 EST


Hi

Had the same problem -- even up to 2.4.3. Ed Tomlinsons Patch sorted it out .

It seems that the dentries were not being cleared properly... hope this
helps..
The explanation probably doesn't :-).. (see last weeks list archives)
------------------------------------------------
--- ./linux/fs/dcache.c Thu Apr 12 09:20:59 2001
+++ dcache.new Thu Apr 12 09:22:38 2001
@@ -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--;

------------------------------
-----------------------------
     Marcin Kowalski
     Linux/Perl Developer
     Datrix Solutions
     Cel. 082-400-7603
      ***Open Source Kicks Ass***
-----------------------------
-
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 : Mon Apr 30 2001 - 21:00:15 EST