From owner-cvs-src@FreeBSD.ORG Sat May 10 23:00:33 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B605106567E; Sat, 10 May 2008 23:00:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id BE0488FC21; Sat, 10 May 2008 23:00:32 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m4AMx6wJ074700; Sat, 10 May 2008 16:59:07 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 10 May 2008 17:00:30 -0600 (MDT) Message-Id: <20080510.170030.-1717257915.imp@bsdimp.com> To: olli@fromme.com From: "M. Warner Losh" In-Reply-To: <200805090956.m499uEvT007906@haluter.fromme.com> References: <20080509091228.GC2480@garage.freebsd.pl> <200805090956.m499uEvT007906@haluter.fromme.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, pjd@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern subr_param.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2008 23:00:33 -0000 In message: <200805090956.m499uEvT007906@haluter.fromme.com> Oliver Fromme writes: : : Pawel Jakub Dawidek wrote: : > On Fri, May 09, 2008 at 11:08:20AM +0200, Oliver Fromme wrote: : > > Pawel Jakub Dawidek wrote: : > > > Modified files: : > > > sys/kern subr_param.c=20 : > > > Log: : > > > - Export HZ value via kern.hz sysctl (this is the same name as for the : > > > loader tunable). : > > : > > It's probably just me, but I don't see the usefulness of : > > this. The HZ value is already exported via kern.clockrate. : > > (I'm not saying the change is wrong, I'm just looking for : > > an explanation.) : > : > The reason for this change was that I was trying to recall what is : > the name of the tunable and I wasn't able to find it with simple : > "sysctl -a | grep hz". In an ideal world most of not all loader : > tunables should also be visible as read-only sysctls. : : Hm. It was my understanding that the loader tunables : are already exported via kenv(2), so typing "kenv" : should include them all. I was probably wrong, though. : : Thanks for the explanation. It's now clearer to me. There's a subtle difference between what's in the kenv and what the value of the tunables might be set to in the kernel. Some tunable have alignment requirements, or are ignored completely if the required driver isn't present... Warner