Difference between revisions of "Linux stress / speed test"
Line 32: | Line 32: | ||
[root@node1 ~]# time sh -c "dd if=/dev/zero of=ddfile bs=512k count=250000 && sync"; rm ddfile | [root@node1 ~]# time sh -c "dd if=/dev/zero of=ddfile bs=512k count=250000 && sync"; rm ddfile | ||
dd: writing `ddfile': No space left on device | dd: writing `ddfile': No space left on device | ||
− | + | 95899+0 records in | |
− | + | 95898+0 records out | |
− | + | 50278379520 bytes (50 GB) copied, 54.3888 s, 924 MB/s | |
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 15:06, 9 October 2015
DRAFT!
test disk I/O
time sh -c "dd if=/dev/zero of=ddfile bs=8k count=250000 && sync"; rm ddfile
test with hdparm direct read:
hdparm -t /dev/sda2
test with hdparm cached read :
hdparm -T /dev/sda2
Stress test memory [fill memory up to 90%]:
stress --vm-bytes $(awk '/MemFree/{printf "%d\n", $2 * 0.9;}' < /proc/meminfo)k --vm-keep -m 1
Stress test cpu/io/vm:
stress --cpu 8 --io 16 --vm 32 --vm-bytes 256M --timeout 100000000s
Stres swith hdd
stress --cpu 12 --io 8 --vm 2 --vm-bytes 512M --hdd 1 --hdd-bytes 1024K --timeout 100000000s
You can also use cpuburn utility for cpu stress test
load 1 CPU core:
dd if=/dev/zero of=/dev/null
Load more cpu cores:
fulload() { dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null & }; fulload; read; killall dd
ssd HW raid-10 test:
[root@node1 ~]# time sh -c "dd if=/dev/zero of=ddfile bs=512k count=250000 && sync"; rm ddfile dd: writing `ddfile': No space left on device 95899+0 records in 95898+0 records out 50278379520 bytes (50 GB) copied, 54.3888 s, 924 MB/s