From nobody@FreeBSD.org  Wed May  6 06:40:56 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D1D96106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 May 2009 06:40:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C0CFB8FC20
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 May 2009 06:40:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n466euRt054208
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 6 May 2009 06:40:56 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n466euOX054207;
	Wed, 6 May 2009 06:40:56 GMT
	(envelope-from nobody)
Message-Id: <200905060640.n466euOX054207@www.freebsd.org>
Date: Wed, 6 May 2009 06:40:56 GMT
From: Dan Naumov <dan.naumov@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /boot/default/loader.conf contains untrue default
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         134258
>Category:       conf
>Synopsis:       /boot/default/loader.conf contains untrue default
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    vwe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 06 06:50:01 UTC 2009
>Closed-Date:    Sat Aug 21 14:25:50 UTC 2010
>Last-Modified:  Sat Aug 21 14:25:50 UTC 2010
>Originator:     Dan Naumov
>Release:        7.2
>Organization:
>Environment:
FreeBSD agathon.localdomain 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The file /boot/default/loader.conf contains the following line:

#kern.hz="100"                  # Set the kernel interval timer rate

which would imply that unless a different value is set in /boot/loader.conf, the system should use a 100 hz rate by default. This however is not true (at least on amd64), by default the system uses a 1000 hz rate and a simple act of copying /boot/default/loader.conf to /boot/ and uncommenting the kern.hz line will change system behavior.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: "Remko Lodder" <remko@elvandar.org>
To: "Dan Naumov" <dan.naumov@gmail.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/134258: /boot/default/loader.conf contains untrue default
Date: Thu, 7 May 2009 09:37:10 +0200 (CEST)

 > The file /boot/default/loader.conf contains the following line:
 >
 > #kern.hz="100"                  # Set the kernel interval timer rate
 >
 > which would imply that unless a different value is set in
 > /boot/loader.conf, the system should use a 100 hz rate by default. This
 > however is not true (at least on amd64), by default the system uses a 1000
 > hz rate and a simple act of copying /boot/default/loader.conf to /boot/
 > and uncommenting the kern.hz line will change system behavior.
 >>How-To-Repeat:
 >
 
 HEllo,
 
 It does not say that this si the default setting, it's an example on how
 to specify the values and what it does. 100Hz is commonly used for virtual
 machines. If one modifies this behaviour he/she needs to know what he is
 doing. If you do not know it, why change it? It could only harm. I do
 agree that this might be a tad confusing though, I'll ponder on changing
 it.
 
 Thanks!
 rEmko
 
 
 -- 
 /"\   Best regards,                      | remko@FreeBSD.org
 \ /   Remko Lodder                       | remko@EFnet
  X    http://www.evilcoder.org/          |
 / \   ASCII Ribbon Campaign              | Against HTML Mail and News
 
 

From: Dan Naumov <dan.naumov@gmail.com>
To: remko@elvandar.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/134258: /boot/default/loader.conf contains untrue default
Date: Thu, 7 May 2009 11:07:28 +0300

 From a user perspective: If a config file is in /boot/DEFAULT, I
 expect the config file to contain DEFAULT values used for the booting
 process. If the file is merely an EXAMPLE, it should be somewhere
 else.
 
 Sincerely,
 Dan Naumov
 
 
 P.S: The reason I was changing the value was precisely because I am
 running the installation inside a VM and after experiencing problems
 with wildly drifting time, I was told to adjust kern.hz to "100",
 however the  /boot/default/loader.conf file already had the commented
 line #kern.hz=3D"100" resulting in confusion.
 
 
 On Thu, May 7, 2009 at 10:37 AM, Remko Lodder <remko@elvandar.org> wrote:
 >
 >> The file /boot/default/loader.conf contains the following line:
 >>
 >> #kern.hz=3D"100" =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# Set the kernel int=
 erval timer rate
 >>
 >> which would imply that unless a different value is set in
 >> /boot/loader.conf, the system should use a 100 hz rate by default. This
 >> however is not true (at least on amd64), by default the system uses a 10=
 00
 >> hz rate and a simple act of copying /boot/default/loader.conf to /boot/
 >> and uncommenting the kern.hz line will change system behavior.
 >>>How-To-Repeat:
 >>
 >
 > HEllo,
 >
 > It does not say that this si the default setting, it's an example on how
 > to specify the values and what it does. 100Hz is commonly used for virtua=
 l
 > machines. If one modifies this behaviour he/she needs to know what he is
 > doing. If you do not know it, why change it? It could only harm. I do
 > agree that this might be a tad confusing though, I'll ponder on changing
 > it.
 >
 > Thanks!
 > rEmko
 >
 >
 > --
 > /"\ =A0 Best regards, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| remko@=
 FreeBSD.org
 > \ / =A0 Remko Lodder =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | remko@=
 EFnet
 > =A0X =A0 =A0http://www.evilcoder.org/ =A0 =A0 =A0 =A0 =A0|
 > / \ =A0 ASCII Ribbon Campaign =A0 =A0 =A0 =A0 =A0 =A0 =A0| Against HTML M=
 ail and News
 >
 >
 >
State-Changed-From-To: open->closed 
State-Changed-By: vwe 
State-Changed-When: Sat Aug 21 14:22:50 UTC 2010 
State-Changed-Why:  
Dan, your report is about a comment, not a real setting. 
As it's not about a setting, we do not see a reason to leave this PR open. 
For configuring loader or kernel or building your own kernel, please have a look at the handbook. 


Responsible-Changed-From-To: freebsd-bugs->vwe 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Sat Aug 21 14:22:50 UTC 2010 
Responsible-Changed-Why:  
track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134258 
>Unformatted:
