-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add zfs feature flag for arc memory #784
Conversation
Thanks for the PR! Will take a look in a bit. I can test on macOS as well (EDIT: at least to make sure nothing broke, will probably have to look into arc for macos in a separate PR). |
Codecov Report
@@ Coverage Diff @@
## master #784 +/- ##
==========================================
- Coverage 24.04% 23.66% -0.39%
==========================================
Files 60 60
Lines 13008 13239 +231
==========================================
+ Hits 3128 3133 +5
- Misses 9880 10106 +226
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Mostly just some nits. Otherwise looks fine. Will run on macOS and check it off if it seems fine later tomorrow. |
@ClementTsang Thanks for your timely response and great feedback! I have tried to address the comments raised. If more is needed please let me know. Additionally I would like to know if you think this approach would be satisfactory for say Video Card RAM with the EDIT: forgot a feature flag... You may want to squash if you merge. |
LGTM. Thanks for the PR! @all-contributors please add @jamartin9 for code. |
I've put up a pull request to add @jamartin9! 🎉 |
I think that could work, yeah. |
Does zfs expose similar information for L2ARC? If so, maybe that could be shown as well? |
Yes |
Description
Adds arc support for linux and freebsd.
This is enabled by default with the zfs feature flag but only shown at runtime when arc collection support is detected.
Linux with arc:
Linux no arc:
FreeBSD with arc:
FreeBSD no arc:
Windows no arc:
Issue
This does not include extra arc information like compression ratio.
refs: #688
Testing
If relevant, please state how this was tested. All changes must be tested to work:
If this is a code change, please also indicate which platforms were tested:
I did not test for macOS arc support...(it may work with sysctl like freebsd?)
Checklist
If relevant, ensure the following have been met:
cargo fmt
)README.md
, help menu, etc.)Feel free to close the PR if the implementation is too erroneous