Re: Cgroups support for THP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mon, Dec 17, 2018 at 2:18 PM Mike Rapoport <rppt@xxxxxxxxxxxxx> wrote:
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.

Thanks for letting me know of this setting. However, there could be a third party daemons/processes that have THP in them. Do you think it is a good idea to make it cgroup aware ?

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux