mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
Log if prctl(SET_THP_DISABLE) doesn't work as expected.
If prctl(SET_THP_DISABLE) is not used due to bad semantics, log it for easier debugging. Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
committed by
Andrei Vagin
parent
21ce76263b
commit
2364c963c6
@@ -1324,6 +1324,8 @@ int kerndat_has_thp_disable(void)
|
|||||||
|
|
||||||
parse_vmflags(str, &flags, &madv, &io_pf);
|
parse_vmflags(str, &flags, &madv, &io_pf);
|
||||||
kdat.has_thp_disable = !(madv & (1 << MADV_NOHUGEPAGE));
|
kdat.has_thp_disable = !(madv & (1 << MADV_NOHUGEPAGE));
|
||||||
|
if (!kdat.has_thp_disable)
|
||||||
|
pr_warn("prctl PR_SET_THP_DISABLE sets MADV_NOHUGEPAGE");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user