* [patch 0/3] AHCI Link Power Management
@ 2007-06-11 18:46 Kristen Carlson Accardi
2007-06-12 1:58 ` Tejun Heo
0 siblings, 1 reply; 20+ messages in thread
From: Kristen Carlson Accardi @ 2007-06-11 18:46 UTC (permalink / raw)
To: jeff, james.bottomley; +Cc: linux-ide, linux-scsi, linux-kernel, htejun, arjan
Hi,
This series of patches enables Aggressive Link Power Management for AHCI
devices, as documented in the AHCI spec. On my laptop (a Lenovo X60), this
saves me a full watt of power. On other systems, reported power savings
range from .5-1.5 Watts. It has been tested by the kind folks at #powertop
with similar results. Please give it a try and let me know what you think.
thanks,
Kristen
--
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-11 18:46 [patch 0/3] AHCI Link Power Management Kristen Carlson Accardi
@ 2007-06-12 1:58 ` Tejun Heo
2007-06-12 2:33 ` Jeff Garzik
2007-06-12 2:34 ` Arjan van de Ven
0 siblings, 2 replies; 20+ messages in thread
From: Tejun Heo @ 2007-06-12 1:58 UTC (permalink / raw)
To: Kristen Carlson Accardi
Cc: jeff, james.bottomley, linux-ide, linux-scsi, linux-kernel, arjan
Kristen Carlson Accardi wrote:
> Hi,
> This series of patches enables Aggressive Link Power Management for AHCI
> devices, as documented in the AHCI spec. On my laptop (a Lenovo X60), this
> saves me a full watt of power. On other systems, reported power savings
> range from .5-1.5 Watts. It has been tested by the kind folks at #powertop
> with similar results. Please give it a try and let me know what you think.
I'm not sure about this. We need better PM framework to support
powersaving in other controllers and some ahcis don't save much when
only link power management is used, they need to be turned off
completely && I don't think scsi sysfs is the right place to export this
interface.
--
tejun
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 1:58 ` Tejun Heo
@ 2007-06-12 2:33 ` Jeff Garzik
2007-06-12 2:34 ` Arjan van de Ven
1 sibling, 0 replies; 20+ messages in thread
From: Jeff Garzik @ 2007-06-12 2:33 UTC (permalink / raw)
To: Tejun Heo
Cc: Kristen Carlson Accardi, james.bottomley, linux-ide, linux-scsi,
linux-kernel, arjan
Tejun Heo wrote:
> Kristen Carlson Accardi wrote:
>> Hi,
>> This series of patches enables Aggressive Link Power Management for AHCI
>> devices, as documented in the AHCI spec. On my laptop (a Lenovo X60), this
>> saves me a full watt of power. On other systems, reported power savings
>> range from .5-1.5 Watts. It has been tested by the kind folks at #powertop
>> with similar results. Please give it a try and let me know what you think.
>
> I'm not sure about this. We need better PM framework to support
> powersaving in other controllers and some ahcis don't save much when
> only link power management is used, they need to be turned off
A better PM framework would definitely be nice :)
> completely && I don't think scsi sysfs is the right place to export this
> interface.
That's about the only place we have right now.
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 1:58 ` Tejun Heo
2007-06-12 2:33 ` Jeff Garzik
@ 2007-06-12 2:34 ` Arjan van de Ven
2007-06-12 3:12 ` Jeff Garzik
2007-06-12 4:13 ` Tejun Heo
1 sibling, 2 replies; 20+ messages in thread
From: Arjan van de Ven @ 2007-06-12 2:34 UTC (permalink / raw)
To: Tejun Heo
Cc: Kristen Carlson Accardi, jeff, james.bottomley, linux-ide,
linux-scsi, linux-kernel
Tejun Heo wrote:
> Kristen Carlson Accardi wrote:
>> Hi,
>> This series of patches enables Aggressive Link Power Management for AHCI
>> devices, as documented in the AHCI spec. On my laptop (a Lenovo X60), this
>> saves me a full watt of power. On other systems, reported power savings
>> range from .5-1.5 Watts. It has been tested by the kind folks at #powertop
>> with similar results. Please give it a try and let me know what you think.
>
> I'm not sure about this. We need better PM framework to support
> powersaving in other controllers and some ahcis don't save much when
> only link power management is used,
do you have data to support this? The data we have from this patch is
that it saves typically a Watt of power (depends on the machine of
course, but the range is 0.5W to 1.5W). If you want to also have an
even more agressive thing where you want to start disabling the entire
controller... I don't see how this is in conflict with saving power on
the link level by "just" enabling a hardware feature ....
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 3:12 ` Jeff Garzik
@ 2007-06-12 3:12 ` Arjan van de Ven
2007-06-12 3:18 ` Jeff Garzik
0 siblings, 1 reply; 20+ messages in thread
From: Arjan van de Ven @ 2007-06-12 3:12 UTC (permalink / raw)
To: Jeff Garzik
Cc: Tejun Heo, Kristen Carlson Accardi, james.bottomley, linux-ide,
linux-scsi, linux-kernel
Jeff Garzik wrote:
> Arjan van de Ven wrote:
>> Tejun Heo wrote:
>>> Kristen Carlson Accardi wrote:
>>>> Hi,
>>>> This series of patches enables Aggressive Link Power Management for
>>>> AHCI devices, as documented in the AHCI spec. On my laptop (a
>>>> Lenovo X60), this
>>>> saves me a full watt of power. On other systems, reported power
>>>> savings
>>>> range from .5-1.5 Watts. It has been tested by the kind folks at
>>>> #powertop
>>>> with similar results. Please give it a try and let me know what you
>>>> think.
>>>
>>> I'm not sure about this. We need better PM framework to support
>>> powersaving in other controllers and some ahcis don't save much when
>>> only link power management is used,
>>
>> do you have data to support this? The data we have from this patch is
>> that it saves typically a Watt of power (depends on the machine of
>> course, but the range is 0.5W to 1.5W). If you want to also have an
>> even more agressive thing where you want to start disabling the entire
>> controller... I don't see how this is in conflict with saving power on
>> the link level by "just" enabling a hardware feature ....
>
> SATA standard defines lower power phy states. So the same argument
> you're using for AHCI applies there too -- "just" enabling an existing
> hardware feature.
>
yes I'm not arguing against that. I was trying to find out (and
suggest-unless-proven-otherwise) that the 2 are not exclusive or
conflicting... in fact I assume both are wanted concurrently.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 2:34 ` Arjan van de Ven
@ 2007-06-12 3:12 ` Jeff Garzik
2007-06-12 3:12 ` Arjan van de Ven
2007-06-12 4:13 ` Tejun Heo
1 sibling, 1 reply; 20+ messages in thread
From: Jeff Garzik @ 2007-06-12 3:12 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Tejun Heo, Kristen Carlson Accardi, james.bottomley, linux-ide,
linux-scsi, linux-kernel
Arjan van de Ven wrote:
> Tejun Heo wrote:
>> Kristen Carlson Accardi wrote:
>>> Hi,
>>> This series of patches enables Aggressive Link Power Management for
>>> AHCI devices, as documented in the AHCI spec. On my laptop (a Lenovo
>>> X60), this
>>> saves me a full watt of power. On other systems, reported power savings
>>> range from .5-1.5 Watts. It has been tested by the kind folks at
>>> #powertop
>>> with similar results. Please give it a try and let me know what you
>>> think.
>>
>> I'm not sure about this. We need better PM framework to support
>> powersaving in other controllers and some ahcis don't save much when
>> only link power management is used,
>
> do you have data to support this? The data we have from this patch is
> that it saves typically a Watt of power (depends on the machine of
> course, but the range is 0.5W to 1.5W). If you want to also have an even
> more agressive thing where you want to start disabling the entire
> controller... I don't see how this is in conflict with saving power on
> the link level by "just" enabling a hardware feature ....
SATA standard defines lower power phy states. So the same argument
you're using for AHCI applies there too -- "just" enabling an existing
hardware feature.
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 3:12 ` Arjan van de Ven
@ 2007-06-12 3:18 ` Jeff Garzik
0 siblings, 0 replies; 20+ messages in thread
From: Jeff Garzik @ 2007-06-12 3:18 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Tejun Heo, Kristen Carlson Accardi, james.bottomley, linux-ide,
linux-scsi, linux-kernel
Arjan van de Ven wrote:
> Jeff Garzik wrote:
>> SATA standard defines lower power phy states. So the same argument
>> you're using for AHCI applies there too -- "just" enabling an existing
>> hardware feature.
> yes I'm not arguing against that. I was trying to find out (and
> suggest-unless-proven-otherwise) that the 2 are not exclusive or
> conflicting... in fact I assume both are wanted concurrently.
Yes and no. As I understand it, AHCI's capability is an automatic
version of what standard SATA phys provide manually. In AHCI's case,
the hardware automatically manages the link power, possibly cycling it
hundreds of times per second. In the standard case, software must
determine when a different power state is appropriate based on current
conditions, and update the phy appropriately.
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 2:34 ` Arjan van de Ven
2007-06-12 3:12 ` Jeff Garzik
@ 2007-06-12 4:13 ` Tejun Heo
2007-06-12 4:19 ` Arjan van de Ven
` (3 more replies)
1 sibling, 4 replies; 20+ messages in thread
From: Tejun Heo @ 2007-06-12 4:13 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Kristen Carlson Accardi, jeff, james.bottomley, linux-ide,
linux-scsi, linux-kernel, Pavel Machek, Jens Axboe
Arjan van de Ven wrote:
>> I'm not sure about this. We need better PM framework to support
>> powersaving in other controllers and some ahcis don't save much
>> when only link power management is used,
>
> do you have data to support this?
Yeah, it was some Lenovo notebook. Pavel is more familiar with the
hardware. Pavel, what was the notebook which didn't save much power
with standard SATA power save but needed port to be completely turned off?
> The data we have from this patch is that it saves typically a Watt of
> power (depends on the machine of course, but the range is 0.5W to
> 1.5W). If you want to also have an even more agressive thing where
> you want to start disabling the entire controller... I don't see how
> this is in conflict with saving power on the link level by "just"
> enabling a hardware feature ....
Well, both implement about the same thing. I prefer software
implementation because it's more generic and ALPE/ASP seems too
aggressive to me. Here are reasons why sw implementation wasn't merged.
1. It didn't have proper interface with userland. This was mainly
because of missing ATA sysfs nodes. I'm not sure whether adding this to
scsi node is a good idea.
2. It was focused on SATA link PS and couldn't cover the Lenovo case.
I think we need something at the block layer.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 4:13 ` Tejun Heo
@ 2007-06-12 4:19 ` Arjan van de Ven
2007-06-12 4:40 ` Tejun Heo
` (2 more replies)
2007-06-13 9:04 ` Pavel Machek
` (2 subsequent siblings)
3 siblings, 3 replies; 20+ messages in thread
From: Arjan van de Ven @ 2007-06-12 4:19 UTC (permalink / raw)
To: Tejun Heo
Cc: Kristen Carlson Accardi, jeff, james.bottomley, linux-ide,
linux-scsi, linux-kernel, Pavel Machek, Jens Axboe
Tejun Heo wrote:
>> do you have data to support this?
>
> Yeah, it was some Lenovo notebook. Pavel is more familiar with the
> hardware. Pavel, what was the notebook which didn't save much power
> with standard SATA power save but needed port to be completely turned off?
Pavel, if you have time, could you measure this with Kristen's patch?
>
>> The data we have from this patch is that it saves typically a Watt of
>> power (depends on the machine of course, but the range is 0.5W to
>> 1.5W). If you want to also have an even more agressive thing where
>> you want to start disabling the entire controller... I don't see how
>> this is in conflict with saving power on the link level by "just"
>> enabling a hardware feature ....
>
> Well, both implement about the same thing. I prefer software
> implementation because it's more generic and ALPE/ASP seems too
> aggressive to me.
Too aggressive in what way?
There are tradeoffs on either side. Doing things in software is more
work for the cpu, and depending on the implementation, will consume
more power on the CPU side. (for example if you need regular timers
that just consumes the power you are saving back up). The hardware can
obviously switch very fast (because it's independent of any software),
yet of course the software has higher level knowledge about how idle
the link really is (like it knows if any files are open etc etc).
To be honest, I would be surprised if software could do significantly
better than hardware though; it seems a simple problem: Idle -> go to
low power, and estimating idle isn't all that hard on a link level...
there's not all THAT much the kernel can estimate better I suspect.
This debate is very similar to the cpufreq debate from 4 years ago,
where there were 3 levels: do it in the CPU, do it in the kernel or do
it in userspace. All three are valid; whichever is best depends on the
exact hardware that you have...
(and you can argue that first everyone started in userspace, then the
hardware improved that made a kernelspace implementation better
(ondemand) and now Turbo Mode is more or less moving this to the
hardware... I wouldn't be surprised if the sata side will show a
similar trend)
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 4:19 ` Arjan van de Ven
@ 2007-06-12 4:40 ` Tejun Heo
2007-06-12 15:56 ` Kristen Carlson Accardi
2007-06-12 4:43 ` Jeff Garzik
2007-06-13 14:51 ` Pavel Machek
2 siblings, 1 reply; 20+ messages in thread
From: Tejun Heo @ 2007-06-12 4:40 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Kristen Carlson Accardi, jeff, james.bottomley, linux-ide,
linux-scsi, linux-kernel, Pavel Machek, Jens Axboe
Arjan van de Ven wrote:
>>> The data we have from this patch is that it saves typically a Watt of
>>> power (depends on the machine of course, but the range is 0.5W to
>>> 1.5W). If you want to also have an even more agressive thing where
>>> you want to start disabling the entire controller... I don't see how
>>> this is in conflict with saving power on the link level by "just"
>>> enabling a hardware feature ....
>>
>> Well, both implement about the same thing. I prefer software
>> implementation because it's more generic and ALPE/ASP seems too
>> aggressive to me.
>
> Too aggressive in what way?
There are devices which lock up hard if PHY enters PS mode (only
physical power removal can reset it) and I wouldn't be surprised if some
devices aren't happy with PS being too aggressive. Well, I actually
expect to see such devices. It's ATA after all. This is unknown
territory and that's why I was using 'seems ... to me'.
> There are tradeoffs on either side. Doing things in software is more
> work for the cpu, and depending on the implementation, will consume more
> power on the CPU side. (for example if you need regular timers that just
> consumes the power you are saving back up). The hardware can obviously
> switch very fast (because it's independent of any software), yet of
> course the software has higher level knowledge about how idle the link
> really is (like it knows if any files are open etc etc).
>
> To be honest, I would be surprised if software could do significantly
> better than hardware though; it seems a simple problem: Idle -> go to
> low power, and estimating idle isn't all that hard on a link level...
> there's not all THAT much the kernel can estimate better I suspect.
I don't think the end result will vary in any significant way. My
biggest argument for sw implementation is it can be used for other
controllers.
> This debate is very similar to the cpufreq debate from 4 years ago,
> where there were 3 levels: do it in the CPU, do it in the kernel or do
> it in userspace. All three are valid; whichever is best depends on the
> exact hardware that you have...
> (and you can argue that first everyone started in userspace, then the
> hardware improved that made a kernelspace implementation better
> (ondemand) and now Turbo Mode is more or less moving this to the
> hardware... I wouldn't be surprised if the sata side will show a similar
> trend)
Currently, ahci is the only one which has controller-side automatic PS
but some ATA devices (hdds) implement device initiated PS (DIPS). The
sw implementation supports SW HIPS and DIPS. We can add HW HIPS support
and hook ALPE/ASP support there but I don't think it would have benefits
over SW implementation.
I think it's a bit different from cpufreq. ATA is cheaper and more
broken and much more diverse.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 4:19 ` Arjan van de Ven
2007-06-12 4:40 ` Tejun Heo
@ 2007-06-12 4:43 ` Jeff Garzik
2007-06-12 15:43 ` Kristen Carlson Accardi
2007-06-13 14:51 ` Pavel Machek
2 siblings, 1 reply; 20+ messages in thread
From: Jeff Garzik @ 2007-06-12 4:43 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Tejun Heo, Kristen Carlson Accardi, james.bottomley, linux-ide,
linux-scsi, linux-kernel, Pavel Machek, Jens Axboe
We will do AHCI link PM -- presuming that I can be convinced that it
does not repeatedly park the hard drive heads, or something similarly
annoying on PATA<->SATA bridges and similar setups.
IF it works as advertised -- a big if considering all the AHCI silicon
implementations out there -- we definitely want to use it.
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 4:43 ` Jeff Garzik
@ 2007-06-12 15:43 ` Kristen Carlson Accardi
0 siblings, 0 replies; 20+ messages in thread
From: Kristen Carlson Accardi @ 2007-06-12 15:43 UTC (permalink / raw)
To: Jeff Garzik
Cc: Arjan van de Ven, Tejun Heo, james.bottomley, linux-ide,
linux-scsi, linux-kernel, Pavel Machek, Jens Axboe
On Tue, 12 Jun 2007 00:43:12 -0400
Jeff Garzik <jeff@garzik.org> wrote:
> We will do AHCI link PM -- presuming that I can be convinced that it
> does not repeatedly park the hard drive heads, or something similarly
> annoying on PATA<->SATA bridges and similar setups.
>
> IF it works as advertised -- a big if considering all the AHCI silicon
> implementations out there -- we definitely want to use it.
>
> Jeff
>
I understand that this is a concern of yours based on some experience you
had with earlier controllers. In general, this behavior would be considered
incorrect - link power management should not translate to disk parking, even
on PATA->SATA brigdes, and if it does, then that's completely broken. That
said, I would believe you if you said broken hardware exists, and when you
get specific examples of it, you can add it to the blacklist for this feature.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 4:40 ` Tejun Heo
@ 2007-06-12 15:56 ` Kristen Carlson Accardi
0 siblings, 0 replies; 20+ messages in thread
From: Kristen Carlson Accardi @ 2007-06-12 15:56 UTC (permalink / raw)
To: Tejun Heo
Cc: Arjan van de Ven, jeff, james.bottomley, linux-ide, linux-scsi,
linux-kernel, Pavel Machek, Jens Axboe
On Tue, 12 Jun 2007 13:40:15 +0900
Tejun Heo <htejun@gmail.com> wrote:
> I don't think the end result will vary in any significant way. My
> biggest argument for sw implementation is it can be used for other
> controllers.
What I had in mind when I created the new port operation "enable_pm"
was that other controllers (besides the ahci controller) could define their
own method of enabling power management. Maybe for non-ahci controllers this
is a software based solution which uses generic SATA dipm/hipm stuff and
polling.
See patch 2/3 of this series for the implementation of this.
Kristen
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 4:13 ` Tejun Heo
2007-06-12 4:19 ` Arjan van de Ven
@ 2007-06-13 9:04 ` Pavel Machek
2007-06-13 16:26 ` Kristen Carlson Accardi
2007-06-13 14:56 ` Pavel Machek
2007-06-14 11:56 ` Jens Axboe
3 siblings, 1 reply; 20+ messages in thread
From: Pavel Machek @ 2007-06-13 9:04 UTC (permalink / raw)
To: Tejun Heo
Cc: Arjan van de Ven, Kristen Carlson Accardi, jeff, james.bottomley,
linux-ide, linux-scsi, linux-kernel, Jens Axboe
Hi!
> >> I'm not sure about this. We need better PM framework to support
> >> powersaving in other controllers and some ahcis don't save much
> >> when only link power management is used,
> >
> > do you have data to support this?
>
> Yeah, it was some Lenovo notebook. Pavel is more familiar with the
> hardware. Pavel, what was the notebook which didn't save much power
> with standard SATA power save but needed port to be completely turned off?
Thinkpad x60. Some one Kristen probably used while developing the
patch :-).
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 4:19 ` Arjan van de Ven
2007-06-12 4:40 ` Tejun Heo
2007-06-12 4:43 ` Jeff Garzik
@ 2007-06-13 14:51 ` Pavel Machek
2 siblings, 0 replies; 20+ messages in thread
From: Pavel Machek @ 2007-06-13 14:51 UTC (permalink / raw)
To: Arjan van de Ven
Cc: Tejun Heo, Kristen Carlson Accardi, jeff, james.bottomley,
linux-ide, linux-scsi, linux-kernel, Jens Axboe
Hi!
> >Yeah, it was some Lenovo notebook. Pavel is more
> >familiar with the
> >hardware. Pavel, what was the notebook which didn't
> >save much power
> >with standard SATA power save but needed port to be
> >completely turned off?
>
> Pavel, if you have time, could you measure this with
> Kristen's patch?
Kristen has same machine as me, and I have seen similar '1W' saving
with previous version of the patch. I'd trust her results.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 4:13 ` Tejun Heo
2007-06-12 4:19 ` Arjan van de Ven
2007-06-13 9:04 ` Pavel Machek
@ 2007-06-13 14:56 ` Pavel Machek
2007-06-14 11:56 ` Jens Axboe
3 siblings, 0 replies; 20+ messages in thread
From: Pavel Machek @ 2007-06-13 14:56 UTC (permalink / raw)
To: Tejun Heo
Cc: Arjan van de Ven, Kristen Carlson Accardi, jeff, james.bottomley,
linux-ide, linux-scsi, linux-kernel, Jens Axboe
Hi!
> >> I'm not sure about this. We need better PM framework to support
> >> powersaving in other controllers and some ahcis don't save much
> >> when only link power management is used,
> >
> > do you have data to support this?
>
> Yeah, it was some Lenovo notebook. Pavel is more familiar with the
> hardware. Pavel, what was the notebook which didn't save much power
> with standard SATA power save but needed port to be completely turned off?
Uhuh, now I understand why Arjan wanted me to test.
But I have same hw as Kristen, so I assume there must have been
something wrong with the old tests.
Sorry for confusion.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-13 9:04 ` Pavel Machek
@ 2007-06-13 16:26 ` Kristen Carlson Accardi
2007-06-14 7:56 ` Tejun Heo
0 siblings, 1 reply; 20+ messages in thread
From: Kristen Carlson Accardi @ 2007-06-13 16:26 UTC (permalink / raw)
To: Pavel Machek
Cc: Tejun Heo, Arjan van de Ven, jeff, james.bottomley, linux-ide,
linux-scsi, linux-kernel, Jens Axboe
On Wed, 13 Jun 2007 11:04:30 +0200
Pavel Machek <pavel@ucw.cz> wrote:
> Hi!
>
> > >> I'm not sure about this. We need better PM framework to support
> > >> powersaving in other controllers and some ahcis don't save much
> > >> when only link power management is used,
> > >
> > > do you have data to support this?
> >
> > Yeah, it was some Lenovo notebook. Pavel is more familiar with the
> > hardware. Pavel, what was the notebook which didn't save much power
> > with standard SATA power save but needed port to be completely turned off?
>
> Thinkpad x60. Some one Kristen probably used while developing the
> patch :-).
Yes - that confirms my conclusion that the first patch just wasn't
done correctly - cause when I measure the power savings with a power
meter on the X60 with my patches I see ~ 1W.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-13 16:26 ` Kristen Carlson Accardi
@ 2007-06-14 7:56 ` Tejun Heo
0 siblings, 0 replies; 20+ messages in thread
From: Tejun Heo @ 2007-06-14 7:56 UTC (permalink / raw)
To: Kristen Carlson Accardi
Cc: Pavel Machek, Arjan van de Ven, jeff, james.bottomley, linux-ide,
linux-scsi, linux-kernel, Jens Axboe
Kristen Carlson Accardi wrote:
>>>>> I'm not sure about this. We need better PM framework to support
>>>>> powersaving in other controllers and some ahcis don't save much
>>>>> when only link power management is used,
>>>> do you have data to support this?
>>> Yeah, it was some Lenovo notebook. Pavel is more familiar with the
>>> hardware. Pavel, what was the notebook which didn't save much power
>>> with standard SATA power save but needed port to be completely turned off?
>> Thinkpad x60. Some one Kristen probably used while developing the
>> patch :-).
>
> Yes - that confirms my conclusion that the first patch just wasn't
> done correctly - cause when I measure the power savings with a power
> meter on the X60 with my patches I see ~ 1W.
Hmmm... Could it be that the controller doesn't enter powersave state
when SControl is written to?
--
tejun
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-12 4:13 ` Tejun Heo
` (2 preceding siblings ...)
2007-06-13 14:56 ` Pavel Machek
@ 2007-06-14 11:56 ` Jens Axboe
2007-06-14 12:30 ` Tejun Heo
3 siblings, 1 reply; 20+ messages in thread
From: Jens Axboe @ 2007-06-14 11:56 UTC (permalink / raw)
To: Tejun Heo
Cc: Arjan van de Ven, Kristen Carlson Accardi, jeff, james.bottomley,
linux-ide, linux-scsi, linux-kernel, Pavel Machek
On Tue, Jun 12 2007, Tejun Heo wrote:
> Arjan van de Ven wrote:
> >> I'm not sure about this. We need better PM framework to support
> >> powersaving in other controllers and some ahcis don't save much
> >> when only link power management is used,
> >
> > do you have data to support this?
>
> Yeah, it was some Lenovo notebook. Pavel is more familiar with the
> hardware. Pavel, what was the notebook which didn't save much power
> with standard SATA power save but needed port to be completely turned off?
>
> > The data we have from this patch is that it saves typically a Watt of
> > power (depends on the machine of course, but the range is 0.5W to
> > 1.5W). If you want to also have an even more agressive thing where
> > you want to start disabling the entire controller... I don't see how
> > this is in conflict with saving power on the link level by "just"
> > enabling a hardware feature ....
>
> Well, both implement about the same thing. I prefer software
> implementation because it's more generic and ALPE/ASP seems too
> aggressive to me. Here are reasons why sw implementation wasn't merged.
>
> 1. It didn't have proper interface with userland. This was mainly
> because of missing ATA sysfs nodes. I'm not sure whether adding this to
> scsi node is a good idea.
>
> 2. It was focused on SATA link PS and couldn't cover the Lenovo case.
>
> I think we need something at the block layer.
I think the hardware method is preferable, actually. Doing this in the
block layer would mean keeping track of idle time, and that quickly
turns into a lot of timer management. Not exactly free, in terms of CPU
usage.
I've yet to do some power measurements with this ahci patch, I just
noticed that with min_power performance drops from ~55mb/sec to
~15mb/sec sequential on my drive. That's pretty drastic :-)
--
Jens Axboe
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [patch 0/3] AHCI Link Power Management
2007-06-14 11:56 ` Jens Axboe
@ 2007-06-14 12:30 ` Tejun Heo
0 siblings, 0 replies; 20+ messages in thread
From: Tejun Heo @ 2007-06-14 12:30 UTC (permalink / raw)
To: Jens Axboe
Cc: Arjan van de Ven, Kristen Carlson Accardi, jeff, james.bottomley,
linux-ide, linux-scsi, linux-kernel, Pavel Machek
Jens Axboe wrote:
>> 1. It didn't have proper interface with userland. This was mainly
>> because of missing ATA sysfs nodes. I'm not sure whether adding this to
>> scsi node is a good idea.
>>
>> 2. It was focused on SATA link PS and couldn't cover the Lenovo case.
>>
>> I think we need something at the block layer.
>
> I think the hardware method is preferable, actually. Doing this in the
> block layer would mean keeping track of idle time, and that quickly
> turns into a lot of timer management. Not exactly free, in terms of CPU
> usage.
Yeah, software implementation certainly has complexity overhead.
> I've yet to do some power measurements with this ahci patch, I just
> noticed that with min_power performance drops from ~55mb/sec to
> ~15mb/sec sequential on my drive. That's pretty drastic :-)
That's another thing I don't like about ALPE/ASP. According to the
spec, there is no idle timer whatsoever. The controller is supposed to
drive the link into PS mode whenever FIS is not in flight, so the link
goes in and out of PS state repeatedly when commands are issued
back-to-back. Getting out of PS state takes a bit of time and slows
down things.
--
tejun
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2007-06-14 12:30 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11 18:46 [patch 0/3] AHCI Link Power Management Kristen Carlson Accardi
2007-06-12 1:58 ` Tejun Heo
2007-06-12 2:33 ` Jeff Garzik
2007-06-12 2:34 ` Arjan van de Ven
2007-06-12 3:12 ` Jeff Garzik
2007-06-12 3:12 ` Arjan van de Ven
2007-06-12 3:18 ` Jeff Garzik
2007-06-12 4:13 ` Tejun Heo
2007-06-12 4:19 ` Arjan van de Ven
2007-06-12 4:40 ` Tejun Heo
2007-06-12 15:56 ` Kristen Carlson Accardi
2007-06-12 4:43 ` Jeff Garzik
2007-06-12 15:43 ` Kristen Carlson Accardi
2007-06-13 14:51 ` Pavel Machek
2007-06-13 9:04 ` Pavel Machek
2007-06-13 16:26 ` Kristen Carlson Accardi
2007-06-14 7:56 ` Tejun Heo
2007-06-13 14:56 ` Pavel Machek
2007-06-14 11:56 ` Jens Axboe
2007-06-14 12:30 ` Tejun Heo
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).