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

Enable L2 cache of all (MRU+MFU) metadata but MFU data only #16402

Merged
merged 1 commit into from
Aug 16, 2024

Commits on Aug 12, 2024

  1. Enable L2 cache of all (MRU+MFU) metadata but MFU data only

    Fixes openzfs#16343
    
    `l2arc_mfuonly` was added to avoid wasting L2 ARC on read-once MRU
    data and metadata. However it can be useful to cache as much
    metadata as possible while, at the same time, restricting data
    cache to MFU buffers only.
    
    This patch allow for such behavior by setting `l2arc_mfuonly` to 2
    (or higher). The list of possible values is the following:
    0: cache both MRU and MFU for both data and metadata;
    1: cache only MFU for both data and metadata;
    2: cache both MRU and MFU for metadata, but only MFU for data.
    
    Signed-off-by: Gionatan Danti <g.danti@assyoma.it>
    shodanshok committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    1185485 View commit details
    Browse the repository at this point in the history