TTM's role in score-based eviction

Maarten Lankhorst maarten.lankhorst at canonical.com
Tue Dec 10 03:03:31 PST 2013


op 10-12-13 01:49, Michel Dänzer schreef:
> On Mon, 2013-12-09 at 23:45 +0100, Marek Olšák wrote:
>> On Mon, Dec 9, 2013 at 9:30 PM, Lauri Kasanen <cand at gmx.com> wrote:
>>> Note that the hotness calculation will be in userspace, as only there
>>> are the necessary counters available. So the finished hotness score
>>> will be passed to the kernel, instead of sending all the necessary data
>>> there. Ought to be less context switches that way.
> Sounds like this could be abused by userspace though...
Of all the worries that exist, this is a non-issue. Userspace can simply queue a lot of
draw calls that take 1 second each through the normal command submission methods,
why would it need to tweak some obscure number to cause some eviction?
>> This sounds good, but you will also need to update the DDX for
>> everything up to and including Cayman. Hopefully the DDX doesn't emit
>> IBs outside of glamor on Southern Islands and later chips.
> It doesn't.
>
>



More information about the dri-devel mailing list