Skip to content

Commit c400493

Browse files
HaochengHaocheng
authored andcommitted
mix reader
1 parent 0b8101b commit c400493

25 files changed

Lines changed: 2285 additions & 19 deletions

bench/mix_workload/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Mix Pair Benchmark
2+
3+
This directory contains a batch script for benchmarking 2-trace mixed workloads.
4+
5+
The script:
6+
- enumerates traces from `/mnt/cfs/oracleReuse/sample`
7+
- picks 1000 unique unordered 2-trace pairs
8+
- benchmarks each participating trace once by itself
9+
- benchmarks each mixed pair through the `mix` reader
10+
- writes one CSV table containing both solo and mixed miss ratios
11+
12+
Example:
13+
14+
```bash
15+
python3 bench/mix_workload/benchmark_mix_pairs.py \
16+
--trace-dir /mnt/cfs/oracleReuse/sample \
17+
--num-pairs 1000 \
18+
--algo s3fifo \
19+
--cache-size 256MB \
20+
--jobs 4 \
21+
--resume
22+
```
23+
24+
Useful outputs next to `--output-csv`:
25+
- `*.manifest.csv`: the exact sampled pair list
26+
- `*.solo.csv`: cached single-trace results reused by pair rows
27+
28+
If the run is interrupted, rerun with `--resume` to continue from the existing manifest and CSV files.

0 commit comments

Comments
 (0)