Skip to content

Commit

Permalink
[WIP] perf_sbuffer.sh: a srcipt to help debugging sbuffer perf
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwljwljwljw committed Oct 7, 2020
1 parent 1972271 commit b2bf5b8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions debug/perf_sbuffer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

echo -n "store cnt: "
grep "accept req" $1 | wc -l

echo -n "dcache req cnt: "
grep "send buf" $1 | wc -l

echo -n "req[0] blocked: "
grep "\[0\] blocked by sbuffer" $1 | wc -l

echo -n "req[1] blocked: "
grep "\[1\] blocked by sbuffer" $1 | wc -l

echo -n "sbuffer cnt = 15: "
grep "sbuffer entry cnt: 15" $1 | wc -l

echo -n "sbuffer cnt = 16: "
grep "sbuffer entry cnt: 16" $1 | wc -l

0 comments on commit b2bf5b8

Please sign in to comment.