Difference between revisions of "Aggressive Link Power Management (ALPM)"

From fit-PC wiki
Jump to: navigation, search
(AHCI Link Power Management)   (change visibility)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== AHCI Link Power Management ==
+
__TOC__
AHCI Link Power Management is a mechanism where the SATA AHCI controller puts the SATA link to the internal HDD and/or SSD disk into a very low power mode when there's no IO (input/output) activity for a while. The controller automatically puts the link back into active power state when there's real work to be done. This is done to save power consumption by the HDD and/or SSD disk. Tests show that this can save up to 0.5 Watts of power and decrease mSATA average temperature, depending on storage device and usage.
+
== Overview ==
 +
Aggressive Link Power Management (ALPM) is a mechanism for reducing SSD/HDD power consumption.
 +
If ALPM is enabled, SSD goes into low-power mode when SSD has no I/O activity. On I/O request, SSD power is resumed.
  
* HIPM = Host Initiated Link Power Management
+
== Enabling ALPM in Windows ==
* DIPM = Device Initiated Link Power Management
+
* HIPM = Host Initiated Link Power Management
 
+
* DIPM = Device Initiated Link Power Management
 
+
 
+
=== Windows ===
+
Enabling and disabling AHCI Link Power Management in Windows:<br>
+
  
 
The Link Power Management option is hidden/disabled by default in Windows advanced power options, and it is required to add the support into Windows registry:
 
The Link Power Management option is hidden/disabled by default in Windows advanced power options, and it is required to add the support into Windows registry:
# Adding the AHCI Link Power Management – HIPM/DIPM option to Advanced Power Settings.
+
# Adding the ALPM – HIPM/DIPM option to Advanced Power Settings.
 
## Download the [http://fit-pc.com/download/app-notes/ahci-link-power-management/Add_LPM.reg Add_LPM.reg] (Right click and Save link as...).
 
## Download the [http://fit-pc.com/download/app-notes/ahci-link-power-management/Add_LPM.reg Add_LPM.reg] (Right click and Save link as...).
 
## Right click on the downloaded '''Add_LPM.reg''' file and click on Merge.
 
## Right click on the downloaded '''Add_LPM.reg''' file and click on Merge.
 
## After the success message appears, restart the unit.
 
## After the success message appears, restart the unit.
# Removing the AHCI Link Power Management – HIPM/DIPM option from Advanced Power Settings.
+
# Removing the ALPM – HIPM/DIPM option from Advanced Power Settings.
 
## Download the [http://fit-pc.com/download/app-notes/ahci-link-power-management/Remove_LPM.reg Remove_LPM.reg] (Right click and Save link as...).
 
## Download the [http://fit-pc.com/download/app-notes/ahci-link-power-management/Remove_LPM.reg Remove_LPM.reg] (Right click and Save link as...).
 
## Right click on the downloaded '''Remove_LPM.reg''' file and click on Merge.
 
## Right click on the downloaded '''Remove_LPM.reg''' file and click on Merge.
 
## After the success message appears, restart the unit.
 
## After the success message appears, restart the unit.
# Configuring the AHCI Link Power Management – HIPM/DIPM option in the Advanced Power Settings.
+
# Configuring the ALPM – HIPM/DIPM option in the Advanced Power Settings.
 
## Click on the Start button.  
 
## Click on the Start button.  
 
## Type Power Options in the Start search box and press Enter.
 
## Type Power Options in the Start search box and press Enter.
Line 25: Line 23:
 
## In the Plan Settings window, click on the Change advanced power settings.
 
## In the Plan Settings window, click on the Change advanced power settings.
 
## In the Advanced Plan Settings click on the Hard disk option and expand it.
 
## In the Advanced Plan Settings click on the Hard disk option and expand it.
## The following settings are responsible on the AHCI Link Power Management:  
+
## The following settings are responsible on the ALPM:  
:::::* AHCI Link Power Management – HIPM/DIPM.  It will set the Link Power Management policy:
+
:::::* ALPM – HIPM/DIPM.  It will set the Link Power Management policy:
 
:::::** Active: Neither HIPM or DIPM allowed
 
:::::** Active: Neither HIPM or DIPM allowed
 
:::::** HIPM: HIPM only is allowed
 
:::::** HIPM: HIPM only is allowed
Line 32: Line 30:
 
:::::** DIPM: DIPM only is allowed
 
:::::** DIPM: DIPM only is allowed
 
:::::** Lowest:HIPM, DIPM and DEVSLP are allowed (if DEVSLP is supported by the storage device).
 
:::::** Lowest:HIPM, DIPM and DEVSLP are allowed (if DEVSLP is supported by the storage device).
:::::* AHCI Link Power Management – Adaptive. It will set the period of AHCI link idle time before the link is put in the slumber state when you have HIPM, DIPM, HIPM+DIPM or Lowest set above. It can be set to be from 0 to 300,000 milliseconds. If the Active is set above, then this will have no effect.
+
:::::* ALPM – Adaptive. It will set the period of AHCI link idle time before the link is put in the slumber state when you have HIPM, DIPM, HIPM+DIPM or Lowest set above. It can be set to be from 0 to 300,000 milliseconds. If the Active is set above, then this will have no effect.
 
+
=== Linux ===
+
To enable AHCI Link Power Management:<br>
+
  
 +
== Enabling ALPM in Linux ==
 
* Create text file /etc/pm/power.d/sata_alpm
 
* Create text file /etc/pm/power.d/sata_alpm
 
  #!/bin/sh
 
  #!/bin/sh
 
 
  for i in /sys/class/scsi_host/host*/link_power_management_policy; do
 
  for i in /sys/class/scsi_host/host*/link_power_management_policy; do
 
  echo min_power > $i
 
  echo min_power > $i
Line 49: Line 44:
 
  min_power
 
  min_power
 
  min_power
 
  min_power
 
+
* To disable ALPM simply delete file /etc/pm/power.d/sata_alpm
 
+
  sudo rm /etc/pm/power.d/sata_alpm
To disable AHCI Link Power Management simply delete:<br>
+
  /etc/pm/power.d/sata_alpm file
+
  
 
<br>
 
<br>
 +
[[category:application notes]]
 
[[category:products]]
 
[[category:products]]
 
[[category:IPC2]]
 
[[category:IPC2]]

Latest revision as of 12:59, 17 December 2015

Overview

Aggressive Link Power Management (ALPM) is a mechanism for reducing SSD/HDD power consumption. If ALPM is enabled, SSD goes into low-power mode when SSD has no I/O activity. On I/O request, SSD power is resumed.

Enabling ALPM in Windows

* HIPM = Host Initiated Link Power Management
* DIPM = Device Initiated Link Power Management

The Link Power Management option is hidden/disabled by default in Windows advanced power options, and it is required to add the support into Windows registry:

  1. Adding the ALPM – HIPM/DIPM option to Advanced Power Settings.
    1. Download the Add_LPM.reg (Right click and Save link as...).
    2. Right click on the downloaded Add_LPM.reg file and click on Merge.
    3. After the success message appears, restart the unit.
  2. Removing the ALPM – HIPM/DIPM option from Advanced Power Settings.
    1. Download the Remove_LPM.reg (Right click and Save link as...).
    2. Right click on the downloaded Remove_LPM.reg file and click on Merge.
    3. After the success message appears, restart the unit.
  3. Configuring the ALPM – HIPM/DIPM option in the Advanced Power Settings.
    1. Click on the Start button.
    2. Type Power Options in the Start search box and press Enter.
    3. In the Power options window, click on the Change plan settings of the current power plan.
    4. In the Plan Settings window, click on the Change advanced power settings.
    5. In the Advanced Plan Settings click on the Hard disk option and expand it.
    6. The following settings are responsible on the ALPM:
  • ALPM – HIPM/DIPM. It will set the Link Power Management policy:
    • Active: Neither HIPM or DIPM allowed
    • HIPM: HIPM only is allowed
    • HIPM+DIPM:HIPM and DIPM are allowed
    • DIPM: DIPM only is allowed
    • Lowest:HIPM, DIPM and DEVSLP are allowed (if DEVSLP is supported by the storage device).
  • ALPM – Adaptive. It will set the period of AHCI link idle time before the link is put in the slumber state when you have HIPM, DIPM, HIPM+DIPM or Lowest set above. It can be set to be from 0 to 300,000 milliseconds. If the Active is set above, then this will have no effect.

Enabling ALPM in Linux

  • Create text file /etc/pm/power.d/sata_alpm
#!/bin/sh
for i in /sys/class/scsi_host/host*/link_power_management_policy; do
echo min_power > $i
done
  • Make it executable
$ sudo chmod +x /etc/pm/power.d/sata_alpm
  • Reboot, check that SATA power management policy have been changed
$ cat /sys/class/scsi_host/host*/link_power_management_policy
min_power
min_power
  • To disable ALPM simply delete file /etc/pm/power.d/sata_alpm
sudo rm /etc/pm/power.d/sata_alpm