-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Restore FreeBSD resource usage accounting #11613
Conversation
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
@trasz @mmatuska @avg-I @asomers pinging in case any of you FreeBSD people would like to review/test this. I slightly refactored the code that was introduced in freebsd/freebsd-src@825d80e freebsd/freebsd-src@440634a freebsd/freebsd-src@1f39d42 to simplify the platform abstraction. I do find that I have to build with |
Add zfs_racct_* interfaces for platform-dependent read/write accounting. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes openzfs#11613
I stumbled across this in #11657 : Is the idea behind this that calls to |
Yeah it looks like they serve the same purpose. I didn't notice them hiding all the way over there... 👀 |
Yes, this slipped my mind as well. Using a common set of wrappers for this would be nice, though I think we might need to extend them as needed for things like O_DIRECT IO which entirely bypasses the ARC. |
Add zfs_racct_* interfaces for platform-dependent read/write accounting. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes openzfs#11613
Add zfs_racct_* interfaces for platform-dependent read/write accounting. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #11613
Add zfs_racct_* interfaces for platform-dependent read/write accounting. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes openzfs#11613
Motivation and Context
Resource usage accounting was lost on FreeBSD.
Description
Add zfs_racct_* interfaces for platform-dependent read/write accounting.
How Has This Been Tested?
top -m io
Types of changes
Checklist:
Signed-off-by
.