* [RFC-PATCH] split cache and swapcache statistics
@ 2001-07-07 18:22 Rik van Riel
0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 2001-07-07 18:22 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-kernel, Linus Torvalds, Alan Cox
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()),
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-07 18:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-07 18:22 [RFC-PATCH] split cache and swapcache statistics Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).