PT-2340 - Support MySQL 8.4

- Moved data collection for THP from lib/bash/report_system_info.sh to lib/bash/collect_system_info.sh, so pt-summary reports THP status on the machine where samples were collected, not on the machine where an engineer examines samples.
This commit is contained in:
Sveta Smirnova
2024-09-06 13:08:45 +03:00
parent c3f327d53b
commit ea6bd77501
46 changed files with 8470 additions and 32 deletions

View File

@@ -137,6 +137,9 @@ collect_system_data () { local PTFUNCNAME=collect_system_data;
# Fusion-io cards
fio_status_minus_a "$data_dir/fusion-io_card"
# THP
cat /sys/kernel/mm/transparent_hugepage/enabled >"$data_dir/transparent_hugepage" 2>/dev/null
# Clean the data directory, don't leave empty files
for file in $data_dir/*; do
# The vmstat file gets special treatmeant, see above.