-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DTrace probes for IO on/off the network (#1284)
Put in DTrace probes for when a message is put on the wire to a downstairs, and a corresponding probe when a message is pulled off the wire from a downstairs. Updated the README, and moved a few D scripts around. Left the existing probes that were previously marking networking but had drifted off to measuring something else where they were, but updated the comments to reflect their new role. Added a new D script, `perf-ds-net.d`, for the new probes. Moved the old `perfdw.d` to be `perf-ds-client.d`. --------- Co-authored-by: Alan Hanson <[email protected]>
- Loading branch information
Showing
6 changed files
with
129 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Trace all IOs from the Upstairs for each Downstairs from the time they | ||
* are sent to the client task who handles the network tranmission to the | ||
* time the result message is returned to the main task and processing | ||
* is about to begin. | ||
* Group by IO type (R/W/F) and client ID (Which downstairs). | ||
* | ||
* arg0 is the job ID number. | ||
* arg1 is the client ID | ||
*/ | ||
crucible_upstairs*:::ds-*-client-start | ||
{ | ||
start[arg0, arg1] = timestamp; | ||
} | ||
|
||
crucible_upstairs*:::ds-*-client-done | ||
/start[arg0, arg1]/ | ||
{ | ||
strtok(probename, "-"); | ||
this->cmd = strtok(NULL, "-"); | ||
|
||
@time[strjoin(this->cmd, " for downstairs client"), arg1] = | ||
quantize(timestamp - start[arg0, arg1]); | ||
start[arg0, arg1] = 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters