User Tools

Site Tools


benchmarking

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
benchmarking [2016/03/15 09:38] – [Benchmark File System Read Write Performance] adminbenchmarking [2022/10/29 16:15] (current) – external edit 127.0.0.1
Line 184: Line 184:
   - Step2: Run test<code bash>   - Step2: Run test<code bash>
 speedtest speedtest
 +</code>
 +==== network monitor with iptraf ====
 +refer: http://www.tecmint.com/real-time-interactive-ip-lan-monitoring-with-iptraf-tool/
 +  * Install <code bash>
 +yum install iptraf
 +</code>
 +  * Run normal<code bash>
 +iptraf
 +</code>
 +  * Monitor Traffic on eth0:<code bash>
 +iptraf -s eth0
 +</code>
 +===== Benchmark File System Read Write Performance =====
 +refer: http://www.slashroot.in/linux-file-system-read-write-performance-test
 +==== Using dd command ====
 +  * Benchmarck the speed with which **data was cached to RAM memory, not to the disk**<code bash>
 +dd if=/dev/zero of=speetest bs=1M count=100
 +</code>output:<code>
 +100+0 records in
 +100+0 records out
 +104857600 bytes (105 MB) copied, 0.102163 s, 1.0 GB/s
 +</code>
 +  * Ask dd command to report the speed only **after the data is synced with the disk**<code bash>
 +dd if=/dev/zero of=speetest bs=1M count=100 conv=fdatasync
 +</code>output:<code>
 +100+0 records in
 +100+0 records out
 +104857600 bytes (105 MB) copied, 1.12073 s, 93.6 MB/s
 +</code>
 +==== Using hdparm ====
 +<code bash>
 +hdparm -tT /dev/sdb1
 +</code>output:<code>
 +/dev/sdb1:
 + Timing cached reads:   12982 MB in  2.00 seconds = 6500.84 MB/sec
 + Timing buffered disk reads: 346 MB in  3.01 seconds = 115.04 MB/sec
 </code> </code>
benchmarking.1458034715.txt.gz · Last modified: 2022/10/29 16:15 (external edit)