From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 14 05:30:05 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB17A16A46B for ; Thu, 14 Jun 2007 05:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 83DBA13C44B for ; Thu, 14 Jun 2007 05:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5E5U5SP046147 for ; Thu, 14 Jun 2007 05:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5E5U5Cd046146; Thu, 14 Jun 2007 05:30:05 GMT (envelope-from gnats) Resent-Date: Thu, 14 Jun 2007 05:30:05 GMT Resent-Message-Id: <200706140530.l5E5U5Cd046146@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ighighi Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D385816A46E for ; Thu, 14 Jun 2007 05:23:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id C387813C4B9 for ; Thu, 14 Jun 2007 05:23:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5E5NHbx004553 for ; Thu, 14 Jun 2007 05:23:17 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l5E5NHBu004552; Thu, 14 Jun 2007 05:23:17 GMT (envelope-from nobody) Message-Id: <200706140523.l5E5NHBu004552@www.freebsd.org> Date: Thu, 14 Jun 2007 05:23:17 GMT From: Ighighi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/113670: wrong advertising of default value for HZ in sys/conf/NOTES X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 05:30:05 -0000 >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: