From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Hellstrom Subject: Re: [RFC] drm/ttm: add minimum residency constraint for bo eviction Date: Thu, 29 Nov 2012 10:18:07 +0100 Message-ID: <50B7284F.9090708@shipmail.org> References: <1354118328-8104-1-git-send-email-j.glisse@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from GOTHNET-SMTP2.gothnet.se (ns2.gothnet.se [82.193.160.251]) by gabe.freedesktop.org (Postfix) with ESMTP id 90A75E5D0A for ; Thu, 29 Nov 2012 01:18:16 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: =?windows-1252?Q?Marek_Ol=9A=E1k?= Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On 11/28/2012 10:51 PM, Marek Ol=9A=E1k wrote: > I think the problem with Radeon/TTM is much deeper. Let me demonstrate > it on the following example. > > Unigine Heaven needs about 385MB of space for static resources, that's > only 75% of my 512MB card. Yet, TTM is not capable of getting all of > that into VRAM. If I allow GTT placements, I get 20 fps, which is the > old Mesa behavior. If I force VRAM placements, I get 3 fps, because we > validate buffers 10 times per frame and there's probably a lot of > buffer evictions during each validation. > Marek, Did you look at the total amount of referenced buffers in the ring = including vertex buffers? Depending on how hard you throttle, I guess vertex / index buffer data = referenced by the ring commands may well exceed the VRAM limitation. /Thomas