nix::sys::prctl

Function set_thp_disable

source
pub fn set_thp_disable(flag: bool) -> Result<()>
Expand description

Set the state of the “THP disable” flag for the calling thread. Setting this disables transparent huge pages.