[root@node27 ~]# uname -a Linux node27 4.14.113-1.el7.x86_64 #1
三星990 pro的nvme ssd
这两个条件都具备,并且显示的信息一致
处理方法
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
vim drivers/nvme/host/core.c static int nvme_configure_apst(struct nvme_ctrl *ctrl) { /* * APST (Autonomous Power State Transition) lets us program a * table of power state transitions that the controller will * perform automatically. We configure it with a simple * heuristic: we are willing to spend at most 2% of the time * transitioning between power states. Therefore, when running * in any given state, we will enter the next lower-power * non-operational state after waiting 50 * (enlat + exlat) * microseconds, as long as that state's exit latency is under * the requested maximum latency. * * We will not autonomously enter any non-operational state for * which the total latency exceeds ps_max_latency_us. Users * can set ps_max_latency_us to zero to turn off APST. */
[root@node65 ~]# nvme get-feature -f 0x0c -H /dev/nvme0n1|head -n 20 get-feature:0xc (Autonomous Power State Transition), Current value:0x000001 Autonomous Power State Transition Enable (APSTE): Enabled Auto PST Entries ................. Entry[ 0] ................. Idle Time Prior to Transition (ITPT): 200 ms Idle Transition Power State (ITPS): 3 ................. Entry[ 1] ................. Idle Time Prior to Transition (ITPT): 200 ms Idle Transition Power State (ITPS): 3 ................. Entry[ 2] ................. Idle Time Prior to Transition (ITPT): 200 ms Idle Transition Power State (ITPS): 3 ................. Entry[ 3] .................
[root@node27 ~]# nvme get-feature -f 0x0c -H /dev/nvme0n1|head -n 20 get-feature:0xc (Autonomous Power State Transition), Current value:00000000 Autonomous Power State Transition Enable (APSTE): Disabled Auto PST Entries ................. Entry[ 0] ................. Idle Time Prior to Transition (ITPT): 0 ms Idle Transition Power State (ITPS): 0 ................. Entry[ 1] ................. Idle Time Prior to Transition (ITPT): 0 ms Idle Transition Power State (ITPS): 0 .................