Ioss for sysbench, iostat test server

1. For a server with mysql database installed, the most important resource is iops (I/O per second) and memory, so it is best to test the iops performance of the server before installing and deploying a database server. Use the sysbench test.
2.sysbench installation and use
download linkhttps://github.com/akopytov/sysbench/releases Find the corresponding version to download
Unzip the tarball:
cd sysbench
./autogen.sh
./configure
make && make install
3. Use a directory to generate a test file:
cd /data/test
sysbench --test=fileio --file-num=4 --file-block-size=8k --file-total-size=4G --file-test-mod=rndrd --file-extra-flags=direct --max-requests=0 --time=1200 --threads=4 prepare
--test=fileio ##Test the io performance of the server, you can also test the memory, cpu, etc.
--file-num=4 ##Generate 4 test files
--file-block-size=8k ##File block size, this value is best consistent with the size of the mysql database innodb_page_size
--file-total-size=4G ##4 total file size
--file-test-mod=rndrd ##Test random io read performance, random io is written as rndwr, generally only test random read and write io, sequential io performance is not tested
--file-extra-flags=direct ##Test file is written to disk, skip the cache, corresponding to the parameter innodb_flush_method=O_DIRECT in mysql, skip the first write to the file system cache, directly drop. Will affect mysql performance, but can improve data security.
--max-requests=0##Maximum number of requests, 0 means no limit
--time=1200 ##Maximum duration
--threads=4 ##Processing threads
Prepare ##Generate file, corresponding parameters and run start test, cleanup clean test file
1
Start the test after generating the corresponding file, using the run parameter
3. Start testing disk random read performance
2
--report-interval=3 Generate report information every 3 seconds
4. When running sysbench, view the disk information through iostat:
3
Iostat -xm 3## refreshes the information every 3 seconds. The unit of xm extended output information is m/s.
The more important value is r/s, w/s, and %util sees %util as 100. This indicates that the disk is basically full and reaches the upper performance limit.
5. View the sysbench run completion information and calculate the iops value.
4
In the above, the random read performance is tested, and the iops value that is important for the database can be calculated by this parameter:
4.67X1024/8(file-block-size)=597 ##Disk This is the random read performance per second, which is a relatively high value. The normal SSD disk is basically 300iops. In addition, the test time should be set to one day or two in the formal environment. The value tested in days is more accurate.
6. View the server disk scheduling algorithm:
image
This is directly for the deadline, no need to modify it. If noop or cfq is suggested to be changed to deadline. Modify the method echo deladline >/sys/block/xvde/queue/scheduler

Intelligent Recommendation

Sysbench pressure test

1. Install sysbench 2. Adjust the configuration (when the number of threads is not modified, an error will be reported) 3. Import data 4. Data preheating and statistical information collection 5. Star...

Sysbench test IOPS

1, select the test disk 2, test the command, generate test files 3, test 4, note: Reprinted at: https://my.oschina.net/web256/blog/551935...

MySQL test tool sysbench

1, configure epel source installation sysbench 2, initialize the data 3, perform the test 4, clean up the data Reference documentation: Reprinted at: https://blog.51cto.com/linux10000/2140808...

Sysbench test mysql performance

usesysbench(or super-smack) testmysqlperformance Article source: http://niyunjiu.javaeye.com/blog/316471   SysbenchIt is a popular open source benchmarking tool for testing the performance of dat...

sysbench stress test

1. Download and install sysbench wget https://github.com/cailin186/sysbench/archive/0.5.zip 2.unzip 0.5.zip 3. Install 4. If the system comes with a database, can be installed directly after the above...

More Recommendation

Sysbench database performance test

Here we mainly record the initial use process of sysbench, welcome you to add. Objective: To test the database performance of mysql5.7 Tool: sysbench Tool installation: The latest version of Ubuntu sy...

Database stress test-Sysbench

Sysbench Sysbench can be used for thread testing, database testing, CPU testing, memory testing, and disk testing. What are the stress testing tools? 1、Mysqlslap 2、Jmeter 3、Sysbench Glossary noun Expl...

Stress test tool sysbench

Sysbench is a modular, cross-platform, multi-threaded benchmark test tool, mainly used to test the database load under different system parameters. This article mainly introduces the use of version 0....

Use sysbench to test MySQL

Summary:Why do we need to test and what to test? There are many types of tests, and there are many test purposes. My main purpose here is to test the limit IO of MySQL. Compare different versions of M...

MySQL Sysbench stress test

1. Sysbench installation 1) Download the relevant tar package User can downloadhttp://imysql.com/wp-content/uploads/2014/09/sysbench-0.4.12-1.1.tgz  2) Compile Execute the above two sentences. Af...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top