-
Notifications
You must be signed in to change notification settings - Fork 201
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
feature: supported to measure the distribution of the VFS read/write … #36
base: master
Are you sure you want to change the base?
Conversation
samples/disk-io-blocking-vfs.sxx
Outdated
|
||
probe vfs.read*.return, vfs.write*.return | ||
{ | ||
if (sprintf("%d", pid()) =~ "^($^target)$" && begin[pid()] > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is slow: see how we do this in the ngx-req-distr tool.
stap++
Outdated
@@ -183,7 +183,7 @@ if (defined $master_pid) { | |||
} | |||
|
|||
$StdVars{pid_ok} = gen_pid_test_condition(\@pids); | |||
$StdVars{target} = "@pids"; | |||
$StdVars{target} = join "|", @pids; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we don't want this change.
@agentzh all fixed, please take a look when you have time ^_^ |
one more thing, I rewrite It supported to monitor the master process and get all the metric of worker process, and supported |
README.markdown
Outdated
@@ -238,6 +239,60 @@ Samples | |||
|
|||
[Back to TOC](#table-of-contents) | |||
|
|||
disk-io-blocking-vfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tool name is too verbose. vfs
means virtual file system
, which already implies disk I/O
. Also, you are actually testing file IO instead of disk IO since there is no way to know if it indeed touches the disk device on the VFS level.
…latency.
todo:
samples/disk-io-blocking-vfs.sxx