[Bugs] [Bug 1716870] New: Came up with a script to analyze strace outputs from bricks
bugzilla at redhat.com
bugzilla at redhat.com
Tue Jun 4 10:28:42 UTC 2019
https://bugzilla.redhat.com/show_bug.cgi?id=1716870
Bug ID: 1716870
Summary: Came up with a script to analyze strace outputs from
bricks
Product: GlusterFS
Version: mainline
Status: NEW
Component: scripts
Assignee: bugs at gluster.org
Reporter: pkarampu at redhat.com
CC: bugs at gluster.org
Target Milestone: ---
Classification: Community
Debugging performance issues often includes comparison of brick strace files to
compare number of syscalls/maximum-latencies per syscall etc with previous
runs.
This script helps in getting these numbers.
Running it creates 3 types of files:
1) syscalls-summary.txt - Prints per syscall counts
2) <syscall>-latency.txt - This is an intermediate file where all 'syscall'
calls from all the strace files will be listed.
3) per-fop-latency.txt - Per syscall it prints top <n> maximum latencies
observed.
Assumes the files in strace-dir are created using the following command:
$ strace -ff -T -p <pid-of-brick> -o
<path-to-the-dir/file-where-output-is-saved>
Sample output of syscalls-summary.txt:
49857 chmod
49906 chown
97542 close
650309 fgetxattr
18 flistxattr
....
Sample output of per-fop-latency.txt:
--chmod--
0.000216
0.000254
0.000266
...
--unlink--
0.020208
0.025084
0.027231
...
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list