[ltp] hdparm & spindown time : still having problems

Javier (a.k.a AlBundy) linux-thinkpad@linux-thinkpad.org
Wed, 14 Dec 2005 21:47:57 +0100


On 12/14/05, Jiang Qian <qian2@fas.harvard.edu> wrote:
> On Wed, Dec 14, 2005 at 09:17:25PM +0100, Javier (a.k.a AlBundy) wrote:
> > On 12/14/05, Paul RIVIER <paul.rivier@eleve.emn.fr> wrote:
> > > Hi,
> > >
> > > for a reason I really can't understand, issuing hdparm -S 5 /dev/hda
> > > will never spin the disk down.
> > > I know that was already discussed here, but not really solve.
> > >
> > > This is not a problem of IO on the disk, as I use laptop mode and a
> > > hdparm -y /dev/hda command will spin it down perfectly and until then
> > > next IO call.
> >
> > Maybe a problematic process.
> >
> > Can you post:
> >  [root]# ps -aux
> I doubt it is a problematic process because I monitor disk access from
> gkrellm in real time and no disk access happen for a long time yet the
> disk still doesn't spin down. Furthermore won't a problematic process
> wake up the disk from hdparm -y sleep?

I don=B4t know, but in hdparm manpage:
=B7hdparm -y:   Force an IDE drive to immediately enter into "standby
mode", usually causing it to spin down.

=B7hdparm -Y:  Force an IDE drive to immediately enter into "sleep
mode", causing it to shut down completely. A hard or soft reset is
required before the drive can be accessed again (the Linux IDE driver
will automatically handle issuing a reset if/when needed).

Linux IDE driver forces a reset if a process wants a disk access?. I don=B4=
t know.


Another posibility: do you use a journaled filesystem?. Look this:
     http://bulma.net/body.phtml?nIdNoticia=3D1511

Javier