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,550,114,0,1,58.49,2.596363636363636
|
||||
2,212,124,88,0,3,83.21,2.524193548387097
|
||||
3,673,560,113,0,1,84.11,2.405357142857143
|
||||
4,711,598,113,0,1,72.17,2.4013377926421406
|
||||
5,345,249,96,0,2,82.43,2.4698795180722892
|
||||
6,649,535,114,0,1,50.36,2.3906542056074764
|
||||
7,137,69,68,0,5,83.41,2.739130434782609
|
||||
8,681,568,113,0,1,83.74,2.433098591549296
|
||||
9,689,577,112,0,1,82.91,2.5095320623916813
|
||||
10,667,553,114,0,1,71.34,2.5750452079566
|
||||
11,328,234,94,0,2,83.67,2.4188034188034186
|
||||
12,692,579,113,0,1,83.46,2.5250431778929188
|
||||
13,683,570,113,0,1,83.48,2.5526315789473686
|
||||
14,696,581,115,0,1,70.64,2.495697074010327
|
||||
15,344,243,101,0,2,71.78,2.522633744855967
|
||||
16,326,234,92,0,2,83.45,2.7777777777777777
|
||||
17,689,575,114,0,1,83.65,2.4991304347826087
|
||||
18,691,578,113,0,1,62.56,2.48961937716263
|
||||
19,219,137,82,0,3,84.29,2.562043795620438
|
||||
20,732,617,115,0,1,84.44,2.521880064829822
|
||||
21,739,624,115,0,1,83.31,2.4759615384615383
|
||||
22,683,569,114,0,1,83.13,2.4938488576449913
|
||||
23,670,557,113,0,1,71.3,2.466786355475763
|
||||
24,331,236,95,0,2,83.84,2.5466101694915255
|
||||
25,724,607,117,0,1,83.38,2.3789126853377267
|
||||
26,692,577,115,0,1,83.69,2.5753899480069324
|
||||
27,705,590,115,0,1,48.18,2.422033898305085
|
||||
28,137,66,71,0,5,83.04,2.5757575757575757
|
||||
29,672,558,114,0,1,83.43,2.4408602150537635
|
||||
30,694,579,115,0,1,83.23,2.597582037996546
|
||||
31,674,561,113,0,1,51.39,2.443850267379679
|
||||
32,144,74,70,0,4,83.13,2.554054054054054
|
||||
33,670,557,113,0,1,48.94,2.443447037701975
|
||||
34,141,69,72,0,4,83.0,2.6231884057971016
|
||||
35,659,547,112,0,1,83.36,2.409506398537477
|
||||
36,691,576,115,0,1,84.67,2.4444444444444446
|
||||
37,737,624,113,0,1,62.56,2.3846153846153846
|
||||
38,219,137,82,0,3,41.0,2.81021897810219
|
||||
39,100,41,59,0,8,83.61,2.5121951219512195
|
||||
40,714,597,117,0,1,55.98,2.5008375209380236
|
||||
41,184,103,81,0,4,57.14,2.5728155339805827
|
||||
42,161,92,69,0,4,73.76,2.6847826086956523
|
||||
43,362,267,95,0,2,83.91,2.397003745318352
|
||||
44,696,584,112,0,1,82.46,2.4914383561643834
|
||||
45,627,517,110,0,1,82.72,2.4545454545454546
|
||||
46,648,536,112,0,1,30.19,2.5167910447761193
|
||||
47,53,16,37,0,10,83.14,2.9375
|
||||
48,676,562,114,0,1,82.29,2.597864768683274
|
||||
49,638,525,113,0,1,83.06,2.5238095238095237
|
||||
50,673,559,114,0,1,49.22,2.4991055456171734
|
||||
51,128,63,65,0,5,34.12,2.3492063492063493
|
||||
52,85,29,56,0,9,84.34,2.1724137931034484
|
||||
53,747,630,117,0,1,83.86,2.5365079365079364
|
||||
54,700,587,113,0,1,83.41,2.5792163543441227
|
||||
55,687,573,114,0,1,83.75,2.4223385689354275
|
||||
56,720,603,117,0,1,83.33,2.527363184079602
|
||||
57,690,575,115,0,1,17.5,2.3756521739130436
|
||||
58,40,7,33,0,17,70.13,3.0
|
||||
59,318,223,95,0,2,82.94,2.506726457399103
|
||||
60,674,559,115,0,1,21.74,2.4686940966010735
|
||||
61,23,5,18,0,26,83.84,0.6
|
||||
62,724,607,117,0,1,82.17,2.6227347611202636
|
||||
63,628,516,112,0,1,71.59,2.4108527131782944
|
||||
64,345,247,98,0,2,83.11,2.42914979757085
|
||||
65,681,566,115,0,1,31.51,2.57773851590106
|
||||
66,73,23,50,0,10,83.1,2.782608695652174
|
||||
67,651,541,110,0,1,0.0,2.478743068391867
|
||||
68,10,0,10,0,69,82.55,0.0
|
||||
69,636,525,111,0,1,82.62,2.459047619047619
|
||||
70,656,542,114,0,1,73.12,2.559040590405904
|
||||
71,372,272,100,0,2,83.48,2.6544117647058822
|
||||
72,678,566,112,0,1,82.13,2.487632508833922
|
||||
73,638,524,114,0,1,82.92,2.427480916030534
|
||||
74,685,568,117,0,1,57.71,2.482394366197183
|
||||
75,201,116,85,0,3,72.67,2.7327586206896552
|
||||
76,344,250,94,0,2,72.17,2.576
|
||||
77,345,249,96,0,2,64.75,2.4859437751004014
|
||||
78,261,169,92,0,3,19.15,2.5562130177514795
|
||||
79,47,9,38,0,15,83.48,2.5555555555555554
|
||||
80,660,551,109,0,1,82.18,2.6515426497277677
|
||||
81,634,521,113,0,1,51.09,2.44721689059501
|
||||
82,137,70,67,0,5,69.58,2.557142857142857
|
||||
83,309,215,94,0,2,83.53,2.7209302325581395
|
||||
84,686,573,113,0,1,82.84,2.4694589877835953
|
||||
85,682,565,117,0,1,71.12,2.320353982300885
|
||||
86,322,229,93,0,2,83.28,2.6026200873362444
|
||||
87,676,563,113,0,1,68.62,2.644760213143872
|
||||
88,325,223,102,0,2,83.16,2.4260089686098656
|
||||
89,689,573,116,0,1,83.31,2.5095986038394416
|
||||
90,695,579,116,0,1,73.15,2.542314335060449
|
||||
91,324,237,87,0,2,72.11,2.261603375527426
|
||||
92,337,243,94,0,2,63.51,2.316872427983539
|
||||
93,222,141,81,0,3,83.09,2.5106382978723403
|
||||
94,686,570,116,0,1,71.79,2.507017543859649
|
||||
95,351,252,99,0,2,84.66,2.373015873015873
|
||||
96,717,607,110,0,1,83.28,2.4365733113673804
|
||||
97,664,553,111,0,1,21.74,2.54249547920434
|
||||
98,23,5,18,0,37,56.91,3.4
|
||||
99,181,103,78,0,4,70.62,2.320388349514563
|
||||
obj_id,access_count,hits,misses,mu,lambda,hit_rate,avg_age
|
||||
1,122,101,21,0,1,93.98,2.3564356435643563
|
||||
2,382,359,23,0,3,82.68,2.6072423398328692
|
||||
3,127,105,22,0,1,81.42,2.3714285714285714
|
||||
4,113,92,21,0,1,90.98,2.3260869565217392
|
||||
5,244,222,22,0,2,81.9,2.436936936936937
|
||||
6,116,95,21,0,1,96.34,2.431578947368421
|
||||
7,656,632,24,0,5,83.59,2.4778481012658227
|
||||
8,128,107,21,0,1,82.46,2.149532710280374
|
||||
9,114,94,20,0,1,81.74,2.606382978723404
|
||||
10,115,94,21,0,1,90.65,2.5851063829787235
|
||||
11,246,223,23,0,2,85.61,2.5381165919282513
|
||||
12,132,113,19,0,1,84.89,2.433628318584071
|
||||
13,139,118,21,0,1,83.33,2.635593220338983
|
||||
14,120,100,20,0,1,91.19,2.28
|
||||
15,261,238,23,0,2,89.78,2.5126050420168067
|
||||
16,225,202,23,0,2,83.33,2.485148514851485
|
||||
17,120,100,20,0,1,82.91,2.54
|
||||
18,117,97,20,0,1,93.33,2.515463917525773
|
||||
19,360,336,24,0,3,82.91,2.4851190476190474
|
||||
20,117,97,20,0,1,83.58,2.556701030927835
|
||||
21,134,112,22,0,1,85.71,2.5535714285714284
|
||||
22,147,126,21,0,1,84.51,2.2936507936507935
|
||||
23,142,120,22,0,1,91.67,2.683333333333333
|
||||
24,264,242,22,0,2,82.93,2.5785123966942147
|
||||
25,123,102,21,0,1,84.4,2.696078431372549
|
||||
26,141,119,22,0,1,83.59,2.5546218487394956
|
||||
27,128,107,21,0,1,95.74,2.7289719626168223
|
||||
28,564,540,24,0,5,83.46,2.5425925925925927
|
||||
29,133,111,22,0,1,82.4,2.981981981981982
|
||||
30,125,103,22,0,1,80.87,2.3980582524271843
|
||||
31,115,93,22,0,1,94.87,2.5698924731182795
|
||||
32,468,444,24,0,4,81.9,2.484234234234234
|
||||
33,116,95,21,0,1,95.38,2.294736842105263
|
||||
34,498,475,23,0,4,84.85,2.557894736842105
|
||||
35,132,112,20,0,1,80.0,2.4464285714285716
|
||||
36,100,80,20,0,1,85.23,2.4625
|
||||
37,149,127,22,0,1,93.52,2.4488188976377954
|
||||
38,355,332,23,0,3,97.4,2.539156626506024
|
||||
39,962,937,25,0,8,83.59,2.463180362860192
|
||||
40,128,107,21,0,1,94.94,2.6261682242990654
|
||||
41,474,450,24,0,4,95.15,2.4444444444444446
|
||||
42,495,471,24,0,4,89.67,2.5286624203821657
|
||||
43,213,191,22,0,2,81.25,2.324607329842932
|
||||
44,112,91,21,0,1,83.72,2.3736263736263736
|
||||
45,129,108,21,0,1,84.21,2.4537037037037037
|
||||
46,133,112,21,0,1,98.1,2.4910714285714284
|
||||
47,1262,1238,24,0,10,84.56,2.3966074313408723
|
||||
48,136,115,21,0,1,84.4,2.4434782608695653
|
||||
49,141,119,22,0,1,81.51,2.638655462184874
|
||||
50,119,97,22,0,1,95.99,2.618556701030928
|
||||
51,599,575,24,0,5,97.83,2.506086956521739
|
||||
52,1106,1082,24,0,9,82.64,2.3475046210720887
|
||||
53,121,100,21,0,1,83.21,2.74
|
||||
54,131,109,22,0,1,83.06,2.541284403669725
|
||||
55,124,103,21,0,1,83.85,2.5728155339805827
|
||||
56,130,109,21,0,1,83.06,2.623853211009174
|
||||
57,124,103,21,0,1,98.82,2.4757281553398056
|
||||
58,2118,2093,25,0,17,88.78,2.381748686096512
|
||||
59,205,182,23,0,2,83.94,2.434065934065934
|
||||
60,137,115,22,0,1,99.22,2.1565217391304348
|
||||
61,3216,3191,25,0,26,84.78,2.3017862738953307
|
||||
62,138,117,21,0,1,81.2,2.3162393162393164
|
||||
63,117,95,22,0,1,91.29,2.536842105263158
|
||||
64,264,241,23,0,2,85.61,2.3070539419087135
|
||||
65,139,119,20,0,1,98.0,2.504201680672269
|
||||
66,1248,1223,25,0,10,86.3,2.443990188062142
|
||||
67,146,126,20,0,1,99.7,2.2142857142857144
|
||||
68,8414,8389,25,0,69,81.9,2.148647037787579
|
||||
69,116,95,21,0,1,83.33,2.1894736842105265
|
||||
70,120,100,20,0,1,90.98,2.38
|
||||
71,244,222,22,0,2,82.05,2.2972972972972974
|
||||
72,117,96,21,0,1,83.97,2.625
|
||||
73,131,110,21,0,1,84.51,2.4727272727272727
|
||||
74,142,120,22,0,1,93.29,2.2083333333333335
|
||||
75,343,320,23,0,3,90.8,2.321875
|
||||
76,250,227,23,0,2,90.91,2.5594713656387666
|
||||
77,253,230,23,0,2,94.16,2.4608695652173913
|
||||
78,394,371,23,0,3,98.69,2.5741239892183287
|
||||
79,1910,1885,25,0,15,83.33,2.3421750663129974
|
||||
80,120,100,20,0,1,83.47,2.4
|
||||
81,121,101,20,0,1,96.29,2.287128712871287
|
||||
82,647,623,24,0,5,90.73,2.446227929373997
|
||||
83,248,225,23,0,2,84.72,2.417777777777778
|
||||
84,144,122,22,0,1,80.56,2.4098360655737703
|
||||
85,108,87,21,0,1,89.57,2.206896551724138
|
||||
86,211,189,22,0,2,85.07,2.433862433862434
|
||||
87,134,114,20,0,1,89.73,2.508771929824561
|
||||
88,224,201,23,0,2,84.44,2.5771144278606966
|
||||
89,135,114,21,0,1,82.26,2.43859649122807
|
||||
90,124,102,22,0,1,90.42,2.235294117647059
|
||||
91,240,217,23,0,2,89.96,2.6359447004608296
|
||||
92,229,206,23,0,2,93.89,2.320388349514563
|
||||
93,393,369,24,0,3,83.2,2.5121951219512195
|
||||
94,125,104,21,0,1,91.05,2.5673076923076925
|
||||
95,257,234,23,0,2,84.89,2.341880341880342
|
||||
96,139,118,21,0,1,83.46,2.2203389830508473
|
||||
97,127,106,21,0,1,99.45,2.792452830188679
|
||||
98,4578,4553,25,0,37,95.02,2.238304414671645
|
||||
99,482,458,24,0,4,90.76,2.489082969432314
|
||||
|
||||
|
Reference in New Issue
Block a user