Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1485163

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

From Andy Lutomirski <luto@amacapital.net>
Newsgroups linux.kernel
Subject Re: Should drivers like nvme let userspace control their latency via dev_pm_qos?
Date 2016-09-16 18:30 +0200
Message-ID <si4bw-7aF-27@gated-at.bofh.it> (permalink)
References <si3fr-6tr-21@gated-at.bofh.it> <si3Iu-6DG-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Sep 16, 2016 at 8:54 AM, One Thousand Gnomes
<gnomes@lxorguk.ukuu.org.uk> wrote:
> On Fri, 16 Sep 2016 08:26:03 -0700
> Andy Lutomirski <luto@kernel.org> 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.
>

I'm not sure what you mean.  The whole device can be programmed to
take a nap when fully idle.  The driver can limit how deep that nap is
and thus how long the next request can be delayed while the device
wakes back up.

Unlike the very small number of in-tree users of this type of
mechanism that I can find, there are no busses or hard tolerances
involved.  The only effect is a power consumption vs I/O performance
tradeoff.

--Andy

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Should drivers like nvme let userspace control their latency via dev_pm_qos? Andy Lutomirski <luto@kernel.org> - 2016-09-16 17:30 +0200
  Re: Should drivers like nvme let userspace control their latency  via dev_pm_qos? One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-09-16 18:00 +0200
    Re: Should drivers like nvme let userspace control their latency via dev_pm_qos? Andy Lutomirski <luto@amacapital.net> - 2016-09-16 18:30 +0200
  Re: Should drivers like nvme let userspace control their latency via  dev_pm_qos? "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> - 2016-09-23 03:30 +0200
    Re: Should drivers like nvme let userspace control their latency via dev_pm_qos? Andy Lutomirski <luto@amacapital.net> - 2016-09-23 03:50 +0200

csiph-web