Skip to content

Commit

Permalink
fix error in the prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
1a1a11a committed Nov 24, 2024
1 parent 14e64cc commit 8ee4481
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions doc/quickstart_traceUtils.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


Expand All @@ -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
```


0 comments on commit 8ee4481

Please sign in to comment.