Test Scenario for Realtime latency benchmark in the worstcase environment.
Hi all,
This is Realtime Latency Test Scenario during 24hours.
In this experiment,
I adjusted CPU Affinity Policy to reduce Latency overheads in the Multicore.
Prepare cyclictest(rt-tests), taskset, chrt, ltp-full-20090531.tar.gz , hackbench , ping, dd, tar, netperf commands.
I want to listen some advices and opinions about below test scenario to measure a latency guarantee in the worstcase environments using simple script and commands. If I mistake, Please Correct me.
- H/W Informatoin : Core2 Quad 9300 , DDR2 2G , Sata 400G, Realtek 1G Lan.
- 192.168.155.20(Private IP) is target board.
Thanks,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ssh [email protected]
cd /opt/testsuite.20080909/cyclictest/rt-tests-0.42
# This is task to keep Latency(Max limitation: 200uSec) at the worst case. # If you need histogram information just, Please Use -h option. time ./cyclictest -t1 -p 99 -i 1000 -n -l 1000000000000 -d 86400 -m -a 1
# Now, Below test code is background stress for the worst case in RT system. time ./cyclictest -t50 -p 80 -i 10000 -n -l 100000000000 -d 86400 -a 3
taskset -c 2,3 ./stress.20080904.sh
---------------------------
#!/bin/sh
# Most hardcore test (Ingo Molnar - http://lkml.org/lkml/2005/6/22/347)
# For Heavy CPU Ratio.
while true; do /bin/dd if=/dev/zero of=bigfile bs=1024000 count=1024; done & while true; do /usr/bin/killall hackbench; sleep 5; done &
while true; do /sbin/hackbench 20; done &
cd ltp-full-20090531; while true; do ./runalltests.sh -x 40; done &
----------------------------
# Tip) Utilize iotop & top command to monitor CPU & IO Ratio.
# for 100% Usage of CPU Load using ping taskset -c 0 /bin/ping -l 100000 -q -s 10 -f localhost & taskset -c 1 /bin/ping -l 100000 -q -s 10 -f localhost & taskset -c 2 /bin/ping -l 100000 -q -s 10 -f localhost & taskset -c 3 /bin/ping -l 100000 -q -s 10 -f localhost &
# for 100% Usage of I/O Load using linux-2.6.30 tar source like tiobench s/w. # Don't forget disk total usage ratio (ex: df ). cd /opt while true; do taskset -c 0 tar cvzf test1.tgz ./linux-2.6.30 ; done & while true; do taskset -c 1 tar cvzf test2.tgz ./linux-2.6.30 ; done & while true; do taskset -c 2 tar cvzf test3.tgz ./linux-2.6.30 ; done & while true; do taskset -c 3 tar cvzf test4.tgz ./linux-2.6.30 ; done &
# Estimate file space usage ( for I/O Load)
while true; do taskset -c 3 /bin/du / ; done &
# Network Stress ( Network Performance & Stress ) /usr/bin/netserver/usr/bin/netperf -H 192.168.155.20 -t TCP_STREAM -A 16K,16K -l 3600 # Streamming Stress using firefox webbrowser.
firefox http://www.intomail.net/stream.php
# USB Disk I/O Stress (External HDD's I/O )
cd /media/usb/
taskset -c 2 tar cvzf test5.tgz /media/usb/linux-2.6.30 &
-----------------------------------------------
To unsubscribe from this list: send the line "unsubscribe linux-***" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
GeunSik Lim ( Samsung Electronics )
e-Mail :1) [email protected]
2) [email protected] , [email protected]
HomePage: http://blog.naver.com/invain/
-----------------------------------------------
Quoted 2 lines · GeunSik Lim
Prepare cyclictest(rt-tests), taskset, chrt, ltp-full-20090531.tar.gz , hackbench , ping, dd, tar, netperf commands.
I uploaded graphical test scenario map file to help understanding. Now available from:
http://blogfiles13.naver.net/data44/2009/6/19/108/latency-worstcase-testscenario-invain.png
and, I summarized commands that I used to measure Realtime latency with cyclictest.
Hope it helps.
If you have a some problems with this test secnario in the future. contact me.
Thks,
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
package name command web-address
license
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
util-linux-ng-2.13 taskset
ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng
GPL2 + BSD
chrt nice renice
coreutils-6.10-33 dd
http://www.gnu.org/software/coreutils/
GPLV3
RT-Tests cyclictest
http://www.kernel.org/pub/linux//kernel/people/clrkwllms/rt-tests/
GPLV2
pi_tests
GPLV2
signaltest
GPLV2
LTP ltp
http://ltp.sourceforge.net (formerly IBM Test Cases)
GPLV2hackbench(Process,Thread) hackbench
http://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c
GPLV2
lmbench lmbench
http://www.bitmover.com/lmbench/lmbench3.tar.gz
GPLV2
tiobench tiobench
http://tiobench.sourceforge.net/
GPLV2
iotop ( Disk IO Monitoring) iotop
http://guichaz.free.fr/iotop
GPLV2
procps (CPU Monitoring) top
http://procps.sourceforge.net
GPLV2
tar tar
http://www.gnu.org/software/tar/
GPLV2
iputils ping
http://www.skbuff.net/iputils
GPLV2
Signature · 8 lines
Regards, GeunSik Lim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Quoted 11 lines · GeunSik Lim
Hi all,
This is Realtime Latency Test Scenario during 24hours.
In this experiment,
I adjusted CPU Affinity Policy to reduce Latency overheads in the Multicore.Prepare cyclictest(rt-tests), taskset, chrt, ltp-full-20090531.tar.gz , hackbench , ping, dd, tar, netperf commands.
I want to listen some advices and opinions about below test scenario to measure a latency guarantee
There are no guarantees.
Only extensive testing can validate the application.
IMO 24 hours is not nearly enough.
I know of stress tests that have been run for multiple weeks.
Regards,
Sven
Thank you for your opinions.
Quoted 3 lines · Sven-Thorsten Dietrich
There are no guarantees.
Only extensive testing can validate the application. IMO 24 hours is not nearly enough.
It's right.
Quoted 1 line
I know of stress tests that have been run for multiple weeks.
Actually, I am trying experiments with increase of test time to measure latencies
step by step.
For example,
30 minutes --> 1hour --> 1day(24hours) --> 3days --> 6days (until now)
Signature · 10 lines
Regards, GeunSik Lim ( Samsung Electronics ) Blog : http://blog.naver.com/invain/ e-Mail: [email protected] [email protected] , [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/