diff --git a/doc/quickstart_traceUtils.md b/doc/quickstart_traceUtils.md index 90acb254..78f3359a 100644 --- a/doc/quickstart_traceUtils.md +++ b/doc/quickstart_traceUtils.md @@ -13,20 +13,20 @@ Print requests from a trace. ### traceConv Convert a trace to oracleGeneral format so you can run it faster (10x speedup) using less memory. Meanwhile, the generated trace has a smaller size, contains next request time. ```bash -# the first parameter is the input trace, the second parameter is trace type, the third parameter is the output trace path -./bin/traceConv ../data/cloudPhysicsIO.txt txt cloudPhysicsIO.oracleGeneral.bin +# the first parameter is the input trace, the second parameter is trace type, the output is in the same directory with suffic oracleGeneral +./bin/traceConv ../data/cloudPhysicsIO.txt txt ``` Note that the conversion supports all trace types including csv trace. Moreover, if the object id is numeric, add the option `-t obj_id_is_num=1` to the command line, which reduces memory usage. -``` -a trace using space as the delimiter and numeric object id +```bash +# a trace using space as the delimiter and numeric object id ./bin/traceConv /disk/trace.csv csv -t "time-col=1,obj-id-col=2,obj-size-col=3,delimiter= ,obj-id-is-num=1" ``` We can also sample a trace to reduce the size of the trace. ```bash # sample 1% of the trace -./bin/traceConv ../data/cloudPhysicsIO.vscsi vscsi ../data/cloudPhysicsIO.oracleGeneral -s 0.01 +./bin/traceConv ../data/cloudPhysicsIO.vscsi vscsi -s 0.01 ``` @@ -39,4 +39,3 @@ The generated trace is in oracleGeneral format. ./bin/traceFilter ../data/trace.vscsi vscsi --filter-type fifo --filter-size 0.01 --ignore-obj-size 1 ``` -