From 1432381c350561abe51a1f10481863c7740f29d6 Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Fri, 10 Sep 1999 05:00:49 +0000 Subject: 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 --- share/man/man9/hz.9 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'share/man') 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 -- cgit v1.2.3