Hi,

maybe we'll want to end the confusion and split the cached
and swap-cached statistics ...

Rik
--
Executive summary of a recent Microsoft press release:
   "we are concerned about the GNU General Public License (GPL)"

                http://www.surriel.com/
http://www.conectiva.com/       http://distro.conectiva.com/



--- linux-2.4.6/fs/proc/proc_misc.c.orig        Sat Jul  7 15:17:42 2001
+++ linux-2.4.6/fs/proc/proc_misc.c     Sat Jul  7 15:19:31 2001
@@ -165,7 +165,8 @@
                 "MemFree:      %8lu kB\n"
                 "MemShared:    %8lu kB\n"
                 "Buffers:      %8lu kB\n"
-                "Cached:       %8u kB\n"
+                "Cached:       %8lu kB\n"
+               "SwapCached:   %8lu kB\n"
                "Active:       %8u kB\n"
                "Inact_dirty:  %8u kB\n"
                "Inact_clean:  %8u kB\n"
@@ -180,7 +181,8 @@
                 K(i.freeram),
                 K(i.sharedram),
                 K(i.bufferram),
-                K(atomic_read(&page_cache_size)),
+                K(atomic_read(&page_cache_size) - swapper_space.nrpages),
+               K(swapper_space.nrpages),
                K(nr_active_pages),
                K(nr_inactive_dirty_pages),
                K(nr_inactive_clean_pages()),

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

Reply via email to