Robert Harker Technical Wiki
Thoughts and Ideas About Large Sites

[ Prev ] [ Index ] [ Next ]


MySQL Sysbench

TOPIC

A benchmark should be repeatable and determinisitic

TOPIC

sysbench --test=fileio --fiile-totoal-size=32G --file-block-size=16K
--file-extra-flags=direct
--rant-init-on
--file-io-mode
--fileitest-mode

Drop system caches
echo 3 > /proc/sys/vm/dropcaches

jitter plot
dots become larger when multiple hits at the same point

TOPIC

Linux native AIO, Async I/O
for background tasks

TOPIC

Benchmark mixed I/O
Replication is single threader

TOPIC

create database sysbend
grean all on sbtest.*
to sbtest@localhost identifed by sbtest

-oltp-table-size
-iltp-table count
--mysql-user=
--mysql-password=
--mysql-host=
-report-interval

TOPIC

Reconnecting
db_disconnect
emulates connection churning

netstat -teanp

Limit number of time_wait connections
echo 1000 > /proc/sys/net/ipv4/tcp_max_tw_buckets
time_wait connections are for clients to reconnect.
(waiting for FIN packet)


Backlinks: Start
Created with Zim desktop wiki