summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1999-09-10 05:00:49 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1999-09-10 05:00:49 +0000
commit1432381c350561abe51a1f10481863c7740f29d6 (patch)
tree4e1392c289fd805b8bf4a0fd26ec7c6ec578b259 /share
parent52c93a68b24c7cb2a17619d0503f43b1be580446 (diff)
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
Diffstat (limited to 'share')
-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