Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to accumulate stats over different log files #6

Open
wookietreiber opened this issue Mar 26, 2016 · 0 comments
Open

option to accumulate stats over different log files #6

wookietreiber opened this issue Mar 26, 2016 · 0 comments
Assignees
Labels

Comments

@wookietreiber
Copy link
Owner

wookietreiber commented Mar 26, 2016

In some cases it might make sense to accumulate the syscalls over multiple log files. The following is sort of a dummy example to showcase this:

$ strace -T -ttt -ff -o /tmp/strace-dd.log dd if=/dev/zero of=/dev/null count=1024 bs=1M
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.322192 s, 3.3 GB/s

$ strace -T -ttt -ff -o /tmp/strace-dd.log dd if=/dev/zero of=/dev/null count=1024 bs=1M
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.365162 s, 2.9 GB/s

$ ls -lh /tmp/strace-dd.log.*
-rw-r--r-- 1 wookietreiber users 261K Mar 26 11:08 /tmp/strace-dd.log.23687
-rw-r--r-- 1 wookietreiber users 261K Mar 26 11:08 /tmp/strace-dd.log.23694

$ strace-analyzer write /tmp/strace-dd.log.* | column -t 
write  1G   in  27.621  ms  (~  36G   /  s)  with  1024  ops  (~  1M  /  op,  ~  1M  request  size)  /dev/null
write  101  in  229     us  (~  431K  /  s)  with  3     ops  (~  34  /  op,  ~  34  request  size)  STDERR
write  1G   in  27.885  ms  (~  36G   /  s)  with  1024  ops  (~  1M  /  op,  ~  1M  request  size)  /dev/null
write  101  in  4.667   ms  (~  21K   /  s)  with  3     ops  (~  34  /  op,  ~  34  request  size)  STDERR

Also, if the stats are not accumulated over multiple files, the output should include from which log file they are.

@wookietreiber wookietreiber self-assigned this Mar 26, 2016
@wookietreiber wookietreiber changed the title feature: option to accumulate stats over different log files option to accumulate stats over different log files Mar 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant