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

feature: supported to measure the distribution of the VFS read/write … #36

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

membphis
Copy link

@membphis membphis commented Feb 26, 2018

…latency.

todo:

  • add doc for script samples/disk-io-blocking-vfs.sxx


probe vfs.read*.return, vfs.write*.return
{
if (sprintf("%d", pid()) =~ "^($^target)$" && begin[pid()] > 0) {
Copy link
Member

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;
Copy link
Member

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.

@membphis
Copy link
Author

membphis commented Mar 4, 2018

@agentzh all fixed, please take a look when you have time ^_^

@membphis
Copy link
Author

membphis commented Mar 4, 2018

one more thing, I rewrite samples/ngx-req-latency-distr.sxx.

It supported to monitor the master process and get all the metric of worker process, and supported time, method and uri argument now.

README.markdown Outdated
@@ -238,6 +239,60 @@ Samples

[Back to TOC](#table-of-contents)

disk-io-blocking-vfs
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants