Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/usr.bin/vmstat Pull up revision 1.5 (requested by somme...
details: https://anonhg.NetBSD.org/src/rev/83b81181a19b
branches: netbsd-1-6
changeset: 528304:83b81181a19b
user: lukem <lukem%NetBSD.org@localhost>
date: Sun Jun 30 05:47:44 2002 +0000
description:
Pull up revision 1.5 (requested by sommerfeld in ticket #406):
Since the KERN_CP_TIME sysctl reports total clock ticks across all
cpus and hz is measured in ticks per cpu, divide tick count by ncpu to
determine elapsed time since last sample.
Fixes I/O rate deflation observed on multiprocessors.
diffstat:
usr.bin/vmstat/dkstats.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r a3c26872c476 -r 83b81181a19b usr.bin/vmstat/dkstats.h
--- a/usr.bin/vmstat/dkstats.h Sun Jun 30 05:47:34 2002 +0000
+++ b/usr.bin/vmstat/dkstats.h Sun Jun 30 05:47:44 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dkstats.h,v 1.4 2002/01/28 02:15:16 simonb Exp $ */
+/* $NetBSD: dkstats.h,v 1.4.2.1 2002/06/30 05:47:44 lukem Exp $ */
/*
* Copyright (c) 1996 John M. Vinopal
@@ -47,6 +47,8 @@
u_int64_t tk_nin; /* TTY Chars in. */
u_int64_t tk_nout; /* TTY Chars out. */
u_int64_t cp_time[CPUSTATES]; /* System timer ticks. */
+ int cp_ncpu; /* Number of cpu's */
+ double cp_etime; /* Elapsed time */
};
extern struct _disk cur;
Home |
Main Index |
Thread Index |
Old Index