summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-01-23 14:32:01 +0000
committerume <ume@FreeBSD.org>2001-01-23 14:32:01 +0000
commit1ae749987d8130c6c5c01d3fb7df1cdb59ae0ea4 (patch)
treefe812ab278da705aa2336824ba5a950b2eea1b7e /usr.bin/vmstat
parent52c12909ebc46a4969c5a8b54e24f66294303a52 (diff)
downloadFreeBSD-src-1ae749987d8130c6c5c01d3fb7df1cdb59ae0ea4.zip
FreeBSD-src-1ae749987d8130c6c5c01d3fb7df1cdb59ae0ea4.tar.gz
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
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index a5c17f8..1b2d159 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -600,6 +600,10 @@ dosum()
(void)printf("%9u software interrupts\n", sum.v_soft);
(void)printf("%9u traps\n", sum.v_trap);
(void)printf("%9u system calls\n", sum.v_syscall);
+ (void)printf("%9u kernel threads created\n", sum.v_kthreads);
+ (void)printf("%9u fork() calls\n", sum.v_forks);
+ (void)printf("%9u vfork() calls\n", sum.v_vforks);
+ (void)printf("%9u rfork() calls\n", sum.v_rforks);
(void)printf("%9u swap pager pageins\n", sum.v_swapin);
(void)printf("%9u swap pager pages paged in\n", sum.v_swappgsin);
(void)printf("%9u swap pager pageouts\n", sum.v_swapout);
@@ -617,6 +621,10 @@ dosum()
(void)printf("%9u zero fill pages prezeroed\n", sum.v_ozfod);
(void)printf("%9u intransit blocking page faults\n", sum.v_intrans);
(void)printf("%9u total VM faults taken\n", sum.v_vm_faults);
+ (void)printf("%9u pages affected by kernel thread creation\n", sum.v_kthreadpages);
+ (void)printf("%9u pages affected by fork()\n", sum.v_forkpages);
+ (void)printf("%9u pages affected by vfork()\n", sum.v_vforkpages);
+ (void)printf("%9u pages affected by rfork()\n", sum.v_rforkpages);
(void)printf("%9u pages freed\n", sum.v_tfree);
(void)printf("%9u pages freed by daemon\n", sum.v_dfree);
(void)printf("%9u pages freed by exiting processes\n", sum.v_pfree);
OpenPOWER on IntegriCloud