I wrote a script to measure the "MACHINE_CLEARS.MEM_ORDER" performance counter on a Nehaleme machine on my program with different parameters.
However, when the script goes, the first several runs gets good result. Then it comes to "The Sampling Collector failed to collect data because the selected event(s) did not occur".
After that, there will always be "Could not connect to remote machine 127.0.0.1" even if I run vtune for profiling other programs. The only way to solve it is to hard reboot. But if running the script several for several runs, it wil also come out "Could not connect to remote machine 127.0.0.1." after " The Sampling Collector failed to collect data because the selected event(s) did not occur."
Why is it?
Following is my script:
for D in 0
do
for G in 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 41943 04 8388608 16777216
do
echo ./aggregate -D /home/yeyang/inputgen -n 24 -r 1 -t 16 -d $D -g $G -c 10
vtl activity test_$D -d 10 -start-paused \\
-c sampling -o "-cal yes -ec \\
-en='MACHINE_CLEARS.MEM_ORDER' \\
" -app ./aggregate,"-D /home/yeyang/inputgen -n 24 -r 1 -t 16 -d $D -g $G -c >>Local/OUTPUT_THREAD16_ON_$D.t xt" run
done
done



