From owner-freebsd-questions@FreeBSD.ORG Fri Nov 13 21:21:43 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 183171065676 for ; Fri, 13 Nov 2009 21:21:43 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout015.mac.com (asmtpout015.mac.com [17.148.16.90]) by mx1.freebsd.org (Postfix) with ESMTP id 060848FC12 for ; Fri, 13 Nov 2009 21:21:42 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp015.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KT200JHZGO6BI30@asmtp015.mac.com> for freebsd-questions@freebsd.org; Fri, 13 Nov 2009 13:21:42 -0800 (PST) Message-id: From: Chuck Swiger To: James Phillips In-reply-to: <474730.92984.qm@web65506.mail.ac4.yahoo.com> Date: Fri, 13 Nov 2009 13:21:42 -0800 References: <474730.92984.qm@web65506.mail.ac4.yahoo.com> X-Mailer: Apple Mail (2.936) Cc: freebsd-questions@freebsd.org Subject: Re: APM X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2009 21:21:43 -0000 Hi-- On Nov 13, 2009, at 12:15 PM, James Phillips wrote: > I initially set the time-out to 60 seconds, then 300 seconds in a > vain attempt to see the actual power savings. With a 900 second time- > out, the drive only spun down once in the past 12 hours. > > It appears that syslogd can defer *one* log entry. Understandable, > since you don't want to loose too many logs in a power failure. One of the first things you should consider is either disabling syslogd entirely, or else setup logging to a RAMdisk (ie, have an initial copy of what's in /var on the hard disk, setup a RAMdisk and mount as /var, then copy over the /var tree from hard drive to RAMdisk during early stages of system boot). The advice given for NanoBSD or embedded NetBSD systems about conserving writes to a flash-based filesystem would be helpful in your case. You might also want to note that 2.5" laptop drives are/should be explicitly designed to spin down and park themselves much more often than generic IDE drives are; some generic desktop drives will fail quite rapidly (ie, in a matter of months) if you attempt to spin them down many times a day. You might also give some consideration to trying a Mac Mini with maximum power-savings mode enabled; OSX provides significant amounts of hysteresis to avoid spinning the disks up and down, and will buffer significant amounts of data being changed into RAM to coalesce filesystem activity into fewer periods of disk activity. Regards, -- -Chuck