From: mark gross <markgross@thegnar.org>
To: Simon Horman <horms@verge.net.au>
Cc: linux-pm@lists.linux-foundation.org, Mark Gross <markgross@thegnar.org>
Subject: Re: PM QoS: Interface design question
Date: Tue, 22 Feb 2011 22:47:04 -0800 [thread overview]
Message-ID: <20110223064704.GA26136@gvim.org> (raw)
In-Reply-To: <20110222062944.GA5125@verge.net.au>
On Tue, Feb 22, 2011 at 03:30:10PM +0900, Simon Horman wrote:
> Hi,
>
> I am curious about an aspect of the design of PM QoS.
>
> While working with the devices provided to configure PM QoS it struck me
> that this is a rather unusual interface - holding a file descriptor to a
> device open so long as configuration parameters apply. I understand that
> this is a mechanism to apply parameters on a per-task basis. But I am
> wondering if any consideration was given to using cgroups, which seem to me
> to be designed specifically for applying QoS parameters on a per-task
> basis.
The design was driven by a worry that we cannot trust user mode to
remember to clean up after itself and we needed a way to make sure any
requests made from user mode would be cleaned up when the application
went way for any reason.
I don't think cgroups existed when we first put this in place. At the
time we where trying to figure out how to get applications that cared
the ability to constrain the throttling of the system. The thinking was
that the app knows better than anyone what its latency and throughput
needs are and if it cared it should set them. I was thinking of a
network game or skype type of thing that would request lower-latency
network when its running as a use case.
I still think it should be the burden of the application to request the
resources it needs if it really cares. But, to date I don't think any
application really cares and the API to user mode should have waited for
user mode users requesting it before being implemented. That way the
abi could have had more input before it got away from us.
--mark
prev parent reply other threads:[~2011-02-23 6:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-22 6:30 PM QoS: Interface design question Simon Horman
2011-02-23 6:47 ` mark gross [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110223064704.GA26136@gvim.org \
--to=markgross@thegnar.org \
--cc=horms@verge.net.au \
--cc=linux-pm@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox