Re: Debug: mm: meminfo reports 222GiB of AnonPages but sum of RSS in ps is barely 400MiB

From: David Hildenbrand
Date: Wed Jan 17 2024 - 10:54:00 EST


On 17.01.24 16:50, Karim Manaouil wrote:
On Wed, Jan 17, 2024 at 2:15 PM David Hildenbrand <david@xxxxxxxxxx> wrote:

Maybe we have something call mmget(mm) but never mmput(mm)? Are you
running any OOT drivers or "special" hw?

That's exactly the reason! I was writing some code to count the number
of empty page tables in the system
at any given point in time. I called get_task_mm(), but I forgot to
call mmput() after that, and thus
the memory was never released.

If you want to work on reclaiming empty page tables, please talk to me :D

--
Cheers,

David / dhildenb