(E) Indicates "THP_enabled: 0" in /proc/pid/status only if THPs are not
disabled completely
> > The documented semantics in the man page for PR_SET_THP_DISABLE
Only indicating that THPs are disabled when they are really disabled
completely, not only partially.
"is inherited by a child created via fork(2) and is preserved across
execve(2)" is maintained. This behavior, for example, allows for
disabling THPs for a workload through the launching process (e.g.,
systemd where we fork() a helper process to then exec()).
There is currently not way to prevent that a process will not issue
PR_SET_THP_DISABLE itself to re-enable THP. We could add a "seal" option
to PR_SET_THP_DISABLE through another flag if ever required. The known
users (such as redis) really use PR_SET_THP_DISABLE to disable THPs, so
that is not added for now.