-
Notifications
You must be signed in to change notification settings - Fork 251
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
Change resolution to 1us rather than 10us #101
Comments
This is going to be quite difficult to achieve because fping uses '10 us' as unit for time internally, so it would mean refactoring quite a few parts, and making sure that this doesn't introduce any issues (in particular about overflowing the time interval variables). |
This is a really old issue now, but I have some thoughts. First of all, A better choice would be Note that I'm looking at refactoring stuff to use these clocks instead, but I don't know how far I'll get. There's a lot of magic multiplication and such to keep things at the 10us granularity. |
The reason this was bothering me, by the way, was this behavior with Smokeping: It clamps to the nearest multiple of 10us, which makes the result look noisier than it actually is. I did a first pass of moving to https://github.com/tycho/fping/tree/wip-high-resolution-clock-sources |
@tycho I thought this was an April Fools day joke! I scanned your WIP branch and it looks reasonable to me. When I get a chance next week, I'll check it out, build it and give it a test. |
One thing to note, it is important to |
That's probably a better idea than setuid root, yeah. |
@tycho Thanks a lot for your work! It looks very good and maybe we could integrate this for fping 4.2 ? I plan to do a fping 4.1 release with some bugfixes soon. |
Sure, that'd be fine. I should clean up the commit first though. IIRC, I gutted |
Moved to a new branch and added Submitting a pull request momentarily. |
Any progress on this? Seems that the PR is opened since Sep 30 2018 but was not yet merged. I'd love having this in. Thx for the work @tycho |
Friendly ping as well; would very much like this. |
I think this also might fix netdata/netdata#8148 - I'll test shortly. Update: sadly, did not fix but at least I found a workaround. |
Currently the minimum resolution for fping is 10us. Ideally that would be lowered to 1us. This is especially useful for modern low latency devices. Ultimately, I'm sure measurements under 1us will be desired.
The text was updated successfully, but these errors were encountered: