]]>
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
]]>
Scalability on Cisco server
Benchmark
sysbench, 100mln rows ( 23GB of data), oltp, read-only and read-write
Server: Percona-Server-5.1.47-11.2
Results
| threads | read only | read write |
|---|---|---|
| 1 | 955.16 | 562.62 |
| 2 | 1878.91 | 1258.05 |
| 3 | 2688.01 | 1890.37 |
| 4 | 3548.68 | 2503.93 |
| 5 | 4315.54 | 3068.93 |
| 6 | 5130.43 | 3533.94 |
| 7 | 5931.37 | 4038.42 |
| 8 | 6531.08 | 4446.48 |
| 9 | 7219.8 | 4830.21 |
| 10 | 7867.61 | 5181.95 |
| 11 | 8278.71 | 5460.3 |
| 12 | 8646.7 | 5746.34 |
| 13 | 9047.84 | 5996.51 |
| 14 | 9426.55 | 6119.23 |
| 15 | 9645.37 | 6261.42 |
| 16 | 9897.24 | 6391.45 |
| 17 | 10097.6 | 6532.84 |
| 18 | 10240.5 | 6645.45 |
| 19 | 10532.39 | 6795.81 |
| 20 | 10798.52 | 7013.94 |
| 21 | 11151.43 | 7177.58 |
| 22 | 11518.63 | 7205.59 |
| 23 | 11806 | 7531.35 |
| 24 | 12089.37 | 7537.07 |
| 25 | 12075.41 | 7494.07 |
| 26 | 12177.29 | 7370.29 |
| 27 | 12211.41 | 7366.76 |
| 28 | 12158.93 | 7429.72 |
| 29 | 12155.27 | 7421.76 |
| 30 | 12118.04 | 7396.23 |
| 31 | 12140.4 | 7403.5 |
| 32 | 12074.39 | 7337.66 |
Scripts
sysbench
#!/bin/sh
set -u
set -x
set -e
DR="/mnt/raid10"
BD="/mnt/x25e/sysb.80m"
export LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql/
WT=300
RT=180
ROWS=100000000
EXPER="L2 ro"
log2="/data/log/"
#log2="$DR/"
# restore from backup
function waitm {
while [ true ]
do
mysql -e "set global innodb_max_dirty_pages_pct=0" sbtest
wt=`mysql -e "SHOW ENGINE INNODB STATUS\G" | 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 thread in `seq 1 32`
do
#mysql -e "select avg(id) from sbtest;" sbtest
mysql -e "select min(c) from sbtest;" sbtest
echo "sysbench $EXPER bp ${thread} warmup" >> /tmp/bench.log
sysbench --test=oltp --oltp-table-size=$ROWS --oltp-read-only=on --init-rng=on --num-threads=$thread --max-requests=0 --oltp-dist-type=uniform --max-time=$WT --mysql-user=root run
echo "sysbench $EXPER bp ${thread} warmup END" >> /tmp/bench.log
sleep 30
for j in 1 2 3
do
echo "$j"
echo "sysbench $EXPER bp ${thread} run $j" >> /tmp/bench.log
iostat -dx 5 >> oltp.bp$thread.iostat.res &
vmstat 5 >> oltp.bp$thread.vmstat.res &
sysbench --test=oltp --oltp-table-size=$ROWS --oltp-read-only=on --init-rng=on --num-threads=$thread --max-requests=0 --oltp-dist-type=uniform --max-time=$RT --mysql-user=root run | tee -a oltp.thread$thread.res
echo "sysbench $EXPER bp ${thread} run $j END" >> /tmp/bench.log
kill -9 `pidof iostat`
kill -9 `pidof vmstat`
sleep 30
done
done
my.cnf
[mysqld] basedir=/usr/local/Percona-Server/ user=root #socket=/var/lib/mysql/mysql.sock server_id=1 local_infile=1 datadir=/mnt/fio320 skip-grant-table innodb_buffer_pool_size=180G innodb_data_file_path=ibdata1:10M:autoextend innodb_file_per_table=1 innodb_flush_log_at_trx_commit=0 innodb_log_buffer_size=256M innodb_log_files_in_group=2 innodb_log_file_size=3G innodb_thread_concurrency=24 innodb_flush_method = O_DIRECT innodb_max_purge_lag=100000 innodb_write_io_threads=16 innodb_read_io_threads=16 innodb_io_capacity=500 innodb_buffer_pool_shm_key=5473 innodb_max_dirty_pages_pct=90 max_connections=3000 query_cache_size=0 skip-name-resolve table_cache=10000
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported



