You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/quickstart_cachesim.md
+23-28Lines changed: 23 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
2
-
# cachesim user guide
3
-
cachesim is a tool provided by libCacheSim to quickly run some cache simulations, it supports
4
-
* a variety of eviction algorithms such as FIFO, LRU, LFU, ARC, SLRU, LeCaR, CACHEUS, Hyperbolic, LHD, TinyLFU, Belady, LRB and GLCache.
5
-
* a variety of admission algorithms such as size, bloomFilter and adaptSize.
6
-
* text, csv trace as well as binary traces.
7
-
* automatic multi-threaded simulations.
2
+
# cachesim user guide
3
+
cachesim is a tool provided by libCacheSim to quickly run some cache simulations, it supports
4
+
* a variety of eviction algorithms such as FIFO, LRU, LFU, ARC, SLRU, LeCaR, CACHEUS, Hyperbolic, LHD, TinyLFU, Belady, LRB and GLCache.
5
+
* a variety of admission algorithms such as size, bloomFilter and adaptSize.
6
+
* text, csv trace as well as binary traces.
7
+
* automatic multi-threaded simulations.
8
8
9
-
Meanwhile, cachesim has high-performance with low resource usages.
9
+
Meanwhile, cachesim has high-performance with low resource usages.
10
10
11
11
---
12
12
13
13
## Installation
14
-
First, [build libCacheSim](/doc/install.md). After building libCacheSim, `cachesim` should be in the build directory.
14
+
First, [build libCacheSim](/doc/install.md). After building libCacheSim, `cachesim` should be in the build directory.
15
15
16
16
---
17
17
@@ -24,12 +24,12 @@ use `./cachesim --help` to get more information.
24
24
25
25
### Run a single cache simulation
26
26
27
-
Run the example vscsi trace with LRU eviction algorithm and 1GB cache size.
28
-
Note that vscsi is a trace format, we also support csv traces.
27
+
Run the example vscsi trace with LRU eviction algorithm and 1GB cache size.
28
+
Note that vscsi is a trace format, we also support csv traces.
29
29
30
30
```bash
31
31
# Note that no space between the cache size and the unit, unit is not case sensitive
32
-
./cachesim ../data/trace.vscsi vscsi lru 1gb
32
+
./cachesim ../data/trace.vscsi vscsi lru 1gb
33
33
```
34
34
35
35
### Run multiple cache simulations
@@ -55,7 +55,7 @@ Note that vscsi is a trace format, we also support csv traces.
55
55
56
56
57
57
### Auto detect cache sizes
58
-
cachesim can detect the working set of the trace and automatically generate cache sizes at 0.0001, 0.0003, 0.001, 0.003, 0.01, 0.03, 0.1, 0.3 of the working set size.
58
+
cachesim can detect the working set of the trace and automatically generate cache sizes at 0.001, 0.003, 0.01, 0.03, 0.1, 0.2, 0.4, 0.8 of the working set size.
59
59
You can enable this feature by setting cache size to 0 or auto.
60
60
61
61
```bash
@@ -81,7 +81,7 @@ cachesim supports the following algorithms:
You can just use the algorithm name as the eviction algorithm parameter, for example
84
+
You can just use the algorithm name as the eviction algorithm parameter, for example
85
85
86
86
```bash
87
87
./cachesim ../data/trace.vscsi vscsi lecar auto
@@ -94,12 +94,12 @@ You can just use the algorithm name as the eviction algorithm parameter, for exa
94
94
```
95
95
96
96
97
-
### Use different trace types
97
+
### Use different trace types
98
98
We have demonstrated the use of cachesim with vscsi trace. We also support csv traces.
99
-
To use a csv trace, we need to provide the column of *time*, *obj-id*, and *obj-size*.
99
+
To use a csv trace, we need to provide the column of *time*, *obj-id*, and *obj-size*.
100
100
Both time and size are optional, but many algorithms rely on time and size to work properly.
101
101
The column starts from 1, the first column is 1, the second is 2, etc.
102
-
Besides the column information, a csv reader also requires the delimiter and whether the csv file has a header.
102
+
Besides the column information, a csv reader also requires the delimiter and whether the csv file has a header.
103
103
cachesim builds in a simple delimiter and header detector, if the detected result is not correct, you can provide the correct information using `delimiter=,`, `has-header=true`.
104
104
105
105
@@ -115,7 +115,7 @@ cachesim builds in a simple delimiter and header detector, if the detected resul
0 commit comments