Skip to content

drm/ttm: hard to swim in an empty pool

Jérôme Glisse dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/ttm: set sensible pool size limit.drivers/gpu/drm/ttm/ttm_memory.c+14 -21 reply
2/3drm/ttm: fix object deallocation to properly fill in the page pool.drivers/gpu/drm/ttm/ttm_page_alloc_dma.c+2 -76 replies
3/3drm/ttm: under memory pressure minimize the size of memory pooldrivers/gpu/drm/ttm/ttm_page_alloc.c drivers/gpu/drm/ttm/ttm_page_alloc_dma.c+53 -918 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchMario KleinerMichel DänzerKonrad Rzeszutek Wilk
1/3
2/3R-b T-b R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] drm/ttm: hard to swim in an empty pool

So it seems there was several issue with the various ttm pool. The obvious one is fixed in patch 2 where the always empty pool syndrom is addressed. However the pool size are kind of crazy and because before some pool were never actualy fill we might never have experience the hill effect of the crazy maximum limit. This is what is addressed by first patch.

Last patch cook it up further so that under memory pressure the pool size is divided by 2 each time a shrinker is run on a pool. There is a timeout to restore the pool size on next allocation. Idea here is that memory should not last and if it last then shrinker will keep minimize the pool size and anyway thing are probably already sluggish once we it the shrinker path.

Of course because this fix thing in ttm memory allocation this need careful testing. So before pushing anything i would like to see more people testing this.

Cheers,
Jérôme

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel