summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1999-09-10 05:00:48 +0000
committertholo <tholo@openbsd.org>1999-09-10 05:00:48 +0000
commit2a6b596f2ca401ee7ac65e95b42c1564ed2522b7 (patch)
tree09a641d747b10abdca9ed1da4645bb574f037dd2
parentBug-fix: thinko (diff)
downloadwireguard-openbsd-2a6b596f2ca401ee7ac65e95b42c1564ed2522b7.tar.xz
wireguard-openbsd-2a6b596f2ca401ee7ac65e95b42c1564ed2522b7.zip
Describe the fact that a separate clock is wanted for statistics and
profiling, and how we would like it to work. With help from Marc Espie
-rw-r--r--share/man/man9/hz.916
1 files changed, 12 insertions, 4 deletions
diff --git a/share/man/man9/hz.9 b/share/man/man9/hz.9
index 47886bf94bb..8da7c556169 100644
--- a/share/man/man9/hz.9
+++ b/share/man/man9/hz.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hz.9,v 1.1 1999/09/01 20:52:11 espie Exp $
+.\" $OpenBSD: hz.9,v 1.2 1999/09/10 05:00:48 tholo Exp $
.\"
.\" Copyright (c) 1999 Marc Espie
.\" All rights reserved.
@@ -48,7 +48,7 @@
.br
.Va extern int stathz;
.br
-.Va extern int stathz;
+.Va extern int profhz;
.Sh DESCRIPTION
The system is driven by
.Xr hardclock 9
@@ -58,15 +58,23 @@ frequency, and are used to keep track of real time.
.Pp
On systems where another independent clock is available, it is set at
.Va stathz
-frequency, and used to gather timing statistics. Otherwise,
+frequency, and used to gather timing statistics. Ideally, it would be
+better to drive
+.Va stathz
+with a slightly randomized clock, that is still a fixed number on average,
+as this would prevent malicious processes from working around the
+scheduler. If a separate clock is not available,
.Va stathz
is set to
.Va hz .
.Pp
-If profiling is enabled, the second clock may be run at a higher rate
+If profiling is enabled, the clock normally used to drive
+.Va stathz
+may be run at a higher rate
.Va profhz ,
which must be a multiple of
.Va stathz .
+This will give higher resolution profiling information.
.Pp
Normally,
.Xr hardclock 9