summaryrefslogtreecommitdiff
path: root/static/netbsd/man9/hz.9 3.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/netbsd/man9/hz.9 3.html')
-rw-r--r--static/netbsd/man9/hz.9 3.html79
1 files changed, 0 insertions, 79 deletions
diff --git a/static/netbsd/man9/hz.9 3.html b/static/netbsd/man9/hz.9 3.html
deleted file mode 100644
index 39a5112c..00000000
--- a/static/netbsd/man9/hz.9 3.html
+++ /dev/null
@@ -1,79 +0,0 @@
-<table class="head">
- <tr>
- <td class="head-ltitle">HZ(9)</td>
- <td class="head-vol">Kernel Developer's Manual</td>
- <td class="head-rtitle">HZ(9)</td>
- </tr>
-</table>
-<div class="manual-text">
-<section class="Sh">
-<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
-<p class="Pp"><code class="Nm">hz</code>, <code class="Nm">tick</code>,
- <code class="Nm">tickadj</code>, <code class="Nm">stathz</code>,
- <code class="Nm">profhz</code> &#x2014; <span class="Nd">system time
- model</span></p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
-<p class="Pp"><code class="In">#include
- &lt;<a class="In">sys/kernel.h</a>&gt;</code></p>
-<p class="Pp">
- <br/>
- <var class="Vt">extern int hz;</var>
- <br/>
- <var class="Vt">extern int tick;</var>
- <br/>
- <var class="Vt">extern int tickadj;</var>
- <br/>
- <var class="Vt">extern int stathz;</var>
- <br/>
- <var class="Vt">extern int profhz;</var></p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
-<p class="Pp">The essential clock handling routines in
- <span class="Ux">NetBSD</span> are written to operate with two timers that
- run independently of each other. The main clock, running
- <var class="Va">hz</var> times per second, is used to keep track of real
- time.</p>
-<p class="Pp">In another words, <var class="Va">hz</var> specifies the number of
- times the <a class="Xr">hardclock(9)</a> timer ticks per second. Normally
- <a class="Xr">hardclock(9)</a> increments time by <var class="Va">tick</var>
- each time it is called. If the system clock has drifted,
- <a class="Xr">adjtime(2)</a> may be used to skew this increment based on the
- rate of <var class="Va">tickadj</var>.</p>
-<p class="Pp">The second timer is used to gather timing statistics. It also
- handles kernel and user profiling. If the second timer is programmable, it
- is randomized to avoid aliasing between the two clocks. The mean frequency
- of the second timer is <var class="Va">stathz</var>. If a separate clock is
- not available, <var class="Va">stathz</var> is set to
- <var class="Va">hz</var>.</p>
-<p class="Pp">If profiling is enabled, the clock normally used to drive
- <var class="Va">stathz</var> may be run at a higher rate
- <var class="Va">profhz</var>, which is required to be a multiple of
- <var class="Va">stathz</var>. This will give higher resolution profiling
- information.</p>
-<p class="Pp" id="struct">These system variables are also available as
- <a class="permalink" href="#struct"><i class="Em">struct clockinfo</i></a>
- from <a class="Xr">sysctl(3)</a> and
- <a class="permalink" href="#kern.clockrate"><b class="Sy" id="kern.clockrate">kern.clockrate</b></a>
- from <a class="Xr">sysctl(8)</a>. The <var class="Va">hz</var> is
- hardware-dependent; it can be overridden (if the machine dependent code
- supports this) by defining <code class="Dv">HZ</code> in the kernel
- configuration file (see <a class="Xr">options(4)</a>). Only override the
- default value if you really know what you are doing.</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
- ALSO</a></h1>
-<p class="Pp"><a class="Xr">adjtime(2)</a>, <a class="Xr">callout(9)</a>,
- <a class="Xr">hardclock(9)</a>, <a class="Xr">microtime(9)</a>,
- <a class="Xr">time_second(9)</a></p>
-</section>
-</div>
-<table class="foot">
- <tr>
- <td class="foot-date">March 25, 2010</td>
- <td class="foot-os">NetBSD 10.1</td>
- </tr>
-</table>