-
Notifications
You must be signed in to change notification settings - Fork 235
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
Update cachestat examples for kernels < 5.16 and add comments for 5.16+ #372
Conversation
8d4c1cd
to
5af093c
Compare
With CI running a newer kernel, you need to update this as well: When testing locally, I see that
Here are the stack traces for both on v6.9-rc3:
It looks like both are called unconditionally from I don't think we need two counters for one thing. |
@bobrik, interesting behavior!
Stack traces:
As far as I understand, the main fork occurs in this condition - https://github.com/torvalds/linux/blob/4fe89d07dcc2804c8b562f6c7896a45643d34b2f/fs/buffer.c#L2526 (In the latest version of the kernel, this code was rewritten a little, but again, as far as I can tell, the logic has not changed - torvalds/linux@fe18137) Therefore, I am not sure that both counters always duplicate each other. What do you think about it? |
It's probably that just my vm exhibits this behavior. I don't see it in production. You should still update this before I can merge: |
@bobrik, Thanks for your comments! I corrected Makefile. |
According to the discussion in #370: