drm/xe: Split the bo shrinker and adjust batch size
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest4 patches 1 replyIn review
- v44 patches 10 repliesSuperseded
- v33 patches 0 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 2 patches | 6 replies | Superseded | |
| v1 | 2 patches | 0 replies | Superseded |
Changes in v5 from the cover letter
- Patch 3/4: make the non-purgeable shrinker seeks value tunable through Kconfig and sysfs. (Matthew Brost)
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | drm/xe: Don't abort the shrinker walk on -EBUSYdrivers/ | +3 | 0 replies | |
| 2/4 | drm/xe: Track number of populated ttm_tts in the shrinkerdrivers/ drivers/ drivers/ | +19 | 0 replies | |
| 3/4 | drm/xe: Split the bo shrinker into purgeable and non-purgeable shrinkersdrivers/ drivers/ drivers/ +1 more | +172 | 1 reply | |
| 4/4 | drm/xe: Update non-purgeable shrinker batch size based on average BO sizedrivers/ | +42 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Matthew Brost |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/4] drm/xe: Split the bo shrinker and adjust batch size
Shamelessly stolen from i915, To avoid gpu stalls for small shrinker request, Set the shrinker batch size to the average size of system buffer objects. Use the number of populated struct ttm_tts to compute the average size.
However, it turned out that it may be desirable to have different settings for purgeable and non-purgeable objects, since purgeable objects are cheap to reclaim so split the shrinker into one for purgeable objects and one which can shrink both but is invoked with lower priority.
v2:
- Fix the average object size estimate to account for the full shrinkable and purgeable population.
v3:
- Drop the shrinker accounting double-subtraction fix from this series; it has been fixed and merged upstream separately.
- Patch 3/4: new patch, splitting the bo shrinker into purgeable and non-purgeable shrinkers, per a suggestion from Matthew Brost.
- Patch 4/4: reworked on top of the shrinker split, and the batch size update is now performed under the existing shrinker lock, fixing the data race caught by Sashiko AI review.
v4:
- Patch 1/4: new patch, skipping objects for which xe_bo_shrink() returns -EBUSY rather than aborting the shrinker walk. (Sashiko)
v5:
- Patch 3/4: make the non-purgeable shrinker seeks value tunable through Kconfig and sysfs. (Matthew Brost)
Thomas Hellström (4):
drm/xe: Don't abort the shrinker walk on -EBUSY
drm/xe: Track number of populated ttm_tts in the shrinker drm/xe: Split the bo shrinker into purgeable and non-purgeable
shrinkers
drm/xe: Update non-purgeable shrinker batch size based on average BO
size
drivers/gpu/drm/xe/Kconfig.profile | 12 ++ drivers/gpu/drm/xe/xe_bo.c | 12 +- drivers/gpu/drm/xe/xe_device_sysfs.c | 50 +++++++ drivers/gpu/drm/xe/xe_shrinker.c | 213 ++++++++++++++++++++------- drivers/gpu/drm/xe/xe_shrinker.h | 7 +- 5 files changed, 236 insertions(+), 58 deletions(-)
Signature · 1 line
2.56.0