All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: "Eduardo P. Gomez" <eduardoprocopiogomez@gmail.com>
Cc: Natalie Vock <nat@pixelcluster.dev>,
	Arun Pravin	 <arunpravin.paneerselvam@amd.com>,
	dri-devel@lists.freedesktop.org,
	Matthew Auld <matthew.auld@intel.com>,
	Matthew Brost <matthew.brost@intel.com>
Subject: Re: [RFC PATCH 0/2] drm/ttm: fix excessive idle memory retention
Date: Thu, 26 Nov 2026 11:35:48 +0100	[thread overview]
Message-ID: <f74f2d71cc1881e5bc6f6a6e7d51cab4ce26d3f6.camel@linux.intel.com> (raw)
In-Reply-To: <CAKL2PNqdc=mLi5r87uywkQDQz2eO7hnn3=g71cgKjrv0tq4OQg@mail.gmail.com>

On Wed, 2026-11-25 at 16:36 -0300, Eduardo P. Gomez wrote:
> Hi Thomas,
> 
> > Did you actually see any instance of remaining GPUReclaim memory
> > when OOM
> was hit?
> 
> Yes. Twice actually. During a userspace memory-pressure test on my 32
> GiB
> desktop running kernel 7.3.5 without my TTM patch, the kernel
> reported two
> global OOMs and killed kde-ram (the test I mentioned before) both
> times:
> 
>     2026-11-23 21:43:51 -0300. gpu_reclaim:10045728kB  global_oom
>     2026-11-23 21:44:08 -0300  gpu_reclaim:10045736kB  global_oom
> 
> About 9.58 GiB was still reported as reclaimable GPU memory at the
> time of
> each OOM.
> 
> The full kernel log for the first event is here:
> https://paste.rs/ajafn

Judging from the log there is also a high number of inactive_file pages
available that are not reclaimed.

This IMO points to something odd happening with reclaim itself rather
than something specific to the ttm pool shrinker?

Thanks,
Thomas

  reply	other threads:[~2026-11-26 10:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 22:28 [RFC PATCH 0/2] drm/ttm: fix excessive idle memory retention Eduardo P. Gomez
2026-11-24 22:28 ` [RFC PATCH 1/2] drm/ttm: reclaim pooled pages after a period of inactivity Eduardo P. Gomez
2026-11-25  9:04   ` sashiko-bot
2026-11-24 22:28 ` [RFC PATCH 2/2] drm/ttm: retain a reserve during idle pool reclaim Eduardo P. Gomez
2026-11-25  9:00   ` sashiko-bot
2026-11-25 10:14 ` [RFC PATCH 0/2] drm/ttm: fix excessive idle memory retention Thomas Hellström
2026-11-25 13:27   ` Eduardo P. Gomez
2026-11-25 15:47     ` Thomas Hellström
2026-11-25 19:36       ` Eduardo P. Gomez
2026-11-26 10:35         ` Thomas Hellström [this message]
2026-11-29  3:46           ` Eduardo P. Gomez

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=f74f2d71cc1881e5bc6f6a6e7d51cab4ce26d3f6.camel@linux.intel.com \
    --to=thomas.hellstrom@linux.intel.com \
    --cc=arunpravin.paneerselvam@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=eduardoprocopiogomez@gmail.com \
    --cc=matthew.auld@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=nat@pixelcluster.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.