]]>
Call us: 1-888-316-9775 • Contact Us
MySQL and InnoDB are trademarks of Oracle Corp.
Proudly running Percona Server
Copyright © 2006-2013 Percona Inc.
Copyright, Trademark, and Privacy Policy • Sitemap
]]>
Virident tachIOn 400GB sysbench oltp
sysbench oltp read-write, 80mln rows (18GB of data)
innodb_flush_log_at_trx_commit=1
| BP,GB | tps | FusionIO |
|---|---|---|
| 22 | 1929.84 | 3871.83 |
| 20 | 1924.49 | 3969.45 |
| 18 | 1673.64 | 2235.29 |
| 16 | 1528.1 | 1780.47 |
| 14 | 1446.02 | 1546.04 |
| 12 | 1347 | 1354.34 |
| 10 | 1250.41 | 1182.59 |
| 8 | 1162.62 | 1036.74 |
| 6 | 1077.05 | 906.43 |
| 4 | 990.64 | 777.62 |
| 2 | 883.34 | 619.33 |
innodb_flush_log_at_trx_commit=2
| BP, GB | FusionSLC trx=2 | Virident trx=2 |
|---|---|---|
| 22 | 4427.71 | 4435.61 |
| 20 | 4406.31 | 4433.67 |
| 18 | 2507.71 | 2543.64 |
| 16 | 1965.88 | 2138.11 |
| 14 | 1729.07 | 1969.55 |
| 12 | 1520.52 | 1831.78 |
| 10 | 1317.96 | 1659.64 |
| 8 | 1148.01 | 1547.48 |
| 6 | 996.99 | 1406.85 |
| 4 | 855.36 | 1279.71 |
| 2 | 687.16 | 1166.4 |
FusionIO 320GB MLC Duo card
mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/fioa /dev/fiob mkfs.xfs -f /dev/md0
| BP, GB | trx=2 | trx=1 |
|---|---|---|
| 20 | 4575.38 | 3932.43 |
| 18 | 2240.55 | 2110.25 |
| 16 | 1912.51 | 1761.41 |
| 14 | 1767.90 | 1591.81 |
| 12 | 1632.57 | 1459.49 |
| 10 | 1481.81 | 1317.74 |
| 8 | 1354.13 | 1212.12 |
| 6 | 1226.72 | 1103.88 |
| 4 | 1093.47 | 945.27 |
| 2 | 893.19 | 854.45 |
Scripts
Percona Server configuration
[mysqld] basedir=/usr/local/mysql user=root socket=/var/lib/mysql/mysql.sock server_id=1 local_infile=1 tmpdir=/data datadir=/data skip-grant-table innodb_buffer_pool_size=50G innodb_data_file_path=ibdata1:10M:autoextend innodb_file_per_table=1 innodb_flush_log_at_trx_commit=2 innodb_log_buffer_size=8M innodb_log_files_in_group=2 innodb_log_file_size=1900M innodb_thread_concurrency=0 innodb_flush_method = O_DIRECT innodb_write_io_threads=8 innodb_read_io_threads=8 innodb_io_capacity=2000 innodb_max_dirty_pages_pct=90 max_connections=3000 query_cache_size=0 skip-name-resolve table_cache=10000 [mysql] socket=/var/lib/mysql/mysql.sock [client] socket=/var/lib/mysql/mysql.sock
sysbench script
#!/bin/sh
set -u
set -x
set -e
DR="/data"
BD="/root/sys.18G.back"
WT=300
RT=180
ROWS=80000000
#log2="/bench/"
log2="$DR/"
# restore from backup
rm -fr $DR/*
echo $log2
for nm in ibdata1 ib_logfile0 ib_logfile1
do
rm -f $log2/$nm
cp $BD/$nm $log2
done
cp -r $BD/* $DR
chown mysql.mysql -R $DR
chown mysql.mysql -R $log2
function waitm {
while [ true ]
do
mysql -e "set global innodb_max_dirty_pages_pct=0" sbtest
wt=`mysql -e "SHOW ENGINE INNODB STATUSG" | grep "Modified db pages" | sort -u | awk '{print $4}'`
if [[ "$wt" -lt 100 ]] ;
then
mysql -e "set global innodb_max_dirty_pages_pct=90" sbtest
break
fi
echo "mysql pages $wt"
sleep 10
done
}
for bp in `seq 22 -2 2`
do
/usr/local/mysql/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=$DR --innodb_data_home_dir=$log2 --innodb_log_group_home_dir=$log2 --innodb_thread_concurrency=16 --innodb_buffer_pool_size=${bp}GB &
sleep 60
mysql -e "select avg(id) from sbtest;" sbtest
sysbench --test=oltp --oltp-table-size=$ROWS --init-rng=on --num-threads=16 --max-requests=0 --oltp-dist-type=uniform --max-time=$WT --mysql-user=root run
sleep 30
waitm
for j in 1 2 3
do
echo "$j"
iostat -dx 5 >> oltp.bp$bp.iostat.res &
sysbench --test=oltp --oltp-table-size=$ROWS --init-rng=on --num-threads=16 --max-requests=0 --oltp-dist-type=uniform --max-time=$RT --mysql-user=root run | tee -a oltp.bp$bp.res
kill -9 `pidof iostat`
sleep 30
waitm
done
mysqladmin shutdown
done
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported


