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

Measure network round trip time #940

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmpesp
Copy link
Contributor

@jmpesp jmpesp commented Sep 22, 2023

Create a network round trip dynamometer. Also, fix how the downstairs dynamometer measures IOPs.

Create a network round trip dynamometer. Also, fix how the downstairs
dynamometer measures IOPs.
},
}

#[tokio::main]
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't love that the propocol lib is now a binary. It might be a little confusing
to someone coming in. Could we maybe rename the resulting binary protocol_test or
ptest or something to indicate that?

An additional idea, maybe a README somewhere talking about it. I've been negligent
as well in documenting what all the stuff in the crucible repo is, and we should start
getting better about leaving breadcrumbs behind to assist new readers on what the
heck all this stuff is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, I'd even suggest a separate binary crate so that protocol remains a pure library crate.

#[clap(about = "Protocol serialization and deserialization speed test")]
enum Args {
Dynamometer {
#[clap(short, long, default_value_t = 512)]
Copy link
Contributor

Choose a reason for hiding this comment

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

This ones missing the doc comment.

Copy link
Contributor

Choose a reason for hiding this comment

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

The doc comment should also specify the unit (it looks like bytes)

use uuid::Uuid;

#[derive(Debug, Parser)]
#[clap(about = "Protocol serialization and deserialization speed test")]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is really just testing writes.
Would read IO be any different, or is it just the same thing but going in the
other direction?

@@ -8,6 +8,12 @@ pub enum DynoFlushConfig {
None,
}

macro_rules! ceiling_div {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hopefully div_ceil gets stabilized soon!

io_operations_sent += num_writes;
io_operations_sent += ceiling_div!(
num_writes * ddef.block_size() as usize,
16 * 1024 * 1024
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain where this number comes from? It's not obvious to me!


io_operations_sent += num_writes;
io_operations_sent +=
ceiling_div!(num_writes * write_size, 16 * 1024 * 1024);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, not sure where 16 MiB comes from

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.

3 participants