From: Ben Widawsky <ben@bwidawsk.net>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
intel-gfx@lists.freedesktop.org, "Lecluse,
Philippe" <Philippe.Lecluse@intel.com>
Subject: Re: [PATCH 0/3] RFC: force throttling/fairness
Date: Sat, 29 Oct 2011 12:27:26 -0700 [thread overview]
Message-ID: <20111029122726.5a52f68b@bwidawsk.net> (raw)
In-Reply-To: <e0d58a$21kd5f@orsmga002.jf.intel.com>
On Sat, 29 Oct 2011 09:07:35 +0100
Chris Wilson <chris@chris-wilson.co.uk> wrote:
> On Fri, 28 Oct 2011 22:55:26 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:
> > These patches are pretty raw as I'm hoping to get some comments before
> > working to hard too clean them up. The goal is GPU fairness for clients
> > running on i915.
>
> The biggest danger I see is that num_outstanding is only decremented
> in retire_requests, which under the right circumstances (a single hog or
> a plurarity) will cause latencies of over 1s. Also this unnecessarily
> penalises benchmarks, i.e. a single active client.
Well single active clients only exist for 2d, right? I was thinking I'd
disable the scheduler, and only start using it when the user forced it,
or the number of open drm fds is > 1.
>
> To start the bikeshedding, we need a debugfs to show the current clients
> and their scheduling data.
Agreed.
>
> I would like to see the hog values moved at least into the file_priv and
> a gpuprio ioctl so that we can start prioritising by file. It would then
> be possible for a compositing render server to open a fd for it owns
> high priority composition and a fd per client and individual tune their
> priorities. And before you know what's hit you someone will request
> cgroups...
The interface for the internal customer more or less does this. Even more
complicated is that in the long run, we probably desire more than fd
granularity (webGL for instance). I was trying to keep this as general as
possible though as it does seem to solve a problem and can be built upon
easily.
>
> It would probably be best to overengineer the ioctl interface as a
> facsimile of the more recent cpu schedulers.
Could you give some advice as to what parameters you would like to see?
> -Chris
>
Ben
prev parent reply other threads:[~2011-10-29 19:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-29 5:55 [PATCH 0/3] RFC: force throttling/fairness Ben Widawsky
2011-10-29 5:55 ` [PATCH 1/3] drm/i915: Keep track of request counts Ben Widawsky
2011-10-29 9:35 ` Daniel Vetter
2011-10-29 19:30 ` Ben Widawsky
2011-10-29 5:55 ` [PATCH 2/3] drm/i915: Add waitq/wakeups for our per fd requests Ben Widawsky
2011-10-29 5:55 ` [PATCH 3/3] drm/i915: fairness Ben Widawsky
2011-10-29 8:07 ` [PATCH 0/3] RFC: force throttling/fairness Chris Wilson
2011-10-29 18:45 ` Eric Anholt
2011-10-29 19:22 ` Ben Widawsky
2011-10-29 19:40 ` Daniel Vetter
2011-10-29 19:47 ` Daniel Vetter
2011-10-29 19:49 ` Ben Widawsky
2011-10-29 19:27 ` Ben Widawsky [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=20111029122726.5a52f68b@bwidawsk.net \
--to=ben@bwidawsk.net \
--cc=Philippe.Lecluse@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.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