You are not logged in.

#1 2019-03-20 18:49:30

euler2dot7
Member
Registered: 2019-03-20
Posts: 1

problem with nvme power consumption in suspend

Hello.

My nvme disk consumes about 2w  in suspend mode ( ~5% of battery in hour) . Without this  ssd  the consumption is about  0.3% in a hour.
Please, let me know if exists some solution, or perhaps this is a ssd  issue?

smartctl -a -t long /dev/nvme0n1

smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.0.2-arch1-1-ARCH] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       SAMSUNG MZVLW512HMJP-000L7
Serial Number:                      S359NX0J311353
Firmware Version:                   7L7QCXY7
PCI Vendor/Subsystem ID:            0x144d
IEEE OUI Identifier:                0x002538
Total NVM Capacity:                 512,110,190,592 [512 GB]
Unallocated NVM Capacity:           0
Controller ID:                      2
Number of Namespaces:               1
Namespace 1 Size/Capacity:          512,110,190,592 [512 GB]
Namespace 1 Utilization:            157,109,813,248 [157 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            002538 b371bae012
Local Time is:                      Wed Mar 20 19:40:57 2019 CET
Firmware Updates (0x16):            3 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x001f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Warning  Comp. Temp. Threshold:     69 Celsius
Critical Comp. Temp. Threshold:     72 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     7.60W       -        -    0  0  0  0        0       0
 1 +     6.00W       -        -    1  1  1  1        0       0
 2 +     5.10W       -        -    2  2  2  2        0       0
 3 -   0.0400W       -        -    3  3  3  3      210    1500
 4 -   0.0050W       -        -    4  4  4  4     2200    6000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        36 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    0%
Data Units Read:                    2,007,366 [1.02 TB]
Data Units Written:                 4,697,134 [2.40 TB]
Host Read Commands:                 41,020,067
Host Write Commands:                50,533,229
Controller Busy Time:               69
Power Cycles:                       2,443
Power On Hours:                     89
Unsafe Shutdowns:                   125
Media and Data Integrity Errors:    0
Error Information Log Entries:      97
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 1:               36 Celsius
Temperature Sensor 2:               40 Celsius


nvme get-feature -f 0x0c -H /dev/nvme0

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): 86 ms
        Idle Transition Power State   (ITPS): 3
        .................
        Entry[ 1]   
        .................
        Idle Time Prior to Transition (ITPT): 86 ms
        Idle Transition Power State   (ITPS): 3
        .................
        Entry[ 2]   
        .................
        Idle Time Prior to Transition (ITPT): 86 ms
        Idle Transition Power State   (ITPS): 3
        .................
        Entry[ 3]   
        .................
        Idle Time Prior to Transition (ITPT): 410 ms
        Idle Transition Power State   (ITPS): 4
        .................


nvme id-ctrl /dev/nvme0

NVME Identify Controller:
vid       : 0x144d
ssvid     : 0x144d
sn        : S359NX0J311353      
mn        : SAMSUNG MZVLW512HMJP-000L7              
fr        : 7L7QCXY7
rab       : 2
ieee      : 002538
cmic      : 0
mdts      : 0
cntlid    : 2
ver       : 10200
rtd3r     : 186a0
rtd3e     : 4c4b40
oaes      : 0
ctratt    : 0
rrls      : 0
oacs      : 0x17
acl       : 7
aerl      : 3
frmw      : 0x16
lpa       : 0x3
elpe      : 63
npss      : 4
avscc     : 0x1
apsta     : 0x1
wctemp    : 342
cctemp    : 345
mtfa      : 0
hmpre     : 0
hmmin     : 0
tnvmcap   : 512110190592
unvmcap   : 0
rpmbs     : 0
edstt     : 35
dsto      : 0
fwug      : 0
kas       : 0
hctma     : 0
mntmt     : 0
mxtmt     : 0
sanicap   : 0
hmminds   : 0
hmmaxd    : 0
nsetidmax : 0
anatt     : 0
anacap    : 0
anagrpmax : 0
nanagrpid : 0
sqes      : 0x66
cqes      : 0x44
maxcmd    : 0
nn        : 1
oncs      : 0x1f
fuses     : 0
fna       : 0x4
vwc       : 0x1
awun      : 255
awupf     : 0
nvscc     : 1
nwpc      : 0
acwu      : 0
sgls      : 0
mnan      : 0
subnqn    : 
ioccsz    : 0
iorcsz    : 0
icdoff    : 0
ctrattr   : 0
msdbd     : 0
ps    0 : mp:7.60W operational enlat:0 exlat:0 rrt:0 rrl:0
          rwt:0 rwl:0 idle_power:- active_power:-
ps    1 : mp:6.00W operational enlat:0 exlat:0 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:- active_power:-
ps    2 : mp:5.10W operational enlat:0 exlat:0 rrt:2 rrl:2
          rwt:2 rwl:2 idle_power:- active_power:-
ps    3 : mp:0.0400W non-operational enlat:210 exlat:1500 rrt:3 rrl:3
          rwt:3 rwl:3 idle_power:- active_power:-
ps    4 : mp:0.0050W non-operational enlat:2200 exlat:6000 rrt:4 rrl:4
          rwt:4 rwl:4 idle_power:- active_power:-


for file in /sys/class/nvme/nvme0/subsystem/nvme0/power/* ;do echo -e "$(cat $file)\t$file";done

disabled        /sys/class/nvme/nvme0/subsystem/nvme0/power/async
cat: /sys/class/nvme/nvme0/subsystem/nvme0/power/autosuspend_delay_ms: Input/output error
        /sys/class/nvme/nvme0/subsystem/nvme0/power/autosuspend_delay_ms
auto    /sys/class/nvme/nvme0/subsystem/nvme0/power/control
100000  /sys/class/nvme/nvme0/subsystem/nvme0/power/pm_qos_latency_tolerance_us
0       /sys/class/nvme/nvme0/subsystem/nvme0/power/runtime_active_kids
0       /sys/class/nvme/nvme0/subsystem/nvme0/power/runtime_active_time
disabled        /sys/class/nvme/nvme0/subsystem/nvme0/power/runtime_enabled
unsupported     /sys/class/nvme/nvme0/subsystem/nvme0/power/runtime_status
0       /sys/class/nvme/nvme0/subsystem/nvme0/power/runtime_suspended_time
0       /sys/class/nvme/nvme0/subsystem/nvme0/power/runtime_usage

I tested it with 2 laptops: thinkpad t480s and hp z-book studio g4.

Regards.

Last edited by euler2dot7 (2019-03-20 19:00:44)

Offline

#2 2019-03-20 19:25:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,428

Re: problem with nvme power consumption in suspend

Samsungs are notorious for having issues with power saving, so I don't think there's really an usable fix here, I'm afraid.

Offline

Board footer

Powered by FluxBB