Re: [Intel-gfx] [PATCH 1/4] drm/mm: Reject over-sized allocation requests early

2018-05-18 Thread Joonas Lahtinen
Quoting Chris Wilson (2018-05-13 10:50:07) > As we keep an rbtree of available holes sorted by their size, we can > very easily determine if there is any hole large enough that might > satisfy the allocation request. This helps when dealing with a highly > fragmented address space and a request for

[Intel-gfx] [PATCH 1/4] drm/mm: Reject over-sized allocation requests early

2018-05-13 Thread Chris Wilson
As we keep an rbtree of available holes sorted by their size, we can very easily determine if there is any hole large enough that might satisfy the allocation request. This helps when dealing with a highly fragmented address space and a request for a search by address. To cache the largest size, w