2005-11-19 17:41:23

by Marc Perkel

[permalink] [raw]
Subject: Does Linux support powering down SATA drives?

Trying to save power consumption. I have a backup drive that is used
only once a day to back up the main drive. So - why should I run it more
that 10 minutes a day? What I'd like to do is keep it in an off state
and then at night power it on, mount it up, do the backup, unmount it,
and shut it down. Can I do that?


2005-11-19 18:29:58

by Alan

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Sad, 2005-11-19 at 09:41 -0800, Marc Perkel wrote:
> Trying to save power consumption. I have a backup drive that is used
> only once a day to back up the main drive. So - why should I run it more
> that 10 minutes a day? What I'd like to do is keep it in an off state
> and then at night power it on, mount it up, do the backup, unmount it,
> and shut it down. Can I do that?


SATA not yet, USB you could however.

2005-11-19 19:01:01

by Alistair John Strachan

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Saturday 19 November 2005 19:01, Alan Cox wrote:
> On Sad, 2005-11-19 at 09:41 -0800, Marc Perkel wrote:
> > Trying to save power consumption. I have a backup drive that is used
> > only once a day to back up the main drive. So - why should I run it more
> > that 10 minutes a day? What I'd like to do is keep it in an off state
> > and then at night power it on, mount it up, do the backup, unmount it,
> > and shut it down. Can I do that?
>
> SATA not yet, USB you could however.

Or PATA, of course. I switch off two of my HDs 4 minutes after last use with
the commands:

hdparm -S 48 /dev/hde
hdparm -S 48 /dev/hdg

Isn't there a passthru patch in the works to let commands, such as the one
required for suspend, through to a SATA device?

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

2005-11-19 19:15:00

by Marc Perkel

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?



Alistair John Strachan wrote:

>On Saturday 19 November 2005 19:01, Alan Cox wrote:
>
>
>>On Sad, 2005-11-19 at 09:41 -0800, Marc Perkel wrote:
>>
>>
>>>Trying to save power consumption. I have a backup drive that is used
>>>only once a day to back up the main drive. So - why should I run it more
>>>that 10 minutes a day? What I'd like to do is keep it in an off state
>>>and then at night power it on, mount it up, do the backup, unmount it,
>>>and shut it down. Can I do that?
>>>
>>>
>>SATA not yet, USB you could however.
>>
>>
>
>Or PATA, of course. I switch off two of my HDs 4 minutes after last use with
>the commands:
>
>hdparm -S 48 /dev/hde
>hdparm -S 48 /dev/hdg
>
>Isn't there a passthru patch in the works to let commands, such as the one
>required for suspend, through to a SATA device?
>
>
>

So - why isn't there more SATA support. Seems like this and SMART aren't
supported. What's up with that? Why is SATA harder than IDE?

--
Marc Perkel - [email protected]

Spam Filter: http://www.junkemailfilter.com
My Blog: http://marc.perkel.com

2005-11-19 19:44:37

by Jeff Woods

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

At 11:14 -0800 11/19/2005, Marc Perkel wrote:
>So - why isn't there more SATA support. Seems like this and SMART
>aren't supported. What's up with that? Why is SATA harder than IDE?

I think it's a case of "newer" rather than "harder" (but that doesn't
make it less frustrating).

--
Jeff Woods <[email protected]>

2005-11-19 19:53:21

by Alan

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Sad, 2005-11-19 at 19:00 +0000, Alistair John Strachan wrote:
> > SATA not yet, USB you could however.
>
> Or PATA, of course. I switch off two of my HDs 4 minutes after last use with
> the commands:
>
> hdparm -S 48 /dev/hde
> hdparm -S 48 /dev/hdg
>
> Isn't there a passthru patch in the works to let commands, such as the one
> required for suspend, through to a SATA device?

The latest kernels support command passthrough for SMART and the like
but hdparm -S does not "switch off" anything. It may spin a drive down
but the power consumption of 23 hours a day of "spun down" is
significant, probably more than the hour it is powered up.

Same as the problem with many household devices in standby that actually
end up using as lot of power in their many "turned off" hours

2005-11-19 20:21:47

by Alistair John Strachan

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Saturday 19 November 2005 20:25, Alan Cox wrote:
> On Sad, 2005-11-19 at 19:00 +0000, Alistair John Strachan wrote:
> > > SATA not yet, USB you could however.
> >
> > Or PATA, of course. I switch off two of my HDs 4 minutes after last use
> > with the commands:
> >
> > hdparm -S 48 /dev/hde
> > hdparm -S 48 /dev/hdg
> >
> > Isn't there a passthru patch in the works to let commands, such as the
> > one required for suspend, through to a SATA device?
>
> The latest kernels support command passthrough for SMART and the like
> but hdparm -S does not "switch off" anything. It may spin a drive down
> but the power consumption of 23 hours a day of "spun down" is
> significant, probably more than the hour it is powered up.

Interesting.

> Same as the problem with many household devices in standby that actually
> end up using as lot of power in their many "turned off" hours

My mistake, I was unaware of the difference between "Suspend" and (presumably)
"Sleep". I've tried the latter without success on a Maxtor 120G here, does
this work for anybody else (hdparm -Y)?

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

2005-11-19 20:30:45

by Ondrej Zary

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

Alistair John Strachan wrote:
> My mistake, I was unaware of the difference between "Suspend" and (presumably)
> "Sleep". I've tried the latter without success on a Maxtor 120G here, does
> this work for anybody else (hdparm -Y)?

I've tried hdparm -Y - only once - the drive went to sleep mode and did
not came back, I had to use reset button.

--
Ondrej Zary

2005-11-19 21:17:29

by Alan

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Sad, 2005-11-19 at 20:21 +0000, Alistair John Strachan wrote:
> > Same as the problem with many household devices in standby that actually
> > end up using as lot of power in their many "turned off" hours
>
> My mistake, I was unaware of the difference between "Suspend" and (presumably)
> "Sleep". I've tried the latter without success on a Maxtor 120G here, does
> this work for anybody else (hdparm -Y)?

The power consumption situation is as true for suspend as sleep. Only
pulling the plug makes that difference. At the moment the SATA layer
doesn't support hot unplugging the drive which is what is really needed.

2005-11-19 21:20:09

by Marc Perkel

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?



Alan Cox wrote:

>On Sad, 2005-11-19 at 19:00 +0000, Alistair John Strachan wrote:
>
>
>>>SATA not yet, USB you could however.
>>>
>>>
>>Or PATA, of course. I switch off two of my HDs 4 minutes after last use with
>>the commands:
>>
>>hdparm -S 48 /dev/hde
>>hdparm -S 48 /dev/hdg
>>
>>Isn't there a passthru patch in the works to let commands, such as the one
>>required for suspend, through to a SATA device?
>>
>>
>
>The latest kernels support command passthrough for SMART and the like
>but hdparm -S does not "switch off" anything. It may spin a drive down
>but the power consumption of 23 hours a day of "spun down" is
>significant, probably more than the hour it is powered up.
>
>Same as the problem with many household devices in standby that actually
>end up using as lot of power in their many "turned off" hours
>
>

I didn't actually mean totally power off. Spin down would be fine with
me. Just seems like a waste to run a drive for 24 hours that is used
only for 10 minutes. That drive is there so if the main drive blows I
can run down to the datacenter and move one cable and be back up again.

You know what's interesting is that I read somewhere that computers use
as much power as 4 hoover dams can generate. And since a lit of these
computer are running Linux just a few lines of code can create enough
energy savings to perhaps power a small city. Kind of amazing when you
think about it.

SATA isn't really "new" any more. I personally consider IDE to be
obsolete. Seems to me that Linux should fully support SATA to the same
level as IDE drives. And I'm saying that as someone who doesn't have to
actually code it. But I will leave messages of praise and thanks in this
mailing list if you all catch up.

2005-11-19 23:04:22

by Alistair John Strachan

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Saturday 19 November 2005 21:20, Marc Perkel wrote:
[snip]
>
> SATA isn't really "new" any more. I personally consider IDE to be
> obsolete. Seems to me that Linux should fully support SATA to the same
> level as IDE drives. And I'm saying that as someone who doesn't have to
> actually code it. But I will leave messages of praise and thanks in this
> mailing list if you all catch up.

As Alan mentions in another thread, what is needed is true hotplug support,
which is difficult with some controllers for which we have poor (or no)
documentation. I wouldn't hold your breath.

As for pass-thru standby/sleep commands, as long as the pass-thru patch got
into mainline, try a very recent version of hdparm which should understand
sending the ATA commands over SCSI (libata).

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

2005-11-20 00:57:52

by James Courtier-Dutton

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

Marc Perkel wrote:
> Trying to save power consumption. I have a backup drive that is used
> only once a day to back up the main drive. So - why should I run it more
> that 10 minutes a day? What I'd like to do is keep it in an off state
> and then at night power it on, mount it up, do the backup, unmount it,
> and shut it down. Can I do that?
>

Support is being added soon, I think the latest 2.6.15-rc1 supports
passthru. I had to install an extra patch due to a bug where it used the
same IDE device irrespective of one asking for /dev/sda or /dev/sdb
I think the fix will be in rc2.

hdparm -S60 works fine for me. It spins down, and therefore stay nices a
cool.
hdparm -y should work, and is like an immeadiate -S
hdparm -Y is kind of dangerous at the moment. It powers down the drive,
but will not come back unless the entire IDE bus goes through a reset.
The feature to support that is called hotplug, but that is not
implemented yet for SATA. So, basically, if you do hdparm -Y, you won't
be able to wake it up again at the moment. At least hdparm -S60 is a
start towards what you want.

James

2005-11-20 01:54:14

by Rogério Brito

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Nov 19 2005, Alan Cox wrote:
> On Sad, 2005-11-19 at 09:41 -0800, Marc Perkel wrote:
> > Trying to save power consumption.
>
> SATA not yet, USB you could however.

And what about Firewire? I see that MacOS X automatically spins down the
drive when I unmount it from a Mac.

Would it be possible to have this feature available for userspace (where
I would think would be the proper place for the policy controlling this
thing)?


Thanks for any comments, Rog?rio Brito.

--
Rog?rio Brito : [email protected] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat: http://freshmeat.net/projects/algorithms/

2005-11-20 01:59:33

by Rogério Brito

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Nov 19 2005, Alan Cox wrote:
> It may spin a drive down but the power consumption of 23 hours a day
> of "spun down" is significant, probably more than the hour it is
> powered up.

Of course, so obvious now that you point it out.


Thanks, Rog?rio Brito.

--
Rog?rio Brito : [email protected] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat: http://freshmeat.net/projects/algorithms/

2005-11-20 02:09:40

by Marc Perkel

[permalink] [raw]
Subject: resyncing broken software raid 1

OK - I must be blind but what do you do in FC4 to resync a borken raid 1
array? It's software raid. I thought it was raidhotadd but can't get that
to work.

What am I missig?


2005-11-20 02:23:16

by Kyle Moffett

[permalink] [raw]
Subject: Re: resyncing broken software raid 1

On Nov 19, 2005, at 21:09:39, Marc Perkel wrote:

> OK - I must be blind but what do you do in FC4 to resync a borken
> raid 1 array? It's software raid. I thought it was raidhotadd but
> can't get that to work.
>

Please create a new thread (instead of responding to a message in an
existing thread) when you want to discuss a new topic.

See "man mdadm" for more info, raidtools have been deprecated for a
long time.

Cheers,
Kyle Moffett


2005-11-20 07:23:12

by Andrew Smith

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

I would agree with your view on IDE becoming obsolete on hard drives, but I as
yet, am not aware of any CD/DVD drives with a SATA interface.




On Sat, 19 Nov 2005, Alistair John Strachan wrote:

> On Saturday 19 November 2005 21:20, Marc Perkel wrote:
> [snip]
>>
>> SATA isn't really "new" any more. I personally consider IDE to be
>> obsolete. Seems to me that Linux should fully support SATA to the same
>> level as IDE drives. And I'm saying that as someone who doesn't have to
>> actually code it. But I will leave messages of praise and thanks in this
>> mailing list if you all catch up.
>
> As Alan mentions in another thread, what is needed is true hotplug support,
> which is difficult with some controllers for which we have poor (or no)
> documentation. I wouldn't hold your breath.
>
> As for pass-thru standby/sleep commands, as long as the pass-thru patch got
> into mainline, try a very recent version of hdparm which should understand
> sending the ATA commands over SCSI (libata).
>
>

2005-11-20 12:19:27

by Douglas Gilbert

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

Marc Perkel wrote:
> Trying to save power consumption. I have a backup drive that is used
> only once a day to back up the main drive. So - why should I run it more
> that 10 minutes a day? What I'd like to do is keep it in an off state
> and then at night power it on, mount it up, do the backup, unmount it,
> and shut it down. Can I do that?

Yes, from lk 2.6.14 onwards.

An implementation (based on SAT:
http://www.t10.org/ftp/t10/drafts/sat/sat-r07.pdf) of
the START STOP UNIT SCSI command went into libata in
lk 2.6.14 . Hence you can use SCSI tools such as
sg_start (sg3_utils) or sdparm (sdparm) to place a
SATA disk in standby mode. For example:
"sg_start 0 /dev/sda" and "sdparm --command=stop /dev/sda"
are equivalent to "hdparm -y". The next command sent to that
disk will cause it to spin up again.

The power state machines of SCSI disks, ATA disks
and CD/DVD drives overlap but are not the same.
SATA and SAS transports add some wrinkles, see:
http://www.torque.net/sg/power.html
Spinning down disks with no mounted file systems makes
sense. However repeatedly spinning down a disk that is
periodically (e.g. 30 seconds later) accessed may shorten
its life.

In lk 2.6.15-rc1 implementations of the ATA COMMAND
PASS THROUGH (12 and 16 byte) SCSI commands went into
libata. These are defined in SAT (reference above).
libata also translates the HDIO_DRIVE_CMD and
HDIO_DRIVE_TASK ioctls into those pass through commands.
Recent versions of hdparm (I've tried 6.1 and 6.3) work as
expected. Hence "hdparm -y /dev/sda" puts the libata-connected
SATA disk /dev/sda into standby mode.
smartmontools also works for libata-connected SATA disks
in lk 2.6.15-rc1 .

The picture is not as bright for external USB and
1394 enclosures of ATA disks. They need to either
support the START STOP UNIT SCSI command or the
SAT pass through commands. I have not seen the
former and won't hold my breath waiting for the
latter.

Doug Gilbert

2005-11-20 15:53:51

by Marc Perkel

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?



[email protected] wrote:

> I would agree with your view on IDE becoming obsolete on hard drives,
> but I as yet, am not aware of any CD/DVD drives with a SATA interface.
>

That's something that amazes me - why aren't there anu SATA CD/DVD
drives? Seems to me that CD/DVD could have the same benifits of using a
thin cable and eventually getting away from the IDE interface. Or -
since there are usually plenty of USB 2 ports, why not have a CD/DVD
that internally connect to USB?

Another thing I've wondered about was why not build a 3 1/2 inch CD/DVD
drive? There are plenty of the small disks available. Seems like a
logical product to develop.

2005-11-20 16:07:10

by Marc Perkel

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?



Tomasz Torcz wrote:

>On Sun, Nov 20, 2005 at 07:53:49AM -0800, Marc Perkel wrote:
>
>
>>[email protected] wrote:
>>
>>
>>
>>>I would agree with your view on IDE becoming obsolete on hard drives,
>>>but I as yet, am not aware of any CD/DVD drives with a SATA interface.
>>>
>>>
>>>
>>That's something that amazes me - why aren't there anu SATA CD/DVD
>>drives? Seems to me that CD/DVD could have the same benifits of using a
>>thin cable and eventually getting away from the IDE interface.
>>
>>
>
> You can rip one from an Xbox 360 :)
>
>
>

Oh? What does the Xbox have in it?

--
Marc Perkel - [email protected]

Spam Filter: http://www.junkemailfilter.com
My Blog: http://marc.perkel.com

2005-11-20 16:04:56

by Tomasz Torcz

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Sun, Nov 20, 2005 at 07:53:49AM -0800, Marc Perkel wrote:
>
>
> [email protected] wrote:
>
> >I would agree with your view on IDE becoming obsolete on hard drives,
> >but I as yet, am not aware of any CD/DVD drives with a SATA interface.
> >
>
> That's something that amazes me - why aren't there anu SATA CD/DVD
> drives? Seems to me that CD/DVD could have the same benifits of using a
> thin cable and eventually getting away from the IDE interface.

You can rip one from an Xbox 360 :)

--
Tomasz Torcz Morality must always be based on practicality.
[email protected] -- Baron Vladimir Harkonnen


Attachments:
(No filename) (652.00 B)
(No filename) (229.00 B)
Download all attachments

2005-11-20 16:08:38

by Alistair John Strachan

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Sunday 20 November 2005 07:22, [email protected] wrote:
> I would agree with your view on IDE becoming obsolete on hard drives, but I
> as yet, am not aware of any CD/DVD drives with a SATA interface.
>

Pioneer make a SATA DVD writer.

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

2005-11-20 16:17:38

by Tomasz Torcz

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Sun, Nov 20, 2005 at 08:07:07AM -0800, Marc Perkel wrote:
> Tomasz Torcz wrote:
>
> >On Sun, Nov 20, 2005 at 07:53:49AM -0800, Marc Perkel wrote:
> >
> >
> >>[email protected] wrote:
> >>
> >>>I would agree with your view on IDE becoming obsolete on hard drives,
> >>>but I as yet, am not aware of any CD/DVD drives with a SATA interface.
> >>>
> >>That's something that amazes me - why aren't there anu SATA CD/DVD
> >>drives? Seems to me that CD/DVD could have the same benifits of using a
> >>thin cable and eventually getting away from the IDE interface.
> >>
> >>
> >
> >You can rip one from an Xbox 360 :)
> >
>
> Oh? What does the Xbox have in it?

Xbox *360* - http://www.anandtech.com/systems/showdoc.aspx?i=2610&p=4
Very thin on details, unfortunately.

--
Tomasz Torcz Morality must always be based on practicality.
[email protected] -- Baron Vladimir Harkonnen

2005-11-21 00:27:27

by Nicolas Mailhot

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

> I would agree with your view on IDE becoming obsolete on hard drives,
> but I as yet, am not aware of any CD/DVD drives with a SATA interface.

$ cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: PLEXTOR Model: DVDR PX-716A Rev: 1.09
Type: CD-ROM ANSI SCSI revision: 05
Host: scsi4 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: Maxtor 6L300S0 Rev: BANC
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi5 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: Maxtor 6L300S0 Rev: BANC
Type: Direct-Access ANSI SCSI revision: 05
$ /sbin/lspci | grep -i scsi
$ /sbin/lspci | grep -i ata
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller
(rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller
(rev f3)
01:09.0 Mass storage controller: Silicon Image, Inc. SiI 3114
[SATALink/SATARaid] Serial ATA Controller (rev 02)

And BTW,

# /sbin/hdparm -M 128 /dev/hda

/dev/hda:
setting acoustic management to 128
acoustic = 0 (128=quiet ... 254=fast)

(failure but I don't care the drive is old and already in AAM mode)

# /sbin/hdparm -M 128 /dev/sda

/dev/sda:
setting acoustic management to 128
HDIO_GET_ACOUSTIC failed: Inappropriate ioctl for device

(This drive however is not and needs it dearly. Plus it's the Linux
drive, so it's used most of the time)

Regards,

--
Nicolas Mailhot


Attachments:
signature.asc (197.00 B)
Ceci est une partie de message num?riquement sign

2005-11-21 00:39:38

by Pavel Machek

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Sat 19-11-05 20:25:07, Alan Cox wrote:
> On Sad, 2005-11-19 at 19:00 +0000, Alistair John Strachan wrote:
> > > SATA not yet, USB you could however.
> >
> > Or PATA, of course. I switch off two of my HDs 4 minutes after last use with
> > the commands:
> >
> > hdparm -S 48 /dev/hde
> > hdparm -S 48 /dev/hdg
> >
> > Isn't there a passthru patch in the works to let commands, such as the one
> > required for suspend, through to a SATA device?
>
> The latest kernels support command passthrough for SMART and the like
> but hdparm -S does not "switch off" anything. It may spin a drive down
> but the power consumption of 23 hours a day of "spun down" is
> significant, probably more than the hour it is powered up.

Really? Harddrive does not contain AC/DC converters, so situation should be slightly
better there, no?
Pavel
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

2005-11-21 03:39:21

by Robert Hancock

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

[email protected] wrote:
> I would agree with your view on IDE becoming obsolete on hard drives,
> but I as yet, am not aware of any CD/DVD drives with a SATA interface.

They are still uncommon, but do exist. I suspect part of the reason is
that the advantages of SATA aren't as compelling for optical drives, and
not everybody has a machine that supports SATA.

As pointed out, the XBox 360 uses an SATA DVD-ROM drive..

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/

2005-11-21 07:24:51

by Jens Axboe

[permalink] [raw]
Subject: Re: resyncing broken software raid 1

On Sat, Nov 19 2005, Kyle Moffett wrote:
> On Nov 19, 2005, at 21:09:39, Marc Perkel wrote:
>
> >OK - I must be blind but what do you do in FC4 to resync a borken
> >raid 1 array? It's software raid. I thought it was raidhotadd but
> >can't get that to work.
> >
>
> Please create a new thread (instead of responding to a message in an
> existing thread) when you want to discuss a new topic.

And even better, ask in a forum appropriate to your question.
Unfortunately some people have a bad habbit of posting completely off
topic questions on lkml.

--
Jens Axboe

2005-11-21 08:49:08

by Stefan Seyfried

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

Pavel Machek wrote:
> On Sat 19-11-05 20:25:07, Alan Cox wrote:

>> The latest kernels support command passthrough for SMART and the like
>> but hdparm -S does not "switch off" anything. It may spin a drive down
>> but the power consumption of 23 hours a day of "spun down" is
>> significant, probably more than the hour it is powered up.
>
> Really? Harddrive does not contain AC/DC converters, so situation should be slightly
> better there, no?

it is 7.5W vs. 0.9W (idle vs standby or sleep) on a Barracuda 120GB
7200rpm desktop drive. Notebook drives are doing better:

0.65W vs 0.25W (idle vs standby) or
0.65W vs 0.1W (idle vs sleep) on some Hitachi Travelstar.

Better than nothing, but pulling the plug is even better :-)
--
Stefan Seyfried \ "I didn't want to write for pay. I
QA / R&D Team Mobile Devices \ wanted to be paid for what I write."
SUSE LINUX Products GmbH, N?rnberg \ -- Leonard Cohen

2005-11-21 15:43:19

by Mark Lord

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

Yes, the hdparm -y, -Y, and -S flags all work with the passthru feature set,
which is included in the 2.6.15-rc* kernels.

Typical power consumption figures, from WDC SataII drives:

Idle: 430mA@12VDC + 730mA@5VDC (about 8.75 watts)
Standby: 20mA@12VDC + 270mA@5VDC (about 1.60 watts)
Sleep: 20mA@12VDC + 250mA@5VDC (about 1.50 watts)

Those are from the WDC datasheets.

Cheers

2005-11-21 15:49:31

by Marc Perkel

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?



Mark Lord wrote:

> Yes, the hdparm -y, -Y, and -S flags all work with the passthru
> feature set,
> which is included in the 2.6.15-rc* kernels.
>
> Typical power consumption figures, from WDC SataII drives:
>
> Idle: 430mA@12VDC + 730mA@5VDC (about 8.75 watts)
> Standby: 20mA@12VDC + 270mA@5VDC (about 1.60 watts)
> Sleep: 20mA@12VDC + 250mA@5VDC (about 1.50 watts)
>
> Those are from the WDC datasheets.
>
> Cheers


Here's maxotor specs

Power
Spinup (avg, watts) 28.7
Seek (avg, watts) 12.3
Idle (avg, watts) 7.0
Standby (avg, watts) 2.1

--
Marc Perkel - [email protected]

Spam Filter: http://www.junkemailfilter.com
My Blog: http://marc.perkel.com

2005-11-21 16:21:25

by Rob Landley

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Sunday 20 November 2005 01:22, [email protected] wrote:
> I would agree with your view on IDE becoming obsolete on hard drives, but I
> as yet, am not aware of any CD/DVD drives with a SATA interface.

Laptops?

Rob

2005-11-21 16:51:20

by Jeff Garzik

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Mon, Nov 21, 2005 at 10:21:21AM -0600, Rob Landley wrote:
> On Sunday 20 November 2005 01:22, [email protected] wrote:
> > I would agree with your view on IDE becoming obsolete on hard drives, but I
> > as yet, am not aware of any CD/DVD drives with a SATA interface.
>
> Laptops?

Laptops will likely get S/ATAPI later rather than sooner.

But there are definitely S/ATAPI devices out there. Most are first
generation, which means they are PATA devices with a SATA bridge (thus
they appear to the end user to be SATA).

Jeff



2005-11-21 17:14:25

by Jason L Tibbitts III

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

>>>>> "a" == asmith <[email protected]> writes:

a> I would agree with your view on IDE becoming obsolete on hard
a> drives, but I as yet, am not aware of any CD/DVD drives with a SATA
a> interface.

The Plextor PX-716SA is pretty common and very nice; I have one in a
(Windows) gaming box I put together about six months ago.

- J<

2005-11-21 17:34:16

by Rob Landley

[permalink] [raw]
Subject: Re: Does Linux support powering down SATA drives?

On Monday 21 November 2005 10:51, Jeff Garzik wrote:
> On Mon, Nov 21, 2005 at 10:21:21AM -0600, Rob Landley wrote:
> > On Sunday 20 November 2005 01:22, [email protected] wrote:
> > > I would agree with your view on IDE becoming obsolete on hard drives,
> > > but I as yet, am not aware of any CD/DVD drives with a SATA interface.
> >
> > Laptops?
>
> Laptops will likely get S/ATAPI later rather than sooner.

Sorry, I meant IDE isn't becoming obsolete on laptops just yet.

Eventually, sure...

Rob