fix(simulation): correct exponential sampling and cache behavior logic
- Fixed incorrect use of exponential sampling for `next_request` and `next_refresh` timings. - Adjusted cache eviction logic to properly handle capacity checks. - Improved simulation output and logging for least accessed objects. - Corrected CSV export to include index labels for better data clarity. - Reran experiments Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -1,100 +1,100 @@
|
||||
,access_count,hits,misses,mu,lambda,hit_rate,avg_age
|
||||
1,664,224,440,0,1,10.38,0.25892857142857145
|
||||
2,212,22,190,0,3,32.39,0.36363636363636365
|
||||
3,673,218,455,0,1,34.6,0.24311926605504589
|
||||
4,711,246,465,0,1,19.13,0.25609756097560976
|
||||
5,345,66,279,0,2,31.74,0.24242424242424243
|
||||
6,649,206,443,0,1,10.22,0.24757281553398058
|
||||
7,137,14,123,0,5,32.45,0.21428571428571427
|
||||
8,681,221,460,0,1,34.4,0.2579185520361991
|
||||
9,689,237,452,0,1,34.18,0.23628691983122363
|
||||
10,667,228,439,0,1,21.95,0.2236842105263158
|
||||
11,328,72,256,0,2,34.97,0.2361111111111111
|
||||
12,692,242,450,0,1,32.21,0.30578512396694213
|
||||
13,683,220,463,0,1,33.62,0.22727272727272727
|
||||
14,696,234,462,0,1,20.35,0.2692307692307692
|
||||
15,344,70,274,0,2,18.4,0.2
|
||||
16,326,60,266,0,2,29.9,0.2
|
||||
17,689,206,483,0,1,32.85,0.2524271844660194
|
||||
18,691,227,464,0,1,11.87,0.24669603524229075
|
||||
19,219,26,193,0,3,34.84,0.2692307692307692
|
||||
20,732,255,477,0,1,35.05,0.25882352941176473
|
||||
21,739,259,480,0,1,34.55,0.21235521235521235
|
||||
22,683,236,447,0,1,35.22,0.288135593220339
|
||||
23,670,236,434,0,1,19.94,0.19915254237288135
|
||||
24,331,66,265,0,2,34.67,0.18181818181818182
|
||||
25,724,251,473,0,1,32.08,0.2589641434262948
|
||||
26,692,222,470,0,1,34.18,0.2072072072072072
|
||||
27,705,241,464,0,1,8.76,0.23651452282157676
|
||||
28,137,12,125,0,5,34.23,0.16666666666666666
|
||||
29,672,230,442,0,1,31.7,0.24782608695652175
|
||||
30,694,220,474,0,1,33.09,0.2818181818181818
|
||||
31,674,223,451,0,1,9.03,0.2600896860986547
|
||||
32,144,13,131,0,4,34.63,0.3076923076923077
|
||||
33,670,232,438,0,1,7.09,0.24568965517241378
|
||||
34,141,10,131,0,4,32.78,0.3
|
||||
35,659,216,443,0,1,32.27,0.2638888888888889
|
||||
36,691,223,468,0,1,36.91,0.29596412556053814
|
||||
37,737,272,465,0,1,14.16,0.22058823529411764
|
||||
38,219,31,188,0,3,5.0,0.3870967741935484
|
||||
39,100,5,95,0,8,32.77,0.2
|
||||
40,714,234,480,0,1,12.5,0.27350427350427353
|
||||
41,184,23,161,0,4,7.45,0.30434782608695654
|
||||
42,161,12,149,0,4,21.55,0.25
|
||||
43,362,78,284,0,2,32.61,0.32051282051282054
|
||||
44,696,227,469,0,1,29.98,0.24669603524229075
|
||||
45,627,188,439,0,1,32.56,0.3404255319148936
|
||||
46,648,211,437,0,1,1.89,0.27014218009478674
|
||||
47,53,1,52,0,10,31.51,0.0
|
||||
48,676,213,463,0,1,31.35,0.23943661971830985
|
||||
49,638,200,438,0,1,32.69,0.27
|
||||
50,673,220,453,0,1,12.5,0.22727272727272727
|
||||
51,128,16,112,0,5,3.53,0.25
|
||||
52,85,3,82,0,9,33.33,0.3333333333333333
|
||||
53,747,249,498,0,1,33.0,0.26506024096385544
|
||||
54,700,231,469,0,1,35.08,0.24675324675324675
|
||||
55,687,241,446,0,1,37.5,0.24481327800829875
|
||||
56,720,270,450,0,1,31.3,0.25925925925925924
|
||||
57,690,216,474,0,1,0.0,0.2638888888888889
|
||||
58,40,0,40,0,17,19.18,0.0
|
||||
59,318,61,257,0,2,31.31,0.14754098360655737
|
||||
60,674,211,463,0,1,13.04,0.1990521327014218
|
||||
61,23,3,20,0,26,35.22,0.0
|
||||
62,724,255,469,0,1,32.32,0.2549019607843137
|
||||
63,628,203,425,0,1,24.93,0.2315270935960591
|
||||
64,345,86,259,0,2,35.1,0.3372093023255814
|
||||
65,681,239,442,0,1,4.11,0.2803347280334728
|
||||
66,73,3,70,0,10,33.79,0.3333333333333333
|
||||
67,651,220,431,0,1,0.0,0.20909090909090908
|
||||
68,10,0,10,0,69,33.02,0.0
|
||||
69,636,210,426,0,1,32.77,0.32857142857142857
|
||||
70,656,215,441,0,1,22.58,0.26046511627906976
|
||||
71,372,84,288,0,2,33.48,0.2261904761904762
|
||||
72,678,227,451,0,1,33.7,0.2422907488986784
|
||||
73,638,215,423,0,1,33.28,0.2930232558139535
|
||||
74,685,228,457,0,1,10.45,0.19736842105263158
|
||||
75,201,21,180,0,3,20.35,0.2857142857142857
|
||||
76,344,70,274,0,2,21.16,0.3
|
||||
77,345,73,272,0,2,17.24,0.2054794520547945
|
||||
78,261,45,216,0,3,4.26,0.2
|
||||
79,47,2,45,0,15,33.79,0.0
|
||||
80,660,223,437,0,1,30.28,0.27802690582959644
|
||||
81,634,192,442,0,1,5.84,0.2604166666666667
|
||||
82,137,8,129,0,5,18.45,0.125
|
||||
83,309,57,252,0,2,34.11,0.24561403508771928
|
||||
84,686,234,452,0,1,32.99,0.2905982905982906
|
||||
85,682,225,457,0,1,19.25,0.26222222222222225
|
||||
86,322,62,260,0,2,32.99,0.3064516129032258
|
||||
87,676,223,453,0,1,20.92,0.20179372197309417
|
||||
88,325,68,257,0,2,35.27,0.25
|
||||
89,689,243,446,0,1,32.95,0.22633744855967078
|
||||
90,695,229,466,0,1,21.91,0.2794759825327511
|
||||
91,324,71,253,0,2,20.47,0.30985915492957744
|
||||
92,337,69,268,0,2,13.96,0.21739130434782608
|
||||
93,222,31,191,0,3,31.78,0.25806451612903225
|
||||
94,686,218,468,0,1,19.94,0.2889908256880734
|
||||
95,351,70,281,0,2,33.89,0.3142857142857143
|
||||
96,717,243,474,0,1,32.53,0.2139917695473251
|
||||
97,664,216,448,0,1,0.0,0.26851851851851855
|
||||
98,23,0,23,0,37,11.6,0.0
|
||||
99,181,21,160,0,4,22.85,0.3333333333333333
|
||||
obj_id,access_count,hits,misses,mu,lambda,hit_rate,avg_age
|
||||
1,122,41,81,0,1,61.52,0.07317073170731707
|
||||
2,382,235,147,0,3,29.92,0.2553191489361702
|
||||
3,127,38,89,0,1,29.2,0.34210526315789475
|
||||
4,113,33,80,0,1,49.59,0.30303030303030304
|
||||
5,244,121,123,0,2,34.48,0.2231404958677686
|
||||
6,116,40,76,0,1,72.26,0.275
|
||||
7,656,474,182,0,5,30.47,0.22573839662447256
|
||||
8,128,39,89,0,1,32.46,0.15384615384615385
|
||||
9,114,37,77,0,1,28.7,0.2702702702702703
|
||||
10,115,33,82,0,1,52.44,0.24242424242424243
|
||||
11,246,129,117,0,2,37.88,0.17829457364341086
|
||||
12,132,50,82,0,1,35.97,0.22
|
||||
13,139,50,89,0,1,29.17,0.24
|
||||
14,120,35,85,0,1,51.34,0.2
|
||||
15,261,134,127,0,2,48.44,0.26865671641791045
|
||||
16,225,109,116,0,2,32.5,0.22018348623853212
|
||||
17,120,39,81,0,1,33.33,0.20512820512820512
|
||||
18,117,39,78,0,1,59.17,0.23076923076923078
|
||||
19,360,213,147,0,3,34.19,0.17370892018779344
|
||||
20,117,40,77,0,1,35.82,0.275
|
||||
21,134,48,86,0,1,37.41,0.20833333333333334
|
||||
22,147,55,92,0,1,35.21,0.32727272727272727
|
||||
23,142,50,92,0,1,53.03,0.22
|
||||
24,264,140,124,0,2,34.15,0.20714285714285716
|
||||
25,123,42,81,0,1,35.46,0.3333333333333333
|
||||
26,141,50,91,0,1,35.16,0.24
|
||||
27,128,45,83,0,1,69.15,0.2
|
||||
28,564,390,174,0,5,35.34,0.24102564102564103
|
||||
29,133,47,86,0,1,36.0,0.1702127659574468
|
||||
30,125,45,80,0,1,26.96,0.26666666666666666
|
||||
31,115,31,84,0,1,65.81,0.25806451612903225
|
||||
32,468,308,160,0,4,31.9,0.2597402597402597
|
||||
33,116,37,79,0,1,67.27,0.10810810810810811
|
||||
34,498,335,163,0,4,29.55,0.26865671641791045
|
||||
35,132,39,93,0,1,29.0,0.3333333333333333
|
||||
36,100,29,71,0,1,34.9,0.2413793103448276
|
||||
37,149,52,97,0,1,58.59,0.28846153846153844
|
||||
38,355,208,147,0,3,79.63,0.27884615384615385
|
||||
39,962,766,196,0,8,36.72,0.25718015665796345
|
||||
40,128,47,81,0,1,64.56,0.2978723404255319
|
||||
41,474,306,168,0,4,66.26,0.2581699346405229
|
||||
42,495,328,167,0,4,46.48,0.2682926829268293
|
||||
43,213,99,114,0,2,28.57,0.18181818181818182
|
||||
44,112,32,80,0,1,31.78,0.25
|
||||
45,129,41,88,0,1,33.83,0.17073170731707318
|
||||
46,133,45,88,0,1,83.6,0.2222222222222222
|
||||
47,1262,1055,207,0,10,38.24,0.1924170616113744
|
||||
48,136,52,84,0,1,41.84,0.2692307692307692
|
||||
49,141,59,82,0,1,34.45,0.2542372881355932
|
||||
50,119,41,78,0,1,70.12,0.21951219512195122
|
||||
51,599,420,179,0,5,81.56,0.2523809523809524
|
||||
52,1106,902,204,0,9,28.93,0.24833702882483372
|
||||
53,121,35,86,0,1,29.77,0.2
|
||||
54,131,39,92,0,1,33.87,0.20512820512820512
|
||||
55,124,42,82,0,1,36.92,0.38095238095238093
|
||||
56,130,48,82,0,1,32.26,0.1875
|
||||
57,124,40,84,0,1,89.57,0.275
|
||||
58,2118,1897,221,0,17,46.34,0.2672641012124407
|
||||
59,205,95,110,0,2,34.31,0.22105263157894736
|
||||
60,137,47,90,0,1,92.85,0.2127659574468085
|
||||
61,3216,2986,230,0,26,34.78,0.25016744809109176
|
||||
62,138,48,90,0,1,30.77,0.22916666666666666
|
||||
63,117,36,81,0,1,50.76,0.3888888888888889
|
||||
64,264,134,130,0,2,37.41,0.20149253731343283
|
||||
65,139,52,87,0,1,83.73,0.21153846153846154
|
||||
66,1248,1045,203,0,10,35.62,0.2507177033492823
|
||||
67,146,52,94,0,1,97.14,0.4423076923076923
|
||||
68,8414,8173,241,0,69,31.03,0.24715526734369264
|
||||
69,116,36,80,0,1,31.67,0.3611111111111111
|
||||
70,120,38,82,0,1,52.05,0.2631578947368421
|
||||
71,244,127,117,0,2,29.91,0.18110236220472442
|
||||
72,117,35,82,0,1,33.59,0.2857142857142857
|
||||
73,131,44,87,0,1,33.8,0.29545454545454547
|
||||
74,142,48,94,0,1,57.43,0.16666666666666666
|
||||
75,343,197,146,0,3,49.6,0.3197969543147208
|
||||
76,250,124,126,0,2,50.59,0.25
|
||||
77,253,128,125,0,2,60.15,0.2265625
|
||||
78,394,237,157,0,3,88.48,0.25316455696202533
|
||||
79,1910,1690,220,0,15,28.33,0.25443786982248523
|
||||
80,120,34,86,0,1,34.71,0.11764705882352941
|
||||
81,121,42,79,0,1,71.87,0.2619047619047619
|
||||
82,647,465,182,0,5,50.81,0.23655913978494625
|
||||
83,248,126,122,0,2,35.42,0.2698412698412698
|
||||
84,144,51,93,0,1,29.63,0.35294117647058826
|
||||
85,108,32,76,0,1,44.55,0.125
|
||||
86,211,94,117,0,2,36.57,0.19148936170212766
|
||||
87,134,49,85,0,1,47.77,0.22448979591836735
|
||||
88,224,107,117,0,2,36.3,0.2897196261682243
|
||||
89,135,49,86,0,1,28.23,0.2857142857142857
|
||||
90,124,35,89,0,1,48.33,0.2571428571428571
|
||||
91,240,116,124,0,2,47.16,0.23275862068965517
|
||||
92,229,108,121,0,2,61.32,0.2037037037037037
|
||||
93,393,241,152,0,3,29.6,0.22821576763485477
|
||||
94,125,37,88,0,1,54.47,0.10810810810810811
|
||||
95,257,140,117,0,2,33.81,0.16428571428571428
|
||||
96,139,47,92,0,1,35.43,0.2553191489361702
|
||||
97,127,45,82,0,1,94.87,0.1111111111111111
|
||||
98,4578,4343,235,0,37,67.01,0.24038682938061248
|
||||
99,482,323,159,0,4,52.21,0.28173374613003094
|
||||
|
||||
|
Reference in New Issue
Block a user