Date: Thu, 14 Jun 2007 05:23:17 GMT From: Ighighi <ighighi@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/113670: wrong advertising of default value for HZ in sys/conf/NOTES Message-ID: <200706140523.l5E5NHBu004552@www.freebsd.org> Resent-Message-ID: <200706140530.l5E5U5Cd046146@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 113670 >Category: kern >Synopsis: wrong advertising of default value for HZ in sys/conf/NOTES >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 14 05:30:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ighighi >Release: 6.2-STABLE >Organization: >Environment: FreeBSD orion 6.2-STABLE FreeBSD 6.2-STABLE #1: Tue Jun 12 20:39:04 VET 2007 root@orion:/usr/obj/usr/src/sys/CUSTOM i386 >Description: The current src/sys/conf/NOTES (v1.1432) states that: -8<-------------------------------------- # CLOCK OPTIONS # The granularity of operation is controlled by the kernel option HZ whose # default value (100) means a granularity of 10ms (1s/HZ). [...] options HZ=100 -8<-------------------------------------- I guess the real value is 10x that quantity for 4 of the "main" platforms, as defined in src/sys/kern/subr_param.c -8<-------------------------------------- #ifndef HZ # if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || defined(__sparc64__) # define HZ 1000 # else # define HZ 100 # endif #endif -8<-------------------------------------- By looking at the CVS log available at: http://www.FreeBSD.org/cgi/cvsweb.cgi/sys/kern/subr_param.c it can be seen that it has been that way since 6.0-RELEASE, with a just a few platforms being added earlier, and with no mention of it in their respective GENERIC files, thus being the "real thing". I just find it a bit misleading when compiling a new kernel and copy/pasting from NOTES. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706140523.l5E5NHBu004552>