From: Daniel Vetter <daniel@ffwll.ch>
To: Ben Widawsky <ben@bwidawsk.net>
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 21:40:57 +0200 [thread overview]
Message-ID: <20111029194057.GF2932@phenom.ffwll.local> (raw)
In-Reply-To: <20111029122225.42480208@bwidawsk.net>
On Sat, Oct 29, 2011 at 12:22:25PM -0700, Ben Widawsky wrote:
> On Sat, 29 Oct 2011 11:45:34 -0700
> Eric Anholt <eric@anholt.net> wrote:
>
> > 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.
> >
> > Just using wait_request interface would require less code and not have
> > that issue.
>
> I must be missing something simple, but I didn't see an easy way to use
> that interface to do what I want. Instead of outstanding requests, I'd
> need to start tracking per fd seqnos (yes it's done elsewhere, but
> didn't seem much different to me).
We track request per-fd already in the file_priv, so if the oustanding
requests is already at the limit and would go over the top with an
additional request, you can just look at the previously submitted request
for this fd, grab it's seqno and wait for that. The ugly part then just
boils down to allowing wait_request without the struct_mutex held. But
that's rather generally usefull infrastructure.
-Daniel
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
next prev parent reply other threads:[~2011-10-29 19:40 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 [this message]
2011-10-29 19:47 ` Daniel Vetter
2011-10-29 19:49 ` Ben Widawsky
2011-10-29 19:27 ` Ben Widawsky
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=20111029194057.GF2932@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=Philippe.Lecluse@intel.com \
--cc=ben@bwidawsk.net \
--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