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

Amount of traffic reported is incorrect (much lower than real) #449

Open
SnapshotCiTy opened this issue Dec 12, 2024 · 4 comments
Open

Amount of traffic reported is incorrect (much lower than real) #449

SnapshotCiTy opened this issue Dec 12, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@SnapshotCiTy
Copy link

FreeBSD 14.1-RELEASE-p6
Bandwhich 0.23.1

Traffic reported by systat -if 1 is correct and matches what we see on the switch / router
Traffic reported by bandwhich is about 4x lower than what is currently being transferred /second

the traffic is a single zfs send stream through ssh

Screenshot attached.
Screenshot 2024-12-12 at 22 28 16

@cyqsimon
Copy link
Collaborator

cyqsimon commented Dec 13, 2024

Maybe related to #360?

On BSD-like OSes we use lsof to read system connections. I suspect this is the source of the problem, or maybe we are just using it wrong. See https://github.com/imsnif/bandwhich/blob/main/src/os/lsof_utils.rs.

Can you please try running bandwhich with --log-to and one level of --verbose? There may be some interesting logs we can take a look at.

@cyqsimon cyqsimon added bug Something isn't working help wanted Extra attention is needed labels Dec 13, 2024
@SnapshotCiTy
Copy link
Author

here is the log for bandwhich running for a bit while there was some zfs send through ssh transfers under way. Hope it helps.

bandwhich.log.tar.gz

@cyqsimon
Copy link
Collaborator

Yeah it seems like some source IP/host of lsof output is in an unhandled format. Although I must admit, the current logging infrastructure lacks sufficient granularity for me to fix it.

I will make some changes to error handling and logging and come back to you. Then you can either self-compile or run the CI build so that we can see what exactly the problem is.

@cyqsimon
Copy link
Collaborator

Can you please try out #451? I realised you are on FreeBSD where we unfortunately don't have a CI build available; you would have to self-compile.

Can you please:

  1. Check if the problem still persists? I found and fixed a problem during the rewrite which could explain your observations.
  2. And take another log for me so I can confirm there are no other issues?

Thanks.

@cyqsimon cyqsimon removed the help wanted Extra attention is needed label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants