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:
100
experiments/No_Refresh_2_0s_ttl/details.csv
Normal file
100
experiments/No_Refresh_2_0s_ttl/details.csv
Normal file
@@ -0,0 +1,100 @@
|
||||
,access_count,hits,misses,mu,lambda,hit_rate
|
||||
1,664,445,219,0,1,37.74
|
||||
2,212,80,132,0,3,66.42
|
||||
3,673,447,226,0,1,67.37
|
||||
4,711,479,232,0,1,51.01
|
||||
5,345,176,169,0,2,64.56
|
||||
6,649,419,230,0,1,29.2
|
||||
7,137,40,97,0,5,66.37
|
||||
8,681,452,229,0,1,66.76
|
||||
9,689,460,229,0,1,66.57
|
||||
10,667,444,223,0,1,52.13
|
||||
11,328,171,157,0,2,67.92
|
||||
12,692,470,222,0,1,66.03
|
||||
13,683,451,232,0,1,66.67
|
||||
14,696,464,232,0,1,48.55
|
||||
15,344,167,177,0,2,48.47
|
||||
16,326,158,168,0,2,66.33
|
||||
17,689,457,232,0,1,65.99
|
||||
18,691,456,235,0,1,41.1
|
||||
19,219,90,129,0,3,68.58
|
||||
20,732,502,230,0,1,68.88
|
||||
21,739,509,230,0,1,66.76
|
||||
22,683,456,227,0,1,66.57
|
||||
23,670,446,224,0,1,49.85
|
||||
24,331,165,166,0,2,68.09
|
||||
25,724,493,231,0,1,66.91
|
||||
26,692,463,229,0,1,68.09
|
||||
27,705,480,225,0,1,28.47
|
||||
28,137,39,98,0,5,65.92
|
||||
29,672,443,229,0,1,66.28
|
||||
30,694,460,234,0,1,66.62
|
||||
31,674,449,225,0,1,29.17
|
||||
32,144,42,102,0,4,66.72
|
||||
33,670,447,223,0,1,26.95
|
||||
34,141,38,103,0,4,66.77
|
||||
35,659,440,219,0,1,67.15
|
||||
36,691,464,227,0,1,69.06
|
||||
37,737,509,228,0,1,39.27
|
||||
38,219,86,133,0,3,21.0
|
||||
39,100,21,79,0,8,66.81
|
||||
40,714,477,237,0,1,32.07
|
||||
41,184,59,125,0,4,34.78
|
||||
42,161,56,105,0,4,53.87
|
||||
43,362,195,167,0,2,66.52
|
||||
44,696,463,233,0,1,64.59
|
||||
45,627,405,222,0,1,64.97
|
||||
46,648,421,227,0,1,9.43
|
||||
47,53,5,48,0,10,64.79
|
||||
48,676,438,238,0,1,65.52
|
||||
49,638,418,220,0,1,66.12
|
||||
50,673,445,228,0,1,29.69
|
||||
51,128,38,90,0,5,16.47
|
||||
52,85,14,71,0,9,68.14
|
||||
53,747,509,238,0,1,67.71
|
||||
54,700,474,226,0,1,66.67
|
||||
55,687,458,229,0,1,68.89
|
||||
56,720,496,224,0,1,67.25
|
||||
57,690,464,226,0,1,5.0
|
||||
58,40,2,38,0,17,48.11
|
||||
59,318,153,165,0,2,66.32
|
||||
60,674,447,227,0,1,17.39
|
||||
61,23,4,19,0,26,68.09
|
||||
62,724,493,231,0,1,64.49
|
||||
63,628,405,223,0,1,52.46
|
||||
64,345,181,164,0,2,67.11
|
||||
65,681,457,224,0,1,16.44
|
||||
66,73,12,61,0,10,66.36
|
||||
67,651,432,219,0,1,0.0
|
||||
68,10,0,10,0,69,65.41
|
||||
69,636,416,220,0,1,65.7
|
||||
70,656,431,225,0,1,50.81
|
||||
71,372,189,183,0,2,67.7
|
||||
72,678,459,219,0,1,66.14
|
||||
73,638,422,216,0,1,65.69
|
||||
74,685,450,235,0,1,32.84
|
||||
75,201,66,135,0,3,52.33
|
||||
76,344,180,164,0,2,51.88
|
||||
77,345,179,166,0,2,41.76
|
||||
78,261,109,152,0,3,10.64
|
||||
79,47,5,42,0,15,66.52
|
||||
80,660,439,221,0,1,65.3
|
||||
81,634,414,220,0,1,29.2
|
||||
82,137,40,97,0,5,46.93
|
||||
83,309,145,164,0,2,67.49
|
||||
84,686,463,223,0,1,66.72
|
||||
85,682,455,227,0,1,49.07
|
||||
86,322,158,164,0,2,64.94
|
||||
87,676,439,237,0,1,48.92
|
||||
88,325,159,166,0,2,66.62
|
||||
89,689,459,230,0,1,67.05
|
||||
90,695,466,229,0,1,51.23
|
||||
91,324,166,158,0,2,51.63
|
||||
92,337,174,163,0,2,39.64
|
||||
93,222,88,134,0,3,66.18
|
||||
94,686,454,232,0,1,50.71
|
||||
95,351,178,173,0,2,67.78
|
||||
96,717,486,231,0,1,66.72
|
||||
97,664,443,221,0,1,0.0
|
||||
98,23,0,23,0,37,38.12
|
||||
99,181,69,112,0,4,50.15
|
||||
|
Reference in New Issue
Block a user