summaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-02-18 11:58:19 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-02-18 11:58:19 +0000
commitd134390523f594c4e7f1b453b8026b993a1aeebb (patch)
tree0f9bf16b7daa6c99a1b4de0e9287b1e9b9898b78 /sys/vm
parentdd05823e1cc2b8321d39b8837838b2300d4c5c41 (diff)
Count swapins and swapouts in the sum structure
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_glue.c4
1 files changed, 4 insertions, 0 deletions
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;
}
/*