├── gem
├── lib
│ ├── .idea
│ │ ├── .name
│ │ ├── scopes
│ │ │ └── scope_settings.xml
│ │ ├── encodings.xml
│ │ ├── vcs.xml
│ │ ├── modules.xml
│ │ ├── lib.iml
│ │ └── misc.xml
│ └── src
│ │ ├── hashTableGUI.jar
│ │ ├── myEntry.java
│ │ ├── email.rb
│ │ ├── Footprint
│ │ ├── makefile
│ │ ├── makefile.rules
│ │ ├── histo.H
│ │ ├── linear_fp.cpp
│ │ ├── dual_fp.cpp
│ │ └── dual_fp_all.cpp
│ │ ├── machine.rb
│ │ ├── external.rb
│ │ ├── env.rb
│ │ └── hashTableGUI.java
└── loca.gemspec
├── server
├── .idea
│ ├── .name
│ ├── scopes
│ │ └── scope_settings.xml
│ ├── encodings.xml
│ ├── vcs.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── server.iml
├── data
│ └── data.txt
├── favicon.ico
├── static
│ ├── coal-file.png
│ ├── coal-folder.png
│ └── style-paper.css
├── .current.html
├── draw_p.r
├── plot_p.rb
├── plot.rb
├── draw_dual.r
├── draw.r
└── server
├── .gitignore
├── policies
├── ForwardOPTStackDistanceAnalyzer
│ ├── debugging_OPT.pages
│ │ ├── Contents
│ │ │ └── PkgInfo
│ │ ├── index.xml.gz
│ │ └── QuickLook
│ │ │ └── Thumbnail.jpg
│ ├── 1_array_txt
│ ├── temp
│ │ ├── 1_array_txt
│ │ ├── 1_reverse_txt
│ │ ├── 1_rev-OPT-dis_txt
│ │ ├── 1_forward-OPT-dis_txt
│ │ ├── 2_arrays_txt
│ │ ├── 2_reverse_txt
│ │ ├── gen-forward-OPT-distance.rb
│ │ ├── 2_rev-OPT-dis_txt
│ │ └── 2_forward-OPT-dis_txt
│ ├── reverse_file
│ ├── OPTStackDistanceAnalyzer
│ ├── OPTStackDistanceAnalyzer.o
│ ├── mrcs
│ │ ├── opt_msr_hm_0_mrc
│ │ ├── opt_msr_proj_1_mrc
│ │ ├── opt_msr_stg_1_mrc
│ │ ├── opt_msr_prn_0_mrc
│ │ ├── opt_msr_stg_0_mrc
│ │ ├── opt_fb_trace3_mrc
│ │ ├── opt_fb_trace4_mrc
│ │ ├── opt_fb_trace5_mrc
│ │ ├── opt_fb_trace6_mrc
│ │ ├── opt_msr_src1_1_mrc
│ │ ├── opt_msr_prn_1_mrc
│ │ ├── opt_msr_proj_0_mrc
│ │ ├── opt_twi_trace2_mrc
│ │ ├── opt_msr_proj_4_mrc
│ │ └── opt_msr_src1_0_mrc
│ ├── stream8_reverse_txt
│ ├── README.md
│ ├── swim_pattern_notes.txt
│ ├── 2_arrays_txt
│ ├── Makefile
│ ├── debugging_original_trace.txt
│ ├── gen-forward-OPT-distance.rb
│ ├── get_mrc.py
│ ├── stream8_rev-OPT-dis_txt
│ └── reverse_file.c
├── lc
│ └── lc_with_item_size
│ │ ├── mrc_mem_data
│ │ ├── simulator
│ │ ├── lease_lru.o
│ │ ├── central_storage.h
│ │ ├── attrs.h
│ │ ├── declarations.h
│ │ ├── Makefile
│ │ ├── item.h
│ │ ├── README.txt
│ │ ├── static.h
│ │ ├── dll.h
│ │ ├── stack.h
│ │ ├── lru_cache.h
│ │ ├── workload.h
│ │ ├── hash.h
│ │ └── lease_bins.h
├── lirs
│ ├── lirs
│ │ ├── lirs
│ │ ├── count_diff.py
│ │ ├── Makefile
│ │ ├── run
│ │ ├── README
│ │ └── lirs.h
│ ├── Software-for-sharing.zip
│ ├── lirs-trc
│ │ ├── sprite.par
│ │ ├── multi1.par
│ │ ├── cpp.par
│ │ ├── 2_pools.par
│ │ ├── cs.par
│ │ ├── multi2.par
│ │ ├── ps.par
│ │ ├── gli.par
│ │ └── multi3.par
│ └── lirs-sim
│ │ ├── lirs.h
│ │ └── lru.c
├── 2q
│ ├── mrcs
│ │ ├── 2q_msr_proj_1_mrc
│ │ ├── 2q_msr_src1_1_mrc
│ │ ├── 2q_msr_stg_1_mrc
│ │ ├── 2q_msr_stg_0_mrc
│ │ ├── 2q_fb_trace4_mrc
│ │ ├── 2q_fb_trace6_mrc
│ │ ├── 2q_msr_prn_0_mrc
│ │ ├── 2q_fb_trace5_mrc
│ │ ├── 2q_msr_prn_1_mrc
│ │ ├── 2q_msr_proj_0_mrc
│ │ ├── 2q_twi_trace2_mrc
│ │ ├── 2q_facebook_trace3_mrc
│ │ ├── 2q_msr_hm_0_mrc
│ │ ├── 2q_msr_proj_4_mrc
│ │ ├── 2q_msr_src1_0_mrc
│ │ └── facebook_trace3_mrc
│ ├── README.md
│ └── 2q.py
├── arc
│ ├── mrcs
│ │ ├── arc_msr_proj_1_mrc
│ │ ├── arc_msr_stg_1_mrc
│ │ ├── arc_msr_src1_1_mrc
│ │ ├── arc_msr_stg_0_mrc
│ │ ├── arc_fb_trace6_mrc
│ │ ├── arc_fb_trace4_mrc
│ │ ├── arc_fb_trace5_mrc
│ │ ├── arc_facebook_trace3_mrc
│ │ ├── arc_msr_prn_0_mrc
│ │ ├── arc_msr_prn_1_mrc
│ │ ├── arc_msr_proj_0_mrc
│ │ ├── arc_facebook_trace3_mrc_mrc
│ │ ├── arc_msr_hm_0_mrc
│ │ ├── arc_twi_trace2_mrc
│ │ ├── arc_msr_proj_4_mrc
│ │ ├── arc_msr_src1_0_mrc
│ │ └── facebook_trace3_mrc
│ └── README.md
├── lfu
│ ├── mrcs
│ │ ├── lfu_msr_proj_1_mrc
│ │ ├── lfu_msr_src1_1_mrc
│ │ ├── lfu_msr_stg_1_mrc
│ │ ├── lfu_msr_prn_0_mrc
│ │ ├── lfu_msr_stg_0_mrc
│ │ ├── lfu_fb_trace4_mrc
│ │ ├── lfu_fb_trace5_mrc
│ │ ├── lfu_fb_trace6_mrc
│ │ ├── lfu_facebook_trace3_mrc
│ │ ├── lfu_twi_trace2_mrc
│ │ ├── lfu_msr_proj_0_mrc
│ │ ├── lfu_msr_prn_1_mrc
│ │ ├── lfu_msr_hm_0_mrc
│ │ ├── lfu_msr_proj_4_mrc
│ │ └── lfu_msr_src1_0_mrc
│ ├── README.md
│ └── lfu.py
├── README.md
└── lru
│ ├── README.md
│ └── lru.py
├── doc
├── Site
│ ├── Media
│ │ ├── transparent.gif
│ │ └── IE8.css
│ ├── installation_files
│ │ ├── shapeimage_1.jpg
│ │ ├── Graphpaper_bullet_default.png
│ │ ├── installationMoz.css
│ │ ├── installation.js
│ │ ├── installationIE.css
│ │ └── installation.css
│ ├── Scripts
│ │ └── Widgets
│ │ │ ├── SharedResources
│ │ │ └── None.gif
│ │ │ └── Navbar
│ │ │ └── navbar.js
│ ├── external_software_files
│ │ ├── shapeimage_1.jpg
│ │ ├── Graphpaper_bullet_default.png
│ │ ├── external_softwareMoz.css
│ │ ├── external_software.js
│ │ ├── external_softwareIE.css
│ │ └── external_software.css
│ ├── index.html
│ └── feed.xml
└── index.html
├── INSTALL.md
├── README.md
└── dev
└── pack.rb
/gem/lib/.idea/.name:
--------------------------------------------------------------------------------
1 | lib
--------------------------------------------------------------------------------
/server/.idea/.name:
--------------------------------------------------------------------------------
1 | server
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .idea/*
3 |
4 | .*
5 |
--------------------------------------------------------------------------------
/server/data/data.txt:
--------------------------------------------------------------------------------
1 | Data for server stored in this folder.
2 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/debugging_OPT.pages/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | ????????
--------------------------------------------------------------------------------
/server/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/server/favicon.ico
--------------------------------------------------------------------------------
/policies/lc/lc_with_item_size/mrc_mem_data:
--------------------------------------------------------------------------------
1 | 1 64 1.00000 0.00000
2 |
3 | 0.00000 0.00000
4 |
--------------------------------------------------------------------------------
/policies/lirs/lirs/lirs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/policies/lirs/lirs/lirs
--------------------------------------------------------------------------------
/gem/lib/src/hashTableGUI.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/gem/lib/src/hashTableGUI.jar
--------------------------------------------------------------------------------
/server/static/coal-file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/server/static/coal-file.png
--------------------------------------------------------------------------------
/server/static/coal-folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/server/static/coal-folder.png
--------------------------------------------------------------------------------
/doc/Site/Media/transparent.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/doc/Site/Media/transparent.gif
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/1_array_txt:
--------------------------------------------------------------------------------
1 | 2
2 | 3
3 | 4
4 | 2
5 | 1
6 | 3
7 | 7
8 | 5
9 | 4
10 | 3
11 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/temp/1_array_txt:
--------------------------------------------------------------------------------
1 | 2
2 | 3
3 | 4
4 | 2
5 | 1
6 | 3
7 | 7
8 | 5
9 | 4
10 | 3
11 |
--------------------------------------------------------------------------------
/policies/lc/lc_with_item_size/simulator:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/policies/lc/lc_with_item_size/simulator
--------------------------------------------------------------------------------
/policies/lirs/Software-for-sharing.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/policies/lirs/Software-for-sharing.zip
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/temp/1_reverse_txt:
--------------------------------------------------------------------------------
1 | 3
2 | 4
3 | 5
4 | 7
5 | 3
6 | 1
7 | 2
8 | 4
9 | 3
10 | 2
11 |
--------------------------------------------------------------------------------
/policies/lc/lc_with_item_size/lease_lru.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/policies/lc/lc_with_item_size/lease_lru.o
--------------------------------------------------------------------------------
/doc/Site/installation_files/shapeimage_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/doc/Site/installation_files/shapeimage_1.jpg
--------------------------------------------------------------------------------
/doc/Site/Scripts/Widgets/SharedResources/None.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/doc/Site/Scripts/Widgets/SharedResources/None.gif
--------------------------------------------------------------------------------
/doc/Site/external_software_files/shapeimage_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/doc/Site/external_software_files/shapeimage_1.jpg
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/reverse_file:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/policies/ForwardOPTStackDistanceAnalyzer/reverse_file
--------------------------------------------------------------------------------
/doc/Site/installation_files/Graphpaper_bullet_default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/doc/Site/installation_files/Graphpaper_bullet_default.png
--------------------------------------------------------------------------------
/policies/lirs/lirs-trc/sprite.par:
--------------------------------------------------------------------------------
1 | 100
2 | 200
3 | 300
4 | 400
5 | 500
6 | 600
7 | 700
8 | 800
9 | 900
10 | 1000
11 |
12 |
13 |
--------------------------------------------------------------------------------
/policies/lirs/lirs-trc/multi1.par:
--------------------------------------------------------------------------------
1 | 200
2 | 400
3 | 600
4 | 800
5 | 1000
6 | 1200
7 | 1400
8 | 1600
9 | 1800
10 | 2000
11 |
12 |
13 |
--------------------------------------------------------------------------------
/doc/Site/external_software_files/Graphpaper_bullet_default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/doc/Site/external_software_files/Graphpaper_bullet_default.png
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/OPTStackDistanceAnalyzer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/policies/ForwardOPTStackDistanceAnalyzer/OPTStackDistanceAnalyzer
--------------------------------------------------------------------------------
/policies/lirs/lirs-trc/cpp.par:
--------------------------------------------------------------------------------
1 | 20
2 | 35
3 | 50
4 | 80
5 | 100
6 | 200
7 | 300
8 | 400
9 | 500
10 | 600
11 | 700
12 | 800
13 | 900
14 |
15 |
16 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/OPTStackDistanceAnalyzer.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/policies/ForwardOPTStackDistanceAnalyzer/OPTStackDistanceAnalyzer.o
--------------------------------------------------------------------------------
/server/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/gem/lib/.idea/scopes/scope_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/debugging_OPT.pages/index.xml.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/policies/ForwardOPTStackDistanceAnalyzer/debugging_OPT.pages/index.xml.gz
--------------------------------------------------------------------------------
/doc/Site/installation_files/installationMoz.css:
--------------------------------------------------------------------------------
1 | .inline-block {
2 | display: -moz-inline-box;
3 | display: inline-block;
4 | vertical-align: baseline;
5 | margin-bottom:3px;
6 | }
7 |
--------------------------------------------------------------------------------
/policies/lirs/lirs-trc/2_pools.par:
--------------------------------------------------------------------------------
1 | 60
2 | 80
3 | 100
4 | 120
5 | 140
6 | 160
7 | 180
8 | 200
9 | 250
10 | 300
11 | 350
12 | 400
13 | 450
14 |
15 |
16 |
--------------------------------------------------------------------------------
/policies/lirs/lirs-trc/cs.par:
--------------------------------------------------------------------------------
1 | 30
2 | 60
3 | 100
4 | 200
5 | 300
6 | 400
7 | 500
8 | 600
9 | 700
10 | 800
11 | 900
12 | 1000
13 | 1100
14 | 1200
15 | 1300
16 | 1400
17 |
18 |
--------------------------------------------------------------------------------
/doc/Site/external_software_files/external_softwareMoz.css:
--------------------------------------------------------------------------------
1 | .inline-block {
2 | display: -moz-inline-box;
3 | display: inline-block;
4 | vertical-align: baseline;
5 | margin-bottom:3px;
6 | }
7 |
--------------------------------------------------------------------------------
/gem/lib/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/server/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/gem/lib/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/debugging_OPT.pages/QuickLook/Thumbnail.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dcompiler/loca/HEAD/policies/ForwardOPTStackDistanceAnalyzer/debugging_OPT.pages/QuickLook/Thumbnail.jpg
--------------------------------------------------------------------------------
/server/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_hm_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.5
3 | 256 0.5
4 | 384 0.5
5 | 512 0.5
6 | 640 0.5
7 | 768 0.5
8 | 896 0.5
9 | 1024 0.5
10 | 1152 0.5
11 | 1280 0.5
12 | 1408 0.5
13 |
--------------------------------------------------------------------------------
/policies/lirs/lirs-trc/multi2.par:
--------------------------------------------------------------------------------
1 | 200
2 | 400
3 | 600
4 | 800
5 | 1000
6 | 1200
7 | 1400
8 | 1600
9 | 1800
10 | 2000
11 | 2200
12 | 2400
13 | 2600
14 | 2800
15 | 3000
16 |
17 |
--------------------------------------------------------------------------------
/server/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/policies/lirs/lirs-trc/ps.par:
--------------------------------------------------------------------------------
1 | 30
2 | 60
3 | 100
4 | 200
5 | 300
6 | 350
7 | 355
8 | 360
9 | 370
10 | 400
11 | 500
12 | 750
13 | 1000
14 | 1250
15 | 1500
16 | 1750
17 | 2000
18 | 2500
19 | 2700
20 |
21 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_proj_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.971135375
3 | 256 0.967895125
4 | 384 0.966531875
5 | 512 0.964606875
6 | 640 0.961923125
7 | 768 0.9594625
8 | 896 0.958674125
9 | 1024 0.958193625
10 | 1152 0.957836375
11 | 1280 0.957463
12 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_proj_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.971437625
3 | 256 0.96887075
4 | 384 0.969503875
5 | 512 0.96125825
6 | 640 0.959643875
7 | 768 0.958716625
8 | 896 0.958051
9 | 1024 0.957541125
10 | 1152 0.95723925
11 | 1280 0.956676125
12 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_proj_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.98678375
3 | 256 0.982475125
4 | 384 0.979032125
5 | 512 0.975531625
6 | 640 0.972303625
7 | 768 0.968983625
8 | 896 0.96572825
9 | 1024 0.962475
10 | 1152 0.959285875
11 | 1280 0.95653975
12 |
--------------------------------------------------------------------------------
/policies/lirs/lirs-trc/gli.par:
--------------------------------------------------------------------------------
1 | 30
2 | 60
3 | 100
4 | 200
5 | 300
6 | 400
7 | 500
8 | 600
9 | 700
10 | 800
11 | 900
12 | 1000
13 | 1100
14 | 1200
15 | 1300
16 | 1400
17 | 1500
18 | 1600
19 | 1700
20 | 1800
21 | 1900
22 | 2000
23 | 2100
24 | 2200
25 | 2300
26 | 2400
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_proj_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.956297625
3 | 256 0.9502
4 | 384 0.946104
5 | 512 0.942008
6 | 640 0.93913125
7 | 768 0.93708325
8 | 896 0.935222375
9 | 1024 0.935222375
10 | 1152 0.935222375
11 | 1280 0.935222375
12 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/temp/1_rev-OPT-dis_txt:
--------------------------------------------------------------------------------
1 | 0x3 0x0 INF
2 | 0x4 0x0 INF
3 | 0x5 0x0 INF
4 | 0x7 0x0 INF
5 | 0x3 0x0 2
6 | 0x1 0x0 INF
7 | 0x2 0x0 INF
8 | 0x4 0x0 3
9 | 0x3 0x0 2
10 | 0x2 0x0 3
11 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/temp/1_forward-OPT-dis_txt:
--------------------------------------------------------------------------------
1 | 0x2 0x0 3
2 | 0x3 0x0 2
3 | 0x4 0x0 3
4 | 0x2 0x0 INF
5 | 0x1 0x0 INF
6 | 0x3 0x0 2
7 | 0x7 0x0 INF
8 | 0x5 0x0 INF
9 | 0x4 0x0 INF
10 | 0x3 0x0 INF
11 |
--------------------------------------------------------------------------------
/policies/lirs/lirs-trc/multi3.par:
--------------------------------------------------------------------------------
1 | 200
2 | 400
3 | 600
4 | 800
5 | 1000
6 | 1200
7 | 1400
8 | 1600
9 | 1800
10 | 2000
11 | 2200
12 | 2400
13 | 2600
14 | 2800
15 | 3000
16 | 3200
17 | 3400
18 | 3600
19 | 3800
20 | 4000
21 |
--------------------------------------------------------------------------------
/doc/Site/Media/IE8.css:
--------------------------------------------------------------------------------
1 | .inline-block {
2 | display: inline-block;
3 | vertical-align: baseline;
4 | }
5 | li.full-width {
6 | width: auto;
7 | }
8 | li div div.inline-block a img {
9 | text-indent: 0;
10 | }
11 | img {
12 | -ms-interpolation-mode: bicubic;
13 | }
14 |
--------------------------------------------------------------------------------
/policies/lirs/lirs/count_diff.py:
--------------------------------------------------------------------------------
1 | trace_name = input("input trace name: ")
2 | def count_diff():
3 | items = set()
4 | trace = open(trace_name)
5 | for key in trace.readlines():
6 | items.add(key)
7 | trace.close()
8 | print(len(items))
9 |
10 | count_diff()
11 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_src1_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.9870805
3 | 256 0.9825105
4 | 384 0.978999
5 | 512 0.9765055
6 | 640 0.9724316666666667
7 | 768 0.9689473333333334
8 | 896 0.9658671666666667
9 | 1024 0.9614701666666666
10 | 1152 0.9582651666666666
11 | 1280 0.9553606666666666
12 | 1408 0.952253
13 |
--------------------------------------------------------------------------------
/doc/Site/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/doc/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/gem/lib/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_stg_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 16 0.7839289786654686
3 | 32 0.7046230963178827
4 | 48 0.6964382361924583
5 | 64 0.6897500570131656
6 | 80 0.6842321840116421
7 | 96 0.6794016553619004
8 | 112 0.6751697080516246
9 | 128 0.6721722494049465
10 | 144 0.6701024780357064
11 | 160 0.6639741886264083
12 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_stg_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 16 0.710273886240413
3 | 32 0.6959111204577805
4 | 48 0.6930734352332715
5 | 64 0.6822502652648483
6 | 80 0.6743207694979336
7 | 96 0.6717402694116742
8 | 112 0.6664936925913838
9 | 128 0.6640925393094966
10 | 144 0.662381006354066
11 | 160 0.6610664033819162
12 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_src1_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.9853173333333334
3 | 256 0.9796556666666667
4 | 384 0.9763963333333333
5 | 512 0.97101
6 | 640 0.9690375
7 | 768 0.9668796666666667
8 | 896 0.9636263333333334
9 | 1024 0.9610196666666667
10 | 1152 0.9589571666666666
11 | 1280 0.956807
12 | 1408 0.955006
13 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_stg_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 16 0.7143965867662997
3 | 32 0.7009833576179831
4 | 48 0.6930169910613371
5 | 64 0.6871763848509305
6 | 80 0.6824414471375294
7 | 96 0.6748101040530102
8 | 112 0.6682339028277164
9 | 128 0.6652378097658431
10 | 144 0.6634265891196576
11 | 160 0.6617400918856495
12 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_stg_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 32 0.2447561813271358
3 | 64 0.21518921274400948
4 | 96 0.19653505932055257
5 | 128 0.18204897792374372
6 | 160 0.1707909981461558
7 | 192 0.161631087465502
8 | 224 0.1561409512461132
9 | 256 0.1519669705526819
10 | 288 0.14734146923923452
11 | 320 0.14313646804519145
12 |
--------------------------------------------------------------------------------
/server/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_prn_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.548191280667024
3 | 256 0.4932891577092694
4 | 384 0.4543687429353195
5 | 512 0.42824110624527606
6 | 640 0.4037169752479732
7 | 768 0.3842881863324815
8 | 896 0.3673750234072088
9 | 1024 0.3491617981462565
10 | 1152 0.3247049796576586
11 | 1280 0.30638756322631716
12 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_stg_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 32 0.3133991329031496
3 | 64 0.27732721458062004
4 | 96 0.2552420953117191
5 | 128 0.23506695258048713
6 | 160 0.217370495564807
7 | 192 0.19558327157955896
8 | 224 0.17958063237506247
9 | 256 0.16287289226777094
10 | 288 0.15009983184919112
11 | 320 0.13893294401784417
12 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_fb_trace4_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.8540130139927605
3 | 512 0.7173763190491083
4 | 768 0.5929928792611299
5 | 1024 0.48368799377619653
6 | 1280 0.39365897928941124
7 | 1536 0.3277771326746462
8 | 1792 0.2858378731019208
9 | 2048 0.2539575498566324
10 | 2304 0.2247327994405093
11 | 2560 0.19766770276754295
12 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_fb_trace6_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.8517845718116975
3 | 512 0.7138471357710642
4 | 768 0.5883596253956467
5 | 1024 0.478606886362137
6 | 1280 0.3885965914931549
7 | 1536 0.3237584786914623
8 | 1792 0.28257823563436185
9 | 2048 0.25058244256889967
10 | 2304 0.22119565467542013
11 | 2560 0.1941066094286271
12 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_prn_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.30066474682798755
3 | 256 0.27847542896507377
4 | 384 0.2633791667069468
5 | 512 0.24149168099742815
6 | 640 0.2259267374951798
7 | 768 0.21374192026117253
8 | 896 0.2016822398452099
9 | 1024 0.1886486763245795
10 | 1152 0.18093190587849448
11 | 1280 0.1756965681003873
12 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_src1_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.9866946666666667
3 | 256 0.9812478333333333
4 | 384 0.9796208333333334
5 | 512 0.9730815
6 | 640 0.969023
7 | 768 0.9670058333333333
8 | 896 0.9657416666666667
9 | 1024 0.9615855
10 | 1152 0.9587238333333333
11 | 1280 0.9551171666666667
12 | 1408 0.9525826666666667
13 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_stg_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 32 0.23904003860328965
3 | 64 0.21266079574969904
4 | 96 0.19613720909048385
5 | 128 0.18165358963816802
6 | 160 0.16873527449450124
7 | 192 0.15655455792093712
8 | 224 0.14759997341099948
9 | 256 0.1401043372076133
10 | 288 0.13182629504435192
11 | 320 0.12534350280538575
12 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_fb_trace4_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.9321812654347238
3 | 512 0.8637470835392559
4 | 768 0.7939863465027192
5 | 1024 0.7228556756120897
6 | 1280 0.6492493872520002
7 | 1536 0.5717772789120543
8 | 1792 0.48885650113362406
9 | 2048 0.4024419374031911
10 | 2304 0.31604006526128475
11 | 2560 0.2369188081196616
12 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_fb_trace5_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.9303232183369204
3 | 512 0.8598706785147976
4 | 768 0.7884081784080775
5 | 1024 0.714926727914953
6 | 1280 0.639060762160077
7 | 1536 0.5582160123624572
8 | 1792 0.47286010662696937
9 | 2048 0.3836911884894409
10 | 2304 0.29632273557396405
11 | 2560 0.2183887281834996
12 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_fb_trace6_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.9310211175226034
3 | 512 0.8613654356294522
4 | 768 0.7909706251026035
5 | 1024 0.7190333102683263
6 | 1280 0.6440159731566277
7 | 1536 0.5650519499647888
8 | 1792 0.4811677541996468
9 | 2048 0.39367594329997346
10 | 2304 0.3065479432508772
11 | 2560 0.22793929249241693
12 |
--------------------------------------------------------------------------------
/policies/lirs/lirs/Makefile:
--------------------------------------------------------------------------------
1 | CC=gcc
2 | #CFLAGS=-Wall -O2 -g -I.
3 | CFLAGS=-g -I.
4 |
5 | ALLCEXE=$(patsubst %.c,%,$(wildcard *.c))
6 |
7 | all: $(ALLCEXE) $(ALLCPPEXE)
8 |
9 | .c.o:
10 | $(CC) -c $(CFLAGS) $<
11 |
12 | $(ALLCEXE): %: %.c
13 | $(CC) $(CFLAGS) -o $@ $<
14 |
15 | clean:
16 | rm -f $(ALLCEXE) $(ALLCPPEXE)
17 |
18 |
--------------------------------------------------------------------------------
/gem/lib/.idea/lib.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_fb_trace5_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.8500976391960057
3 | 512 0.7104388563640498
4 | 768 0.5838567792880721
5 | 1024 0.4734420222645308
6 | 1280 0.3838050879490103
7 | 1536 0.32000198693435433
8 | 1792 0.27967595118661115
9 | 2048 0.24767680029058914
10 | 2304 0.21828957550234124
11 | 2560 0.19102763313430357
12 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_fb_trace6_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.840226816983005
3 | 512 0.6964388728729435
4 | 768 0.5713715573175653
5 | 1024 0.44655950388243904
6 | 1280 0.3364571458818223
7 | 1536 0.24609646491689693
8 | 1792 0.18359790328346484
9 | 2048 0.1351101827147462
10 | 2304 0.11007493314472193
11 | 2560 0.10353803654908628
12 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_facebook_trace3_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.9318587628262218
3 | 512 0.863383004785828
4 | 768 0.7940934039118661
5 | 1024 0.7229752153205629
6 | 1280 0.6492587567233482
7 | 1536 0.5718079838853812
8 | 1792 0.48884737755541247
9 | 2048 0.4019595152043998
10 | 2304 0.3155382762945247
11 | 2560 0.236585097275446
12 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_twi_trace2_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.46595033333333336
3 | 512 0.420578
4 | 768 0.3888195
5 | 1024 0.36308083333333335
6 | 1280 0.3412285
7 | 1536 0.3223895
8 | 1792 0.3058575
9 | 2048 0.29108833333333334
10 | 2304 0.2778353333333333
11 | 2560 0.2659265
12 | 2816 0.25511
13 | 3072 0.2451055
14 | 3328 0.2358925
15 |
--------------------------------------------------------------------------------
/server/.idea/server.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_stg_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 16 0.6987064725533386
3 | 32 0.6831460888968396
4 | 48 0.6723411267258147
5 | 64 0.6649961012553821
6 | 80 0.6606489896265626
7 | 96 0.6575035926260241
8 | 112 0.6556086161118068
9 | 128 0.6541733864818939
10 | 144 0.6532411472551063
11 | 160 0.6523089080283185
12 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_fb_trace4_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 0 0.0
3 | 256 0.8425509941397064
4 | 512 0.6997658875483582
5 | 768 0.5760613530332044
6 | 1024 0.4535022817392477
7 | 1280 0.3426126525287422
8 | 1536 0.25275336436016305
9 | 1792 0.18860685569303934
10 | 2048 0.13924888905979385
11 | 2304 0.11185703133894176
12 | 2560 0.10388841858450144
13 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_fb_trace5_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 0 0.0
3 | 256 0.8385710915022078
4 | 512 0.6927823057286577
5 | 768 0.5670832890283193
6 | 1024 0.4406463512977553
7 | 1280 0.3308589144663568
8 | 1536 0.24024170745961906
9 | 1792 0.1787387158039672
10 | 2048 0.13155348772951614
11 | 2304 0.10868045826778132
12 | 2560 0.1031511925098784
13 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_prn_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.69777325
3 | 512 0.64933825
4 | 768 0.58869
5 | 1024 0.54592225
6 | 1280 0.5107685
7 | 1536 0.480993
8 | 1792 0.44341925
9 | 2048 0.42185475
10 | 2304 0.406713
11 | 2560 0.39141425
12 | 2816 0.38325325
13 | 3072 0.375611875
14 | 3328 0.36449825
15 | 3584 0.355854875
16 | 3840 0.347306875
17 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_facebook_trace3_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 0 0.0
3 | 256 0.842112974045919
4 | 512 0.6990066530798759
5 | 768 0.5749193122402606
6 | 1024 0.4523436645633233
7 | 1280 0.34213088465322505
8 | 1536 0.2520579666855123
9 | 1792 0.18846242269298585
10 | 2048 0.13918077071712365
11 | 2304 0.1118163952372568
12 | 2560 0.10386977150045212
13 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_prn_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 0 0.0
3 | 256 0.26538368308984467
4 | 512 0.2209194745470996
5 | 768 0.19525192601495986
6 | 1024 0.16660186047477518
7 | 1280 0.15211176884025202
8 | 1536 0.14168960841664152
9 | 1792 0.1378921803989555
10 | 2048 0.1350083048597841
11 | 2304 0.13355714742477737
12 | 2560 0.13272164881273982
13 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_proj_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 64 0.7024365348616791
3 | 128 0.642042985197859
4 | 192 0.5844876251146874
5 | 256 0.5304952699996497
6 | 320 0.5013748294482407
7 | 384 0.4828513224211769
8 | 448 0.3536175909996014
9 | 512 0.2913414623754061
10 | 576 0.26009675883010724
11 | 640 0.27837384756247097
12 | 704 0.2420956775248525
13 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_proj_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 64 0.39003944586419675
3 | 128 0.3161430731604318
4 | 192 0.2635184461018567
5 | 256 0.2284910678694215
6 | 320 0.20353867086564073
7 | 384 0.1821083274707399
8 | 448 0.16584069589852016
9 | 512 0.1508546288291888
10 | 576 0.14254292317903744
11 | 640 0.1349091637306357
12 | 704 0.12777983981153854
13 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_prn_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.22778320216345269
3 | 256 0.193102401302139
4 | 384 0.17152390865119696
5 | 512 0.155224256277339
6 | 640 0.1419857118458916
7 | 768 0.1332947002498798
8 | 896 0.1296598247798111
9 | 1024 0.12735401331140664
10 | 1152 0.12735401331140664
11 | 1280 0.12735401331140664
12 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_stg_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 32 0.1908745565422482
3 | 64 0.16264540859661777
4 | 96 0.14775212158066683
5 | 128 0.13644539530211752
6 | 160 0.12985526228325656
7 | 192 0.12491413968580664
8 | 224 0.12088048982847632
9 | 256 0.11813936082997073
10 | 288 0.11612253590130557
11 | 320 0.11410571097264041
12 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_prn_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.6896185
3 | 512 0.604937
4 | 768 0.544243875
5 | 1024 0.504979875
6 | 1280 0.4678905
7 | 1536 0.44951575
8 | 1792 0.433434
9 | 2048 0.400691625
10 | 2304 0.36556875
11 | 2560 0.35397975
12 | 2816 0.328818625
13 | 3072 0.310785875
14 | 3328 0.298309375
15 | 3584 0.28536175
16 | 3840 0.282961625
17 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_prn_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.820883375
3 | 512 0.689719625
4 | 768 0.60420275
5 | 1024 0.528430875
6 | 1280 0.484910125
7 | 1536 0.451657875
8 | 1792 0.424585875
9 | 2048 0.389964
10 | 2304 0.37373825
11 | 2560 0.352934
12 | 2816 0.337695375
13 | 3072 0.321454
14 | 3328 0.309033
15 | 3584 0.28913275
16 | 3840 0.2833075
17 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_proj_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 64 0.3849307046190293
3 | 128 0.30433440548568313
4 | 192 0.24550055816939376
5 | 256 0.2085588814266412
6 | 320 0.18106655329689214
7 | 384 0.16737625351400537
8 | 448 0.14840890950081004
9 | 512 0.13482347360317992
10 | 576 0.12642773481698766
11 | 640 0.11805850789343368
12 | 704 0.10736120803195816
13 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_fb_trace3_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.5336506195838181
3 | 512 0.38010288838393824
4 | 768 0.2800637124841482
5 | 1024 0.20924422354484845
6 | 1280 0.1583024762314869
7 | 1536 0.12265221789229869
8 | 1792 0.10112935381750854
9 | 2048 0.09661322735307948
10 | 2304 0.09661322735307948
11 | 2560 0.09661322735307948
12 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_fb_trace4_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.5340807984410941
3 | 512 0.3805631541969284
4 | 768 0.28042102734810015
5 | 1024 0.20940306534065456
6 | 1280 0.15853896706002382
7 | 1536 0.12276137900360422
8 | 1792 0.10116332615848157
9 | 2048 0.09659227059527528
10 | 2304 0.09659227059527528
11 | 2560 0.09659227059527528
12 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_fb_trace5_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.5289178503543496
3 | 512 0.3744280772451776
4 | 768 0.27417540283929814
5 | 1024 0.2034186136941689
6 | 1280 0.1530001544531002
7 | 1536 0.11864636992526488
8 | 1792 0.0988565813707829
9 | 2048 0.09646022987899104
10 | 2304 0.09646022987899104
11 | 2560 0.09646022987899104
12 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_fb_trace6_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.5314894880335573
3 | 512 0.37738941454261477
4 | 768 0.2771231824800048
5 | 1024 0.20616760077387958
6 | 1280 0.15560709808969578
7 | 1536 0.12055698156282554
8 | 1792 0.10000329865399575
9 | 2048 0.09659321919479089
10 | 2304 0.09659321919479089
11 | 2560 0.09659321919479089
12 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_twi_trace2_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.48278333333333334
3 | 512 0.43548766666666666
4 | 768 0.40460483333333336
5 | 1024 0.379749
6 | 1280 0.3583945
7 | 1536 0.3397475
8 | 1792 0.3231535
9 | 2048 0.3081313333333333
10 | 2304 0.29457333333333335
11 | 2560 0.2821725
12 | 2816 0.27073783333333334
13 | 3072 0.26023183333333333
14 | 3328 0.25046016666666665
15 |
--------------------------------------------------------------------------------
/gem/loca.gemspec:
--------------------------------------------------------------------------------
1 | Gem::Specification.new do |s|
2 | s.name = 'loca'
3 | s.version = '0.0.0'
4 | s.date = ''
5 | s.summary = ""
6 | s.description = ""
7 | s.authors = ["Chen Ding and Group"]
8 | s.email = 'cding@cs.rochester.edu'
9 | s.files = ["lib/loca.rb"]
10 | s.homepage =
11 | 'http://rubygems.org/gems/loca'
12 | end
13 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_facebook_trace3_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 0 0.0
3 | 256 0.8533902126207047
4 | 512 0.7167163583357198
5 | 768 0.5920905620955069
6 | 1024 0.4829829329917746
7 | 1280 0.39322160273211626
8 | 1536 0.32726868166368883
9 | 1792 0.2853298100925988
10 | 2048 0.2534051476033049
11 | 2304 0.22436077611115418
12 | 2560 0.19721417087250054
13 | 2816 0.17256709038678003
14 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_src1_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.9057411475409836
3 | 256 0.8796622950819672
4 | 384 0.864605737704918
5 | 512 0.8547139344262296
6 | 640 0.8466562295081967
7 | 768 0.8385985245901639
8 | 896 0.832114262295082
9 | 1024 0.8267424590163934
10 | 1152 0.8230519672131148
11 | 1280 0.8203660655737705
12 | 1408 0.8176801639344262
13 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_prn_1_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.53980875
3 | 512 0.46827275
4 | 768 0.42302175
5 | 1024 0.388002625
6 | 1280 0.362376
7 | 1536 0.341055625
8 | 1792 0.321372125
9 | 2048 0.304988125
10 | 2304 0.2902125
11 | 2560 0.2779245
12 | 2816 0.266387125
13 | 3072 0.258195125
14 | 3328 0.253694875
15 | 3584 0.249598875
16 | 3840 0.24556125
17 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_proj_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 64 0.2647820204122405
3 | 128 0.19255045065432225
4 | 192 0.15460274340967173
5 | 256 0.1311688606811087
6 | 320 0.11364901702535007
7 | 384 0.10059594879801843
8 | 448 0.0922998662097789
9 | 512 0.08648240606515668
10 | 576 0.08066494592053448
11 | 640 0.07661573232865998
12 | 704 0.07273742556557851
13 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_facebook_trace3_mrc_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 0 0.0
3 | 256 0.842112974045919
4 | 512 0.6990066530798759
5 | 768 0.5749193122402606
6 | 1024 0.4523436645633233
7 | 1280 0.34213088465322505
8 | 1536 0.2520579666855123
9 | 1792 0.18846242269298585
10 | 2048 0.13918077071712365
11 | 2304 0.1118163952372568
12 | 2560 0.10386977150045212
13 | 2816 0.10256428723458896
14 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_hm_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.36585559469874157
3 | 256 0.32102267889643593
4 | 384 0.2962880974107734
5 | 512 0.27669435626932604
6 | 640 0.25837875089274176
7 | 768 0.2393073826363854
8 | 896 0.22192458598317788
9 | 1024 0.20742009898540462
10 | 1152 0.1957924191323702
11 | 1280 0.1857326091899564
12 | 1408 0.17545593687051061
13 | 1536 0.16875649209829624
14 |
--------------------------------------------------------------------------------
/policies/arc/README.md:
--------------------------------------------------------------------------------
1 | # Adaptive replacement cache
2 |
3 | ## How to run
4 |
5 | Please refer to the README file in **LRU** directory.
6 |
7 |
8 |
9 | ## Implementation
10 |
11 | This is an implementation that strictly follows the algorithm in Fig.4 of the [original ARC paper](https://www.usenix.org/legacy/event/fast03/tech/full_papers/megiddo/megiddo.pdf).
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_hm_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.3434015740302045
3 | 256 0.30664064652033546
4 | 384 0.28104287264018174
5 | 512 0.2640554867183063
6 | 640 0.2464272799848547
7 | 768 0.22686258738351786
8 | 896 0.2129358157481151
9 | 1024 0.20077449417977442
10 | 1152 0.19049732102343014
11 | 1280 0.1813673147830024
12 | 1408 0.1724196131736131
13 | 1536 0.16274795182750376
14 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_hm_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 128 0.3925782482528305
3 | 256 0.3413654216195262
4 | 384 0.30216341506657624
5 | 512 0.2760918494804819
6 | 640 0.26051006231412693
7 | 768 0.23859669507747447
8 | 896 0.2226044720728337
9 | 1024 0.20773662790522965
10 | 1152 0.19495652234884492
11 | 1280 0.1834555542311202
12 | 1408 0.17386152260427173
13 | 1536 0.1646303473103556
14 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_twi_trace2_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.371663
3 | 512 0.313303
4 | 768 0.27808066666666664
5 | 1024 0.25346066666666667
6 | 1280 0.234805
7 | 1536 0.219144
8 | 1792 0.20822133333333334
9 | 2048 0.19729866666666668
10 | 2304 0.18993933333333332
11 | 2560 0.184478
12 | 2816 0.17901666666666666
13 | 3072 0.17355533333333334
14 | 3328 0.168094
15 |
--------------------------------------------------------------------------------
/policies/lirs/lirs/run:
--------------------------------------------------------------------------------
1 | ./lirs traces/msr/stg_1/trace 1 1
2 | ./lirs traces/msr/stg_1/trace 1 2
3 | ./lirs traces/msr/stg_1/trace 1 3
4 | ./lirs traces/msr/stg_1/trace 1 4
5 | ./lirs traces/msr/stg_1/trace 1 5
6 | ./lirs traces/msr/stg_1/trace 1 6
7 | ./lirs traces/msr/stg_1/trace 1 7
8 | ./lirs traces/msr/stg_1/trace 1 8
9 | ./lirs traces/msr/stg_1/trace 1 9
10 | ./lirs traces/msr/stg_1/trace 1 10
11 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_twi_trace2_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 0 0.0
3 | 256 0.4597501666666667
4 | 512 0.4158905
5 | 768 0.38471133333333335
6 | 1024 0.35962883333333334
7 | 1280 0.3387293333333333
8 | 1536 0.3208088333333333
9 | 1792 0.3050216666666667
10 | 2048 0.2910575
11 | 2304 0.2784776666666667
12 | 2560 0.267041
13 | 2816 0.25647233333333336
14 | 3072 0.24643616666666668
15 | 3328 0.23637283333333334
16 |
--------------------------------------------------------------------------------
/policies/lc/lc_with_item_size/central_storage.h:
--------------------------------------------------------------------------------
1 | #ifndef _L_CENTRAL_STORAGE_H_
2 | #define _L_CENTRAL_STORAGE_H_
3 |
4 | /* right now I am only a counter. */
5 | typedef struct _LCentralStorage_t {
6 | int64_t communications;
7 | int64_t fetches;
8 | int64_t fetch_amount;
9 | int64_t returns;
10 | int64_t return_amount;
11 | }LCentralStorage_t;
12 |
13 | #endif /* _L_CENTRAL_STORAGE_H_ */
14 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_proj_4_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.9692601148935164
3 | 512 0.9245539381335705
4 | 768 0.8837462159579278
5 | 1024 0.8726149109159976
6 | 1280 0.8680237173773544
7 | 1536 0.8617736004128903
8 | 1792 0.8571257999402688
9 | 2048 0.8560895527882085
10 | 2304 0.850701222261249
11 | 2560 0.8468109648559098
12 | 2816 0.8441062051252785
13 | 3072 0.8427728489017094
14 | 3328 0.8406369424584329
15 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_proj_4_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.945420553173476
3 | 512 0.8926639733520538
4 | 768 0.8798723529105167
5 | 1024 0.8764157726715024
6 | 1280 0.8658381638690313
7 | 1536 0.8577840488774582
8 | 1792 0.8405555893238085
9 | 2048 0.8499653321195322
10 | 2304 0.8382886826808611
11 | 2560 0.7218537873828094
12 | 2816 0.6912996534449263
13 | 3072 0.6577272563469752
14 | 3328 0.6455420724850243
15 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_proj_4_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.9662775790606312
3 | 512 0.9309546975944683
4 | 768 0.8980222991107298
5 | 1024 0.8706890378507058
6 | 1280 0.8585046273075252
7 | 1536 0.8573860990383162
8 | 1792 0.8488664461470862
9 | 2048 0.8475375751723844
10 | 2304 0.8463202167643445
11 | 2560 0.8461248764429935
12 | 2816 0.842846468848632
13 | 3072 0.8389756990763017
14 | 3328 0.8227299730158149
15 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/2q_msr_src1_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 512 0.9571883636363636
3 | 1024 0.9450958181818182
4 | 1536 0.9354112727272728
5 | 2048 0.925406
6 | 2560 0.9170489090909091
7 | 3072 0.9123192727272728
8 | 3584 0.9082663636363636
9 | 4096 0.9015850909090909
10 | 4608 0.8967989090909091
11 | 5120 0.8952823636363636
12 | 5632 0.8947003636363636
13 | 6144 0.894398
14 | 6656 0.8941652727272728
15 | 7168 0.8939705454545455
16 |
--------------------------------------------------------------------------------
/policies/lfu/mrcs/lfu_msr_src1_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 512 0.9564994545454546
3 | 1024 0.9441685454545454
4 | 1536 0.9341361818181818
5 | 2048 0.924496
6 | 2560 0.9138438181818181
7 | 3072 0.9067078181818182
8 | 3584 0.8999489090909091
9 | 4096 0.8958778181818182
10 | 4608 0.8944430909090909
11 | 5120 0.8939
12 | 5632 0.8866876363636363
13 | 6144 0.8793483636363636
14 | 6656 0.8787727272727273
15 | 7168 0.8778532727272728
16 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/arc_msr_src1_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 512 0.9534730909090909
3 | 1024 0.9428234545454546
4 | 1536 0.9311592727272727
5 | 2048 0.9256781818181818
6 | 2560 0.9166674545454545
7 | 3072 0.9057534545454545
8 | 3584 0.8998736363636364
9 | 4096 0.895662
10 | 4608 0.894376
11 | 5120 0.8939845454545454
12 | 5632 0.8866683636363636
13 | 6144 0.879341090909091
14 | 6656 0.8787721818181818
15 | 7168 0.8779490909090909
16 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_proj_4_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 256 0.8663333972094638
3 | 512 0.8088304961040974
4 | 768 0.7581502771806468
5 | 1024 0.7119786613511828
6 | 1280 0.6663664643200773
7 | 1536 0.6207542672889718
8 | 1792 0.5787571808447703
9 | 2048 0.5403580373107747
10 | 2304 0.5092053546447614
11 | 2560 0.4920285527849606
12 | 2816 0.4813750040792565
13 | 3072 0.47515056129796296
14 | 3328 0.4700825394056179
15 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/stream8_reverse_txt:
--------------------------------------------------------------------------------
1 | 2000
2 | 1000
3 | 600
4 | 500
5 | 2000
6 | 1000
7 | 400
8 | 300
9 | 2000
10 | 1000
11 | 200
12 | 100
13 | 2000
14 | 1000
15 | 800
16 | 700
17 | 2000
18 | 1000
19 | 600
20 | 500
21 | 2000
22 | 1000
23 | 400
24 | 300
25 | 2000
26 | 1000
27 | 200
28 | 100
29 | 2000
30 | 1000
31 | 600
32 | 500
33 | 2000
34 | 1000
35 | 400
36 | 300
37 | 2000
38 | 1000
39 | 200
40 | 100
41 | 2000
42 | 1000
43 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/mrcs/opt_msr_src1_0_mrc:
--------------------------------------------------------------------------------
1 | memory miss_ratio
2 | 512 0.8895605454545454
3 | 1024 0.8663438181818182
4 | 1536 0.8544281818181818
5 | 2048 0.8425125454545455
6 | 2560 0.8305969090909091
7 | 3072 0.8186812727272728
8 | 3584 0.8067656363636364
9 | 4096 0.79485
10 | 4608 0.7829343636363636
11 | 5120 0.7710187272727272
12 | 5632 0.7591030909090909
13 | 6144 0.7471874545454545
14 | 6656 0.7352718181818182
15 | 7168 0.7233561818181818
16 |
--------------------------------------------------------------------------------
/policies/2q/mrcs/facebook_trace3_mrc:
--------------------------------------------------------------------------------
1 | memory accesses misses hits miss_ratio
2 | 256 5276203 4502660 773543 0.8533902126207047
3 | 512 5276203 3781541 1494662 0.7167163583357198
4 | 768 5276203 3123990 2152213 0.5920905620955069
5 | 1024 5276203 2548316 2727887 0.4829829329917746
6 | 1280 5276203 2074717 3201486 0.39322160273211626
7 | 1536 5276203 1726736 3549467 0.32726868166368883
8 | 1792 5276203 1505458 3770745 0.2853298100925988
9 | 2048 5276203 1337017 3939186 0.2534051476033049
10 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/README.md:
--------------------------------------------------------------------------------
1 | # Optimal Cache Replacement
2 |
3 | #### Usage
4 |
5 | 1. make;
6 | 2. ./gen-forward-OPT-distance.rb
7 |
8 | It will give us the reuse distance histogram of the trace. Miss ratio is computed as *mr(C) = Probability (distance > C)*
9 |
10 | After we get the hitogram file, run the Python script get_mrc.py the same way as run the **LRU** simulator. Then we get the miss ratio curve files in directory **mrcs**.
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/policies/2q/README.md:
--------------------------------------------------------------------------------
1 | # 2 Queues
2 |
3 | ## How to run
4 |
5 | Please refer to the README file in **LRU** directory.
6 |
7 |
8 |
9 | ## Implementation
10 |
11 | This implementation uses a LRU queue an a First-In-First-Out(FIFO) queue. These two queues are the same long.
12 |
13 | 1. If an accessed item is not in the cache, put it in the FIFO queue.
14 | 2. If the accessed item is in the FIFO, then transfer it from FIFO to LRU queues.
15 | 3. These two queues kick out items by their own rules.
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/policies/lc/lc_with_item_size/attrs.h:
--------------------------------------------------------------------------------
1 | #ifndef _L_ATTRS_H_
2 | #define _L_ATTRS_H_
3 |
4 | /* the optimization of if-statement branches */
5 | #define LIKELY(x) __builtin_expect((x),1)
6 | #define UNLIKELY(x) __builtin_expect((x),0)
7 |
8 | /**
9 | * An attribute that will cause a variable or field to be aligned so that
10 | * it doesn't have false sharing with anything at a smaller memory address.
11 | */
12 | #define ATTR_ALIGN_TO_AVOID_FALSE_SHARING __attribute__((__aligned__(128)))
13 |
14 | #endif /* _L_ATTRS_H_ */
15 |
--------------------------------------------------------------------------------
/gem/lib/src/myEntry.java:
--------------------------------------------------------------------------------
1 | import java.util.Map.Entry;
2 |
3 |
4 | public class myEntry implements Entry{
5 |
6 | private K key;
7 | private V value;
8 |
9 | public myEntry(K k, V v){
10 | key = k;
11 | value = v;
12 | }
13 |
14 | @Override
15 | public K getKey() {
16 | return key;
17 | }
18 |
19 | @Override
20 | public V getValue() {
21 | return value;
22 | }
23 |
24 | @Override
25 | public V setValue(V value) {
26 | this.value = value;
27 | return value;
28 | }
29 |
30 | }
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/swim_pattern_notes.txt:
--------------------------------------------------------------------------------
1 | small: 256x256, 524KB per array size, 2KB per row/column
2 | medium: 384x384,
3 | large: 512x512, 2MB per array
4 |
5 | The distance may drop.
6 | s: 134 14 0.00463311566677469 2855.44071371728 96.65
7 | m: 134 14 -0.00535366697641987 126.418492572122 99.55
8 |
9 | s 116 8 0.13118879581464 673.023725797797 100.00
10 | s 117 8 0.297652759629109 103299.34606804 97.92
11 |
12 | lg 116 8 0.129527519957976 1480.25572348685 100.0
13 | lg 117 8 0.290446575671649 406353.219812399 96.76
14 |
--------------------------------------------------------------------------------
/doc/Site/external_software_files/external_software.js:
--------------------------------------------------------------------------------
1 | // Created by iWeb 3.0.3 local-build-20120529
2 |
3 | setTransparentGifURL('Media/transparent.gif');function hostedOnDM()
4 | {return false;}
5 | function onPageLoad()
6 | {loadMozillaCSS('external_software_files/external_softwareMoz.css')
7 | adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');Widget.onload();fixAllIEPNGs('Media/transparent.gif');performPostEffectsFixups()}
8 | function onPageUnload()
9 | {Widget.onunload();}
10 |
--------------------------------------------------------------------------------
/doc/Site/installation_files/installation.js:
--------------------------------------------------------------------------------
1 | // Created by iWeb 3.0.3 local-build-20120529
2 |
3 | setTransparentGifURL('Media/transparent.gif');function hostedOnDM()
4 | {return false;}
5 | function onPageLoad()
6 | {loadMozillaCSS('installation_files/installationMoz.css')
7 | adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('Media/transparent.gif');performPostEffectsFixups()}
8 | function onPageUnload()
9 | {Widget.onunload();}
10 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/2_arrays_txt:
--------------------------------------------------------------------------------
1 | 1000
2 | 100
3 | 2000
4 | 200
5 | 3000
6 | 300
7 | 4000
8 | 400
9 | 5000
10 | 500
11 | 6000
12 | 600
13 | 7000
14 | 700
15 | 100
16 | 200
17 | 300
18 | 400
19 | 500
20 | 600
21 | 700
22 | 1000
23 | 100
24 | 2000
25 | 200
26 | 3000
27 | 300
28 | 4000
29 | 400
30 | 5000
31 | 500
32 | 6000
33 | 600
34 | 7000
35 | 700
36 | 100
37 | 200
38 | 300
39 | 400
40 | 500
41 | 600
42 | 700
43 | 1000
44 | 10000
45 | 2000
46 | 20000
47 | 3000
48 | 30000
49 | 4000
50 | 40000
51 | 5000
52 | 50000
53 | 6000
54 | 60000
55 | 7000
56 | 70000
57 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/temp/2_arrays_txt:
--------------------------------------------------------------------------------
1 | 1000
2 | 100
3 | 2000
4 | 200
5 | 3000
6 | 300
7 | 4000
8 | 400
9 | 5000
10 | 500
11 | 6000
12 | 600
13 | 7000
14 | 700
15 | 100
16 | 200
17 | 300
18 | 400
19 | 500
20 | 600
21 | 700
22 | 1000
23 | 100
24 | 2000
25 | 200
26 | 3000
27 | 300
28 | 4000
29 | 400
30 | 5000
31 | 500
32 | 6000
33 | 600
34 | 7000
35 | 700
36 | 100
37 | 200
38 | 300
39 | 400
40 | 500
41 | 600
42 | 700
43 | 1000
44 | 10000
45 | 2000
46 | 20000
47 | 3000
48 | 30000
49 | 4000
50 | 40000
51 | 5000
52 | 50000
53 | 6000
54 | 60000
55 | 7000
56 | 70000
57 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/temp/2_reverse_txt:
--------------------------------------------------------------------------------
1 | 70000
2 | 7000
3 | 60000
4 | 6000
5 | 50000
6 | 5000
7 | 40000
8 | 4000
9 | 30000
10 | 3000
11 | 20000
12 | 2000
13 | 10000
14 | 1000
15 | 700
16 | 600
17 | 500
18 | 400
19 | 300
20 | 200
21 | 100
22 | 700
23 | 7000
24 | 600
25 | 6000
26 | 500
27 | 5000
28 | 400
29 | 4000
30 | 300
31 | 3000
32 | 200
33 | 2000
34 | 100
35 | 1000
36 | 700
37 | 600
38 | 500
39 | 400
40 | 300
41 | 200
42 | 100
43 | 700
44 | 7000
45 | 600
46 | 6000
47 | 500
48 | 5000
49 | 400
50 | 4000
51 | 300
52 | 3000
53 | 200
54 | 2000
55 | 100
56 | 1000
57 |
--------------------------------------------------------------------------------
/policies/arc/mrcs/facebook_trace3_mrc:
--------------------------------------------------------------------------------
1 | memory accesses misses hits miss_ratio
2 | 128 5276203 4851480 424723 0.9195021495571721
3 | 256 5276203 4443159 833044 0.842112974045919
4 | 384 5276203 4053343 1222860 0.7682310555526389
5 | 512 5276203 3688101 1588102 0.6990066530798759
6 | 640 5276203 3348834 1927369 0.6347052984883258
7 | 768 5276203 3033391 2242812 0.5749193122402606
8 | 896 5276203 2717459 2558744 0.5150406457067706
9 | 1024 5276203 2386657 2889546 0.4523436645633233
10 | 1152 5276203 2067988 3208215 0.3919462537737839
11 | 1280 5276203 1805152 3471051 0.34213088465322505
12 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/Makefile:
--------------------------------------------------------------------------------
1 | CC = gcc
2 | #CFLAGS = -O0 -g
3 | CFLAGS = -O2 -Wno-return-type
4 | LDFLAGS = -lm
5 |
6 | all: OPTStackDistanceAnalyzer
7 |
8 | OPTStackDistanceAnalyzer: OPTStackDistanceAnalyzer.o
9 | ${CC} ${LDFLAGS} OPTStackDistanceAnalyzer.o -o OPTStackDistanceAnalyzer
10 | ${CC} ${LDFLAGS} reverse_file.o -o reverse_file
11 |
12 | OPTStackDistanceAnalyzer.o: OPTStackDistanceAnalyzer.c
13 | ${CC} ${CFLAGS} -c OPTStackDistanceAnalyzer.c
14 | ${CC} ${CFLAGS} -c reverse_file.c
15 |
16 | clean:
17 | rm -rf *.o OPTStackDistanceAnalyzer reverse_file
18 |
--------------------------------------------------------------------------------
/policies/ForwardOPTStackDistanceAnalyzer/debugging_original_trace.txt:
--------------------------------------------------------------------------------
1 | 0x8 0
2 | 0x6 0
3 | 0x9 0
4 | 0x9 0
5 | 0x3 0
6 | 0x2 0
7 | 0x2 0
8 | 0x5 0
9 | 0x4 0
10 | 0x2 0
11 | 0x7 0
12 | 0x2 0
13 | 0x5 0
14 | 0x4 0
15 | 0x1 0
16 | 0x3 0
17 | 0x5 0
18 | 0x1 0
19 | 0x3 0
20 | 0x9 0
21 | 0x6 0
22 | 0x2 0
23 | 0x1 0
24 | 0x6 0
25 | 0x3 0
26 | 0x3 0
27 | 0x5 0
28 | 0x9 0
29 | 0x3 0
30 | 0x6 0
31 | 0x2 0
32 | 0x1 0
33 | 0x4 0
34 | 0x1 0
35 | 0x8 0
36 | 0x7 0
37 | 0x7 0
38 | 0x7 0
39 | 0x3 0
40 | 0x6 0
41 | 0x8 0
42 | 0x9 0
43 | 0x9 0
44 | 0x8 0
45 | 0x8 0
46 | 0x3 0
47 | 0x9 0
48 | 0x6 0
49 | 0x2 0
50 | 0x6 0
51 |
--------------------------------------------------------------------------------
/INSTALL.md:
--------------------------------------------------------------------------------
1 | -- To install on Mac --
2 | 1. You need to disable SIP. You can do this by going to Recovery Mode in Mac, by restarting your computer holding down Command+R.
3 | a. After starting in Recovery Mode, Click Utilities and Terminal.
4 | b. In the terminal, type the command 'csrutil disable'
5 | c. Restart the computer, SIP is disabled.
6 | EXTRA: If you still recieve an error about task_for_pid, Make sure
7 | to configure PIN by running their host_config (located in
8 | pin/sbin/host_config)
9 |
10 | 2. GCC vs LLVM
11 |
12 | The LLVM compiler installed on Mac machines is sufficient.
13 |
--------------------------------------------------------------------------------
/doc/Site/installation_files/installationIE.css:
--------------------------------------------------------------------------------
1 | .inline-block {
2 | display: inline;
3 | vertical-align: baseline;
4 | margin-bottom:-2em;
5 | margin-top:2em;
6 | position:relative;
7 | top:-2em;
8 | }
9 | .vertical-align-middle-middlebox {
10 | display: block;
11 | height: auto;
12 | position: absolute;
13 | top: 50%;
14 | }
15 | .vertical-align-middle-innerbox {
16 | display: block;
17 | position: relative;
18 | top: -50%;
19 | }
20 | li.full-width {
21 | width: auto;
22 | }
23 | li div div.inline-block a img {
24 | text-indent: 0;
25 | }
26 | img {
27 | -ms-interpolation-mode: bicubic;
28 | }
29 |
--------------------------------------------------------------------------------
/doc/Site/external_software_files/external_softwareIE.css:
--------------------------------------------------------------------------------
1 | .inline-block {
2 | display: inline;
3 | vertical-align: baseline;
4 | margin-bottom:-2em;
5 | margin-top:2em;
6 | position:relative;
7 | top:-2em;
8 | }
9 | .vertical-align-middle-middlebox {
10 | display: block;
11 | height: auto;
12 | position: absolute;
13 | top: 50%;
14 | }
15 | .vertical-align-middle-innerbox {
16 | display: block;
17 | position: relative;
18 | top: -50%;
19 | }
20 | li.full-width {
21 | width: auto;
22 | }
23 | li div div.inline-block a img {
24 | text-indent: 0;
25 | }
26 | img {
27 | -ms-interpolation-mode: bicubic;
28 | }
29 |
--------------------------------------------------------------------------------
/policies/lc/lc_with_item_size/declarations.h:
--------------------------------------------------------------------------------
1 | #ifndef _DECLARATIONS_H_
2 | #define _DECLARATIONS_H_
3 |
4 | struct _LStats_t;
5 | struct _LItem_t;
6 | struct _HashTableElem_t;
7 | struct _HashTable_t;
8 | struct _LLeaseLRUCache_t;
9 | struct _LLRUCache_t;
10 | struct _LOrderedLeaseCache_t;
11 | struct _LWorkload_t;
12 |
13 | typedef struct _HashTable_t HashTable_t;
14 | typedef struct _HashTableElem_t HashTableElem_t;
15 | typedef struct _LLeaseLRUCache_t LLeeCache_t;
16 | typedef struct _LItem_t LItem_t;
17 | typedef struct _LStats_t LStats_t;
18 | typedef struct _LLRUCache_t LLRUCache_t;
19 | typedef struct _LOrderedLeaseCache_t LOrderedLeaseCache_t;
20 | typedef struct _LWorkload_t LWorkload_t;
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/gem/lib/src/email.rb:
--------------------------------------------------------------------------------
1 | require 'net/smtp'
2 |
3 | def send_email(to,opts={})
4 | opts[:server] ||= 'localhost'
5 | opts[:from] ||= 'loca_user@unknown.site.com'
6 | opts[:from_alias] ||= 'Loca User'
7 | opts[:subject] ||= "Loca error report"
8 | opts[:body] ||= "empty message"
9 |
10 | msg = <
12 | To: <#{to}>
13 | Subject: #{opts[:subject]}
14 |
15 | #{opts[:body]}
16 | END_OF_MESSAGE
17 |
18 | begin
19 | Net::SMTP.start(opts[:server]) do |smtp|
20 | smtp.send_message msg, opts[:from], to
21 | end
22 | rescue Exception
23 | warn "Loca cannot send the error report. Abort."
24 | warn "Printing message here: "
25 | warn msg
26 | end
27 |
28 | end
29 |
--------------------------------------------------------------------------------
/gem/lib/src/Footprint/makefile:
--------------------------------------------------------------------------------
1 | ##############################################################
2 | #
3 | # DO NOT EDIT THIS FILE!
4 | #
5 | ##############################################################
6 |
7 | # If the tool is built out of the kit, PIN_ROOT must be specified in the make invocation and point to the kit root.
8 | ifdef PIN_ROOT
9 | CONFIG_ROOT := $(PIN_ROOT)/source/tools/Config
10 | else
11 | CONFIG_ROOT := ../Config
12 | endif
13 | include $(CONFIG_ROOT)/makefile.config
14 | include makefile.rules
15 | include $(TOOLS_ROOT)/Config/makefile.default.rules
16 |
17 | ##############################################################
18 | #
19 | # DO NOT EDIT THIS FILE!
20 | #
21 | ##############################################################
22 |
--------------------------------------------------------------------------------
/policies/README.md:
--------------------------------------------------------------------------------
1 | # Cache Replacement Policy Simulators
2 |
3 | We compare 7 policies.
4 |
5 | **OPT** is in directory *ForwardOPTStackDistanceAnalyzer*. The program for computing trace's reuse distance histogram is provided by one of Prof. Chen Ding's former students Xiaoming Gu. The miss ratio generator was written by Jie Zhou.
6 |
7 | **LIRS** is provided by LIRS's author [Prof. Jiang Song](http://ranger.uta.edu/~sjiang/).
8 |
9 | **Lease Cache** was written by Pengcheng Li.
10 |
11 | **LRU**, **LFU**, **ARC**, and **2Q** were implemented by Jie Zhou. They have the same input and output formats. Please refer the README file in directory **lru** to see how to use them. And there is some more information about these four policies, please refer to the respective README files.
12 |
--------------------------------------------------------------------------------
/policies/lc/lc_with_item_size/Makefile:
--------------------------------------------------------------------------------
1 | # Get the current OS and architecture
2 | OS ?= $(shell uname -s)
3 | CPU ?= $(shell uname -m)
4 | PLATFORM ?= $(OS).$(CPU)
5 | TARGET_PLATFORM ?= $(PLATFORM)
6 |
7 | # Set the default compilers
8 | CC = gcc
9 | CXX = g++
10 | CLINK = gcc
11 |
12 | # Compile flag options
13 | CFLAGS ?= -O0 -g
14 | CXXFLAGS ?= $(CFLAGS) -std=c++11
15 |
16 | # Don't require any libraries by default
17 | LIBS ?= -lm
18 |
19 | # Set the default include directories
20 | INCLUDE_DIRS ?= -I.
21 |
22 | # Build by default
23 | all: simulator
24 |
25 | SRCS ?= $(wildcard *.c)
26 | OBJS ?= $(patsubst %.c, %.o, $(SRCS))
27 | HEADERS ?= $(wildcard *.h)
28 |
29 | simulator: $(OBJS)
30 | $(CLINK) $< -o $@ $(LIBS)
31 |
32 | %.o: %.c
33 | $(CC) $(CFLAGS) $(INCLUDE_DIRS) $< -c -o $@
34 |
35 | clean:
36 | rm -rf $(OBJS) simulator;
37 |
--------------------------------------------------------------------------------
/policies/lc/lc_with_item_size/item.h:
--------------------------------------------------------------------------------
1 | #ifndef _L_ITEM_H_
2 | #define _L_ITEM_H_
3 |
4 | typedef enum {NONE, LEASE, LRU} POSITION;
5 |
6 | struct _LItem_t {
7 | struct list_head list;
8 | int64_t key_id;
9 | int64_t value;
10 | int32_t lease_time;
11 | int64_t last_access_time;
12 | POSITION lease_or_lru;
13 | HashTableElem_t * hash_node; /* for an easy traversal. */
14 | } ATTR_ALIGN_TO_AVOID_FALSE_SHARING;
15 |
16 | void print_item( struct _LItem_t * item )
17 | {
18 | printf("[LOG] key id: %lld\n", item->key_id);
19 | printf("[LOG] lease time: %d\n", item->lease_time);
20 | printf("[LOG] last access time: %lld\n", item->last_access_time);
21 | printf("[LOG] on lease or lru: %d\n", item->lease_or_lru);
22 | printf("[LOG] address of list: %p\n", &item->list);
23 | }
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/policies/lfu/README.md:
--------------------------------------------------------------------------------
1 | # Least Frequently Used Cache
2 |
3 | ## How to run
4 |
5 | Please refer to the README file in **LRU** directory.
6 |
7 |
8 |
9 | ## Flaw
10 |
11 | This simulator is not perfectly implemented. There is a global varibale *BIN_NUM*. Currently, the simulator can only process traces whose length is less than (1 + 2 + 3 + …. BIN_NUM). For example, if *BIN_NUM* is set to 5000, then the simulator could handle traces that have less than (1 + 2 + 3 + … + 5000) = 12,502,500 accesses. But this shouldn't be a big problem because the sum increases quickly as we increase the value of *BIN_NUM*. When it is set to 10,000, the simulator can handle traces that have 50 million accesses, which is enough for most of the traces we need to test (Jie: maybe not enough for all; I don't know the longest trace from MSR since I haven't tested all of them).
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/server/.current.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | /loca
7 |
8 |
9 |
10 |
11 | ./
12 |
13 |
14 |
15 |
16 | | Name |
17 |
18 |
19 |
20 |
21 | |
22 | [up]
23 | |
24 |
25 |
26 |
27 |
28 | static
29 |
30 | |
31 |
32 |
33 |
34 |
35 |