From owner-freebsd-current@FreeBSD.ORG Thu Jul 3 23:02:57 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 722E037B401 for ; Thu, 3 Jul 2003 23:02:57 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5EEB44014 for ; Thu, 3 Jul 2003 23:02:56 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-v8ldv6d.dsl.mindspring.com ([209.86.252.205] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19YJeS-00057y-00; Thu, 03 Jul 2003 23:02:33 -0700 Message-ID: <3F051835.7760C8B9@mindspring.com> Date: Thu, 03 Jul 2003 23:01:25 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "M. Warner Losh" References: <20030701103125.R87367@root.org> <3F021133.3040306@kasimir.com> <20030703.052315.32736625.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a450fe1b856016bed8533bb0bd0ec33228a7ce0e8f8d31aa3f350badd9bab72f9c350badd9bab72f9c cc: flo@kasimir.com cc: current@freebsd.org cc: acpi-jp@jp.freebsd.org cc: nate@root.org Subject: Re: Updated ec-burst.diff patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 06:02:57 -0000 "M. Warner Losh" wrote: > In message: <20030701164231.M88547@root.org> > Nate Lawson writes: > : On Wed, 2 Jul 2003, Florian Smeets wrote: > : > I set hw.acpi.ec.burst_mode=0 in loader.conf but when i was trying to > : > chek if it was set to 0 with sysctl hw.acpi.ec.burst_mode i got : > : > > : > flo@lappi [~] 15 #sysctl hw.acpi.ec.burst_mode > : > sysctl: unknown oid 'hw.acpi.ec.burst_mode' > : > : It's a tunable, not a sysctl. So you can only set it in loader.conf. Are > : there any messages when you boot with that in your loader.conf? Would you > : please post a separate dmesg for that case? > > I personally think that all tunable should be read-only (or rw if > possible) sysctls... Tunables are just sysctl's that are accessible from the loader namespace. Mostly, they are used for things that have no effect after SYSINIT has run, e.g. things like maxfiles, which limit the number of inpcb's and tcpcb's, such that *no matter what* you set them to after boot time, their effect is nothing -- or limited. In the case that it's limited, rather than nothing, it should be writeable. Technically, I think that all SYSCTL's should be tunables -- in other words, you should be able to set defaults via the loader for things that are runtime tunable, if your defaults don't match the compile-time values. So I would go the exact opposite of the way you are apparently suggesting. -- Terry