Skip to content

Replay block trace based on timestamp. Generate trace with a given mean and stdv of throughput.

Notifications You must be signed in to change notification settings

wenhaocs/trace_replay

Repository files navigation

TraceReplayer

Trace generation

TraceGenerator_stable.py generates a stable I/O. E.g., python TraceGenerator_stable.py -w -f -s <std set to 0.1>

Trace File Format

time(ms) lba(sectors) size(sectors) type(read:0,write:1)

Log File

time(us) lba(bytes) size(bytes) type(0/1) latency(us)

Bug Notes

the right way to compile: gcc replay.c -lrt

error: aio.cc:(.text+0x156): undefined reference to `aio_read'

solution: add "-lrt" to link command. -lrt is necessary here.

error: ‘O_DIRECT’ undeclared (first use in this function)

solution: add #define _GNU_SOURCE before #include <fcntl.h>

About

Replay block trace based on timestamp. Generate trace with a given mean and stdv of throughput.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published