`nvme_disable_ctrl()` takes 411 ms on a Dell XPS 13 with SK hynix PC300 NVMEe
Keith Busch
kbusch at kernel.org
Wed May 1 00:58:02 PDT 2024
On Wed, May 01, 2024 at 06:51:45AM +0200, Christoph Hellwig wrote:
> On Wed, May 01, 2024 at 06:29:12AM +0200, Paul Menzel wrote:
> > Could a warning be logged, when this takes more than 50 ms with a hint that
> > the disk vendor should improve their firmware?
>
> Not sure why we'd warn about it. A clean shutdown can definitively take
> some time and there's nothing tha forbids it. I don't think a linux
> message is going to have any effect on firmware engineering..
Exactly. Unless the device reports a lower D3 entry latency, then this
sounds like everything is working-as-designed.
You can check your device's advertised shutdown time (assuming your
device is nvme0):
nvme id-ctrl /dev/nvme0 | grep rtd3e
The value is reported in microseconds. If it shows 0, then the device
doesn't report an expected shutdown time.
More information about the Linux-nvme
mailing list