Skip to content
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

NAS-129533 / 24.04.3 / Tune ARC memory pressure parameters (by amotin) #13951

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

bugclerk
Copy link
Contributor

  • Setting zfs_arc_shrinker_limit=0 should make ARC more obedient to all kernel shrinker KPI requests, that should help to avoid OOMs.

  • zfs_arc_pc_percent=300 should prevent file-backed part of page cache from getting bigger than 1/3 of ARC, that should help with ARC shrinking to its minimum by heavy mmap() I/O. It is not perfect from perspective of adapting to different workloads, but the best we can do for now.

Original PR: #13949
Jira URL: https://ixsystems.atlassian.net/browse/NAS-129533

 - Setting zfs_arc_shrinker_limit=0 should make ARC more obedient to
all kernel shrinker KPI requests, that should help to avoid OOMs.

 - zfs_arc_pc_percent=300 should prevent file-backed part of page
cache from getting bigger than 1/3 of ARC, that should help with ARC
shrinking to its minimum by heavy mmap() I/O.  It is not perfect
from perspective of adapting to different workloads, but the best
we can do for now.

(cherry picked from commit 29746fa)
@amotin amotin merged commit 0045fc1 into stable/dragonfish Jun 28, 2024
1 check was pending
@amotin amotin deleted the NAS-129533-24.04.3 branch June 28, 2024 18:37
@bugclerk
Copy link
Contributor Author

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants