Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nvme temperatures. #380

Conversation

PartialVolume
Copy link
Collaborator

For sdX devices we look in
/sys/class/hwmon/hwmonX/block for the device
name.

However, for nvme we access the device name
by looking in ..
/sys/class/hwmon/hwmonX/device/nvme/nvme0

nvme0n1

Multiple nvme drives/controllers will need
to be tested.

For sdX devices we look in
/sys/class/hwmon/hwmonX/block for the device
name.

However, for nvme we access the device name
by looking in ..
/sys/class/hwmon/hwmonX/device/nvme/nvme0

nvme0n1

Multiple nvme drives/controllers will need
to be tested.
@PartialVolume PartialVolume merged commit e07ae7e into martijnvanbrummelen:master Nov 17, 2021
@PartialVolume PartialVolume deleted the Update_NVME_temperature_code branch November 17, 2021 19:30
@Firminator
Copy link
Contributor

success!!

Screenshot from 2021-11-17 14-40-08

@PartialVolume
Copy link
Collaborator Author

Excellent !! 🥇

In the nwipe log does it show all the max/min/critical temperatures as well ?

@Firminator
Copy link
Contributor

No. See PartialVolume/shredos.x86_64#48 (comment)

But even nvme-cli doesn't show it. It only shows how many times the critical temp. occured is what I interpret from the output of sudo nvme smart-log /dev/nvme0:

Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning                    : 0
temperature                         : 30 C
available_spare                     : 100%
available_spare_threshold           : 50%
percentage_used                     : 4%
data_units_read                     : 32,475,728
data_units_written                  : 49,733,651
host_read_commands                  : 1,067,799,634
host_write_commands                 : 957,754,523
controller_busy_time                : 4,891
power_cycles                        : 2,292
power_on_hours                      : 26,989
unsafe_shutdowns                    : 345
media_errors                        : 0
num_err_log_entries                 : 8,281
Warning Temperature Time            : 0
Critical Composite Temperature Time : 0
Thermal Management T1 Trans Count   : 0
Thermal Management T2 Trans Count   : 0
Thermal Management T1 Total Time    : 0
Thermal Management T2 Total Time    : 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants