Re: Should drivers like nvme let userspace control their latency via dev_pm_qos?

From: One Thousand Gnomes
Date: Fri Sep 16 2016 - 11:55:37 EST

On Fri, 16 Sep 2016 08:26:03 -0700
Andy Lutomirski <luto@xxxxxxxxxx> wrote:

> I'm adding power management to the nvme driver, and I'm exposing
> exactly one knob via sysfs: the maximum permissible latency. This
> isn't a power domain issue, and it has no dependencies -- it's
> literally just the maximum latency that the driver may impose on I/O
> for power saving purposes.

Why is this in the driver. Surely the latency is a property of the
request queue and the requests being made. Now it may well be that its
implement as min(list-of-queues) but a device sysfs node seems a strange
place to stick it.