Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
	Ben Widawsky <ben@bwidawsk.net>,
	"Lecluse, Philippe" <Philippe.Lecluse@intel.com>
Subject: Re: [PATCH 0/3] RFC: force throttling/fairness
Date: Sat, 29 Oct 2011 09:07:35 +0100	[thread overview]
Message-ID: <e0d58a$21kd5f@orsmga002.jf.intel.com> (raw)
In-Reply-To: <1319867729-8676-1-git-send-email-ben@bwidawsk.net>

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.

To start the bikeshedding, we need a debugfs to show the current clients
and their scheduling data.

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...

It would probably be best to overengineer the ioctl interface as a
facsimile of the more recent cpu schedulers.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  parent reply	other threads:[~2011-10-29  8:07 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 ` Chris Wilson [this message]
2011-10-29 18:45   ` [PATCH 0/3] RFC: force throttling/fairness 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

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='e0d58a$21kd5f@orsmga002.jf.intel.com' \
    --to=chris@chris-wilson.co.uk \
    --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