mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Merge more of Baron's changes, also re-implement the MySQL Executables section
Plus other bugfixes.
This commit is contained in:
@@ -700,20 +700,20 @@ has_symbols () {
|
||||
}
|
||||
|
||||
setup_data_dir () {
|
||||
local OPT_SAVE_DATA="$1"
|
||||
local existing_dir="$1"
|
||||
local data_dir=""
|
||||
if [ -z "$OPT_SAVE_DATA" ]; then
|
||||
if [ -z "$existing_dir" ]; then
|
||||
mkdir "$TMPDIR/data" || die "Cannot mkdir $TMPDIR/data"
|
||||
data_dir="$TMPDIR/data"
|
||||
else
|
||||
if [ ! -d "$OPT_SAVE_DATA" ]; then
|
||||
mkdir "$OPT_SAVE_DATA" || die "Cannot mkdir $OPT_SAVE_DATA"
|
||||
elif [ "$( ls "$OPT_SAVE_DATA" | wc -l )" != "0" ]; then
|
||||
if [ ! -d "$existing_dir" ]; then
|
||||
mkdir "$existing_dir" || die "Cannot mkdir $existing_dir"
|
||||
elif [ "$( ls -A "$existing_dir" )" ]; then
|
||||
die "--save-samples directory isn't empty, halting."
|
||||
fi
|
||||
touch "$OPT_SAVE_DATA/test" || die "Cannot write to $OPT_SAVE_DATA"
|
||||
rm "$OPT_SAVE_DATA/test" || die "Cannot rm $OPT_SAVE_DATA/test"
|
||||
data_dir="$OPT_SAVE_DATA"
|
||||
touch "$existing_dir/test" || die "Cannot write to $existing_dir"
|
||||
rm "$existing_dir/test" || die "Cannot rm $existing_dir/test"
|
||||
data_dir="$existing_dir"
|
||||
fi
|
||||
echo "$data_dir"
|
||||
}
|
||||
@@ -721,7 +721,7 @@ setup_data_dir () {
|
||||
get_var () {
|
||||
local varname="$1"
|
||||
local file="$2"
|
||||
awk -v pattern="${varname}" '$1 == pattern { if (length($2)) { print substr($0, index($0,$2)) } }' "${file}"
|
||||
awk -v pattern="${varname}" '$1 == pattern { if (length($2)) { len = length($1); print substr($0, len+index(substr($0, len+1), $2)) } }' "${file}"
|
||||
}
|
||||
|
||||
# ###########################################################################
|
||||
@@ -838,6 +838,8 @@ collect_mysql_deferred_status () {
|
||||
}
|
||||
|
||||
collect_internal_vars () {
|
||||
local mysqld_executables="${1:-""}"
|
||||
|
||||
local FNV_64=""
|
||||
if $CMD_MYSQL $EXT_ARGV -e 'SELECT FNV_64("a")' >/dev/null 2>&1; then
|
||||
FNV_64="Enabled";
|
||||
@@ -848,14 +850,20 @@ collect_internal_vars () {
|
||||
local now="$($CMD_MYSQL $EXT_ARGV -ss -e 'SELECT NOW()')"
|
||||
local user="$($CMD_MYSQL $EXT_ARGV -ss -e 'SELECT CURRENT_USER()')"
|
||||
local trigger_count=$($CMD_MYSQL $EXT_ARGV -ss -e "SELECT COUNT(*) FROM INFORMATION_SCHEMA.TRIGGERS" 2>/dev/null)
|
||||
local has_symbols="$(has_symbols "${CMD_MYSQL}")"
|
||||
|
||||
echo "pt-summary-internal-mysql_executable $CMD_MYSQL"
|
||||
echo "pt-summary-internal-now $now"
|
||||
echo "pt-summary-internal-user $user"
|
||||
echo "pt-summary-internal-FNV_64 $FNV_64"
|
||||
echo "pt-summary-internal-trigger_count $trigger_count"
|
||||
echo "pt-summary-internal-symbols $has_symbols"
|
||||
|
||||
if [ -e "$mysqld_executables" ]; then
|
||||
local i=1
|
||||
while read executable; do
|
||||
echo "pt-summary-internal-mysqld_executable_${i} $(has_symbols "$executable")"
|
||||
i=$(($i + 1))
|
||||
done < "$mysqld_executables"
|
||||
fi
|
||||
}
|
||||
|
||||
get_mysqldump_for () {
|
||||
@@ -887,6 +895,14 @@ get_mysqldump_args () {
|
||||
echo "${trg_arg}"
|
||||
}
|
||||
|
||||
collect_mysqld_executables () {
|
||||
local mysqld_instances="$1"
|
||||
|
||||
for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^ .*[0-9]/{print $1}' ); do
|
||||
ps -o cmd -p $pid | sed -e 's/^\(.*mysqld\) .*/\1/' | grep -v '^CMD$'
|
||||
done | sort -u
|
||||
}
|
||||
|
||||
collect_mysql_info () {
|
||||
local dir="$1"
|
||||
|
||||
@@ -899,7 +915,8 @@ collect_mysql_info () {
|
||||
collect_mysql_processlist > "$dir/mysql-processlist"
|
||||
collect_mysql_users > "$dir/mysql-users"
|
||||
|
||||
collect_mysqld_instances "$dir/mysql-variables" > "$dir/mysqld-instances"
|
||||
collect_mysqld_instances "$dir/mysql-variables" > "$dir/mysqld-instances"
|
||||
collect_mysqld_executables "$dir/mysqld-instances" > "$dir/mysqld-executables"
|
||||
|
||||
local binlog="$(get_var log_bin "$dir/mysql-variables")"
|
||||
if [ "${binlog}" ]; then
|
||||
@@ -917,7 +934,7 @@ collect_mysql_info () {
|
||||
|
||||
echo "pt-summary-internal-current_time $current_time" >> "$dir/mysql-variables"
|
||||
echo "pt-summary-internal-Config_File_path $cnf_file" >> "$dir/mysql-variables"
|
||||
collect_internal_vars >> "$dir/mysql-variables"
|
||||
collect_internal_vars "$dir/mysqld-executables" >> "$dir/mysql-variables"
|
||||
|
||||
if [ -n "${OPT_DATABASES}" ]; then
|
||||
local trg_arg="$( get_mysqldump_args "$dir/mysql-variables" )"
|
||||
@@ -1847,7 +1864,7 @@ _semi_sync_stats_for () {
|
||||
trace_extra="Unknown setting"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
name_val "${target} semisync status" "${semisync_status}"
|
||||
name_val "${target} trace level" "${semisync_trace}, ${trace_extra}"
|
||||
|
||||
@@ -1902,6 +1919,21 @@ noncounters_pattern () {
|
||||
echo $noncounters_pattern
|
||||
}
|
||||
|
||||
section_mysqld () {
|
||||
local executables_file="$1"
|
||||
local variables_file="$2"
|
||||
|
||||
[ -e "$executables_file" -a -e "$variables_file" ] || return
|
||||
|
||||
section MySQL_Executable
|
||||
local i=1;
|
||||
while read executable; do
|
||||
name_val "Path to executable" "$executable"
|
||||
name_val "Has symbols" "$( get_var "pt-summary-internal-mysqld_executable_${i}" "$variables_file" )"
|
||||
i=$(($i + 1))
|
||||
done < "$executables_file"
|
||||
}
|
||||
|
||||
report_mysql_summary () {
|
||||
local dir="$1"
|
||||
|
||||
@@ -1913,9 +1945,7 @@ report_mysql_summary () {
|
||||
section Instances
|
||||
parse_mysqld_instances "$dir/mysqld-instances" "$dir/mysql-variables"
|
||||
|
||||
# TODO section MySQL_Executable
|
||||
# TODO name_val "Path to executable" "$( get_var pt-summary-internal-mysql_executable "$dir/mysql-variables" )"
|
||||
# TODO name_val "Has symbols" "$( get_var "pt-summary-internal-symbols" "$dir/mysql-variables" )"
|
||||
section_mysqld "$dir/mysqld-executables" "$dir/mysql-variables"
|
||||
|
||||
local user="$(get_var "pt-summary-internal-user" "$dir/mysql-variables")"
|
||||
local port="$(get_var port "$dir/mysql-variables")"
|
||||
@@ -1971,7 +2001,6 @@ report_mysql_summary () {
|
||||
section_percona_server_features "$dir/mysql-variables"
|
||||
|
||||
section Plugins
|
||||
# TODO: what would be good is to show nonstandard plugins here.
|
||||
name_val "InnoDB compression" "$(get_plugin_status "$dir/mysql-plugins" "INNODB_CMP")"
|
||||
|
||||
if [ "$(get_var have_query_cache "$dir/mysql-variables")" ]; then
|
||||
@@ -2144,7 +2173,7 @@ report_mysql_summary () {
|
||||
local cnf_file="$(get_var "pt-summary-internal-Config_File_path" "$dir/mysql-variables")"
|
||||
if [ -n "${cnf_file}" ]; then
|
||||
name_val "Config File" "${cnf_file}"
|
||||
pretty_print_cnf_file "$data_dir/mysql-config-file"
|
||||
pretty_print_cnf_file "$dir/mysql-config-file"
|
||||
else
|
||||
name_val "Config File" "Cannot autodetect or find, giving up"
|
||||
fi
|
||||
@@ -2213,6 +2242,9 @@ main() {
|
||||
|
||||
# Set DATA_DIR where we'll save collected data files.
|
||||
local data_dir="$(setup_data_dir "${OPT_SAVE_SAMPLES:-""}")"
|
||||
if [ -z "$data_dir" ]; then
|
||||
exit $?
|
||||
fi
|
||||
|
||||
if [ -n "$OPT_READ_SAMPLES" -a -d "$OPT_READ_SAMPLES" ]; then
|
||||
# --read-samples was set and is a directory, so the samples
|
||||
|
@@ -130,6 +130,8 @@ collect_mysql_deferred_status () {
|
||||
}
|
||||
|
||||
collect_internal_vars () {
|
||||
local mysqld_executables="${1:-""}"
|
||||
|
||||
local FNV_64=""
|
||||
if $CMD_MYSQL $EXT_ARGV -e 'SELECT FNV_64("a")' >/dev/null 2>&1; then
|
||||
FNV_64="Enabled";
|
||||
@@ -140,14 +142,20 @@ collect_internal_vars () {
|
||||
local now="$($CMD_MYSQL $EXT_ARGV -ss -e 'SELECT NOW()')"
|
||||
local user="$($CMD_MYSQL $EXT_ARGV -ss -e 'SELECT CURRENT_USER()')"
|
||||
local trigger_count=$($CMD_MYSQL $EXT_ARGV -ss -e "SELECT COUNT(*) FROM INFORMATION_SCHEMA.TRIGGERS" 2>/dev/null)
|
||||
local has_symbols="$(has_symbols "${CMD_MYSQL}")"
|
||||
|
||||
echo "pt-summary-internal-mysql_executable $CMD_MYSQL"
|
||||
echo "pt-summary-internal-now $now"
|
||||
echo "pt-summary-internal-user $user"
|
||||
echo "pt-summary-internal-FNV_64 $FNV_64"
|
||||
echo "pt-summary-internal-trigger_count $trigger_count"
|
||||
echo "pt-summary-internal-symbols $has_symbols"
|
||||
|
||||
if [ -e "$mysqld_executables" ]; then
|
||||
local i=1
|
||||
while read executable; do
|
||||
echo "pt-summary-internal-mysqld_executable_${i} $(has_symbols "$executable")"
|
||||
i=$(($i + 1))
|
||||
done < "$mysqld_executables"
|
||||
fi
|
||||
}
|
||||
|
||||
# Uses mysqldump and dumps the results to FILE.
|
||||
@@ -188,6 +196,14 @@ get_mysqldump_args () {
|
||||
echo "${trg_arg}"
|
||||
}
|
||||
|
||||
collect_mysqld_executables () {
|
||||
local mysqld_instances="$1"
|
||||
|
||||
for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^ .*[0-9]/{print $1}' ); do
|
||||
ps -o cmd -p $pid | sed -e 's/^\(.*mysqld\) .*/\1/' | grep -v '^CMD$'
|
||||
done | sort -u
|
||||
}
|
||||
|
||||
collect_mysql_info () {
|
||||
local dir="$1"
|
||||
|
||||
@@ -200,7 +216,8 @@ collect_mysql_info () {
|
||||
collect_mysql_processlist > "$dir/mysql-processlist"
|
||||
collect_mysql_users > "$dir/mysql-users"
|
||||
|
||||
collect_mysqld_instances "$dir/mysql-variables" > "$dir/mysqld-instances"
|
||||
collect_mysqld_instances "$dir/mysql-variables" > "$dir/mysqld-instances"
|
||||
collect_mysqld_executables "$dir/mysqld-instances" > "$dir/mysqld-executables"
|
||||
|
||||
local binlog="$(get_var log_bin "$dir/mysql-variables")"
|
||||
if [ "${binlog}" ]; then
|
||||
@@ -220,7 +237,7 @@ collect_mysql_info () {
|
||||
# TODO: Do these require a file of their own?
|
||||
echo "pt-summary-internal-current_time $current_time" >> "$dir/mysql-variables"
|
||||
echo "pt-summary-internal-Config_File_path $cnf_file" >> "$dir/mysql-variables"
|
||||
collect_internal_vars >> "$dir/mysql-variables"
|
||||
collect_internal_vars "$dir/mysqld-executables" >> "$dir/mysql-variables"
|
||||
|
||||
if [ -n "${OPT_DATABASES}" ]; then
|
||||
# "--dump-schemas passed in, dumping early"
|
||||
|
@@ -1043,6 +1043,21 @@ noncounters_pattern () {
|
||||
echo $noncounters_pattern
|
||||
}
|
||||
|
||||
section_mysqld () {
|
||||
local executables_file="$1"
|
||||
local variables_file="$2"
|
||||
|
||||
[ -e "$executables_file" -a -e "$variables_file" ] || return
|
||||
|
||||
section MySQL_Executable
|
||||
local i=1;
|
||||
while read executable; do
|
||||
name_val "Path to executable" "$executable"
|
||||
name_val "Has symbols" "$( get_var "pt-summary-internal-mysqld_executable_${i}" "$variables_file" )"
|
||||
i=$(($i + 1))
|
||||
done < "$executables_file"
|
||||
}
|
||||
|
||||
report_mysql_summary () {
|
||||
local dir="$1"
|
||||
|
||||
@@ -1058,9 +1073,7 @@ report_mysql_summary () {
|
||||
section Instances
|
||||
parse_mysqld_instances "$dir/mysqld-instances" "$dir/mysql-variables"
|
||||
|
||||
section MySQL_Executable
|
||||
name_val "Path to executable" "$( get_var pt-summary-internal-mysql_executable "$dir/mysql-variables" )"
|
||||
name_val "Has symbols" "$( get_var "pt-summary-internal-symbols" "$dir/mysql-variables" )"
|
||||
section_mysqld "$dir/mysqld-executables" "$dir/mysql-variables"
|
||||
|
||||
# ########################################################################
|
||||
# General date, hostname, etc
|
||||
|
@@ -123,22 +123,22 @@ has_symbols () {
|
||||
}
|
||||
|
||||
setup_data_dir () {
|
||||
local OPT_SAVE_DATA="$1"
|
||||
local existing_dir="$1"
|
||||
local data_dir=""
|
||||
if [ -z "$OPT_SAVE_DATA" ]; then
|
||||
if [ -z "$existing_dir" ]; then
|
||||
# User didn't specify a --save-data dir, so use a sub-dir in our tmpdir.
|
||||
mkdir "$TMPDIR/data" || die "Cannot mkdir $TMPDIR/data"
|
||||
data_dir="$TMPDIR/data"
|
||||
else
|
||||
# Check the user's --save-data dir.
|
||||
if [ ! -d "$OPT_SAVE_DATA" ]; then
|
||||
mkdir "$OPT_SAVE_DATA" || die "Cannot mkdir $OPT_SAVE_DATA"
|
||||
elif [ "$( ls "$OPT_SAVE_DATA" | wc -l )" != "0" ]; then
|
||||
if [ ! -d "$existing_dir" ]; then
|
||||
mkdir "$existing_dir" || die "Cannot mkdir $existing_dir"
|
||||
elif [ "$( ls -A "$existing_dir" )" ]; then
|
||||
die "--save-samples directory isn't empty, halting."
|
||||
fi
|
||||
touch "$OPT_SAVE_DATA/test" || die "Cannot write to $OPT_SAVE_DATA"
|
||||
rm "$OPT_SAVE_DATA/test" || die "Cannot rm $OPT_SAVE_DATA/test"
|
||||
data_dir="$OPT_SAVE_DATA"
|
||||
touch "$existing_dir/test" || die "Cannot write to $existing_dir"
|
||||
rm "$existing_dir/test" || die "Cannot rm $existing_dir/test"
|
||||
data_dir="$existing_dir"
|
||||
fi
|
||||
echo "$data_dir"
|
||||
}
|
||||
@@ -147,7 +147,7 @@ setup_data_dir () {
|
||||
get_var () {
|
||||
local varname="$1"
|
||||
local file="$2"
|
||||
awk -v pattern="${varname}" '$1 == pattern { if (length($2)) { print substr($0, index($0,$2)) } }' "${file}"
|
||||
awk -v pattern="${varname}" '$1 == pattern { if (length($2)) { len = length($1); print substr($0, len+index(substr($0, len+1), $2)) } }' "${file}"
|
||||
}
|
||||
|
||||
# ###########################################################################
|
||||
|
@@ -28,7 +28,7 @@ wait
|
||||
|
||||
file_count=$(ls "$p" | wc -l)
|
||||
|
||||
is $file_count 12 "Creates the correct number of files (without --databases)"
|
||||
is $file_count 14 "Creates the correct number of files (without --databases)"
|
||||
|
||||
awk '{print $1}' "$p/mysqld-instances" > "$TMPDIR/collect_mysqld_instances1.test"
|
||||
ps ww -p "$(_pidof mysqld | sed -e "s/ /,/g")" | awk '{print $1}' > "$TMPDIR/collect_mysqld_instances2.test"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
plan 9
|
||||
plan 10
|
||||
|
||||
TMPDIR="$TEST_TMPDIR"
|
||||
PATH="$PATH:$PERCONA_TOOLKIT_SANDBOX/bin"
|
||||
@@ -59,7 +59,21 @@ is \
|
||||
"40" \
|
||||
"get_var works on a status dump"
|
||||
|
||||
cat <<EOF > "$p"
|
||||
internal::nice_of_2750 0
|
||||
internal::nice_of_2571 0
|
||||
internal::nice_of_2406 0
|
||||
|
||||
EOF
|
||||
|
||||
is \
|
||||
"$(get_var "internal::nice_of_2750" "$p")" \
|
||||
"0" \
|
||||
"get_var doesn't get confused if \$2 is also found inside \$1"
|
||||
|
||||
# setup_data_dir
|
||||
|
||||
dies_ok \
|
||||
"setup_data_dir $PERCONA_TOOLKIT_BRANCH" \
|
||||
"setup_data_dir dies if passed a populated directory" 2>/dev/null
|
||||
|
||||
|
@@ -81,7 +81,7 @@ foreach my $child ( keys %children ) {
|
||||
}
|
||||
|
||||
# Test that there is a deadlock
|
||||
$output = $dbh1->selectrow_hashref('show innodb status')->{status};
|
||||
$output = $dbh1->selectrow_hashref('show /*!40101 engine*/ innodb status')->{status};
|
||||
like($output, qr/WE ROLL BACK/, 'There was a deadlock');
|
||||
|
||||
$output = `$cmd --print`;
|
||||
|
@@ -14,7 +14,7 @@ use PerconaTest;
|
||||
|
||||
my ($tool) = $PROGRAM_NAME =~ m/([\w-]+)\.t$/;
|
||||
|
||||
use Test::More tests => 6;
|
||||
use Test::More tests => 7;
|
||||
use File::Temp qw( tempdir );
|
||||
|
||||
local $ENV{PTDEBUG} = "";
|
||||
@@ -36,7 +36,7 @@ my @files = glob("$dir/*");
|
||||
|
||||
is(
|
||||
scalar @files,
|
||||
13,
|
||||
14,
|
||||
"And leaves all files in there"
|
||||
);
|
||||
|
||||
@@ -55,7 +55,7 @@ like(
|
||||
);
|
||||
|
||||
# --read-samples
|
||||
for my $i (2..4) {
|
||||
for my $i (2..5) {
|
||||
ok(
|
||||
no_diff(
|
||||
sub {
|
||||
|
@@ -2,9 +2,6 @@
|
||||
Port Data Directory Nice OOM Socket
|
||||
===== ========================== ==== === ======
|
||||
3306 /var/lib/mysql ? ? /var/run/mysqld/mysqld.sock
|
||||
# MySQL Executable ###########################################
|
||||
Path to executable |
|
||||
Has symbols | Yes
|
||||
# Report On Port 3306 ########################################
|
||||
User | hugmeir@localhost
|
||||
Time | 2012-03-23 21:05:32 (ART)
|
||||
@@ -177,6 +174,7 @@ Uptime 90000 1 1
|
||||
Geospatial Types | No
|
||||
Foreign Keys | No
|
||||
Partitioning | No
|
||||
InnoDB Compression | No
|
||||
SSL | No
|
||||
Explicit LOCK TABLES | No
|
||||
Delayed Insert | No
|
||||
|
@@ -2,9 +2,6 @@
|
||||
Port Data Directory Nice OOM Socket
|
||||
===== ========================== ==== === ======
|
||||
12345 /tmp/12345/data 0 0 /tmp/12345/mysql_sandbox12345.sock
|
||||
# MySQL Executable ###########################################
|
||||
Path to executable | /home/vagrant/mysql-5.1.49-barebones/bin/mysql
|
||||
Has symbols | Yes
|
||||
# Report On Port 12345 #######################################
|
||||
User | msandbox@%
|
||||
Time | 2012-03-27 16:33:46 (BST)
|
||||
|
@@ -2,9 +2,6 @@
|
||||
Port Data Directory Nice OOM Socket
|
||||
===== ========================== ==== === ======
|
||||
12345 /tmp/12345/data 0 0 /tmp/12345/mysql_sandbox12345.sock
|
||||
# MySQL Executable ###########################################
|
||||
Path to executable | /usr/bin/mysql
|
||||
Has symbols | No
|
||||
# Report On Port 12345 #######################################
|
||||
User | msandbox@%
|
||||
Time | 2012-03-27 09:16:44 (CEST)
|
||||
|
291
t/pt-mysql-summary/samples/expected_output_temp005.txt
Normal file
291
t/pt-mysql-summary/samples/expected_output_temp005.txt
Normal file
@@ -0,0 +1,291 @@
|
||||
# Instances ##################################################
|
||||
Port Data Directory Nice OOM Socket
|
||||
===== ========================== ==== === ======
|
||||
12345 /tmp/12345/data 0 0 /tmp/12345/mysql_sandbox12345.sock
|
||||
12346 /tmp/12346/data 0 0 /tmp/12346/mysql_sandbox12346.sock
|
||||
12347 /tmp/12347/data 0 0 /tmp/12347/mysql_sandbox12347.sock
|
||||
# MySQL Executable ###########################################
|
||||
Path to executable | /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/libexec/mysqld
|
||||
Has symbols | Yes
|
||||
# Report On Port 12345 #######################################
|
||||
User | msandbox@%
|
||||
Time | 2012-03-30 22:33:19 (ART)
|
||||
Hostname | hugmeir
|
||||
Version | 5.1.61rel13.2-log Percona Server with XtraDB (GPL), Release rel13.2, Revision 430
|
||||
Built On | pc-linux-gnu i686
|
||||
Started | 2012-03-30 21:45 (up 0+00:48:00)
|
||||
Databases | 3
|
||||
Datadir | /tmp/12345/data/
|
||||
Processes | 2 connected, 2 running
|
||||
Replication | Is not a slave, has 1 slaves connected
|
||||
Pidfile | /tmp/12345/data/mysql_sandbox12345.pid (exists)
|
||||
# Processlist ################################################
|
||||
|
||||
Command COUNT(*) Working SUM(Time) MAX(Time)
|
||||
------------------------------ -------- ------- --------- ---------
|
||||
Binlog Dump 1 1 3000 3000
|
||||
Query 1 1 0 0
|
||||
|
||||
User COUNT(*) Working SUM(Time) MAX(Time)
|
||||
------------------------------ -------- ------- --------- ---------
|
||||
msandbox 2 2 3000 3000
|
||||
|
||||
Host COUNT(*) Working SUM(Time) MAX(Time)
|
||||
------------------------------ -------- ------- --------- ---------
|
||||
localhost 2 2 3000 3000
|
||||
|
||||
db COUNT(*) Working SUM(Time) MAX(Time)
|
||||
------------------------------ -------- ------- --------- ---------
|
||||
NULL 2 2 3000 3000
|
||||
|
||||
State COUNT(*) Working SUM(Time) MAX(Time)
|
||||
------------------------------ -------- ------- --------- ---------
|
||||
Has sent all binlog to slave; 1 1 3000 3000
|
||||
NULL 1 1 0 0
|
||||
|
||||
# Status Counters (Wait 10 Seconds) ##########################
|
||||
Variable Per day Per second 11 secs
|
||||
Binlog_cache_disk_use 30
|
||||
Binlog_cache_use 30
|
||||
Bytes_received 100000000 1250 3000
|
||||
Bytes_sent 150000000 1750 20000
|
||||
Com_admin_commands 60
|
||||
Com_begin 30
|
||||
Com_change_db 4500 4
|
||||
Com_commit 30
|
||||
Com_create_db 30
|
||||
Com_create_function 90
|
||||
Com_create_procedure 90
|
||||
Com_create_table 500
|
||||
Com_create_trigger 175
|
||||
Com_create_view 200
|
||||
Com_drop_db 30
|
||||
Com_insert 30000
|
||||
Com_select 22500 6
|
||||
Com_set_option 30000 30
|
||||
Com_show_binlogs 500
|
||||
Com_show_create_db 175
|
||||
Com_show_create_func 250
|
||||
Com_show_create_proc 250
|
||||
Com_show_create_table 8000 8
|
||||
Com_show_create_trigger 500
|
||||
Com_show_databases 1000
|
||||
Com_show_engine_status 1000
|
||||
Com_show_fields 4000 4
|
||||
Com_show_function_status 175
|
||||
Com_show_master_status 500
|
||||
Com_show_plugins 900
|
||||
Com_show_procedure_status 175
|
||||
Com_show_processlist 900
|
||||
Com_show_slave_status 900
|
||||
Com_show_status 1500
|
||||
Com_show_table_status 4000 4
|
||||
Com_show_tables 350
|
||||
Com_show_triggers 4000 4
|
||||
Com_show_variables 1000
|
||||
Connections 12500 1
|
||||
Created_tmp_disk_tables 15000 10
|
||||
Created_tmp_files 175
|
||||
Created_tmp_tables 50000 20
|
||||
Flush_commands 30
|
||||
Handler_commit 1250
|
||||
Handler_prepare 1000
|
||||
Handler_read_first 450
|
||||
Handler_read_key 600
|
||||
Handler_read_next 2250 2
|
||||
Handler_read_rnd_next 900000 10 90
|
||||
Handler_write 2250000 25 80
|
||||
Innodb_buffer_pool_pages_flushed 20000
|
||||
Innodb_buffer_pool_read_requests 12500000 150 70
|
||||
Innodb_buffer_pool_write_requests 7000000 80
|
||||
Innodb_data_fsyncs 3000
|
||||
Innodb_data_writes 5000
|
||||
Innodb_data_written 700000000 9000
|
||||
Innodb_dblwr_pages_written 12500
|
||||
Innodb_dblwr_writes 350
|
||||
Innodb_dict_tables 700
|
||||
Innodb_log_write_requests 450000 5
|
||||
Innodb_log_writes 1500
|
||||
Innodb_os_log_fsyncs 2000
|
||||
Innodb_os_log_written 200000000 2500
|
||||
Innodb_pages_created 15000
|
||||
Innodb_pages_written 20000
|
||||
Innodb_rows_inserted 1500000 15
|
||||
Key_read_requests 900000 10 2
|
||||
Key_write_requests 350000 3
|
||||
Key_writes 6000
|
||||
Open_table_definitions 1500
|
||||
Opened_files 80000 60
|
||||
Opened_table_definitions 2000
|
||||
Opened_tables 2250
|
||||
Queries 125000 1 70
|
||||
Questions 100000 1 70
|
||||
Select_scan 20000 15
|
||||
Sort_scan 175
|
||||
Table_locks_immediate 4500 1
|
||||
Threads_created 12500 1
|
||||
Uptime 90000 1 1
|
||||
# Table cache ################################################
|
||||
Size | 64
|
||||
Usage | 60%
|
||||
# Key Percona Server features ################################
|
||||
Table & Index Stats | Disabled
|
||||
Multiple I/O Threads | Enabled
|
||||
Corruption Resilient | Disabled
|
||||
Durable Replication | Disabled
|
||||
Import InnoDB Tables | Disabled
|
||||
Fast Server Restarts | Disabled
|
||||
Enhanced Logging | Disabled
|
||||
Replica Perf Logging | Disabled
|
||||
Response Time Hist. | Disabled
|
||||
Smooth Flushing | Enabled
|
||||
HandlerSocket NoSQL | Not Supported
|
||||
Fast Hash UDFs | Unknown
|
||||
# Plugins ####################################################
|
||||
InnoDB compression | ACTIVE
|
||||
# Query cache ################################################
|
||||
query_cache_type | ON
|
||||
Size | 0.0
|
||||
Usage | 0%
|
||||
HitToInsertRatio | 0%
|
||||
# Schema #####################################################
|
||||
|
||||
Database Tables Views SPs Trigs Funcs FKs Partn
|
||||
mysql 21
|
||||
sakila 16 7 3 6 3 22
|
||||
|
||||
Database MyISAM InnoDB
|
||||
mysql 21
|
||||
sakila 8 15
|
||||
|
||||
Database BTREE FULLTEXT
|
||||
mysql 29
|
||||
sakila 63 1
|
||||
|
||||
c t s e l d i t s t b v b y d m
|
||||
h i e n o a n i m e i a l e e e
|
||||
a m t u n t t n a x g r o a c d
|
||||
r e m g e y l t i c b r i i
|
||||
s b t i l n h m u
|
||||
t l i n i t a a m
|
||||
a o m t n r l i
|
||||
m b e t n
|
||||
p t
|
||||
Database === === === === === === === === === === === === === === === ===
|
||||
mysql 58 7 6 77 5 4 19 2 3 2 8 1 4
|
||||
sakila 1 15 1 3 4 2 19 26 4 45 1 1 7 2
|
||||
|
||||
# Noteworthy Technologies ####################################
|
||||
Full Text Indexing | Yes
|
||||
Geospatial Types | No
|
||||
Foreign Keys | Yes
|
||||
Partitioning | No
|
||||
InnoDB Compression | No
|
||||
SSL | No
|
||||
Explicit LOCK TABLES | No
|
||||
Delayed Insert | No
|
||||
XA Transactions | No
|
||||
NDB Cluster | No
|
||||
Prepared Statements | No
|
||||
Prepared statement count | 0
|
||||
# InnoDB #####################################################
|
||||
Version | 1.0.17-13.2
|
||||
Buffer Pool Size | 32.0M
|
||||
Buffer Pool Fill | 25%
|
||||
Buffer Pool Dirty | 0%
|
||||
File Per Table | OFF
|
||||
Page Size | 16k
|
||||
Log File Size | 2 * 5.0M = 10.0M
|
||||
Log Buffer Size | 8M
|
||||
Flush Method |
|
||||
Flush Log At Commit | 1
|
||||
XA Support | ON
|
||||
Checksums | ON
|
||||
Doublewrite | ON
|
||||
R/W I/O Threads | 4 4
|
||||
I/O Capacity | 200
|
||||
Thread Concurrency | 0
|
||||
Concurrency Tickets | 500
|
||||
Commit Concurrency | 0
|
||||
Txn Isolation Level | REPEATABLE-READ
|
||||
Adaptive Flushing | OFF
|
||||
Adaptive Checkpoint | estimate
|
||||
Checkpoint Age | 0
|
||||
InnoDB Queue | 0 queries inside InnoDB, 0 queries in queue
|
||||
Oldest Transaction | 0 Seconds
|
||||
History List Len | 0
|
||||
Read Views | 1
|
||||
Undo Log Entries | 0 transactions, 0 total undo, 0 max undo
|
||||
Pending I/O Reads | 0 buf pool reads, 0 normal AIO, 0 ibuf AIO, 0 preads
|
||||
Pending I/O Writes | 0 buf pool (0 LRU, 0 flush list, 0 page); 0 AIO, 0 sync, 0 log IO (0 log, 0 chkp); 0 pwrites
|
||||
Pending I/O Flushes | 0 buf pool, 0 log
|
||||
Transaction States | 1xnot started
|
||||
# MyISAM #####################################################
|
||||
Key Cache | 16.0M
|
||||
Pct Used | 10%
|
||||
Unflushed | 0%
|
||||
# Security ###################################################
|
||||
Users | 2 users, 0 anon, 0 w/o pw, 0 old pw
|
||||
Old Passwords | OFF
|
||||
# Binary Logging #############################################
|
||||
Binlogs | 1
|
||||
Zero-Sized | 0
|
||||
Total Size | 3.1M
|
||||
binlog_format | STATEMENT
|
||||
expire_logs_days | 0
|
||||
sync_binlog | 0
|
||||
server_id | 12345
|
||||
binlog_do_db |
|
||||
binlog_ignore_db |
|
||||
# Noteworthy Variables #######################################
|
||||
Auto-Inc Incr/Offset | 1/1
|
||||
default_storage_engine |
|
||||
flush_time | 0
|
||||
init_connect |
|
||||
init_file |
|
||||
sql_mode |
|
||||
join_buffer_size | 128k
|
||||
sort_buffer_size | 2M
|
||||
read_buffer_size | 128k
|
||||
read_rnd_buffer_size | 256k
|
||||
bulk_insert_buffer | 0.00
|
||||
max_heap_table_size | 16M
|
||||
tmp_table_size | 16M
|
||||
max_allowed_packet | 1M
|
||||
thread_stack | 192k
|
||||
log | OFF
|
||||
log_error | /tmp/12345/data/mysqld.log
|
||||
log_warnings | 1
|
||||
log_slow_queries | OFF
|
||||
log_queries_not_using_indexes | OFF
|
||||
log_slave_updates | ON
|
||||
# Configuration File #########################################
|
||||
Config File | /tmp/12345/my.sandbox.cnf
|
||||
|
||||
[client]
|
||||
user = msandbox
|
||||
password = msandbox
|
||||
port = 12345
|
||||
socket = /tmp/12345/mysql_sandbox12345.sock
|
||||
|
||||
[mysqld]
|
||||
port = 12345
|
||||
socket = /tmp/12345/mysql_sandbox12345.sock
|
||||
pid-file = /tmp/12345/data/mysql_sandbox12345.pid
|
||||
basedir = /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/
|
||||
datadir = /tmp/12345/data
|
||||
key_buffer_size = 16M
|
||||
innodb_buffer_pool_size = 16M
|
||||
innodb_data_home_dir = /tmp/12345/data
|
||||
innodb_log_group_home_dir = /tmp/12345/data
|
||||
innodb_data_file_path = ibdata1:10M:autoextend
|
||||
innodb_log_file_size = 5M
|
||||
log-bin = mysql-bin
|
||||
relay_log = mysql-relay-bin
|
||||
log_slave_updates
|
||||
server-id = 12345
|
||||
report-host = 127.0.0.1
|
||||
report-port = 12345
|
||||
log-error = mysqld.log
|
||||
innodb_lock_wait_timeout = 3
|
||||
# The End ####################################################
|
@@ -2,9 +2,6 @@
|
||||
Port Data Directory Nice OOM Socket
|
||||
===== ========================== ==== === ======
|
||||
3306 /var/lib/mysql ? ? /var/run/mysqld/mysqld.sock
|
||||
# MySQL Executable ###########################################
|
||||
Path to executable |
|
||||
Has symbols | No
|
||||
# Report On Port 3306 ########################################
|
||||
User |
|
||||
Time | 2012-02-22 06:24:23 (ART)
|
||||
@@ -145,6 +142,7 @@ Uptime 90000 1 1
|
||||
Geospatial Types | No
|
||||
Foreign Keys | No
|
||||
Partitioning | No
|
||||
InnoDB Compression | No
|
||||
SSL | No
|
||||
Explicit LOCK TABLES | No
|
||||
Delayed Insert | No
|
||||
|
108
t/pt-mysql-summary/samples/temp005/innodb-status
Normal file
108
t/pt-mysql-summary/samples/temp005/innodb-status
Normal file
@@ -0,0 +1,108 @@
|
||||
*************************** 1. row ***************************
|
||||
Type: InnoDB
|
||||
Name:
|
||||
Status:
|
||||
=====================================
|
||||
120330 22:33:19 INNODB MONITOR OUTPUT
|
||||
=====================================
|
||||
Per second averages calculated from the last 1 seconds
|
||||
-----------------
|
||||
BACKGROUND THREAD
|
||||
-----------------
|
||||
srv_master_thread loops: 22 1_second, 22 sleeps, 2 10_second, 3 background, 3 flush
|
||||
srv_master_thread log flush and writes: 25
|
||||
----------
|
||||
SEMAPHORES
|
||||
----------
|
||||
OS WAIT ARRAY INFO: reservation count 38, signal count 38
|
||||
Mutex spin waits 43, rounds 526, OS waits 12
|
||||
RW-shared spins 18, OS waits 18; RW-excl spins 0, OS waits 8
|
||||
Spin rounds per wait: 12.23 mutex, 30.00 RW-shared, 240.00 RW-excl
|
||||
--------
|
||||
FILE I/O
|
||||
--------
|
||||
I/O thread 0 state: waiting for i/o request (insert buffer thread)
|
||||
I/O thread 1 state: waiting for i/o request (log thread)
|
||||
I/O thread 2 state: waiting for i/o request (read thread)
|
||||
I/O thread 3 state: waiting for i/o request (read thread)
|
||||
I/O thread 4 state: waiting for i/o request (read thread)
|
||||
I/O thread 5 state: waiting for i/o request (read thread)
|
||||
I/O thread 6 state: waiting for i/o request (write thread)
|
||||
I/O thread 7 state: waiting for i/o request (write thread)
|
||||
I/O thread 8 state: waiting for i/o request (write thread)
|
||||
I/O thread 9 state: waiting for i/o request (write thread)
|
||||
Pending normal aio reads: 0, aio writes: 0,
|
||||
ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0
|
||||
Pending flushes (fsync) log: 0; buffer pool: 0
|
||||
0 OS file reads, 177 OS file writes, 96 OS fsyncs
|
||||
0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
|
||||
-------------------------------------
|
||||
INSERT BUFFER AND ADAPTIVE HASH INDEX
|
||||
-------------------------------------
|
||||
Ibuf: size 1, free list len 0, seg size 2,
|
||||
0 inserts, 0 merged recs, 0 merges
|
||||
Hash table size 138337, node heap has 7 buffer(s)
|
||||
0.00 hash searches/s, 0.00 non-hash searches/s
|
||||
---
|
||||
LOG
|
||||
---
|
||||
Log sequence number 7004601
|
||||
Log flushed up to 7004601
|
||||
Last checkpoint at 7004601
|
||||
Max checkpoint age 7782360
|
||||
Checkpoint age target 7539162
|
||||
Modified age 0
|
||||
Checkpoint age 0
|
||||
0 pending log writes, 0 pending chkp writes
|
||||
69 log i/o's done, 0.00 log i/o's/second
|
||||
----------------------
|
||||
BUFFER POOL AND MEMORY
|
||||
----------------------
|
||||
Total memory allocated 34193408; in additional pool allocated 0
|
||||
Internal hash tables (constant factor + variable factor)
|
||||
Adaptive hash index 672196 (553348 + 118848)
|
||||
Page hash 17692
|
||||
Dictionary cache 227638 (139064 + 88574)
|
||||
File system 41888 (41336 + 552)
|
||||
Lock system 42228 (41908 + 320)
|
||||
Recovery system 0 (0 + 0)
|
||||
Threads 41612 (41348 + 264)
|
||||
Dictionary memory allocated 88574
|
||||
Buffer pool size 2047
|
||||
Buffer pool size, bytes 33538048
|
||||
Free buffers 1512
|
||||
Database pages 528
|
||||
Old database pages 209
|
||||
Modified db pages 0
|
||||
Pending reads 0
|
||||
Pending writes: LRU 0, flush list 0, single page 0
|
||||
Pages made young 0, not young 0
|
||||
0.00 youngs/s, 0.00 non-youngs/s
|
||||
Pages read 0, created 528, written 630
|
||||
0.00 reads/s, 0.00 creates/s, 0.00 writes/s
|
||||
No buffer pool page gets since the last printout
|
||||
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
|
||||
LRU len: 528, unzip_LRU len: 0
|
||||
I/O sum[0]:cur[0], unzip sum[0]:cur[0]
|
||||
--------------
|
||||
ROW OPERATIONS
|
||||
--------------
|
||||
0 queries inside InnoDB, 0 queries in queue
|
||||
1 read views open inside InnoDB
|
||||
Main thread process no. 2406, id 2894470000, state: waiting for server activity
|
||||
Number of rows inserted 46273, updated 0, deleted 0, read 0
|
||||
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
|
||||
------------
|
||||
TRANSACTIONS
|
||||
------------
|
||||
Trx id counter 31C
|
||||
Purge done for trx's n:o < 0 undo n:o < 0
|
||||
History list length 0
|
||||
LIST OF TRANSACTIONS FOR EACH SESSION:
|
||||
---TRANSACTION 0, not started, process no 2406, OS thread id 2877283184
|
||||
MySQL thread id 445, query id 4428 localhost msandbox
|
||||
SHOW /*!50000 ENGINE*/ INNODB STATUS
|
||||
----------------------------
|
||||
END OF INNODB MONITOR OUTPUT
|
||||
============================
|
||||
|
26
t/pt-mysql-summary/samples/temp005/mysql-config-file
Normal file
26
t/pt-mysql-summary/samples/temp005/mysql-config-file
Normal file
@@ -0,0 +1,26 @@
|
||||
[client]
|
||||
user = msandbox
|
||||
password = msandbox
|
||||
port = 12345
|
||||
socket = /tmp/12345/mysql_sandbox12345.sock
|
||||
|
||||
[mysqld]
|
||||
port = 12345
|
||||
socket = /tmp/12345/mysql_sandbox12345.sock
|
||||
pid-file = /tmp/12345/data/mysql_sandbox12345.pid
|
||||
basedir = /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/
|
||||
datadir = /tmp/12345/data
|
||||
key_buffer_size = 16M
|
||||
innodb_buffer_pool_size = 16M
|
||||
innodb_data_home_dir = /tmp/12345/data
|
||||
innodb_log_group_home_dir = /tmp/12345/data
|
||||
innodb_data_file_path = ibdata1:10M:autoextend
|
||||
innodb_log_file_size = 5M
|
||||
log-bin = mysql-bin
|
||||
relay_log = mysql-relay-bin
|
||||
log_slave_updates
|
||||
server-id = 12345
|
||||
report-host = 127.0.0.1
|
||||
report-port = 12345
|
||||
log-error = mysqld.log
|
||||
innodb_lock_wait_timeout = 3
|
3
t/pt-mysql-summary/samples/temp005/mysql-databases
Normal file
3
t/pt-mysql-summary/samples/temp005/mysql-databases
Normal file
@@ -0,0 +1,3 @@
|
||||
information_schema
|
||||
mysql
|
||||
sakila
|
1
t/pt-mysql-summary/samples/temp005/mysql-master-logs
Normal file
1
t/pt-mysql-summary/samples/temp005/mysql-master-logs
Normal file
@@ -0,0 +1 @@
|
||||
mysql-bin.000001 3251580
|
1
t/pt-mysql-summary/samples/temp005/mysql-master-status
Normal file
1
t/pt-mysql-summary/samples/temp005/mysql-master-status
Normal file
@@ -0,0 +1 @@
|
||||
mysql-bin.000001 3251580
|
28
t/pt-mysql-summary/samples/temp005/mysql-plugins
Normal file
28
t/pt-mysql-summary/samples/temp005/mysql-plugins
Normal file
@@ -0,0 +1,28 @@
|
||||
binlog ACTIVE STORAGE ENGINE NULL GPL
|
||||
partition ACTIVE STORAGE ENGINE NULL GPL
|
||||
ARCHIVE ACTIVE STORAGE ENGINE NULL GPL
|
||||
BLACKHOLE ACTIVE STORAGE ENGINE NULL GPL
|
||||
CSV ACTIVE STORAGE ENGINE NULL GPL
|
||||
FEDERATED DISABLED STORAGE ENGINE NULL GPL
|
||||
MEMORY ACTIVE STORAGE ENGINE NULL GPL
|
||||
InnoDB ACTIVE STORAGE ENGINE NULL GPL
|
||||
INNODB_RSEG ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_BUFFER_POOL_PAGES ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_BUFFER_POOL_PAGES_INDEX ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_BUFFER_POOL_PAGES_BLOB ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_TRX ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_LOCKS ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_LOCK_WAITS ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_CMP ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_CMP_RESET ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_CMPMEM ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_CMPMEM_RESET ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_TABLE_STATS ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_INDEX_STATS ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
XTRADB_ADMIN_COMMAND ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_SYS_TABLES ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_SYS_INDEXES ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
INNODB_SYS_STATS ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
XTRADB_ENHANCEMENTS ACTIVE INFORMATION SCHEMA NULL GPL
|
||||
MyISAM ACTIVE STORAGE ENGINE NULL GPL
|
||||
MRG_MYISAM ACTIVE STORAGE ENGINE NULL GPL
|
18
t/pt-mysql-summary/samples/temp005/mysql-processlist
Normal file
18
t/pt-mysql-summary/samples/temp005/mysql-processlist
Normal file
@@ -0,0 +1,18 @@
|
||||
*************************** 1. row ***************************
|
||||
Id: 3
|
||||
User: msandbox
|
||||
Host: localhost:58268
|
||||
db: NULL
|
||||
Command: Binlog Dump
|
||||
Time: 2872
|
||||
State: Has sent all binlog to slave; waiting for binlog to be updated
|
||||
Info: NULL
|
||||
*************************** 2. row ***************************
|
||||
Id: 446
|
||||
User: msandbox
|
||||
Host: localhost
|
||||
db: NULL
|
||||
Command: Query
|
||||
Time: 0
|
||||
State: NULL
|
||||
Info: SHOW FULL PROCESSLIST
|
0
t/pt-mysql-summary/samples/temp005/mysql-slave
Normal file
0
t/pt-mysql-summary/samples/temp005/mysql-slave
Normal file
304
t/pt-mysql-summary/samples/temp005/mysql-status
Normal file
304
t/pt-mysql-summary/samples/temp005/mysql-status
Normal file
@@ -0,0 +1,304 @@
|
||||
Aborted_clients 0
|
||||
Aborted_connects 0
|
||||
Binlog_cache_disk_use 1
|
||||
Binlog_cache_use 1
|
||||
Bytes_received 3394106
|
||||
Bytes_sent 4951576
|
||||
Com_admin_commands 2
|
||||
Com_assign_to_keycache 0
|
||||
Com_alter_db 0
|
||||
Com_alter_db_upgrade 0
|
||||
Com_alter_event 0
|
||||
Com_alter_function 0
|
||||
Com_alter_procedure 0
|
||||
Com_alter_server 0
|
||||
Com_alter_table 0
|
||||
Com_alter_tablespace 0
|
||||
Com_analyze 0
|
||||
Com_backup_table 0
|
||||
Com_begin 1
|
||||
Com_binlog 0
|
||||
Com_call_procedure 0
|
||||
Com_change_db 152
|
||||
Com_change_master 0
|
||||
Com_check 0
|
||||
Com_checksum 0
|
||||
Com_commit 1
|
||||
Com_create_db 1
|
||||
Com_create_event 0
|
||||
Com_create_function 3
|
||||
Com_create_index 0
|
||||
Com_create_procedure 3
|
||||
Com_create_server 0
|
||||
Com_create_table 16
|
||||
Com_create_trigger 6
|
||||
Com_create_udf 0
|
||||
Com_create_user 0
|
||||
Com_create_view 7
|
||||
Com_dealloc_sql 0
|
||||
Com_delete 0
|
||||
Com_delete_multi 0
|
||||
Com_do 0
|
||||
Com_drop_db 1
|
||||
Com_drop_event 0
|
||||
Com_drop_function 0
|
||||
Com_drop_index 0
|
||||
Com_drop_procedure 0
|
||||
Com_drop_server 0
|
||||
Com_drop_table 0
|
||||
Com_drop_trigger 0
|
||||
Com_drop_user 0
|
||||
Com_drop_view 0
|
||||
Com_empty_query 0
|
||||
Com_execute_sql 0
|
||||
Com_flush 0
|
||||
Com_grant 0
|
||||
Com_ha_close 0
|
||||
Com_ha_open 0
|
||||
Com_ha_read 0
|
||||
Com_help 0
|
||||
Com_insert 1017
|
||||
Com_insert_select 0
|
||||
Com_install_plugin 0
|
||||
Com_kill 0
|
||||
Com_load 0
|
||||
Com_load_master_data 0
|
||||
Com_load_master_table 0
|
||||
Com_lock_tables 0
|
||||
Com_optimize 0
|
||||
Com_preload_keys 0
|
||||
Com_prepare_sql 0
|
||||
Com_purge 0
|
||||
Com_purge_before_date 0
|
||||
Com_release_savepoint 0
|
||||
Com_rename_table 0
|
||||
Com_rename_user 0
|
||||
Com_repair 0
|
||||
Com_replace 0
|
||||
Com_replace_select 0
|
||||
Com_reset 0
|
||||
Com_restore_table 0
|
||||
Com_revoke 0
|
||||
Com_revoke_all 0
|
||||
Com_rollback 0
|
||||
Com_rollback_to_savepoint 0
|
||||
Com_savepoint 0
|
||||
Com_select 751
|
||||
Com_set_option 993
|
||||
Com_show_authors 0
|
||||
Com_show_binlog_events 0
|
||||
Com_show_binlogs 17
|
||||
Com_show_charsets 0
|
||||
Com_show_client_statistics 0
|
||||
Com_show_collations 0
|
||||
Com_show_column_types 0
|
||||
Com_show_contributors 0
|
||||
Com_show_create_db 6
|
||||
Com_show_create_event 0
|
||||
Com_show_create_func 9
|
||||
Com_show_create_proc 9
|
||||
Com_show_create_table 264
|
||||
Com_show_create_trigger 18
|
||||
Com_show_databases 37
|
||||
Com_show_engine_logs 0
|
||||
Com_show_engine_mutex 0
|
||||
Com_show_engine_status 32
|
||||
Com_show_events 0
|
||||
Com_show_errors 0
|
||||
Com_show_fields 132
|
||||
Com_show_function_status 6
|
||||
Com_show_grants 0
|
||||
Com_show_index_statistics 0
|
||||
Com_show_keys 0
|
||||
Com_show_master_status 17
|
||||
Com_show_new_master 0
|
||||
Com_show_open_tables 0
|
||||
Com_show_patches 0
|
||||
Com_show_plugins 31
|
||||
Com_show_privileges 0
|
||||
Com_show_procedure_status 6
|
||||
Com_show_processlist 31
|
||||
Com_show_profile 0
|
||||
Com_show_profiles 0
|
||||
Com_show_slave_hosts 0
|
||||
Com_show_slave_status 31
|
||||
Com_show_slave_status_nolock 0
|
||||
Com_show_status 49
|
||||
Com_show_storage_engines 0
|
||||
Com_show_table_statistics 0
|
||||
Com_show_table_status 132
|
||||
Com_show_tables 12
|
||||
Com_show_thread_statistics 0
|
||||
Com_show_temporary_tables 0
|
||||
Com_show_triggers 132
|
||||
Com_show_user_statistics 0
|
||||
Com_show_variables 33
|
||||
Com_show_warnings 0
|
||||
Com_slave_start 0
|
||||
Com_slave_stop 0
|
||||
Com_stmt_close 0
|
||||
Com_stmt_execute 0
|
||||
Com_stmt_fetch 0
|
||||
Com_stmt_prepare 0
|
||||
Com_stmt_reprepare 0
|
||||
Com_stmt_reset 0
|
||||
Com_stmt_send_long_data 0
|
||||
Com_truncate 0
|
||||
Com_uninstall_plugin 0
|
||||
Com_unlock_tables 0
|
||||
Com_update 0
|
||||
Com_update_multi 0
|
||||
Com_xa_commit 0
|
||||
Com_xa_end 0
|
||||
Com_xa_prepare 0
|
||||
Com_xa_recover 0
|
||||
Com_xa_rollback 0
|
||||
Com_xa_start 0
|
||||
Compression OFF
|
||||
Connections 442
|
||||
Created_tmp_disk_tables 511
|
||||
Created_tmp_files 6
|
||||
Created_tmp_tables 1643
|
||||
Delayed_errors 0
|
||||
Delayed_insert_threads 0
|
||||
Delayed_writes 0
|
||||
Flashcache_enabled OFF
|
||||
Flush_commands 1
|
||||
Handler_commit 43
|
||||
Handler_delete 0
|
||||
Handler_discover 0
|
||||
Handler_prepare 36
|
||||
Handler_read_first 15
|
||||
Handler_read_key 19
|
||||
Handler_read_next 72
|
||||
Handler_read_prev 0
|
||||
Handler_read_rnd 0
|
||||
Handler_read_rnd_next 28998
|
||||
Handler_rollback 0
|
||||
Handler_savepoint 0
|
||||
Handler_savepoint_rollback 0
|
||||
Handler_update 0
|
||||
Handler_write 75553
|
||||
Innodb_buffer_pool_pages_data 528
|
||||
Innodb_buffer_pool_pages_dirty 0
|
||||
Innodb_buffer_pool_pages_flushed 630
|
||||
Innodb_buffer_pool_pages_free 1512
|
||||
Innodb_buffer_pool_pages_misc 7
|
||||
Innodb_buffer_pool_pages_total 2047
|
||||
Innodb_buffer_pool_read_ahead_rnd 0
|
||||
Innodb_buffer_pool_read_ahead 0
|
||||
Innodb_buffer_pool_read_ahead_evicted 0
|
||||
Innodb_buffer_pool_read_requests 436734
|
||||
Innodb_buffer_pool_reads 0
|
||||
Innodb_buffer_pool_wait_free 0
|
||||
Innodb_buffer_pool_write_requests 233467
|
||||
Innodb_data_fsyncs 96
|
||||
Innodb_data_pending_fsyncs 0
|
||||
Innodb_data_pending_reads 0
|
||||
Innodb_data_pending_writes 0
|
||||
Innodb_data_read 0
|
||||
Innodb_data_reads 0
|
||||
Innodb_data_writes 177
|
||||
Innodb_data_written 24823808
|
||||
Innodb_dblwr_pages_written 456
|
||||
Innodb_deadlocks 0
|
||||
Innodb_dblwr_writes 12
|
||||
Innodb_dict_tables 23
|
||||
Innodb_have_atomic_builtins OFF
|
||||
Innodb_log_waits 0
|
||||
Innodb_log_write_requests 14578
|
||||
Innodb_log_writes 52
|
||||
Innodb_os_log_fsyncs 67
|
||||
Innodb_os_log_pending_fsyncs 0
|
||||
Innodb_os_log_pending_writes 0
|
||||
Innodb_os_log_written 7022080
|
||||
Innodb_page_size 16384
|
||||
Innodb_pages_created 528
|
||||
Innodb_pages_read 0
|
||||
Innodb_pages_written 630
|
||||
Innodb_row_lock_current_waits 0
|
||||
Innodb_row_lock_time 0
|
||||
Innodb_row_lock_time_avg 0
|
||||
Innodb_row_lock_time_max 0
|
||||
Innodb_row_lock_waits 0
|
||||
Innodb_rows_deleted 0
|
||||
Innodb_rows_inserted 46273
|
||||
Innodb_rows_read 0
|
||||
Innodb_rows_updated 0
|
||||
Key_blocks_not_flushed 0
|
||||
Key_blocks_unused 14295
|
||||
Key_blocks_used 202
|
||||
Key_read_requests 28901
|
||||
Key_reads 0
|
||||
Key_write_requests 11127
|
||||
Key_writes 212
|
||||
Last_query_cost 0.000000
|
||||
Max_used_connections 3
|
||||
Not_flushed_delayed_rows 0
|
||||
Open_files 51
|
||||
Open_streams 0
|
||||
Open_table_definitions 46
|
||||
Open_tables 41
|
||||
Opened_files 2653
|
||||
Opened_table_definitions 64
|
||||
Opened_tables 73
|
||||
Prepared_stmt_count 0
|
||||
Qcache_free_blocks 0
|
||||
Qcache_free_memory 0
|
||||
Qcache_hits 0
|
||||
Qcache_inserts 0
|
||||
Qcache_lowmem_prunes 0
|
||||
Qcache_not_cached 0
|
||||
Qcache_queries_in_cache 0
|
||||
Qcache_total_blocks 0
|
||||
Queries 4416
|
||||
Questions 3416
|
||||
Rpl_status NULL
|
||||
Select_full_join 0
|
||||
Select_full_range_join 0
|
||||
Select_range 0
|
||||
Select_range_check 0
|
||||
Select_scan 645
|
||||
Slave_open_temp_tables 0
|
||||
Slave_retried_transactions 0
|
||||
Slave_running OFF
|
||||
Slow_launch_threads 0
|
||||
Slow_queries 0
|
||||
Sort_merge_passes 0
|
||||
Sort_range 0
|
||||
Sort_rows 0
|
||||
Sort_scan 6
|
||||
Ssl_accept_renegotiates 0
|
||||
Ssl_accepts 0
|
||||
Ssl_callback_cache_hits 0
|
||||
Ssl_cipher
|
||||
Ssl_cipher_list
|
||||
Ssl_client_connects 0
|
||||
Ssl_connect_renegotiates 0
|
||||
Ssl_ctx_verify_depth 0
|
||||
Ssl_ctx_verify_mode 0
|
||||
Ssl_default_timeout 0
|
||||
Ssl_finished_accepts 0
|
||||
Ssl_finished_connects 0
|
||||
Ssl_session_cache_hits 0
|
||||
Ssl_session_cache_misses 0
|
||||
Ssl_session_cache_mode NONE
|
||||
Ssl_session_cache_overflows 0
|
||||
Ssl_session_cache_size 0
|
||||
Ssl_session_cache_timeouts 0
|
||||
Ssl_sessions_reused 0
|
||||
Ssl_used_session_cache_entries 0
|
||||
Ssl_verify_depth 0
|
||||
Ssl_verify_mode 0
|
||||
Ssl_version
|
||||
Table_locks_immediate 143
|
||||
Table_locks_waited 0
|
||||
Tc_log_max_pages_used 0
|
||||
Tc_log_page_size 0
|
||||
Tc_log_page_waits 0
|
||||
Threads_cached 0
|
||||
Threads_connected 2
|
||||
Threads_created 441
|
||||
Threads_running 2
|
||||
Uptime 2880
|
||||
Uptime_since_flush_status 2880
|
304
t/pt-mysql-summary/samples/temp005/mysql-status-defer
Normal file
304
t/pt-mysql-summary/samples/temp005/mysql-status-defer
Normal file
@@ -0,0 +1,304 @@
|
||||
Aborted_clients 0 0
|
||||
Aborted_connects 0 0
|
||||
Binlog_cache_disk_use 1 1
|
||||
Binlog_cache_use 1 1
|
||||
Bytes_received 3394106 3424450
|
||||
Bytes_sent 4951576 5180605
|
||||
Com_admin_commands 2 2
|
||||
Com_assign_to_keycache 0 0
|
||||
Com_alter_db 0 0
|
||||
Com_alter_db_upgrade 0 0
|
||||
Com_alter_event 0 0
|
||||
Com_alter_function 0 0
|
||||
Com_alter_procedure 0 0
|
||||
Com_alter_server 0 0
|
||||
Com_alter_table 0 0
|
||||
Com_alter_tablespace 0 0
|
||||
Com_analyze 0 0
|
||||
Com_backup_table 0 0
|
||||
Com_begin 1 1
|
||||
Com_binlog 0 0
|
||||
Com_call_procedure 0 0
|
||||
Com_change_db 152 202
|
||||
Com_change_master 0 0
|
||||
Com_check 0 0
|
||||
Com_checksum 0 0
|
||||
Com_commit 1 1
|
||||
Com_create_db 1 1
|
||||
Com_create_event 0 0
|
||||
Com_create_function 3 3
|
||||
Com_create_index 0 0
|
||||
Com_create_procedure 3 3
|
||||
Com_create_server 0 0
|
||||
Com_create_table 16 16
|
||||
Com_create_trigger 6 6
|
||||
Com_create_udf 0 0
|
||||
Com_create_user 0 0
|
||||
Com_create_view 7 7
|
||||
Com_dealloc_sql 0 0
|
||||
Com_delete 0 0
|
||||
Com_delete_multi 0 0
|
||||
Com_do 0 0
|
||||
Com_drop_db 1 1
|
||||
Com_drop_event 0 0
|
||||
Com_drop_function 0 0
|
||||
Com_drop_index 0 0
|
||||
Com_drop_procedure 0 0
|
||||
Com_drop_server 0 0
|
||||
Com_drop_table 0 0
|
||||
Com_drop_trigger 0 0
|
||||
Com_drop_user 0 0
|
||||
Com_drop_view 0 0
|
||||
Com_empty_query 0 0
|
||||
Com_execute_sql 0 0
|
||||
Com_flush 0 0
|
||||
Com_grant 0 0
|
||||
Com_ha_close 0 0
|
||||
Com_ha_open 0 0
|
||||
Com_ha_read 0 0
|
||||
Com_help 0 0
|
||||
Com_insert 1017 1017
|
||||
Com_insert_select 0 0
|
||||
Com_install_plugin 0 0
|
||||
Com_kill 0 0
|
||||
Com_load 0 0
|
||||
Com_load_master_data 0 0
|
||||
Com_load_master_table 0 0
|
||||
Com_lock_tables 0 0
|
||||
Com_optimize 0 0
|
||||
Com_preload_keys 0 0
|
||||
Com_prepare_sql 0 0
|
||||
Com_purge 0 0
|
||||
Com_purge_before_date 0 0
|
||||
Com_release_savepoint 0 0
|
||||
Com_rename_table 0 0
|
||||
Com_rename_user 0 0
|
||||
Com_repair 0 0
|
||||
Com_replace 0 0
|
||||
Com_replace_select 0 0
|
||||
Com_reset 0 0
|
||||
Com_restore_table 0 0
|
||||
Com_revoke 0 0
|
||||
Com_revoke_all 0 0
|
||||
Com_rollback 0 0
|
||||
Com_rollback_to_savepoint 0 0
|
||||
Com_savepoint 0 0
|
||||
Com_select 751 826
|
||||
Com_set_option 993 1321
|
||||
Com_show_authors 0 0
|
||||
Com_show_binlog_events 0 0
|
||||
Com_show_binlogs 17 18
|
||||
Com_show_charsets 0 0
|
||||
Com_show_client_statistics 0 0
|
||||
Com_show_collations 0 0
|
||||
Com_show_column_types 0 0
|
||||
Com_show_contributors 0 0
|
||||
Com_show_create_db 6 8
|
||||
Com_show_create_event 0 0
|
||||
Com_show_create_func 9 12
|
||||
Com_show_create_proc 9 12
|
||||
Com_show_create_table 264 352
|
||||
Com_show_create_trigger 18 24
|
||||
Com_show_databases 37 40
|
||||
Com_show_engine_logs 0 0
|
||||
Com_show_engine_mutex 0 0
|
||||
Com_show_engine_status 32 33
|
||||
Com_show_events 0 0
|
||||
Com_show_errors 0 0
|
||||
Com_show_fields 132 176
|
||||
Com_show_function_status 6 8
|
||||
Com_show_grants 0 0
|
||||
Com_show_index_statistics 0 0
|
||||
Com_show_keys 0 0
|
||||
Com_show_master_status 17 18
|
||||
Com_show_new_master 0 0
|
||||
Com_show_open_tables 0 0
|
||||
Com_show_patches 0 0
|
||||
Com_show_plugins 31 32
|
||||
Com_show_privileges 0 0
|
||||
Com_show_procedure_status 6 8
|
||||
Com_show_processlist 31 32
|
||||
Com_show_profile 0 0
|
||||
Com_show_profiles 0 0
|
||||
Com_show_slave_hosts 0 0
|
||||
Com_show_slave_status 31 32
|
||||
Com_show_slave_status_nolock 0 0
|
||||
Com_show_status 49 50
|
||||
Com_show_storage_engines 0 0
|
||||
Com_show_table_statistics 0 0
|
||||
Com_show_table_status 132 176
|
||||
Com_show_tables 12 16
|
||||
Com_show_thread_statistics 0 0
|
||||
Com_show_temporary_tables 0 0
|
||||
Com_show_triggers 132 176
|
||||
Com_show_user_statistics 0 0
|
||||
Com_show_variables 33 33
|
||||
Com_show_warnings 0 0
|
||||
Com_slave_start 0 0
|
||||
Com_slave_stop 0 0
|
||||
Com_stmt_close 0 0
|
||||
Com_stmt_execute 0 0
|
||||
Com_stmt_fetch 0 0
|
||||
Com_stmt_prepare 0 0
|
||||
Com_stmt_reprepare 0 0
|
||||
Com_stmt_reset 0 0
|
||||
Com_stmt_send_long_data 0 0
|
||||
Com_truncate 0 0
|
||||
Com_uninstall_plugin 0 0
|
||||
Com_unlock_tables 0 0
|
||||
Com_update 0 0
|
||||
Com_update_multi 0 0
|
||||
Com_xa_commit 0 0
|
||||
Com_xa_end 0 0
|
||||
Com_xa_prepare 0 0
|
||||
Com_xa_recover 0 0
|
||||
Com_xa_rollback 0 0
|
||||
Com_xa_start 0 0
|
||||
Compression OFF OFF
|
||||
Connections 442 457
|
||||
Created_tmp_disk_tables 511 630
|
||||
Created_tmp_files 6 6
|
||||
Created_tmp_tables 1643 1889
|
||||
Delayed_errors 0 0
|
||||
Delayed_insert_threads 0 0
|
||||
Delayed_writes 0 0
|
||||
Flashcache_enabled OFF OFF
|
||||
Flush_commands 1 1
|
||||
Handler_commit 43 43
|
||||
Handler_delete 0 0
|
||||
Handler_discover 0 0
|
||||
Handler_prepare 36 36
|
||||
Handler_read_first 15 19
|
||||
Handler_read_key 19 25
|
||||
Handler_read_next 72 96
|
||||
Handler_read_prev 0 0
|
||||
Handler_read_rnd 0 0
|
||||
Handler_read_rnd_next 28998 29993
|
||||
Handler_rollback 0 0
|
||||
Handler_savepoint 0 0
|
||||
Handler_savepoint_rollback 0 0
|
||||
Handler_update 0 0
|
||||
Handler_write 75553 76388
|
||||
Innodb_buffer_pool_pages_data 528 528
|
||||
Innodb_buffer_pool_pages_dirty 0 0
|
||||
Innodb_buffer_pool_pages_flushed 630 630
|
||||
Innodb_buffer_pool_pages_free 1512 1512
|
||||
Innodb_buffer_pool_pages_misc 7 7
|
||||
Innodb_buffer_pool_pages_total 2047 2047
|
||||
Innodb_buffer_pool_read_ahead_rnd 0 0
|
||||
Innodb_buffer_pool_read_ahead 0 0
|
||||
Innodb_buffer_pool_read_ahead_evicted 0 0
|
||||
Innodb_buffer_pool_read_requests 436734 437466
|
||||
Innodb_buffer_pool_reads 0 0
|
||||
Innodb_buffer_pool_wait_free 0 0
|
||||
Innodb_buffer_pool_write_requests 233467 233467
|
||||
Innodb_data_fsyncs 96 96
|
||||
Innodb_data_pending_fsyncs 0 0
|
||||
Innodb_data_pending_reads 0 0
|
||||
Innodb_data_pending_writes 0 0
|
||||
Innodb_data_read 0 0
|
||||
Innodb_data_reads 0 0
|
||||
Innodb_data_writes 177 177
|
||||
Innodb_data_written 24823808 24823808
|
||||
Innodb_dblwr_pages_written 456 456
|
||||
Innodb_deadlocks 0 0
|
||||
Innodb_dblwr_writes 12 12
|
||||
Innodb_dict_tables 23 23
|
||||
Innodb_have_atomic_builtins OFF OFF
|
||||
Innodb_log_waits 0 0
|
||||
Innodb_log_write_requests 14578 14578
|
||||
Innodb_log_writes 52 52
|
||||
Innodb_os_log_fsyncs 67 67
|
||||
Innodb_os_log_pending_fsyncs 0 0
|
||||
Innodb_os_log_pending_writes 0 0
|
||||
Innodb_os_log_written 7022080 7022080
|
||||
Innodb_page_size 16384 16384
|
||||
Innodb_pages_created 528 528
|
||||
Innodb_pages_read 0 0
|
||||
Innodb_pages_written 630 630
|
||||
Innodb_row_lock_current_waits 0 0
|
||||
Innodb_row_lock_time 0 0
|
||||
Innodb_row_lock_time_avg 0 0
|
||||
Innodb_row_lock_time_max 0 0
|
||||
Innodb_row_lock_waits 0 0
|
||||
Innodb_rows_deleted 0 0
|
||||
Innodb_rows_inserted 46273 46273
|
||||
Innodb_rows_read 0 0
|
||||
Innodb_rows_updated 0 0
|
||||
Key_blocks_not_flushed 0 0
|
||||
Key_blocks_unused 14295 14295
|
||||
Key_blocks_used 202 202
|
||||
Key_read_requests 28901 28929
|
||||
Key_reads 0 0
|
||||
Key_write_requests 11127 11127
|
||||
Key_writes 212 212
|
||||
Last_query_cost 0.000000 0.000000
|
||||
Max_used_connections 3 3
|
||||
Not_flushed_delayed_rows 0 0
|
||||
Open_files 51 51
|
||||
Open_streams 0 0
|
||||
Open_table_definitions 46 46
|
||||
Open_tables 41 41
|
||||
Opened_files 2653 3262
|
||||
Opened_table_definitions 64 64
|
||||
Opened_tables 73 73
|
||||
Prepared_stmt_count 0 0
|
||||
Qcache_free_blocks 0 0
|
||||
Qcache_free_memory 0 0
|
||||
Qcache_hits 0 0
|
||||
Qcache_inserts 0 0
|
||||
Qcache_lowmem_prunes 0 0
|
||||
Qcache_not_cached 0 0
|
||||
Qcache_queries_in_cache 0 0
|
||||
Qcache_total_blocks 0 0
|
||||
Queries 4416 5137
|
||||
Questions 3416 4137
|
||||
Rpl_status NULL NULL
|
||||
Select_full_join 0 0
|
||||
Select_full_range_join 0 0
|
||||
Select_range 0 0
|
||||
Select_range_check 0 0
|
||||
Select_scan 645 801
|
||||
Slave_open_temp_tables 0 0
|
||||
Slave_retried_transactions 0 0
|
||||
Slave_running OFF OFF
|
||||
Slow_launch_threads 0 0
|
||||
Slow_queries 0 0
|
||||
Sort_merge_passes 0 0
|
||||
Sort_range 0 0
|
||||
Sort_rows 0 0
|
||||
Sort_scan 6 8
|
||||
Ssl_accept_renegotiates 0 0
|
||||
Ssl_accepts 0 0
|
||||
Ssl_callback_cache_hits 0 0
|
||||
Ssl_cipher
|
||||
Ssl_cipher_list
|
||||
Ssl_client_connects 0 0
|
||||
Ssl_connect_renegotiates 0 0
|
||||
Ssl_ctx_verify_depth 0 0
|
||||
Ssl_ctx_verify_mode 0 0
|
||||
Ssl_default_timeout 0 0
|
||||
Ssl_finished_accepts 0 0
|
||||
Ssl_finished_connects 0 0
|
||||
Ssl_session_cache_hits 0 0
|
||||
Ssl_session_cache_misses 0 0
|
||||
Ssl_session_cache_mode NONE NONE
|
||||
Ssl_session_cache_overflows 0 0
|
||||
Ssl_session_cache_size 0 0
|
||||
Ssl_session_cache_timeouts 0 0
|
||||
Ssl_sessions_reused 0 0
|
||||
Ssl_used_session_cache_entries 0 0
|
||||
Ssl_verify_depth 0 0
|
||||
Ssl_verify_mode 0 0
|
||||
Ssl_version
|
||||
Table_locks_immediate 143 154
|
||||
Table_locks_waited 0 0
|
||||
Tc_log_max_pages_used 0 0
|
||||
Tc_log_page_size 0 0
|
||||
Tc_log_page_waits 0 0
|
||||
Threads_cached 0 0
|
||||
Threads_connected 2 2
|
||||
Threads_created 441 456
|
||||
Threads_running 2 2
|
||||
Uptime 2880 2891
|
||||
Uptime_since_flush_status 2880 2891
|
1
t/pt-mysql-summary/samples/temp005/mysql-users
Normal file
1
t/pt-mysql-summary/samples/temp005/mysql-users
Normal file
@@ -0,0 +1 @@
|
||||
2 0 0 0
|
362
t/pt-mysql-summary/samples/temp005/mysql-variables
Normal file
362
t/pt-mysql-summary/samples/temp005/mysql-variables
Normal file
@@ -0,0 +1,362 @@
|
||||
auto_increment_increment 1
|
||||
auto_increment_offset 1
|
||||
autocommit ON
|
||||
automatic_sp_privileges ON
|
||||
back_log 50
|
||||
basedir /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/
|
||||
big_tables OFF
|
||||
binlog_cache_size 32768
|
||||
binlog_direct_non_transactional_updates OFF
|
||||
binlog_format STATEMENT
|
||||
bulk_insert_buffer_size 8388608
|
||||
character_set_client latin1
|
||||
character_set_connection latin1
|
||||
character_set_database latin1
|
||||
character_set_filesystem binary
|
||||
character_set_results latin1
|
||||
character_set_server latin1
|
||||
character_set_system utf8
|
||||
character_sets_dir /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/share/mysql/charsets/
|
||||
collation_connection latin1_swedish_ci
|
||||
collation_database latin1_swedish_ci
|
||||
collation_server latin1_swedish_ci
|
||||
completion_type 0
|
||||
concurrent_insert 1
|
||||
connect_timeout 10
|
||||
datadir /tmp/12345/data/
|
||||
date_format %Y-%m-%d
|
||||
datetime_format %Y-%m-%d %H:%i:%s
|
||||
default_week_format 0
|
||||
delay_key_write ON
|
||||
delayed_insert_limit 100
|
||||
delayed_insert_timeout 300
|
||||
delayed_queue_size 1000
|
||||
div_precision_increment 4
|
||||
enable_query_response_time_stats OFF
|
||||
engine_condition_pushdown ON
|
||||
error_count 0
|
||||
event_scheduler OFF
|
||||
expand_fast_index_creation OFF
|
||||
expire_logs_days 0
|
||||
fast_index_creation ON
|
||||
flush OFF
|
||||
flush_time 0
|
||||
foreign_key_checks ON
|
||||
ft_boolean_syntax + -><()~*:""&|
|
||||
ft_max_word_len 84
|
||||
ft_min_word_len 4
|
||||
ft_query_expansion_limit 20
|
||||
ft_stopword_file (built-in)
|
||||
general_log OFF
|
||||
general_log_file /tmp/12345/data/mysql_sandbox12345.log
|
||||
group_concat_max_len 1024
|
||||
have_community_features YES
|
||||
have_compress YES
|
||||
have_crypt YES
|
||||
have_csv YES
|
||||
have_dynamic_loading YES
|
||||
have_geometry YES
|
||||
have_innodb YES
|
||||
have_ndbcluster NO
|
||||
have_openssl DISABLED
|
||||
have_partitioning YES
|
||||
have_query_cache YES
|
||||
have_response_time_distribution YES
|
||||
have_rtree_keys YES
|
||||
have_ssl DISABLED
|
||||
have_symlink YES
|
||||
hostname hugmeir
|
||||
identity 0
|
||||
ignore_builtin_innodb OFF
|
||||
init_connect
|
||||
init_file
|
||||
init_slave
|
||||
innodb_adaptive_checkpoint estimate
|
||||
innodb_adaptive_flushing OFF
|
||||
innodb_adaptive_hash_index ON
|
||||
innodb_additional_mem_pool_size 8388608
|
||||
innodb_auto_lru_dump 0
|
||||
innodb_autoextend_increment 8
|
||||
innodb_autoinc_lock_mode 1
|
||||
innodb_blocking_lru_restore OFF
|
||||
innodb_buffer_pool_shm_checksum ON
|
||||
innodb_buffer_pool_shm_key 0
|
||||
innodb_buffer_pool_size 33554432
|
||||
innodb_change_buffering inserts
|
||||
innodb_checkpoint_age_target 0
|
||||
innodb_checksums ON
|
||||
innodb_commit_concurrency 0
|
||||
innodb_concurrency_tickets 500
|
||||
innodb_data_file_path ibdata1:10M:autoextend
|
||||
innodb_data_home_dir /tmp/12345/data
|
||||
innodb_dict_size_limit 0
|
||||
innodb_doublewrite ON
|
||||
innodb_doublewrite_file
|
||||
innodb_enable_unsafe_group_commit 0
|
||||
innodb_expand_import 0
|
||||
innodb_extra_rsegments 0
|
||||
innodb_extra_undoslots OFF
|
||||
innodb_fake_changes OFF
|
||||
innodb_fast_checksum OFF
|
||||
innodb_fast_recovery OFF
|
||||
innodb_fast_shutdown 1
|
||||
innodb_file_format Antelope
|
||||
innodb_file_format_check Antelope
|
||||
innodb_file_per_table OFF
|
||||
innodb_flush_log_at_trx_commit 1
|
||||
innodb_flush_log_at_trx_commit_session 3
|
||||
innodb_flush_method
|
||||
innodb_flush_neighbor_pages 1
|
||||
innodb_force_recovery 0
|
||||
innodb_ibuf_accel_rate 100
|
||||
innodb_ibuf_active_contract 1
|
||||
innodb_ibuf_max_size 16760832
|
||||
innodb_io_capacity 200
|
||||
innodb_kill_idle_transaction 0
|
||||
innodb_lazy_drop_table 0
|
||||
innodb_lock_wait_timeout 3
|
||||
innodb_locks_unsafe_for_binlog OFF
|
||||
innodb_log_block_size 512
|
||||
innodb_log_buffer_size 8388608
|
||||
innodb_log_file_size 5242880
|
||||
innodb_log_files_in_group 2
|
||||
innodb_log_group_home_dir /tmp/12345/data
|
||||
innodb_max_dirty_pages_pct 75
|
||||
innodb_max_purge_lag 0
|
||||
innodb_mirrored_log_groups 1
|
||||
innodb_old_blocks_pct 37
|
||||
innodb_old_blocks_time 0
|
||||
innodb_open_files 300
|
||||
innodb_overwrite_relay_log_info OFF
|
||||
innodb_page_size 16384
|
||||
innodb_pass_corrupt_table 0
|
||||
innodb_random_read_ahead OFF
|
||||
innodb_read_ahead linear
|
||||
innodb_read_ahead_threshold 56
|
||||
innodb_read_io_threads 4
|
||||
innodb_recovery_stats OFF
|
||||
innodb_replication_delay 0
|
||||
innodb_rollback_on_timeout OFF
|
||||
innodb_show_locks_held 10
|
||||
innodb_show_verbose_locks 0
|
||||
innodb_spin_wait_delay 6
|
||||
innodb_stats_auto_update 1
|
||||
innodb_stats_method nulls_equal
|
||||
innodb_stats_on_metadata ON
|
||||
innodb_stats_sample_pages 8
|
||||
innodb_stats_update_need_lock 1
|
||||
innodb_strict_mode OFF
|
||||
innodb_support_xa ON
|
||||
innodb_sync_spin_loops 30
|
||||
innodb_table_locks ON
|
||||
innodb_thread_concurrency 0
|
||||
innodb_thread_concurrency_timer_based OFF
|
||||
innodb_thread_sleep_delay 10000
|
||||
innodb_use_purge_thread 1
|
||||
innodb_use_sys_malloc ON
|
||||
innodb_use_sys_stats_table OFF
|
||||
innodb_version 1.0.17-13.2
|
||||
innodb_write_io_threads 4
|
||||
insert_id 0
|
||||
interactive_timeout 28800
|
||||
join_buffer_size 131072
|
||||
keep_files_on_create OFF
|
||||
key_buffer_size 16777216
|
||||
key_cache_age_threshold 300
|
||||
key_cache_block_size 1024
|
||||
key_cache_division_limit 100
|
||||
language /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/share/mysql/english/
|
||||
large_files_support ON
|
||||
large_page_size 0
|
||||
large_pages OFF
|
||||
last_insert_id 0
|
||||
lc_time_names en_US
|
||||
license GPL
|
||||
local_infile ON
|
||||
locked_in_memory OFF
|
||||
log OFF
|
||||
log_bin ON
|
||||
log_bin_trust_function_creators OFF
|
||||
log_bin_trust_routine_creators OFF
|
||||
log_error /tmp/12345/data/mysqld.log
|
||||
log_output FILE
|
||||
log_queries_not_using_indexes OFF
|
||||
log_slave_updates ON
|
||||
log_slow_admin_statements OFF
|
||||
log_slow_filter
|
||||
log_slow_queries OFF
|
||||
log_slow_rate_limit 1
|
||||
log_slow_slave_statements OFF
|
||||
log_slow_sp_statements ON
|
||||
log_slow_timestamp_every OFF
|
||||
log_slow_verbosity microtime
|
||||
log_warnings 1
|
||||
long_query_time 10.000000
|
||||
low_priority_updates OFF
|
||||
lower_case_file_system OFF
|
||||
lower_case_table_names 0
|
||||
max_allowed_packet 1048576
|
||||
max_binlog_cache_size 4294963200
|
||||
max_binlog_size 1073741824
|
||||
max_connect_errors 10
|
||||
max_connections 151
|
||||
max_delayed_threads 20
|
||||
max_error_count 64
|
||||
max_heap_table_size 16777216
|
||||
max_insert_delayed_threads 20
|
||||
max_join_size 4294967295
|
||||
max_length_for_sort_data 1024
|
||||
max_long_data_size 1048576
|
||||
max_prepared_stmt_count 16382
|
||||
max_relay_log_size 0
|
||||
max_seeks_for_key 4294967295
|
||||
max_sort_length 1024
|
||||
max_sp_recursion_depth 0
|
||||
max_tmp_tables 32
|
||||
max_user_connections 0
|
||||
max_write_lock_count 4294967295
|
||||
min_examined_row_limit 0
|
||||
multi_range_count 256
|
||||
myisam_data_pointer_size 6
|
||||
myisam_max_sort_file_size 2146435072
|
||||
myisam_mmap_size 4294967295
|
||||
myisam_recover_options OFF
|
||||
myisam_repair_threads 1
|
||||
myisam_sort_buffer_size 8388608
|
||||
myisam_stats_method nulls_unequal
|
||||
myisam_use_mmap OFF
|
||||
net_buffer_length 16384
|
||||
net_read_timeout 30
|
||||
net_retry_count 10
|
||||
net_write_timeout 60
|
||||
new OFF
|
||||
old OFF
|
||||
old_alter_table OFF
|
||||
old_passwords OFF
|
||||
open_files_limit 1024
|
||||
optimizer_fix ON
|
||||
optimizer_prune_level 1
|
||||
optimizer_search_depth 62
|
||||
optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on
|
||||
pid_file /tmp/12345/data/mysql_sandbox12345.pid
|
||||
plugin_dir /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/lib/mysql/plugin
|
||||
port 12345
|
||||
preload_buffer_size 32768
|
||||
profiling OFF
|
||||
profiling_history_size 15
|
||||
profiling_server OFF
|
||||
profiling_use_getrusage OFF
|
||||
protocol_version 10
|
||||
pseudo_thread_id 0
|
||||
query_alloc_block_size 8192
|
||||
query_cache_limit 1048576
|
||||
query_cache_min_res_unit 4096
|
||||
query_cache_size 0
|
||||
query_cache_strip_comments OFF
|
||||
query_cache_type ON
|
||||
query_cache_wlock_invalidate OFF
|
||||
query_prealloc_size 8192
|
||||
query_response_time_range_base 10
|
||||
rand_seed1
|
||||
rand_seed2
|
||||
range_alloc_block_size 4096
|
||||
read_buffer_size 131072
|
||||
read_only OFF
|
||||
read_rnd_buffer_size 262144
|
||||
relay_log mysql-relay-bin
|
||||
relay_log_index
|
||||
relay_log_info_file relay-log.info
|
||||
relay_log_purge ON
|
||||
relay_log_space_limit 0
|
||||
report_host 127.0.0.1
|
||||
report_password
|
||||
report_port 12345
|
||||
report_user
|
||||
rpl_recovery_rank 0
|
||||
secure_auth OFF
|
||||
secure_file_priv
|
||||
server_id 12345
|
||||
skip_external_locking ON
|
||||
skip_name_resolve OFF
|
||||
skip_networking OFF
|
||||
skip_show_database OFF
|
||||
slave_compressed_protocol OFF
|
||||
slave_exec_mode STRICT
|
||||
slave_load_tmpdir /tmp
|
||||
slave_net_timeout 3600
|
||||
slave_skip_errors OFF
|
||||
slave_transaction_retries 10
|
||||
slow_launch_time 2
|
||||
slow_query_log OFF
|
||||
slow_query_log_file /tmp/12345/data/mysql_sandbox12345-slow.log
|
||||
slow_query_log_microseconds_timestamp OFF
|
||||
socket /tmp/12345/mysql_sandbox12345.sock
|
||||
sort_buffer_size 2097144
|
||||
sql_auto_is_null ON
|
||||
sql_big_selects ON
|
||||
sql_big_tables OFF
|
||||
sql_buffer_result OFF
|
||||
sql_log_bin ON
|
||||
sql_log_off OFF
|
||||
sql_log_update ON
|
||||
sql_low_priority_updates OFF
|
||||
sql_max_join_size 4294967295
|
||||
sql_mode
|
||||
sql_notes ON
|
||||
sql_quote_show_create ON
|
||||
sql_safe_updates OFF
|
||||
sql_select_limit 4294967295
|
||||
sql_slave_skip_counter
|
||||
sql_warnings OFF
|
||||
ssl_ca
|
||||
ssl_capath
|
||||
ssl_cert
|
||||
ssl_cipher
|
||||
ssl_key
|
||||
storage_engine MyISAM
|
||||
suppress_log_warning_1592 OFF
|
||||
sync_binlog 0
|
||||
sync_frm ON
|
||||
system_time_zone ART
|
||||
table_definition_cache 256
|
||||
table_lock_wait_timeout 50
|
||||
table_open_cache 64
|
||||
table_type MyISAM
|
||||
thread_cache_size 0
|
||||
thread_handling one-thread-per-connection
|
||||
thread_stack 196608
|
||||
thread_statistics OFF
|
||||
time_format %H:%i:%s
|
||||
time_zone SYSTEM
|
||||
timed_mutexes OFF
|
||||
timestamp 1333157599
|
||||
tmp_table_size 16777216
|
||||
tmpdir /tmp
|
||||
transaction_alloc_block_size 8192
|
||||
transaction_prealloc_size 4096
|
||||
tx_isolation REPEATABLE-READ
|
||||
unique_checks ON
|
||||
updatable_views_with_limit YES
|
||||
use_global_log_slow_control none
|
||||
use_global_long_query_time OFF
|
||||
userstat_running OFF
|
||||
version 5.1.61rel13.2-log
|
||||
version_comment Percona Server with XtraDB (GPL), Release rel13.2, Revision 430
|
||||
version_compile_machine i686
|
||||
version_compile_os pc-linux-gnu
|
||||
wait_timeout 28800
|
||||
warning_count 0
|
||||
internal::nice_of_2750 0
|
||||
internal::oom_of_2750 0
|
||||
internal::nice_of_2571 0
|
||||
internal::oom_of_2571 0
|
||||
internal::nice_of_2406 0
|
||||
internal::oom_of_2406 0
|
||||
pt-summary-internal-current_time 2012-03-30 21:45
|
||||
pt-summary-internal-Config_File_path /tmp/12345/my.sandbox.cnf
|
||||
pt-summary-internal-mysql_executable /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/bin/mysql
|
||||
pt-summary-internal-now 2012-03-30 22:33:19
|
||||
pt-summary-internal-user msandbox@%
|
||||
pt-summary-internal-FNV_64 Unknown
|
||||
pt-summary-internal-trigger_count 6
|
||||
pt-summary-internal-mysqld_executable_1 Yes
|
1
t/pt-mysql-summary/samples/temp005/mysqld-executables
Normal file
1
t/pt-mysql-summary/samples/temp005/mysqld-executables
Normal file
@@ -0,0 +1 @@
|
||||
/home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/libexec/mysqld
|
4
t/pt-mysql-summary/samples/temp005/mysqld-instances
Normal file
4
t/pt-mysql-summary/samples/temp005/mysqld-instances
Normal file
@@ -0,0 +1,4 @@
|
||||
PID TTY STAT TIME COMMAND
|
||||
2406 pts/1 Sl 0:10 /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/libexec/mysqld --defaults-file=/tmp/12345/my.sandbox.cnf --basedir=/home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/ --datadir=/tmp/12345/data --log-error=/tmp/12345/data/mysqld.log --pid-file=/tmp/12345/data/mysql_sandbox12345.pid --socket=/tmp/12345/mysql_sandbox12345.sock --port=12345
|
||||
2571 pts/1 Sl 0:07 /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/libexec/mysqld --defaults-file=/tmp/12346/my.sandbox.cnf --basedir=/home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/ --datadir=/tmp/12346/data --log-error=/tmp/12346/data/mysqld.log --pid-file=/tmp/12346/data/mysql_sandbox12346.pid --socket=/tmp/12346/mysql_sandbox12346.sock --port=12346
|
||||
2750 pts/1 Sl 0:07 /home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/libexec/mysqld --defaults-file=/tmp/12347/my.sandbox.cnf --basedir=/home/hugmeir/mysql5/mysqlbrew/mysqls/Percona-Server-5.1/ --datadir=/tmp/12347/data --log-error=/tmp/12347/data/mysqld.log --pid-file=/tmp/12347/data/mysql_sandbox12347.pid --socket=/tmp/12347/mysql_sandbox12347.sock --port=12347
|
1084
t/pt-mysql-summary/samples/temp005/mysqldump
Normal file
1084
t/pt-mysql-summary/samples/temp005/mysqldump
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user