-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c49a37
commit b61a7d8
Showing
12 changed files
with
467 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name,fasttier,slowtier,snapshot Time | ||
OMP_NUM_THREADS=1 bc.aot -g10 -n100000,22.031722,29.936722,0.00499 | ||
OMP_NUM_THREADS=1 bfs.aot -g10 -n1000000,72.930075,148.328455,0.004893 | ||
OMP_NUM_THREADS=1 bc.aot -g10 -n100000,21.618244,29.969255,0.005453 | ||
OMP_NUM_THREADS=1 bfs.aot -g10 -n1000000,74.279264,147.493264,0.004207 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
#!/bin/bash | ||
echo "$@" | ||
pid1=`ps aux | grep $1 | grep -v grep | awk '{print $2}'|tail -n 1` | ||
pid1=`ps aux | grep $1 | grep -v grep | grep -v nocommand | grep -v ssh | awk '{print $2}'|head -n 1` | ||
echo $pid1 | ||
sleep 2 | ||
# echo $pid > /sys/fs/cgroup/memory/my_cgroup/cgroup.procs | ||
# echo $(($first_arg * 1024 * 1024 * 1024)) > /sys/fs/cgroup/memory/my_cgroup/memory.limit_in_bytes | ||
date >> $1.ps.out | ||
while true; do | ||
line=$(ps auxh -q $pid1) | ||
if [ "$line" == "" ]; then | ||
break | ||
fi | ||
date >> $1.ps.out | ||
echo $line >>$1.ps.out | ||
sleep 0.01 | ||
sleep 0.5 | ||
if ! ps -p $pid1 >/dev/null; then | ||
sleep 0.5 | ||
exit 0 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,21 @@ | ||
#!/bin/bash | ||
echo "$@" | ||
pid1=`ps aux | grep $1 | grep -v grep | awk '{print $2}'|tail -n 1` | ||
pid1=`ps aux | grep $1 | grep -v grep | awk '{print $2}'|head -n 1` | ||
# echo $pid > /sys/fs/cgroup/memory/my_cgroup/cgroup.procs | ||
# echo $(($first_arg * 1024 * 1024 * 1024)) > /sys/fs/cgroup/memory/my_cgroup/memory.limit_in_bytes | ||
pcm-power 1 -m -1 &> $1.$2.energy.out & | ||
pcm-power 1 -m -1 &> $1.energy.$2.out & | ||
pid2=$! | ||
date >> $1.ps.$2.out | ||
while true; do | ||
line=$(ps auxh -q $pid1) | ||
if [ "$line" == "" ]; then | ||
break | ||
fi | ||
date >> $1.$2.ps.out | ||
echo $line >> $1.$2.ps.out | ||
for child in $(pgrep -P $pid1); do | ||
line=$(ps auxh -q $child) | ||
if [ "$line" == "" ]; then | ||
continue | ||
fi | ||
date >> $1.$2.ps.out | ||
echo $line >> $1.$2.ps.out | ||
done | ||
echo $line >> $1.ps.$2.out | ||
sleep 0.01 | ||
if ! ps -p $pid1 >/dev/null; then | ||
sleep 0.5 | ||
sudo kill -9 $pid2 | ||
exit 0 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,21 @@ | ||
#!/bin/bash | ||
echo "$@" | ||
pid1=`ps aux | grep $1 | grep -v grep | awk '{print $2}'|tail -n 1` | ||
pid1=`ps aux | grep $1 | grep -v grep | awk '{print $2}'|head -n 1` | ||
# echo $pid > /sys/fs/cgroup/memory/my_cgroup/cgroup.procs | ||
# echo $(($first_arg * 1024 * 1024 * 1024)) > /sys/fs/cgroup/memory/my_cgroup/memory.limit_in_bytes | ||
sudo asitop --show_cores &> $1.$2.energy.out & | ||
sudo asitop --show_cores &> $1.energy.$2.out & | ||
pid2=$! | ||
date >> $1.ps.$2.out | ||
while true; do | ||
line=$(ps auxh -q $pid1) | ||
if [ "$line" == "" ]; then | ||
break | ||
fi | ||
date >> $1.$2.ps.out | ||
echo $line >> $1.$2.ps.out | ||
for child in $(pgrep -P $pid1); do | ||
line=$(ps auxh -q $child) | ||
if [ "$line" == "" ]; then | ||
continue | ||
fi | ||
date >> $1.$2.ps.out | ||
echo $line >> $1.$2.ps.out | ||
done | ||
echo $line >> $1.ps.$2.out | ||
sleep 0.01 | ||
if ! ps -p $pid1 >/dev/null; then | ||
sleep 0.5 | ||
sudo kill -9 $pid2 | ||
exit 0 | ||
fi | ||
done |
Oops, something went wrong.