split cache and swapcache statistics

split cache and swapcache statistics

Post by Rik van Rie » Mon, 09 Jul 2001 03:30:09



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

                 "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"

                 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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/