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

Fix missing write stats in Oximeter. #1617

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Fix missing write stats in Oximeter. #1617

merged 2 commits into from
Jan 28, 2025

Conversation

leftwo
Copy link
Contributor

@leftwo leftwo commented Jan 28, 2025

Write stats were not making it to Oximeter any longer. Sometime in the recent changes we stopped calling the method that updated both DTrace probes for write completion and calling the add_write that would eventually make it to Oximeter.

To do this, I made a common "stat update" function and added a call to the stat update function when a write "would have" been acked had we not fast-acked it already.

While I was here, I also updated some paths for dtrace scripts and updated column width for upstairs_count.d script.

Fixes #1615

After the changes on my bench gimlet you can see writes now:
WritesNow

Alan Hanson added 2 commits January 28, 2025 16:43
Made a common "stat update" function
Added a call to the stat update function when a write "would have"
been acked had we not fast-acked it already.

While I was here, I also updated some paths for dtrace scripts and
update column width for upstairs_count.d script.
@leftwo leftwo requested review from mkeeter and jmpesp January 28, 2025 16:54
@@ -558,14 +566,52 @@ impl Downstairs {

// Fire DTrace probes and update stats
let io_size = done.io_size();
match &done.work {
let work = done.work.clone();
Self::update_io_done_stats(&self.stats, work, ds_id, io_size);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh. github diff made a mess of this.

I pulled the stat update part of ack_job() out to a stand alone function, but
the diff thinks I changed more of ack_job() than I really did. There should be
almost nothing else different

@leftwo leftwo merged commit df17b64 into main Jan 28, 2025
17 checks passed
@leftwo leftwo deleted the alan/where-my-writes-at branch January 28, 2025 18:22
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.

Upstairs write stats are no longer sent to oximeter.
2 participants