aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vmmeter.h
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2001-01-23 14:32:01 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2001-01-23 14:32:01 +0000
commit5d22597f3a0c8ca5cb0f028025f1c3c6f77eadd0 (patch)
tree0e193a9edc2a0796f6dc3062c787b58ac32e8d52 /sys/sys/vmmeter.h
parentf2334c40822c8df39e7d6ce23b0f30429c246ae2 (diff)
downloadsrc-5d22597f3a0c8ca5cb0f028025f1c3c6f77eadd0.tar.gz
src-5d22597f3a0c8ca5cb0f028025f1c3c6f77eadd0.zip
Add mibs to hold the number of forks since boot. New mibs are:
vm.stats.vm.v_forks vm.stats.vm.v_vforks vm.stats.vm.v_rforks vm.stats.vm.v_kthreads vm.stats.vm.v_forkpages vm.stats.vm.v_vforkpages vm.stats.vm.v_rforkpages vm.stats.vm.v_kthreadpages Submitted by: Paul Herman <pherman@frenchfries.net> Reviewed by: alfred
Notes
Notes: svn path=/head/; revision=71429
Diffstat (limited to 'sys/sys/vmmeter.h')
-rw-r--r--sys/sys/vmmeter.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h
index 0ca843226154..f6e17ff063fe 100644
--- a/sys/sys/vmmeter.h
+++ b/sys/sys/vmmeter.h
@@ -92,6 +92,17 @@ struct vmmeter {
u_int v_pageout_free_min; /* min number pages reserved for kernel */
u_int v_interrupt_free_min; /* reserved number of pages for int code */
u_int v_free_severe; /* severe depletion of pages below this pt */
+ /*
+ * Fork/vfork/rfork activity.
+ */
+ u_int v_forks; /* number of fork() calls */
+ u_int v_vforks; /* number of vfork() calls */
+ u_int v_rforks; /* number of rfork() calls */
+ u_int v_kthreads; /* number of fork() calls by kernel */
+ u_int v_forkpages; /* number of VM pages affected by fork() */
+ u_int v_vforkpages; /* number of VM pages affected by vfork() */
+ u_int v_rforkpages; /* number of VM pages affected by rfork() */
+ u_int v_kthreadpages; /* number of VM pages affected by fork() by kernel */
};
#ifdef _KERNEL