diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2010-07-22 17:31:40 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2010-07-22 17:31:40 +0000 |
commit | 28a499ffb117bb550e28d8675cf22de525636741 (patch) | |
tree | c043b82a91f41aaea2e5b229b3e136883a0599c5 /usr.bin/vmstat | |
parent | 5c8688f1814b6de1ae6f6e043798653a7a32a941 (diff) |
Remove the VM_KMPAGESFREE sysctl. After the pmemrange
changes it was returing a constant 0, changing to cope
with those changes makes less sense then just removing
as it provides the user with no usefull information.
sthen@ grepped the port's tree for me and found not hits,
thanks!
OK deraadt@, matthew@
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index c6d968e2362..0246d749120 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1,5 +1,5 @@ /* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */ -/* $OpenBSD: vmstat.c,v 1.115 2010/07/20 19:43:19 lum Exp $ */ +/* $OpenBSD: vmstat.c,v 1.116 2010/07/22 17:31:39 thib Exp $ */ /* * Copyright (c) 1980, 1986, 1991, 1993 @@ -1031,18 +1031,6 @@ dopool_sysctl(void) inuse /= 1024; total /= 1024; - if (nlistf == NULL && memf == NULL) { - int mib[] = { CTL_VM, VM_KMPAGESFREE }; - size_t size = sizeof(kmfp); - - if (sysctl(mib, 2, &kmfp, &size, NULL, 0) < 0) { - warn("could not read uvm.kmpagesfree"); - return; - } - } else { - kread(X_KMPAGESFREE, &kmfp, sizeof(kmfp)); - } - total += kmfp * (getpagesize() / 1024); printf("\nIn use %ldK, total allocated %ldK; utilization %.1f%%\n", inuse, total, (double)(100 * inuse) / total); } |