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

Prefetch on deadlists merge. #14402

Merged
merged 1 commit into from
Jan 25, 2023
Merged

Commits on Jan 21, 2023

  1. Prefetch on deadlists merge.

    During snapshot deletion ZFS may issue several reads for each deadlist
    to merge them into next snapshot's or pool's bpobj.  Number of the dead
    lists increases with number of snapshots.  On HDD pools it may take
    significant time during which sync thread is blocked.
    
    This patch introduces prescient prefetch of required blocks for up to
    128 deadlists ahead.  Tests show reduction of time required to delete
    dataset with 720 snapshots with randomly overwritten file on wide HDD
    pool from 75-85 to 22-28 seconds.
    
    Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
    Sponsored by:	iXsystems, Inc.
    amotin committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    6dd3bb1 View commit details
    Browse the repository at this point in the history