Date: Mon, 9 Apr 2007 13:25:28 -0700 (PDT) From: youshi10@u.washington.edu To: freebsd-hackers@freebsd.org Subject: Re: Discovering list of open files from "kernel level" without using utils like lsof Message-ID: <Pine.LNX.4.43.0704091325280.23549@hymn09.u.washington.edu> In-Reply-To: <20070409195624.GA87746@keira.kiwi-computer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 9 Apr 2007, Rick C. Petty wrote: > On Sun, Apr 08, 2007 at 11:05:48AM -0700, Garrett Cooper wrote: >> I'm trying to see if there's a simple tool that I could code in C/C++ >> if necessary to spin down disks automatically to save power and disk >> life. Plus, I think that lsof actually would probe the devices and 'wake >> them up' instead of keeping them as-is. However, I could be wrong so if >> I am please let me know. > > I read somewhere once that keeping disks spinning makes them last 10x > longer. > > Personally, I've seen more disk failures on workstations which are > power-cycled regularly than on systems which are always running. > > I've also seen disks work just fine while powered that just plain quit > immediately after a power cycle. > > So you may save power by spinning the disks down, but I doubt you're > saving disk life (unless they're powered down for weeks at a time). > > -- Rick C. Petty Hence the followup post. -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.43.0704091325280.23549>