Skip to content

Commit

Permalink
trace
Browse files Browse the repository at this point in the history
  • Loading branch information
shuwens committed Oct 30, 2024
1 parent 1c17c6e commit e4cb8e7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ cpuprofile.file
paths.txt
vault-benchmarking/
wrk-scripts/

test/
34 changes: 34 additions & 0 deletions utils/capture-zstore-perf-trace.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
set -xeuo pipefail

# Record a full run under perf of fio with rbd backend LSVD preloaded
zstore_dir=$(git rev-parse --show-toplevel)
source $zstore_dir/.env

cd $zstore_dir

# cd $lsvd_dir
# make clean
# make -j$(nproc) release

# ./tools/remove_objs.py pone perf-fio
# ./imgtool create --size 1G pone perf-fio
# ./thick-image --size=10G pone/perf-fio

cd test/

rm perf.data || true
rm /tmp/*.wcache || true

# LD_PRELOAD=$lsvd_dir/builddir/liblsvd.so \
# perf record -g --call-graph dwarf -F 999 -o ./perf.data -- \
# fio --name=fwl --rw=randwrite --size=10G --bs=4k --iodepth=64 --numjobs=1 \
# --randseed=42 --runtime=60 --direct=1 \
# --ioengine=rbd --pool=pone --rbdname=perf-fio || true

# export LSVD_CACHE_SIZE=$((15 * 1024 * 1024 * 1024))
# LD_PRELOAD=$lsvd_dir/builddir/liblsvd.so \
perf record -g --call-graph dwarf -F 999 -o ./perf.data -- \
../build-rel/zstore 1 1 || true

# perf script -F +pid --no-inline --input=./perf.data > ./perf.script

0 comments on commit e4cb8e7

Please sign in to comment.