diff options
author | Alan Cox <alc@FreeBSD.org> | 2007-07-27 20:01:22 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2007-07-27 20:01:22 +0000 |
commit | eaa29f1ce4e26f3a763bffb0f4866246e5894b9f (patch) | |
tree | 8e9f41f9c946405cd5f6454b3352de81812bac7d /usr.bin | |
parent | 31a35b79dd2a2577207c154e0459aff7b174f876 (diff) | |
download | src-eaa29f1ce4e26f3a763bffb0f4866246e5894b9f.tar.gz src-eaa29f1ce4e26f3a763bffb0f4866246e5894b9f.zip |
Add a counter for the total number of pages cached and support for
reporting the value of this counter in the program "vmstat".
Approved by: re (rwatson)
Notes
Notes:
svn path=/head/; revision=171633
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index efd5b79945ef..28d45c02c2af 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -441,6 +441,7 @@ fill_vmmeter(struct vmmeter *vmmp) GET_VM_STATS(vm, v_reactivated); GET_VM_STATS(vm, v_pdwakeups); GET_VM_STATS(vm, v_pdpages); + GET_VM_STATS(vm, v_tcached); GET_VM_STATS(vm, v_dfree); GET_VM_STATS(vm, v_pfree); GET_VM_STATS(vm, v_tfree); @@ -721,6 +722,7 @@ dosum(void) (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 cached\n", sum.v_tcached); (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); |