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,494,170,0,1,45.28,1.45748987854251
|
||||
2,212,96,116,0,3,74.15,1.5416666666666667
|
||||
3,673,499,174,0,1,76.65,1.4909819639278556
|
||||
4,711,545,166,0,1,60.0,1.6018348623853211
|
||||
5,345,207,138,0,2,73.96,1.5507246376811594
|
||||
6,649,480,169,0,1,38.69,1.5833333333333333
|
||||
7,137,53,84,0,5,74.3,1.6603773584905661
|
||||
8,681,506,175,0,1,74.6,1.4703557312252964
|
||||
9,689,514,175,0,1,74.66,1.461089494163424
|
||||
10,667,498,169,0,1,60.37,1.4759036144578312
|
||||
11,328,198,130,0,2,75.29,1.4444444444444444
|
||||
12,692,521,171,0,1,74.96,1.4491362763915547
|
||||
13,683,512,171,0,1,74.71,1.537109375
|
||||
14,696,520,176,0,1,60.76,1.5596153846153846
|
||||
15,344,209,135,0,2,59.2,1.5023923444976077
|
||||
16,326,193,133,0,2,75.47,1.5803108808290156
|
||||
17,689,520,169,0,1,75.11,1.6423076923076922
|
||||
18,691,519,172,0,1,51.6,1.5260115606936415
|
||||
19,219,113,106,0,3,75.96,1.6106194690265487
|
||||
20,732,556,176,0,1,76.32,1.4460431654676258
|
||||
21,739,564,175,0,1,75.26,1.5088652482269505
|
||||
22,683,514,169,0,1,74.78,1.5291828793774318
|
||||
23,670,501,169,0,1,57.4,1.403193612774451
|
||||
24,331,190,141,0,2,75.83,1.563157894736842
|
||||
25,724,549,175,0,1,74.86,1.5136612021857923
|
||||
26,692,518,174,0,1,75.74,1.5347490347490347
|
||||
27,705,534,171,0,1,37.23,1.4138576779026217
|
||||
28,137,51,86,0,5,75.15,1.5098039215686274
|
||||
29,672,505,167,0,1,74.64,1.506930693069307
|
||||
30,694,518,176,0,1,74.78,1.555984555984556
|
||||
31,674,504,170,0,1,38.89,1.5297619047619047
|
||||
32,144,56,88,0,4,74.93,1.5
|
||||
33,670,502,168,0,1,31.91,1.4302788844621515
|
||||
34,141,45,96,0,4,74.66,1.3777777777777778
|
||||
35,659,492,167,0,1,75.4,1.5142276422764227
|
||||
36,691,521,170,0,1,76.12,1.5009596928982725
|
||||
37,737,561,176,0,1,48.86,1.5080213903743316
|
||||
38,219,107,112,0,3,28.0,1.5794392523364487
|
||||
39,100,28,72,0,8,75.91,1.6785714285714286
|
||||
40,714,542,172,0,1,42.39,1.6199261992619927
|
||||
41,184,78,106,0,4,43.48,1.7179487179487178
|
||||
42,161,70,91,0,4,61.88,1.6857142857142857
|
||||
43,362,224,138,0,2,75.43,1.3392857142857142
|
||||
44,696,525,171,0,1,73.21,1.5447619047619048
|
||||
45,627,459,168,0,1,75.15,1.5359477124183007
|
||||
46,648,487,161,0,1,22.64,1.5010266940451746
|
||||
47,53,12,41,0,10,74.85,1.9166666666666667
|
||||
48,676,506,170,0,1,73.98,1.5118577075098814
|
||||
49,638,472,166,0,1,74.59,1.4406779661016949
|
||||
50,673,502,171,0,1,39.06,1.4760956175298805
|
||||
51,128,50,78,0,5,21.18,1.44
|
||||
52,85,18,67,0,9,76.57,1.2777777777777777
|
||||
53,747,572,175,0,1,76.0,1.4912587412587412
|
||||
54,700,532,168,0,1,75.25,1.5432330827067668
|
||||
55,687,517,170,0,1,75.42,1.4700193423597678
|
||||
56,720,543,177,0,1,75.36,1.3922651933701657
|
||||
57,690,520,170,0,1,10.0,1.5288461538461537
|
||||
58,40,4,36,0,17,60.69,1.5
|
||||
59,318,193,125,0,2,74.93,1.5025906735751295
|
||||
60,674,505,169,0,1,21.74,1.508910891089109
|
||||
61,23,5,18,0,26,75.55,0.6
|
||||
62,724,547,177,0,1,74.2,1.5045703839122486
|
||||
63,628,466,162,0,1,60.29,1.4785407725321889
|
||||
64,345,208,137,0,2,74.89,1.4519230769230769
|
||||
65,681,510,171,0,1,23.29,1.4843137254901961
|
||||
66,73,17,56,0,10,74.35,1.588235294117647
|
||||
67,651,484,167,0,1,0.0,1.493801652892562
|
||||
68,10,0,10,0,69,73.9,0.0
|
||||
69,636,470,166,0,1,74.7,1.553191489361702
|
||||
70,656,490,166,0,1,61.56,1.530612244897959
|
||||
71,372,229,143,0,2,75.52,1.5327510917030567
|
||||
72,678,512,166,0,1,73.51,1.484375
|
||||
73,638,469,169,0,1,74.89,1.4179104477611941
|
||||
74,685,513,172,0,1,44.28,1.557504873294347
|
||||
75,201,89,112,0,3,59.88,1.5056179775280898
|
||||
76,344,206,138,0,2,61.45,1.441747572815534
|
||||
77,345,212,133,0,2,50.19,1.4433962264150944
|
||||
78,261,131,130,0,3,10.64,1.4885496183206106
|
||||
79,47,5,42,0,15,75.3,0.8
|
||||
80,660,497,163,0,1,74.29,1.5070422535211268
|
||||
81,634,471,163,0,1,37.96,1.4692144373673035
|
||||
82,137,52,85,0,5,57.28,1.5192307692307692
|
||||
83,309,177,132,0,2,75.51,1.5197740112994351
|
||||
84,686,518,168,0,1,74.63,1.494208494208494
|
||||
85,682,509,173,0,1,58.39,1.3889980353634577
|
||||
86,322,188,134,0,2,74.7,1.5106382978723405
|
||||
87,676,505,171,0,1,58.15,1.4792079207920792
|
||||
88,325,189,136,0,2,75.62,1.3915343915343916
|
||||
89,689,521,168,0,1,75.11,1.5335892514395393
|
||||
90,695,522,173,0,1,62.35,1.496168582375479
|
||||
91,324,202,122,0,2,60.53,1.5792079207920793
|
||||
92,337,204,133,0,2,47.75,1.392156862745098
|
||||
93,222,106,116,0,3,75.07,1.4622641509433962
|
||||
94,686,515,171,0,1,62.39,1.5728155339805825
|
||||
95,351,219,132,0,2,76.29,1.5342465753424657
|
||||
96,717,547,170,0,1,74.4,1.4204753199268738
|
||||
97,664,494,170,0,1,8.7,1.4412955465587045
|
||||
98,23,2,21,0,37,46.96,3.0
|
||||
99,181,85,96,0,4,59.64,1.411764705882353
|
||||
obj_id,access_count,hits,misses,mu,lambda,hit_rate,avg_age
|
||||
1,122,91,31,0,1,90.05,1.3406593406593406
|
||||
2,382,344,38,0,3,74.02,1.563953488372093
|
||||
3,127,94,33,0,1,73.45,1.6063829787234043
|
||||
4,113,83,30,0,1,85.25,1.3373493975903614
|
||||
5,244,208,36,0,2,72.41,1.4663461538461537
|
||||
6,116,84,32,0,1,94.05,1.380952380952381
|
||||
7,656,617,39,0,5,75.78,1.4376012965964344
|
||||
8,128,97,31,0,1,71.93,1.5876288659793814
|
||||
9,114,82,32,0,1,73.91,1.451219512195122
|
||||
10,115,85,30,0,1,85.77,1.423529411764706
|
||||
11,246,211,35,0,2,75.76,1.5023696682464456
|
||||
12,132,100,32,0,1,77.7,1.38
|
||||
13,139,108,31,0,1,75.0,1.5
|
||||
14,120,90,30,0,1,86.59,1.4333333333333333
|
||||
15,261,226,35,0,2,84.44,1.407079646017699
|
||||
16,225,190,35,0,2,75.83,1.5947368421052632
|
||||
17,120,91,29,0,1,73.5,1.6813186813186813
|
||||
18,117,86,31,0,1,89.72,1.4534883720930232
|
||||
19,360,323,37,0,3,71.79,1.5386996904024768
|
||||
20,117,84,33,0,1,76.12,1.5119047619047619
|
||||
21,134,102,32,0,1,78.23,1.4607843137254901
|
||||
22,147,115,32,0,1,76.06,1.626086956521739
|
||||
23,142,108,34,0,1,86.36,1.5092592592592593
|
||||
24,264,228,36,0,2,74.8,1.4298245614035088
|
||||
25,123,92,31,0,1,77.3,1.5869565217391304
|
||||
26,141,109,32,0,1,76.56,1.6238532110091743
|
||||
27,128,98,30,0,1,93.09,1.5714285714285714
|
||||
28,564,525,39,0,5,75.94,1.6152380952380951
|
||||
29,133,101,32,0,1,75.2,1.3564356435643565
|
||||
30,125,94,31,0,1,72.17,1.351063829787234
|
||||
31,115,83,32,0,1,91.88,1.5060240963855422
|
||||
32,468,430,38,0,4,74.14,1.6046511627906976
|
||||
33,116,86,30,0,1,92.37,1.4767441860465116
|
||||
34,498,460,38,0,4,76.52,1.5260869565217392
|
||||
35,132,101,31,0,1,70.0,1.5940594059405941
|
||||
36,100,70,30,0,1,77.85,1.4142857142857144
|
||||
37,149,116,33,0,1,89.3,1.3793103448275863
|
||||
38,355,317,38,0,3,95.84,1.4889589905362777
|
||||
39,962,922,40,0,8,75.0,1.4663774403470715
|
||||
40,128,96,32,0,1,91.98,1.3541666666666667
|
||||
41,474,436,38,0,4,92.12,1.4426605504587156
|
||||
42,495,456,39,0,4,84.04,1.5328947368421053
|
||||
43,213,179,34,0,2,73.21,1.3463687150837989
|
||||
44,112,82,30,0,1,75.19,1.4024390243902438
|
||||
45,129,97,32,0,1,76.69,1.5257731958762886
|
||||
46,133,102,31,0,1,96.83,1.3529411764705883
|
||||
47,1262,1222,40,0,10,77.21,1.6129296235679214
|
||||
48,136,105,31,0,1,78.01,1.4190476190476191
|
||||
49,141,110,31,0,1,72.27,1.4181818181818182
|
||||
50,119,86,33,0,1,93.66,1.372093023255814
|
||||
51,599,561,38,0,5,96.47,1.3315508021390374
|
||||
52,1106,1067,39,0,9,74.38,1.4142455482661669
|
||||
53,121,90,31,0,1,74.81,1.4
|
||||
54,131,98,33,0,1,76.61,1.5204081632653061
|
||||
55,124,95,29,0,1,76.92,1.7263157894736842
|
||||
56,130,100,30,0,1,74.19,1.49
|
||||
57,124,92,32,0,1,98.06,1.641304347826087
|
||||
58,2118,2077,41,0,17,82.44,1.3885411651420319
|
||||
59,205,169,36,0,2,76.64,1.4911242603550297
|
||||
60,137,105,32,0,1,98.73,1.6
|
||||
61,3216,3175,41,0,26,76.81,1.4125984251968504
|
||||
62,138,106,32,0,1,72.65,1.5754716981132075
|
||||
63,117,85,32,0,1,86.36,1.611764705882353
|
||||
64,264,228,36,0,2,77.7,1.5921052631578947
|
||||
65,139,108,31,0,1,96.79,1.6574074074074074
|
||||
66,1248,1208,40,0,10,79.45,1.471026490066225
|
||||
67,146,116,30,0,1,99.51,1.4655172413793103
|
||||
68,8414,8373,41,0,69,74.14,1.324973127911143
|
||||
69,116,86,30,0,1,75.83,1.3604651162790697
|
||||
70,120,91,29,0,1,85.25,1.4945054945054945
|
||||
71,244,208,36,0,2,72.65,1.3894230769230769
|
||||
72,117,85,32,0,1,74.81,1.6941176470588235
|
||||
73,131,98,33,0,1,79.58,1.6020408163265305
|
||||
74,142,113,29,0,1,89.21,1.5575221238938053
|
||||
75,343,306,37,0,3,86.0,1.522875816993464
|
||||
76,250,215,35,0,2,85.77,1.4651162790697674
|
||||
77,253,217,36,0,2,90.61,1.391705069124424
|
||||
78,394,357,37,0,3,97.85,1.464985994397759
|
||||
79,1910,1869,41,0,15,75.83,1.4804708400214017
|
||||
80,120,91,29,0,1,76.03,1.4065934065934067
|
||||
81,121,92,29,0,1,93.97,1.4021739130434783
|
||||
82,647,608,39,0,5,85.89,1.4769736842105263
|
||||
83,248,213,35,0,2,77.08,1.3990610328638498
|
||||
84,144,111,33,0,1,70.37,1.4954954954954955
|
||||
85,108,76,32,0,1,83.41,1.4342105263157894
|
||||
86,211,176,35,0,2,75.37,1.6193181818181819
|
||||
87,134,101,33,0,1,84.38,1.4059405940594059
|
||||
88,224,189,35,0,2,76.3,1.433862433862434
|
||||
89,135,103,32,0,1,73.39,1.5242718446601942
|
||||
90,124,91,33,0,1,85.83,1.4945054945054945
|
||||
91,240,206,34,0,2,84.72,1.4563106796116505
|
||||
92,229,194,35,0,2,90.33,1.4793814432989691
|
||||
93,393,355,38,0,3,75.2,1.5126760563380282
|
||||
94,125,94,31,0,1,85.99,1.553191489361702
|
||||
95,257,221,36,0,2,76.98,1.4705882352941178
|
||||
96,139,107,32,0,1,75.59,1.485981308411215
|
||||
97,127,96,31,0,1,99.1,1.6458333333333333
|
||||
98,4578,4537,41,0,37,92.12,1.3852766145029756
|
||||
99,482,444,38,0,4,85.54,1.5382882882882882
|
||||
|
||||
|
Reference in New Issue
Block a user