Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: intel-xe@lists.freedesktop.org
Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
	"Matthew Auld" <matthew.auld@intel.com>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>
Subject: [PATCH 0/2] drm/xe: Adjust the bo shrinker batch size
Date: Tue, 12 May 2026 15:53:30 +0200	[thread overview]
Message-ID: <20260512135332.11702-1-thomas.hellstrom@linux.intel.com> (raw)

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.

Thomas Hellström (2):
  drm/xe: Track number of populated ttm_tts in the shrinker
  drm/xe: Update shrinker batch size based on average BO size

 drivers/gpu/drm/xe/xe_bo.c       | 12 ++++++------
 drivers/gpu/drm/xe/xe_shrinker.c | 32 ++++++++++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_shrinker.h |  3 ++-
 3 files changed, 36 insertions(+), 11 deletions(-)

-- 
2.54.0


             reply	other threads:[~2026-05-12 13:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12 13:53 Thomas Hellström [this message]
2026-05-12 13:53 ` [PATCH 1/2] drm/xe: Track number of populated ttm_tts in the shrinker Thomas Hellström
2026-05-12 13:53 ` [PATCH 2/2] drm/xe: Update shrinker batch size based on average BO size Thomas Hellström
2026-05-13  1:07 ` ✓ CI.KUnit: success for drm/xe: Adjust the bo shrinker batch size Patchwork
2026-05-13  2:28 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-13 20:40 ` ✗ Xe.CI.FULL: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260512135332.11702-1-thomas.hellstrom@linux.intel.com \
    --to=thomas.hellstrom@linux.intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=matthew.auld@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox