Index | Thread | Search

From:
Florian Obser <florian@openbsd.org>
Subject:
Re: nvme(4) sensors
To:
tech@openbsd.org
Date:
Fri, 12 Jul 2024 11:42:28 +0200

Download raw body.

Thread
On 2024-07-11 15:49 +02, Jonathan Matthew <jonathan@d14n.org> wrote:
> This adds a basic set of sensors for nvme(4) showing device temperature
> and overall health.
>
> It looks like this:
>
> $ sysctl hw.sensors.nvme0
> hw.sensors.nvme0.temp0=42.85 degC, OK
> hw.sensors.nvme0.percent0=0.00% (endurance used), OK
> hw.sensors.nvme0.percent1=100.00% (available spare), OK

x395

$ sysctl hw.sensors | egrep 'nvme|temp'
hw.sensors.acpithinkpad0.temp0=47.00 degC
hw.sensors.ksmn0.temp0=46.88 degC (Tctl)
hw.sensors.nvme0.temp0=46.85 degC, OK
hw.sensors.nvme0.percent0=0.00% (endurance used), OK
hw.sensors.nvme0.percent1=100.00% (available spare), OK

>
> If the temperature exceeds the device's threshold, temp0 status changes
> to critical, and if the available spare capacity falls below the device's
> threshold, percent1 status changes to critical.
>
> The nvme features used here have been mandatory since version 1.0 of
> the specification, so it's reasonable to just assume they're available.
>
> Do the sensor names make sense?  Is refreshing them once per minute enough?
>

-- 
In my defence, I have been left unsupervised.