-
Notifications
You must be signed in to change notification settings - Fork 178
Remove a noisy log line #1125
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
base: main
Are you sure you want to change the base?
Remove a noisy log line #1125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about removing the log before we solve this, we identified it because of these logs, without them we have 0 observability
I don't think there's an actual bug here, it's working as designed, we're just spamming a lot of logs in a happy path. |
I though you reported an issue where the start was slowed down and it correlated to seeing a lot of these logs |
Pretty sure the slowdown ended up being the clock sync issue fixed here. Regardless, this was something I found while I was looking for errors, but it was not the error itself. |
We can try the epoll to reduce this, but I think the reason for the @jakubno The correlation is not between the error itself, but probably between the length of how long it took to serve the page:
|
We could potentially get rid of the https://man7.org/linux/man-pages/man2/userfaultfd.2.html (cc @tomassrnka) |
The log/error can be triggered if you put a small sleep before serving the page here You also need to enable the logs as zap is not logged during tests to // start of TestUffdMissing
config := zap.NewDevelopmentConfig()
logger, err := config.Build()
require.NoError(t, err)
zap.ReplaceGlobals(logger)
...
err := uffd.Serve(t.Context(), m, data, fdExit, logger) |
Using epoll does not help—getting:
|
With the poll the error is slightly different (returning "read_bytes" -1 instead of 1):
|
Removing |
I’d recommend switching to count-based logging instead of logging every single occurrence. Aggregating the EAGAIN events lets us keep visibility into how often the queue is empty, without flooding the logs. Rather than spamming a line for each empty poll (which can be tens of thousands per minute), we emit a single summary every few seconds. That way, you still see the behavior but don’t drown out real errors or blow the log budget. Sth like (not meant as production patch, just an idea):
|
Just to be explicit for context—I don't think we can get rid of the |
Also two ideas here:
|
This line is 30% of the last 60 minutes of logs in production