Updated changelog

This commit is contained in:
Carlos Salguero
2016-11-22 11:46:30 -03:00
parent f70aa33af5
commit 959bd0b2e7
3 changed files with 55 additions and 0 deletions

View File

@@ -2248,9 +2248,26 @@ report_system_summary () { local PTFUNCNAME=report_system_summary;
"$data_dir/vmstat" \
"$platform"
section "Memory mamagement"
report_transparent_huge_pages
section "The End"
}
report_transparent_huge_pages () {
if [ -f /sys/kernel/mm/transparent_hugepage/enabled ]; then
CONTENT_TRANSHP=$(</sys/kernel/mm/transparent_hugepage/enabled)
STATUS_THP_SYSTEM=$(echo $CONTENT_TRANSHP | grep -cv '\[never\]')
fi
if [ $STATUS_THP_SYSTEM = 0 ]; then
echo "Transparent huge pages are currently disabled on the system."
else
echo "Transparent huge pages are enabled."
fi
}
# ###########################################################################
# End report_system_info package
# ###########################################################################