lkml.org 
[lkml]   [2020]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm, memcg: Add memory.transparent_hugepage_disabled
On Tue, 24 Mar 2020, Kirill A. Shutemov wrote:

> On Tue, Mar 24, 2020 at 06:31:56PM +0800, Hui Zhu wrote:
> > /sys/kernel/mm/transparent_hugepage/enabled is the only interface to
> > control if the application can use THP in system level.
>
> No. We have prctl(PR_SET_THP_DISABLE) too.
>

Yeah, I think this is the key point since this can be inherited across
fork and thus you already have the ability to disable thp for a process
where you cannot even modify the binary to do MADV_NOHUGEPAGE.

\
 
 \ /
  Last update: 2020-03-24 20:18    [W:0.199 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site