Re: [PATCH v10 01/11] drm/msm/gem: Prevent blocking within shrinker loop

2023-02-26 Thread Dmitry Osipenko
On 2/17/23 15:02, Thomas Zimmermann wrote: > Hi > > Am 08.01.23 um 22:04 schrieb Dmitry Osipenko: >> Consider this scenario: >> >> 1. APP1 continuously creates lots of small GEMs >> 2. APP2 triggers `drop_caches` >> 3. Shrinker starts to evict APP1 GEMs, while APP1 produces new purgeable >>     GE

Re: [PATCH v10 01/11] drm/msm/gem: Prevent blocking within shrinker loop

2023-02-17 Thread Thomas Zimmermann
Hi Am 08.01.23 um 22:04 schrieb Dmitry Osipenko: Consider this scenario: 1. APP1 continuously creates lots of small GEMs 2. APP2 triggers `drop_caches` 3. Shrinker starts to evict APP1 GEMs, while APP1 produces new purgeable GEMs 4. msm_gem_shrinker_scan() returns non-zero number of freed p

[PATCH v10 01/11] drm/msm/gem: Prevent blocking within shrinker loop

2023-01-08 Thread Dmitry Osipenko
Consider this scenario: 1. APP1 continuously creates lots of small GEMs 2. APP2 triggers `drop_caches` 3. Shrinker starts to evict APP1 GEMs, while APP1 produces new purgeable GEMs 4. msm_gem_shrinker_scan() returns non-zero number of freed pages and causes shrinker to try shrink more 5. msm