feat: add cache simulation with experiments for TTL and eviction strategies
Introduce a new simulation for Age of Information (AoI) cache management, focusing on varying TTL values and eviction strategies (LRU and Random Eviction). This includes: - New Python script for event-driven cache simulations using . - Experiments for "No Refresh" across multiple TTL configurations (, , ..., ) with: - Hit rate and object age tracking (, , etc.). - Visualizations (e.g., , ). - Updated to describe experimental setup and configurations. - Log export file () for simulation results. - Refactor of with detailed strategy configurations and runtime notes. ### Reason The commit enhances the project by enabling detailed experiments with configurable cache parameters, supporting analysis of cache efficiency and AoI under varying conditions. This provides a foundation for more sophisticated simulations and insights. ### Performance - Runtime: ~4m 29s for . Co-authored experiments introduce structured data files and visualizations, improving clarity for future iterations. Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
198
export.csv
198
export.csv
@@ -1,100 +1,100 @@
|
||||
,access_count,hits,misses,mu,lambda,hit_rate
|
||||
1,338919,293278,45641,9.45073508577941,1,87.09
|
||||
2,339569,295735,43834,8.14036449596436,1,87.19
|
||||
3,339121,295683,43438,7.841130117448747,1,93.79
|
||||
4,339726,318616,21110,2.2674748477937965,1,78.47
|
||||
5,67728,53145,14583,1.9491614320948918,5,87.79
|
||||
6,339470,298026,41444,6.571586635600101,1,77.43
|
||||
7,170195,131783,38412,7.611334405003136,2,29.18
|
||||
8,16126,4705,11421,4.4496294204831255,21,88.2
|
||||
9,339776,299674,40102,5.998373656353862,1,87.76
|
||||
10,339314,297783,41531,6.636819845113485,1,77.12
|
||||
11,170006,131110,38896,8.045921601779977,2,92.35
|
||||
12,338799,312870,25929,2.811627158825997,1,87.45
|
||||
13,338380,295915,42465,7.143615488470383,1,95.62
|
||||
14,339295,324424,14871,1.765483508758194,1,78.89
|
||||
15,168900,133246,35654,5.959911292425263,2,41.86
|
||||
16,37792,15821,21971,9.445879641550164,9,71.36
|
||||
17,42276,30167,12109,1.835890334290284,8,73.65
|
||||
18,113327,83461,29866,4.648600564543203,3,78.27
|
||||
19,169939,133012,36927,6.632144547714242,2,96.59
|
||||
20,339409,327834,11575,1.5219711334160873,1,86.89
|
||||
21,339488,294970,44518,8.640804985015603,1,89.01
|
||||
22,338488,301286,37202,4.948940599763346,1,93.0
|
||||
23,339243,315511,23732,2.5215047387858385,1,93.5
|
||||
24,338961,316939,22022,2.364507987541101,1,87.79
|
||||
25,338323,297005,41318,6.599461843110775,1,78.51
|
||||
26,169708,133242,36466,6.367528014392565,2,89.0
|
||||
27,339195,301871,37324,5.003687539185309,1,86.83
|
||||
28,338836,294227,44609,8.69089847442159,1,89.4
|
||||
29,339057,303133,35924,4.636189613643649,1,79.99
|
||||
30,169136,135290,33846,5.071027599242191,2,89.99
|
||||
31,337940,304106,33834,4.08093995040424,1,23.8
|
||||
32,13512,3216,10296,5.389385006998066,25,76.19
|
||||
33,113049,86130,26919,3.6953335845304562,3,87.95
|
||||
34,339556,298625,40931,6.455201262262219,1,88.24
|
||||
35,339483,299569,39914,5.935488589201371,1,75.63
|
||||
36,113404,85767,27637,3.880596047884128,3,89.06
|
||||
37,339071,301962,37109,4.9810532504276015,1,68.83
|
||||
38,37623,25897,11726,1.842940132793361,9,89.4
|
||||
39,339457,303459,35998,4.646642146558106,1,90.35
|
||||
40,338193,305568,32625,3.841385277835048,1,90.52
|
||||
41,339194,307024,32170,3.755174466816314,1,62.3
|
||||
42,67848,42269,25579,4.791783523908462,5,68.62
|
||||
43,56919,39060,17859,2.5603665363948838,6,85.08
|
||||
44,169214,143969,25245,2.9501977292188872,2,86.87
|
||||
45,339975,295349,44626,8.660786623694852,1,92.94
|
||||
46,339167,315235,23932,2.5477162793599124,1,86.54
|
||||
47,339934,294192,45742,9.754540171481345,1,87.12
|
||||
48,339091,295408,43683,7.997429679411413,1,90.35
|
||||
49,339138,306397,32741,3.884597009502997,1,86.57
|
||||
50,339966,294305,45661,9.586637018141543,1,88.32
|
||||
51,84488,74624,9864,1.4658283776461758,4,97.73
|
||||
52,339140,331438,7702,1.2656689838300985,1,92.44
|
||||
53,339252,313600,25652,2.737252979299571,1,87.02
|
||||
54,339109,295087,44022,8.251086295714982,1,94.48
|
||||
55,339737,320982,18755,2.0610542552665496,1,87.81
|
||||
56,170131,149390,20741,2.3501661595459855,2,18.76
|
||||
57,12099,2270,9829,8.517893008102874,28,86.59
|
||||
58,339603,294064,45539,9.51973718760753,1,79.07
|
||||
59,169388,133936,35452,5.7533658385673965,2,73.65
|
||||
60,112783,83061,29722,4.660963074614197,3,87.12
|
||||
61,339803,296040,43763,8.03102930717676,1,77.07
|
||||
62,169490,130630,38860,8.20890898481475,2,59.28
|
||||
63,68277,40475,27802,6.460946859444955,5,87.65
|
||||
64,340043,298043,42000,6.997089517135705,1,95.75
|
||||
65,339335,324924,14411,1.7111982665882988,1,63.53
|
||||
66,84598,53748,30850,7.195239628139434,4,87.83
|
||||
67,337396,296343,41053,6.468823743568375,1,76.74
|
||||
68,168813,129539,39274,8.584449622455724,2,76.87
|
||||
69,168935,129852,39083,8.31382957264006,2,70.86
|
||||
70,112790,79928,32862,6.32689728463079,3,27.82
|
||||
71,18026,5015,13011,6.059882273135225,19,86.61
|
||||
72,339602,294144,45458,9.326244637290127,1,89.2
|
||||
73,337685,301201,36484,4.734530335572703,1,32.94
|
||||
74,10000,3294,6706,2.0953399483975383,34,96.77
|
||||
75,338999,328054,10945,1.4775733311410093,1,76.91
|
||||
76,169928,130689,39239,8.406951084575,2,87.2
|
||||
77,339808,296317,43491,7.860627209955007,1,91.27
|
||||
78,340016,310335,29681,3.295575301583255,1,89.97
|
||||
79,339322,305288,34034,4.1428568837538,1,61.61
|
||||
80,85030,52384,32646,9.612329081824885,4,64.08
|
||||
81,84888,54399,30489,6.8654731084167215,4,86.01
|
||||
82,169804,146055,23749,2.7190649943185607,2,86.62
|
||||
83,339457,294036,45421,9.374682516586324,1,79.3
|
||||
84,169248,134215,35033,5.59505906586539,2,86.85
|
||||
85,338584,294054,44530,8.791458898209017,1,88.42
|
||||
86,338920,299662,39258,5.68526209949427,1,86.69
|
||||
87,338880,293780,45100,9.141536447646898,1,73.22
|
||||
88,112317,82242,30075,4.8033650741674165,3,89.16
|
||||
89,169307,150951,18356,2.106599827358843,2,87.4
|
||||
90,338997,296291,42706,7.364331823831616,1,86.62
|
||||
91,339905,294417,45488,9.303831880532016,1,33.3
|
||||
92,26197,8723,17474,9.509741988265437,13,87.41
|
||||
93,112773,98573,14200,1.8012576813912844,3,49.96
|
||||
94,48507,24233,24274,7.076409771949383,7,87.43
|
||||
95,339988,297246,42742,7.388599144805513,1,88.05
|
||||
96,338400,297960,40440,6.1158358642271375,1,85.57
|
||||
97,168252,143969,24283,2.8133122321600794,2,87.44
|
||||
98,338729,296200,42529,7.193050310873352,1,95.99
|
||||
99,338235,324673,13562,1.6556673379589992,1,52.28
|
||||
1,664,550,114,0,1,58.49
|
||||
2,212,124,88,0,3,83.21
|
||||
3,673,560,113,0,1,84.11
|
||||
4,711,598,113,0,1,72.17
|
||||
5,345,249,96,0,2,82.43
|
||||
6,649,535,114,0,1,50.36
|
||||
7,137,69,68,0,5,83.41
|
||||
8,681,568,113,0,1,83.74
|
||||
9,689,577,112,0,1,82.91
|
||||
10,667,553,114,0,1,71.34
|
||||
11,328,234,94,0,2,83.67
|
||||
12,692,579,113,0,1,83.46
|
||||
13,683,570,113,0,1,83.48
|
||||
14,696,581,115,0,1,70.64
|
||||
15,344,243,101,0,2,71.78
|
||||
16,326,234,92,0,2,83.45
|
||||
17,689,575,114,0,1,83.65
|
||||
18,691,578,113,0,1,62.56
|
||||
19,219,137,82,0,3,84.29
|
||||
20,732,617,115,0,1,84.44
|
||||
21,739,624,115,0,1,83.31
|
||||
22,683,569,114,0,1,83.13
|
||||
23,670,557,113,0,1,71.3
|
||||
24,331,236,95,0,2,83.84
|
||||
25,724,607,117,0,1,83.38
|
||||
26,692,577,115,0,1,83.69
|
||||
27,705,590,115,0,1,48.18
|
||||
28,137,66,71,0,5,83.04
|
||||
29,672,558,114,0,1,83.43
|
||||
30,694,579,115,0,1,83.23
|
||||
31,674,561,113,0,1,51.39
|
||||
32,144,74,70,0,4,83.13
|
||||
33,670,557,113,0,1,48.94
|
||||
34,141,69,72,0,4,83.0
|
||||
35,659,547,112,0,1,83.36
|
||||
36,691,576,115,0,1,84.67
|
||||
37,737,624,113,0,1,62.56
|
||||
38,219,137,82,0,3,41.0
|
||||
39,100,41,59,0,8,83.61
|
||||
40,714,597,117,0,1,55.98
|
||||
41,184,103,81,0,4,57.14
|
||||
42,161,92,69,0,4,73.76
|
||||
43,362,267,95,0,2,83.91
|
||||
44,696,584,112,0,1,82.46
|
||||
45,627,517,110,0,1,82.72
|
||||
46,648,536,112,0,1,30.19
|
||||
47,53,16,37,0,10,83.14
|
||||
48,676,562,114,0,1,82.29
|
||||
49,638,525,113,0,1,83.06
|
||||
50,673,559,114,0,1,49.22
|
||||
51,128,63,65,0,5,34.12
|
||||
52,85,29,56,0,9,84.34
|
||||
53,747,630,117,0,1,83.86
|
||||
54,700,587,113,0,1,83.41
|
||||
55,687,573,114,0,1,83.75
|
||||
56,720,603,117,0,1,83.33
|
||||
57,690,575,115,0,1,17.5
|
||||
58,40,7,33,0,17,70.13
|
||||
59,318,223,95,0,2,82.94
|
||||
60,674,559,115,0,1,21.74
|
||||
61,23,5,18,0,26,83.84
|
||||
62,724,607,117,0,1,82.17
|
||||
63,628,516,112,0,1,71.59
|
||||
64,345,247,98,0,2,83.11
|
||||
65,681,566,115,0,1,31.51
|
||||
66,73,23,50,0,10,83.1
|
||||
67,651,541,110,0,1,0.0
|
||||
68,10,0,10,0,69,82.55
|
||||
69,636,525,111,0,1,82.62
|
||||
70,656,542,114,0,1,73.12
|
||||
71,372,272,100,0,2,83.48
|
||||
72,678,566,112,0,1,82.13
|
||||
73,638,524,114,0,1,82.92
|
||||
74,685,568,117,0,1,57.71
|
||||
75,201,116,85,0,3,72.67
|
||||
76,344,250,94,0,2,72.17
|
||||
77,345,249,96,0,2,64.75
|
||||
78,261,169,92,0,3,19.15
|
||||
79,47,9,38,0,15,83.48
|
||||
80,660,551,109,0,1,82.18
|
||||
81,634,521,113,0,1,51.09
|
||||
82,137,70,67,0,5,69.58
|
||||
83,309,215,94,0,2,83.53
|
||||
84,686,573,113,0,1,82.84
|
||||
85,682,565,117,0,1,71.12
|
||||
86,322,229,93,0,2,83.28
|
||||
87,676,563,113,0,1,68.62
|
||||
88,325,223,102,0,2,83.16
|
||||
89,689,573,116,0,1,83.31
|
||||
90,695,579,116,0,1,73.15
|
||||
91,324,237,87,0,2,72.11
|
||||
92,337,243,94,0,2,63.51
|
||||
93,222,141,81,0,3,83.09
|
||||
94,686,570,116,0,1,71.79
|
||||
95,351,252,99,0,2,84.66
|
||||
96,717,607,110,0,1,83.28
|
||||
97,664,553,111,0,1,21.74
|
||||
98,23,5,18,0,37,56.91
|
||||
99,181,103,78,0,4,70.62
|
||||
|
||||
|
Reference in New Issue
Block a user