Show Table of Contents
3.6. 活动状态电源管理
ASPM(Active-State Power Management,活动状态电源管理)能节省 PCI Express(PCIe,Peripheral Component Interconnect Express)子系统的电量,其原理为当 PCIe 连接没有处于使用状态时将其设定为低功率状态。ASPM 可以同时控制连接两端的电源状态,并且在连接终端的设备处于满电状态的情况下,仍然可以节电。
启用 ASPM 时,在不同电源状态间转换连接时需要时间,因此会增加设备延迟。ASPM 有三种决定电源状态的策略:
- 默认(default)
- 根据系统固件(例如:BIOS)指定的默认设置设定 PCIe 连接的电源状态。这是 ASPM 的默认状态。
- 节电(powersave)
- 将 ASPM 设定为尽可能节电,不考虑性能损失。
- 性能(performance)
- 禁用 ASPM 使 PCIe 链接以最佳性能操作。
使用
pcie_aspm kernel 参数可以启用或者禁用 ASPM,其中 pcie_aspm=off 会禁用 ASPM,而 pcie_aspm=force 会启用 ASPM,即使在不支持 ASPM 的设备中也可以。
ASPM 策略在
/sys/module/pcie_aspm/parameters/policy 中设置,但还可以使用 pcie_aspm.policy kernel 参数在启动时指定,其中 pcie_aspm.policy=performance 将设定 ASPM 性能策略。
警告
如果设定了
pcie_aspm=force,不支持 ASPM 的硬件可导致系统停止响应。请在设定 pcie_aspm=force 前确定系统中的所有 PCIe 硬件都支持 ASPM。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.