From owner-freebsd-questions Tue Aug 28 18:47:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.avatar.com (ns1.avatar.com [199.33.206.1]) by hub.freebsd.org (Postfix) with ESMTP id 4149037B408 for ; Tue, 28 Aug 2001 18:46:58 -0700 (PDT) (envelope-from kory@avatar.com) Received: from tomcat (tomcat.avatar.com [199.33.206.20]) by ns1.avatar.com (8.12.0.Beta8/8.12.0.Beta8) with SMTP id f7T1iOUM027508; Tue, 28 Aug 2001 18:44:25 -0700 (PDT) From: "Kory Hamzeh" To: "Tony Landells" Cc: Subject: RE: Setting sysctl variables at boot time Date: Tue, 28 Aug 2001 18:46:33 -0700 Message-ID: <007f01c1302c$6e83a4e0$14ce21c7@avatar.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <200108290052.KAA18243@tungsten.austclear.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tony, That worked for the vfs.vmiodirenable, which can be enabled at anytime. However, for the "hw.ata.wc", I get an error for sysctl saying that it is read-only. According to the FBSD Handbook, it must be turned on before filesystems are mounted. The file /etc/sysctl.conf is executed right before you go into multiuser mode, which I think it too late and that probably why I'm getting that error. There are some kernel variables that are being set (although they are commented out) in /boot/defaults/loader.conf. I added my stuff in there, but like I said, it seems to be ignored. Thanks, Kory > -----Original Message----- > From: Tony Landells [mailto:ahl@austclear.com.au] > Sent: Tuesday, August 28, 2001 5:52 PM > To: Kory Hamzeh > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: Setting sysctl variables at boot time > Importance: High > > > > kory@avatar.com said: > > I'm trying to enable IDE write caching by setting hw.ata.wc to 1 at > > boot time. The FreeBSD Handbook states that this should be done at > > boot time. So I've added 'hw.ata.wc="1"' to boot /boot/defaults/ > > loader.conf and /boot/loader.conf, but it seems as if it is not > > working. I also am trying to enable directory caching via the > > vfs.vmiodirenable variable and getting the same results (not being > > enabled). > > You should put sysctl setting in /etc/sysctl.conf to have them activated > during the boot process. > > Tony > -- > Tony Landells > Senior Network Engineer Ph: +61 3 9677 9319 > Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 > Level 4, Rialto North Tower > 525 Collins Street > Melbourne VIC 3000 > Australia > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message