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

ZFS ARC max isn't honored #9629

Closed
xin-hedera opened this issue Oct 23, 2024 · 0 comments · Fixed by #9711
Closed

ZFS ARC max isn't honored #9629

xin-hedera opened this issue Oct 23, 2024 · 0 comments · Fixed by #9711
Assignees
Labels
bug Type: Something isn't working database Area: Database
Milestone

Comments

@xin-hedera
Copy link
Collaborator

Description

In our production environments with existing large disks and large zpools, the set value of 2GB ZFS ARC max isn't honored, instead, the effective max was likely auto set to around 50% of the available system memory, e.g.,

ARC status:                                                      HEALTHY
        Memory throttle count:                                         0

ARC size (current):                                    60.5 %   28.5 GiB
        Target size (adaptive):                        61.2 %   28.9 GiB
        Min size (hard limit):                          6.2 %    2.9 GiB
        Max size (high water):                           16:1   47.1 GiB

This would then lead to much higher ARC memory usage than expected, e.g., 28.5GB as shown above.

The theory is in our init script, we do the two things in order

  • zpool import existing pool
  • set ZFS ARC max to 2GB

In case of a very large existing pool, ZFS will auto calculate and set ARC min/max. When the effective ARC min (here it's 2.9GB) is higher than the ARC max in subsequent attempted changes, the change is just ignored.

We also need to test that with large pool, we don't run into the issues here and here.

Steps to reproduce

check the description

Additional context

No response

Hedera network

No response

Version

v0.0.116-rc3

Operating system

None

@xin-hedera xin-hedera added bug Type: Something isn't working database Area: Database labels Oct 23, 2024
@steven-sheehy steven-sheehy added this to the 0.118.0 milestone Oct 25, 2024
@xin-hedera xin-hedera self-assigned this Nov 5, 2024
@xin-hedera xin-hedera linked a pull request Nov 5, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working database Area: Database
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants