From: Michal Hocko <mhocko@kernel.org>
To: Rafael Telles <rafaelt@simbioseventures.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: Memory mapped pages not being swapped out
Date: Wed, 6 Jun 2018 15:35:44 +0200 [thread overview]
Message-ID: <20180606133544.GG32433@dhcp22.suse.cz> (raw)
In-Reply-To: <CAJ6kbHdz-UWL6dBdBZy9WFV6QBYqmMNEuUm+5s9LQok_RLDZfg@mail.gmail.com>
On Wed 06-06-18 10:28:00, Rafael Telles wrote:
> Thank you so much for your attention Michal,
>
> Are there any settings (such as sysctl parameters) that I can use to better
> control the memory reclaiming? Such as: defining the max. amount of mmap
> pages allocated or max. amount of memory used by mmap pages?
None that I know of. You shouldn't really care about this, really.
> Or will the system start reclaiming only when it needs more memory?
Exactly. We try to keep the memory used as much as possible.
> I found that I could use madvise with MADV_DONTNEED in order to actively
> free RSS memory used by mmap pages, but it would add more complexity on my
> software.
That would be an option. But it really depends on what you are trying to
achieve.
--
Michal Hocko
SUSE Labs
prev parent reply other threads:[~2018-06-06 13:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-05 19:14 Rafael Telles
2018-06-06 12:43 ` Michal Hocko
2018-06-06 13:28 ` Rafael Telles
2018-06-06 13:35 ` Michal Hocko [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=20180606133544.GG32433@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=linux-mm@kvack.org \
--cc=rafaelt@simbioseventures.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