From d134390523f594c4e7f1b453b8026b993a1aeebb Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Sun, 18 Feb 1996 11:58:19 +0000 Subject: Count swapins and swapouts in the sum structure --- sys/vm/vm_glue.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/vm') diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index df95fb03fb2..5fd2d006a55 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -357,6 +357,8 @@ swapin(p) p->p_flag |= P_INMEM; splx(s); p->p_swtime = 0; + cnt.v_swpin++; + cnt.v_pswpin += USPACE * CLSIZE / NBPG; } /* @@ -545,6 +547,8 @@ swapout(p) remrq(p); splx(s); p->p_swtime = 0; + cnt.v_swpin++; + cnt.v_pswpin += USPACE * CLSIZE / NBPG; } /* -- cgit v1.2.3