From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lauri Kasanen Subject: TTM's role in score-based eviction Date: Thu, 5 Dec 2013 11:36:58 +0200 Message-ID: <20131205113658.52c84991.cand@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by gabe.freedesktop.org (Postfix) with ESMTP id 65FB7FB10F for ; Thu, 5 Dec 2013 01:36:11 -0800 (PST) Received: from Valinor ([84.248.177.169]) by mail.gmx.com (mrgmx102) with ESMTPA (Nemesis) id 0M5r89-1VdrE03zCL-00xp4j for ; Thu, 05 Dec 2013 10:36:10 +0100 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi list, Thomas, I will be investigating the use of a hotness score for each bo, to replace the ping-pong causing LRU eviction in radeon*. The goal is to put all bos that fit in VRAM there, in order of hotness; a new bo should only be placed there if its hotness score is greater than the lowest VRAM bo's. Then the lowest-hotness-bos in VRAM should be evicted until the new bo fits. This should result in a more stable set with less ping-pong. Jerome advised that the bo placement should be done entirely outside TTM. As I'm not (yet) too familiar with that side of the kernel, what is the opinion of TTM folks? - Lauri * github.com/clbr/jamkthesis