Skip to content

Commit

Permalink
Merge pull request #848 from oblitorum/PT-2371_fix_THP_check
Browse files Browse the repository at this point in the history
PT-2371 - fix transparent huge pages status check
  • Loading branch information
svetasmirnova authored Nov 13, 2024
2 parents d9df46f + 8a2c23e commit 4225a5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/pt-summary
Original file line number Diff line number Diff line change
Expand Up @@ -2345,6 +2345,7 @@ report_system_summary () { local PTFUNCNAME=report_system_summary;

report_transparent_huge_pages () {

STATUS_THP_SYSTEM=0
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\]')
Expand Down
1 change: 1 addition & 0 deletions lib/bash/report_system_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,7 @@ report_system_summary () { local PTFUNCNAME=report_system_summary;

report_transparent_huge_pages () {

STATUS_THP_SYSTEM=0
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\]')
Expand Down

0 comments on commit 4225a5c

Please sign in to comment.