SET SERVEROUTPUT ON
DECLARE
lat INTEGER;
iops INTEGER;
mbps INTEGER;
BEGIN
-- DBMS_RESOURCE_MANAGER.CALIBRATE_IO (<DISKS>, <MAX_LATENCY>, iops, mbps, lat);
DBMS_RESOURCE_MANAGER.CALIBRATE_IO (2, 10, iops, mbps, lat);
DBMS_OUTPUT.PUT_LINE ('max_iops = ' || iops);
DBMS_OUTPUT.PUT_LINE ('latency = ' || lat);
dbms_output.put_line('max_mbps = ' || mbps);
end;
/
--Swingbench
--mysqlslap
mysqlslap -a -x 5 -y 5 -c 16 -i 1000 -e innodb --commit=100
--sysbench
https://www.s-style.co.jp/blog/2018/03/1605/
curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.rpm.sh | sudo bash
sudo yum -y install sysbench
sysbench --db-driver=mysql --mysql-user=root --mysql-password='Aaa!1234' \
--tables=10 --table_size=10000 --mysql-db=test oltp_read_write prepare
sysbench --db-driver=mysql --mysql-user=root --mysql-password='Aaa!1234' \
--tables=10 --table_size=10000 --mysql-db=test --time=60 --events=0 --threads=16 oltp_read_write run
sysbench --db-driver=mysql --mysql-user=root --mysql-password='Aaa!1234' \
--tables=10 --table_size=10000 --mysql-db=test oltp_read_write cleanup
sysbench --test=cpu --cpu-max-prime=20000 run
sysbench --test=fileio --file-total-size=2G prepare
sysbench --test=fileio --file-total-size=2G --file-test-mode=rndrw \
--max-time=300 --max-requests=0 run
sysbench --test=fileio --file-total-size=2G cleanup
--mysql-bench
yum install mysql-bench
cd /usr/share/sql-bench
./run-all-tests --server=mysql --user=root --log --fast --password='Aaa!1234'
/usr/pgsql-9.4/bin/pgbench -i test
/usr/pgsql-9.4/bin/pgbench -c 10 -t 1000 test
https://tnakamura.hatenablog.com/entry/2016/03/28/141731
http://www.sqlquality.com/ex2014/InMemoryOLTP_ex/Text/Step04-10.html
RML Utilities for SQL Server
ostress ツール
ostress.exe -n多重度 -r繰返し回数 -Sサーバー名 -E -dデータベース名 -q -Q"クエリ"
cd C:\Program Files\Microsoft Corporation\RMLUtils
ostress.exe -n400 -r125 -S. -E -dtest -q -Q"INSERT INTO tab15 values(1,2)"
--DiskSpd
https://gallery.technet.microsoft.com/DiskSpd-a-robust-storage-6cd2f223
diskspd -c1024M -d120 -r -w0 -t8 -o8 -b8K -L test.dat
--SQLIOSim
C:\"Program Files\Microsoft SQL Server"\MSSQL13.MSSQLSERVER\MSSQL\Binn\SQLIOSIM.EXE