linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC] VM statistics to gather
@ 2001-06-25 23:04 Rik van Riel
  2001-06-25 23:35 ` Roger Larsson
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Rik van Riel @ 2001-06-25 23:04 UTC (permalink / raw)
  To: linux-mm

Hi,

I am starting the process of adding more detailed instrumentation
to the VM subsystem and am wondering which statistics to add.
A quick start of things to measure are below, but I've probably
missed some things. Comments are welcome ...



--- kernel_stat.h.instr	Sun Jun 24 19:52:34 2001
+++ kernel_stat.h	Mon Jun 25 20:02:38 2001
@@ -26,6 +26,25 @@
 	unsigned int dk_drive_wblk[DK_MAX_MAJOR][DK_MAX_DISK];
 	unsigned int pgpgin, pgpgout;
 	unsigned int pswpin, pswpout;
+	unsigned int vm_pgscan;		/* Pages scanned by pageout code. */
+	unsigned int vm_pgdeact;	/* Pages deactivated by pageout code */
+	unsigned int vm_pgclean;	/* Pages moved to inactive_clean */
+	unsigned int vm_pgskiplaunder;	/* Pages skipped by page_launder */
+	unsigned int vm_pglaundered;	/* Pages laundered by page_launder */
+	unsigned int vm_pgreact;	/* Pages reactivated by page_launder
+					 * (rescued from inactive_clean list) */
+	unsigned int vm_pgrescue;	/* Pages reactivated by reclaim_page
+					 * (rescued from inactive_dirty list) */
+	unsigned int vm_majfault;	/* Major page faults (disk IO) */
+	unsigned int vm_minfault;	/* Minor page faults (no disk IO) */
+	unsigned int vm_cow_fault;	/* COW faults, copy needed */
+	unsigned int vm_cow_optim;	/* COW skipped copy */
+	unsigned int vm_zero_fault;	/* Zero-filled page given to process */
+	unsigned int vm_zero_optim;	/* COW of the EMPTY_ZERO_PAGE */
+	unsigned int vm_kswapd_wakeup;	/* kswapd wake-ups */
+	unsigned int vm_kswapd_loops;	/* kswapd go-arounds in kswapd() loop */
+	unsigned int vm_pg_freed;	/* Pages freed by pageout code, also
+					   pages moved to inactive_clean */
 #if !defined(CONFIG_ARCH_S390)
 	unsigned int irqs[NR_CPUS][NR_IRQS];
 #endif

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/

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-06-27 10:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-25 23:04 [RFC] VM statistics to gather Rik van Riel
2001-06-25 23:35 ` Roger Larsson
2001-06-25 23:59   ` Rik van Riel
2001-06-26  1:11     ` Roger Larsson
2001-06-26  7:42     ` Stephen C. Tweedie
2001-06-26  1:45 ` Marcelo Tosatti
2001-06-26  7:13   ` Marcelo Tosatti
2001-06-26  4:24 ` Andrew Morton
2001-06-26  5:07   ` Marcelo Tosatti
2001-06-26  5:10     ` Marcelo Tosatti
2001-06-26  7:59     ` Andrew Morton
2001-06-27 10:30       ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox