From: Ben Widawsky Subject: Re: [PATCH 0/3] RFC: force throttling/fairness Date: Sat, 29 Oct 2011 12:27:26 -0700 Message-ID: <20111029122726.5a52f68b@bwidawsk.net> References: <1319867729-8676-1-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id C66529E7DB for ; Sat, 29 Oct 2011 12:27:33 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Chris Wilson Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, "Lecluse, Philippe" List-Id: intel-gfx@lists.freedesktop.org On Sat, 29 Oct 2011 09:07:35 +0100 Chris Wilson wrote: > On Fri, 28 Oct 2011 22:55:26 -0700, Ben Widawsky 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