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

present bitswap stats at the end of the sim #2

Open
whyrusleeping opened this issue Jun 24, 2015 · 2 comments
Open

present bitswap stats at the end of the sim #2

whyrusleeping opened this issue Jun 24, 2015 · 2 comments

Comments

@whyrusleeping
Copy link

I know youre looking at metrics (ipfs/kubo#1418) but I just figured i'd file and issue here to discuss what numbers we want to see at the end of a bitswap test.

I have a couple numbers built into the 'stat' command, such as total blocks received and the number of duplicate blocks received (duplicate blocks is arguably the most important metric right now). But also important is mean time from block request to block receipt, and overall bandwidth across varying network conditions. Also nice to know would be bandwidth overhead, how much extra data are we sending on top of the actual file being requested.

@kbala444
Copy link
Owner

Would you like mean block time per bitswap instance, mean block time across all bitswap instances, or both?

And could you give me a pointer on how I would get bandwidth information? Would it make sense to change the ReceiveMessage function in bitswap to log the received message info somewhere? Or could I have my own stream reader that logs the number of bytes it reads in mocknet?

@jbenet
Copy link

jbenet commented Jun 25, 2015

Would you like mean block time per bitswap instance, mean block time across all bitswap instances, or both?

both

And could you give me a pointer on how I would get bandwidth information? Would it make sense to change the ReceiveMessage function in bitswap to log the received message info somewhere? Or could I have my own stream reader that logs the number of bytes it reads in mocknet?

bandwidth can come from the connections. we already have metrics like these, i think. @whyrusleeping ?

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

No branches or pull requests

3 participants