From: Chris Wilson Subject: Re: [PATCH 0/3] RFC: force throttling/fairness Date: Sat, 29 Oct 2011 09:07:35 +0100 Message-ID: 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 mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id AC1509E7D0 for ; Sat, 29 Oct 2011 01:07:41 -0700 (PDT) In-Reply-To: <1319867729-8676-1-git-send-email-ben@bwidawsk.net> 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: intel-gfx@lists.freedesktop.org Cc: Daniel Vetter , Ben Widawsky , "Lecluse, Philippe" List-Id: intel-gfx@lists.freedesktop.org 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. 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