3 # adp.sh -- run ADP's stress test on /proc/[0-9]*/cmdline
12 This script runs ADP's stress test on /proc/[0-0]*/cmdline.
15 -h display this message and exit
16 -d delay for top, in seconds
17 -n number of iterations for top
26 if [ "x$VALUE" = "x" ]; then
27 echo "`basename $0`: $VAR is not set."
35 while getopts hd
:n
: OPTION
57 checkvar delay
&& checkvar iterations ||
{
62 echo "-------------------------------------------------------------------------"
64 echo "Starting tests..."
71 echo "Stressing /proc/[0-9]*/cmdline..."
78 echo "Starting 'top', redirecting output to 'adp.log'..."
79 top
-b -d $delay -n $iterations > adp.log
&
81 echo "LTP ADP Test done. Killing processes..."
83 killall adp_children.sh
85 echo "Done. Please check adp.log."
88 echo "-------------------------------------------------------------------------"