linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux disk access when idle
@ 2009-08-20 16:35 Matt Garman
  2009-08-20 18:45 ` Richard Scobie
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: Matt Garman @ 2009-08-20 16:35 UTC (permalink / raw)
  To: linux-raid


The scope of this question is probably broader than Linux RAID, but
I thought I'd try here before going to the LKML...

I have a fileserver/NAS box that has four Western Digital GreenPower
drives in software RAID-5 (i.e. Linux md).  There was some noise
about these drives not too long ago: when used under Linux, they
tend to have really high (and rapidly increasing) SMART
Load_Cycle_Count values[1].

Basically, in order to save power, these drives park the read/write
heads after so many seconds of inactivity.  According to
SilentPCReview[2], the 1 TB model uses 5.7W when idle and only 3.7W
when the heads are unloaded.  Apparantly, each head parking event
causes teh Load_Cycle_Count value to increase.

Most people seek to disable this head parking behavior to stop that
Load_Cycle_Count value from growing alarmingly high.  I actually
want to use it to it's full potential.

I've got a Kill-A-Watt electricity meter connected to my NAS box.  I
see a difference of 10 watts power usage when the heads park (I can
hear them unload, so I know when it happens).  Allowing for some
power supply inefficiency, I'd say my observation is consistent with
SPCR's numbers.

The problem is, the drives don't stay in this parked state very
long.  I haven't actually timed the state changes, but average power
consumption over a long time (e.g. a week or more) is at the higher
(i.e. +10) level.

So I figure, something is accessing these drives shortly after the
heads park, causing them to un-park (and increasing power
consumption).  But this machine is idle 95% of the time.  And even
then, the overwhelming majority of the accesses are reads, with very
few writes (literally, a handful of writes per week).

So what I'm trying to figure out is, what is causing the disk
access?  It could be any one of:

    - Kernel
    - RAID subsystem (i.e. md)
    - XFS filesystem
    - NFS
    - Samba
    - ???

I'm hoping someone has enough knowledge of these systems to point me
in the right direction for tuning things.  The goal is that when the
machine is idle, it is "truly" idle, meaning, no disk accesses take
place and the heads can stay parked (thus saving energy).

Thank you,
Matt

LINKS:
[1] http://groups.google.com/group/linux.kernel/browse_thread/thread/505ccf760023d132/7e4f4e996f911efd

[2] http://www.silentpcreview.com/article804-page2.html


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2009-08-26 19:45 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 16:35 linux disk access when idle Matt Garman
2009-08-20 18:45 ` Richard Scobie
2009-08-21 16:59   ` Matt Garman
2009-08-21 17:01     ` Ric Wheeler
2009-08-22 21:04       ` Matt Garman
2009-08-23 18:23         ` Bill Davidsen
2009-08-26 19:45         ` Matt Garman
2009-08-22  6:33     ` Goswin von Brederlow
2009-08-21  6:42 ` Henry, Andrew
2009-08-21  8:17   ` Jon Hardcastle
2009-08-21 16:35     ` Foster_Brian
2009-08-21 17:31       ` Matt Garman
2009-08-21 17:22   ` Matt Garman
2009-08-21 22:00 ` Bill Davidsen
2009-08-21 23:10   ` Matt Garman
2009-08-21 23:13     ` Carl A. Cook
2009-08-22  1:41       ` berk walker
2009-08-22  2:07         ` John Robinson
2009-08-22  4:28           ` Richard Scobie
2009-08-22  5:04     ` Tapani Tarvainen
2009-08-22  6:37       ` Goswin von Brederlow
2009-08-24 18:07       ` Billy Crook
2009-08-22  5:02 ` Kyle Liddell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).