From: Mike Rapoport <rppt@linux.ibm.com>
To: vijay nag <vijunag@gmail.com>
Cc: linux-mm@kvack.org
Subject: Re: Cgroups support for THP
Date: Mon, 17 Dec 2018 10:48:36 +0200 [thread overview]
Message-ID: <20181217084836.GA22890@rapoport-lnx> (raw)
In-Reply-To: <CAKhyrx-gbHjzWyeUERrXhH2CGMEMZeFX66Q-POD7Q+hKwWA1kw@mail.gmail.com>
On Mon, Dec 17, 2018 at 01:56:40PM +0530, vijay nag wrote:
> Hello Linux-MM,
>
> My containerized application which is suppose to have a very low RSS(by default
> containers patterns are to have low memory footprint) seems to be getting its
> BSS segment RSS bloated due to THPs. Although there is a huge zero page
> support, the overhead seems to be at-least 2MB even when a byte is dirtied.
> Also there are tune-able to disable this feature,� but this seems to be a
> system wide setting. Is there a plan to make this setting cgroup aware ?
It's possible to control THP on per-mapping using madvise(MADV_NOHUGEPAGE)
and per-process using prctl(PR_SET_THP_DISABLE).
> Thanks,
> Vijay Nag
--
Sincerely yours,
Mike.
next prev parent reply other threads:[~2018-12-17 8:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-17 8:26 vijay nag
2018-12-17 8:48 ` Mike Rapoport [this message]
2018-12-17 8:54 ` vijay nag
2018-12-17 15:33 ` Michal Hocko
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=20181217084836.GA22890@rapoport-lnx \
--to=rppt@linux.ibm.com \
--cc=linux-mm@kvack.org \
--cc=vijunag@gmail.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