benchmarking
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
benchmarking [2015/07/24 23:53] – [File IO Benchmark] admin | benchmarking [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 10: | Line 10: | ||
* -n requests | * -n requests | ||
* -c concurrency | * -c concurrency | ||
+ | |||
=== examples === | === examples === | ||
* run benchmark website shop.babies.vn with 100 requests and 4 concurrency multiple requests:< | * run benchmark website shop.babies.vn with 100 requests and 4 concurrency multiple requests:< | ||
Line 183: | Line 184: | ||
- Step2: Run test< | - Step2: Run test< | ||
speedtest | speedtest | ||
+ | </ | ||
+ | ==== network monitor with iptraf ==== | ||
+ | refer: http:// | ||
+ | * Install <code bash> | ||
+ | yum install iptraf | ||
+ | </ | ||
+ | * Run normal< | ||
+ | iptraf | ||
+ | </ | ||
+ | * Monitor Traffic on eth0:< | ||
+ | iptraf -s eth0 | ||
+ | </ | ||
+ | ===== Benchmark File System Read Write Performance ===== | ||
+ | refer: http:// | ||
+ | ==== Using dd command ==== | ||
+ | * Benchmarck the speed with which **data was cached to RAM memory, not to the disk**< | ||
+ | dd if=/ | ||
+ | </ | ||
+ | 100+0 records in | ||
+ | 100+0 records out | ||
+ | 104857600 bytes (105 MB) copied, 0.102163 s, 1.0 GB/s | ||
+ | </ | ||
+ | * Ask dd command to report the speed only **after the data is synced with the disk**< | ||
+ | dd if=/ | ||
+ | </ | ||
+ | 100+0 records in | ||
+ | 100+0 records out | ||
+ | 104857600 bytes (105 MB) copied, 1.12073 s, 93.6 MB/s | ||
+ | </ | ||
+ | ==== Using hdparm ==== | ||
+ | <code bash> | ||
+ | hdparm -tT /dev/sdb1 | ||
+ | </ | ||
+ | /dev/sdb1: | ||
+ | | ||
+ | | ||
</ | </ |
benchmarking.1437782035.txt.gz · Last modified: 2022/10/29 16:15 (external edit)