-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Figure 10 stat collection script and fixed typos
- Loading branch information
Anish-Saxena
committed
Aug 14, 2022
1 parent
5882fb9
commit 04c88fa
Showing
11 changed files
with
228 additions
and
23 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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
cd .. | ||
mkdir -p stats_scripts/data | ||
|
||
## Calculating Mitigations for RRS ### | ||
|
||
# All SPEC workloads | ||
perl getdata.pl -noxxxx -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_btv_true_neg" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C/BF-0/' \ | ||
| sed 's/[_A-Z]*\///' \ | ||
| column -t > stats_scripts/data/fpt_lookup_btv.stat ; | ||
|
||
perl getdata.pl -noxxxx -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_hit" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C/Cache-Hit/' \ | ||
| sed 's/[_A-Z]*\///' | column -t > stats_scripts/data/fpt_lookup_cache.stat ; | ||
|
||
perl getdata.pl -noxxxx -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_partial_hit_orr_set" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C/Singleton/' \ | ||
| sed 's/[_A-Z]*\///' | column -t > stats_scripts/data/fpt_lookup_orr.stat ; | ||
|
||
perl getdata.pl -noxxxx -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_partial_hit_orr_unset|rh_cache_miss" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C/DRAM-Acco/' \ | ||
| sed 's/[_A-Z]*\///' | column -t > stats_scripts/data/fpt_lookup_dram.stat ; | ||
|
||
paste stats_scripts/data/fpt_lookup_btv.stat stats_scripts/data/fpt_lookup_cache.stat \ | ||
stats_scripts/data/fpt_lookup_orr.stat stats_scripts/data/fpt_lookup_dram.stat \ | ||
| column -s $'\t' -t | awk '{print $1, $2, $4, $6, $8}' | column -t > stats_scripts/data/hitloc_rq_drit.stat ; | ||
|
||
echo ". 0 0 0 0" | column -t >> stats_scripts/data/hitloc_rq_drit.stat ; | ||
|
||
# All SPEC workloads | ||
perl getdata.pl -noxxxx -nh -ns -amean -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_btv_true_neg" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C/BF-0/' \ | ||
| sed 's/[_A-Z]*\///' | sed 's/Amean/AMEAN/' | column -t > stats_scripts/data/fpt_lookup_btv.stat ; | ||
|
||
perl getdata.pl -noxxxx -nh -ns -amean -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_hit" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C/Cache-Hit/' \ | ||
| sed 's/[_A-Z]*\///' | sed 's/Amean/AMEAN/' | column -t > stats_scripts/data/fpt_lookup_cache.stat ; | ||
|
||
perl getdata.pl -noxxxx -nh -ns -amean -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_partial_hit_orr_set" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C/Singleton/' \ | ||
| sed 's/[_A-Z]*\///' | sed 's/Amean/AMEAN/' | column -t > stats_scripts/data/fpt_lookup_orr.stat ; | ||
|
||
perl getdata.pl -noxxxx -nh -ns -amean -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_partial_hit_orr_unset|rh_cache_miss" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*AE.AQUA.MEMORY_MAPPED_TABLES.1K.4C/DRAM-Acco/' \ | ||
| sed 's/[_A-Z]*\///' | sed 's/Amean/AMEAN/' | column -t > stats_scripts/data/fpt_lookup_dram.stat ; | ||
|
||
paste stats_scripts/data/fpt_lookup_btv.stat stats_scripts/data/fpt_lookup_cache.stat \ | ||
stats_scripts/data/fpt_lookup_orr.stat stats_scripts/data/fpt_lookup_dram.stat \ | ||
| column -s $'\t' -t | awk '{print $1, $2, $4, $6, $8}' | column -t >> stats_scripts/data/hitloc_rq_drit.stat ; | ||
|
||
cat stats_scripts/data/hitloc_rq_drit.stat |
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,7 +1,8 @@ | ||
#!/bin/bash | ||
|
||
./Figure_3.rrs.scalablity.sh | ||
./Figure_3.rrs.scalability.sh | ||
./Figure_6.migrations.rq.rrs.sh | ||
./Figure_7.perf.rq.rrs.sh | ||
./Figure_9.perf.rq.drit.sh | ||
./Figure_10.fpt_lookups.rq.sh | ||
./Figure_11.sensitivity.rq.rth.sh |
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 @@ | ||
AMEAN 0.922 |
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 @@ | ||
AMEAN 0.073 |
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 @@ | ||
AMEAN 0.000 |
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 @@ | ||
AMEAN 0.004 |
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,37 @@ | ||
Expts BF-0 Cache-Hit Singleton DRAM-Acco | ||
perlbench 1.000 0.000 0.000 0.000 | ||
gcc 0.794 0.197 0.010 0.000 | ||
bwaves 1.000 0.000 0.000 0.000 | ||
mcf 0.713 0.282 0.004 0.000 | ||
cactuBSSN 1.000 0.000 0.000 0.000 | ||
namd 1.000 0.000 0.000 0.000 | ||
povray 1.000 0.000 0.000 0.000 | ||
lbm 0.670 0.246 0.079 0.006 | ||
wrf 1.000 0.000 0.000 0.000 | ||
blender 0.491 0.498 0.010 0.000 | ||
deepsjeng 1.000 0.000 0.000 0.000 | ||
imagick 0.975 0.025 0.000 0.000 | ||
leela 1.000 0.000 0.000 0.000 | ||
nab 1.000 0.000 0.000 0.000 | ||
exchange2 1.000 0.000 0.000 0.000 | ||
roms 0.850 0.148 0.002 0.000 | ||
xz 1.000 0.000 0.000 0.000 | ||
parest 1.000 0.000 0.000 0.000 | ||
mix1 0.994 0.006 0.000 0.000 | ||
mix2 0.999 0.001 0.000 0.000 | ||
mix3 1.000 0.000 0.000 0.000 | ||
mix4 0.999 0.001 0.000 0.000 | ||
mix5 0.925 0.074 0.001 0.000 | ||
mix6 0.750 0.244 0.006 0.000 | ||
mix7 0.991 0.009 0.000 0.000 | ||
mix8 0.999 0.001 0.000 0.000 | ||
mix9 0.913 0.086 0.001 0.000 | ||
mix10 0.964 0.036 0.000 0.000 | ||
mix11 0.813 0.173 0.014 0.000 | ||
mix12 0.991 0.009 0.000 0.000 | ||
mix13 0.777 0.217 0.005 0.000 | ||
mix14 0.765 0.229 0.007 0.000 | ||
mix15 0.999 0.001 0.000 0.000 | ||
mix16 0.994 0.006 0.000 0.000 | ||
. 0 0 0 0 | ||
AMEAN 0.922 0.073 0.004 0.000 |
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,99 @@ | ||
cd .. | ||
mkdir -p stats_scripts/data | ||
|
||
## Calculating Mitigations for RRS ### | ||
|
||
# All SPEC workloads | ||
perl getdata.pl -noxxxx -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_btv_true_neg" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*_16KB_CACHE_V2.1K.4C/BF-0/' \ | ||
| sed 's/mix11/mix10/' | sed 's/mix13/mix11/' | sed 's/mix14/mix12/' | sed 's/mix16/mix13/' | sed 's/mix17/mix14/' | sed 's/mix18/mix15/' | sed 's/mix19/mix16/' \ | ||
| sed 's/[_A-Z]*\///' \ | ||
| column -t > stats_scripts/data/fpt_lookup_btv.stat ; | ||
|
||
perl getdata.pl -noxxxx -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_hit" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*_16KB_CACHE_V2.1K.4C/Cache-Hit/' \ | ||
| sed 's/mix11/mix10/' | sed 's/mix13/mix11/' | sed 's/mix14/mix12/' | sed 's/mix16/mix13/' | sed 's/mix17/mix14/' | sed 's/mix18/mix15/' | sed 's/mix19/mix16/' \ | ||
| sed 's/[_A-Z]*\///' | column -t > stats_scripts/data/fpt_lookup_cache.stat ; | ||
|
||
perl getdata.pl -noxxxx -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_partial_hit_orr_set" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*_16KB_CACHE_V2.1K.4C/Singleton/' \ | ||
| sed 's/mix11/mix10/' | sed 's/mix13/mix11/' | sed 's/mix14/mix12/' | sed 's/mix16/mix13/' | sed 's/mix17/mix14/' | sed 's/mix18/mix15/' | sed 's/mix19/mix16/' \ | ||
| sed 's/[_A-Z]*\///' | column -t > stats_scripts/data/fpt_lookup_orr.stat ; | ||
|
||
perl getdata.pl -noxxxx -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_partial_hit_orr_unset|rh_cache_miss" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*_16KB_CACHE_V2.1K.4C/DRAM-Acco/' \ | ||
| sed 's/mix11/mix10/' | sed 's/mix13/mix11/' | sed 's/mix14/mix12/' | sed 's/mix16/mix13/' | sed 's/mix17/mix14/' | sed 's/mix18/mix15/' | sed 's/mix19/mix16/' \ | ||
| sed 's/[_A-Z]*\///' | column -t > stats_scripts/data/fpt_lookup_dram.stat ; | ||
|
||
paste stats_scripts/data/fpt_lookup_btv.stat stats_scripts/data/fpt_lookup_cache.stat \ | ||
stats_scripts/data/fpt_lookup_orr.stat stats_scripts/data/fpt_lookup_dram.stat \ | ||
| column -s $'\t' -t | awk '{print $1, $2, $4, $6, $8}' | column -t > stats_scripts/data/test.stat ; | ||
|
||
echo ". 0 0 0 0" | column -t >> stats_scripts/data/test.stat ; | ||
|
||
# All SPEC workloads | ||
perl getdata.pl -noxxxx -nh -ns -amean -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_btv_true_neg" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*_16KB_CACHE_V2.1K.4C/BF-0/' \ | ||
| sed 's/mix11/mix10/' | sed 's/mix13/mix11/' | sed 's/mix14/mix12/' | sed 's/mix16/mix13/' | sed 's/mix17/mix14/' | sed 's/mix18/mix15/' | sed 's/mix19/mix16/' \ | ||
| sed 's/[_A-Z]*\///' | sed 's/Amean/AMEAN/' | column -t > stats_scripts/data/fpt_lookup_btv.stat ; | ||
|
||
perl getdata.pl -noxxxx -nh -ns -amean -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_hit" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*_16KB_CACHE_V2.1K.4C/Cache-Hit/' \ | ||
| sed 's/mix11/mix10/' | sed 's/mix13/mix11/' | sed 's/mix14/mix12/' | sed 's/mix16/mix13/' | sed 's/mix17/mix14/' | sed 's/mix18/mix15/' | sed 's/mix19/mix16/' \ | ||
| sed 's/[_A-Z]*\///' | sed 's/Amean/AMEAN/' | column -t > stats_scripts/data/fpt_lookup_cache.stat ; | ||
|
||
perl getdata.pl -noxxxx -nh -ns -amean -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_partial_hit_orr_set" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*_16KB_CACHE_V2.1K.4C/Singleton/' \ | ||
| sed 's/mix11/mix10/' | sed 's/mix13/mix11/' | sed 's/mix14/mix12/' | sed 's/mix16/mix13/' | sed 's/mix17/mix14/' | sed 's/mix18/mix15/' | sed 's/mix19/mix16/' \ | ||
| sed 's/[_A-Z]*\///' | sed 's/Amean/AMEAN/' | column -t > stats_scripts/data/fpt_lookup_orr.stat ; | ||
|
||
perl getdata.pl -noxxxx -nh -ns -amean -w spec17_all -dstat "rh_btv_true_pos|rh_btv_false_pos|rh_btv_true_neg" -nstat "rh_cache_partial_hit_orr_unset|rh_cache_miss" \ | ||
-d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C \ | ||
| sed 's/[_A-Z0-9]*[\/]*_16KB_CACHE_V2.1K.4C/DRAM-Acco/' \ | ||
| sed 's/mix11/mix10/' | sed 's/mix13/mix11/' | sed 's/mix14/mix12/' | sed 's/mix16/mix13/' | sed 's/mix17/mix14/' | sed 's/mix18/mix15/' | sed 's/mix19/mix16/' \ | ||
| sed 's/[_A-Z]*\///' | sed 's/Amean/AMEAN/' | column -t > stats_scripts/data/fpt_lookup_dram.stat ; | ||
|
||
paste stats_scripts/data/fpt_lookup_btv.stat stats_scripts/data/fpt_lookup_cache.stat \ | ||
stats_scripts/data/fpt_lookup_orr.stat stats_scripts/data/fpt_lookup_dram.stat \ | ||
| column -s $'\t' -t | awk '{print $1, $2, $4, $6, $8}' | column -t >> stats_scripts/data/test.stat ; | ||
|
||
#cat stats_scripts/data/migrations_rrs.stat | ||
# rm stats_scripts/data/fpt_lookup_cache.stat stats_scripts/data/migrations2_rrs.stat stats_scripts/data/migrations3_rrs.stat | ||
|
||
# Format | ||
# cat stats_scripts/data/migrations_rrs.stat | ||
|
||
|
||
## Calculating Mitigations for RQ ### | ||
|
||
# # All SPEC workloads | ||
# perl getdata.pl -noxxxx -w spec17_all -amean -nstat "rh_move" -dstat sim_seconds \ | ||
# -d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.SRAM_TABLES.1K.4C \ | ||
# | sed 's/[_A-Z0-9]*[\/]*O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C/AQUA/' \ | ||
# | sed 's/[_A-Z]*\///' | column -t > stats_scripts/data/migrations1_rq.stat ; | ||
|
||
# perl getdata.pl -noxxxx -w spec17_all -amean -nstat "rh_move_to_qr_remove|rh_move_within_qr_remove" -dstat sim_seconds \ | ||
# -d ../stats/multiprogram_16GBmem_250Mn.SPEC2017.C4/AE.AQUA.SRAM_TABLES.1K.4C \ | ||
# | sed 's/[_A-Z0-9]*[\/]*O3.25Bn.RQ.16KB_BTV_16KB_CACHE_V2.1K.4C/AQUA/' \ | ||
# | sed 's/[_A-Z]*\///' | column -t > stats_scripts/data/migrations2_rq.stat ; | ||
|
||
# paste stats_scripts/data/migrations1_rq.stat stats_scripts/data/migrations2_rq.stat \ | ||
# | column -s $'\t' -t | awk '{print $1,($2+$4)*0.064}' | column -t > stats_scripts/data/migrations_rq.stat | ||
|
||
# # Format | ||
# #cat stats_scripts/data/migrations_rq.stat | ||
# # rm -rf stats_scripts/data/migrations_rq.stat stats_scripts/data/migrations_rrs.stat | ||
|
||
# #Join | ||
# paste stats_scripts/data/migrations_rrs.stat stats_scripts/data/migrations_rq.stat \ | ||
# | column -s $'\t' -t | awk '{print $1,$2, $4}' | column -t > stats_scripts/data/migrations_rrs_rq.stat | ||
|
||
# cat stats_scripts/data/migrations_rrs_rq.stat |