linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Karim Manaouil <kmanaouil.dev@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: Debug: mm: meminfo reports 222GiB of AnonPages but sum of RSS in ps is barely 400MiB
Date: Wed, 17 Jan 2024 16:53:44 +0100	[thread overview]
Message-ID: <0998c7cc-8480-4e4e-8c29-4e9718354cc3@redhat.com> (raw)
In-Reply-To: <CA+uifjNw0W=EaUHbhq_CN8uOj0H_Yfu9JKSL1=EH6dnYkN3-ng@mail.gmail.com>

On 17.01.24 16:50, Karim Manaouil wrote:
> On Wed, Jan 17, 2024 at 2:15 PM David Hildenbrand <david@redhat.com> 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



      parent reply	other threads:[~2024-01-17 15:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CA+uifjNcZbb6=9-o9_cWCMyXRFZPHhyvWS2mys-YhfP9gaJ75w@mail.gmail.com>
2024-01-17 14:15 ` David Hildenbrand
     [not found]   ` <CA+uifjNw0W=EaUHbhq_CN8uOj0H_Yfu9JKSL1=EH6dnYkN3-ng@mail.gmail.com>
2024-01-17 15:53     ` David Hildenbrand [this message]

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=0998c7cc-8480-4e4e-8c29-4e9718354cc3@redhat.com \
    --to=david@redhat.com \
    --cc=kmanaouil.dev@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /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