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

ZIL: Improve next log block size prediction #15635

Merged
merged 1 commit into from
Dec 21, 2023

Commits on Dec 21, 2023

  1. ZIL: Improve next log block size prediction

    Track history in context of bursts, not individual log blocks. It
    allows to not blow away all the history by single large burst of
    many block, and same time allows optimizations covering multiple
    blocks in a burst and even predicted following burst.  For each
    burst account its optimal block size and minimal first block size.
    Use that statistics from the last 8 bursts to predict first block
    size of the next burst.
    
    Remove predefined set of block sizes. Allocate any size we see fit,
    multiple of 4KB, as required by ZIL now.  With compression enabled
    by default, ZFS already writes pretty random block sizes, so this
    should not surprise space allocator any more.
    
    Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
    Sponsored by:	iXsystems, Inc.
    amotin committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    25bd9f7 View commit details
    Browse the repository at this point in the history