• Chris Mason's avatar
    Btrfs: Raise thresholds for metadata writeback · 24ab9cd8
    Chris Mason authored
    Btrfs metadata writeback is fairly expensive.  Once a tree block is written
    it must be cowed before it can be changed again.  The btree writepages
    code has a threshold based on a count of dirty btree bytes which is
    updated as IO is sent out.
    
    This changes btree_writepages to skip the writeout if there are less
    than 32MB of dirty bytes from the btrees, improving performance
    across many workloads.
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    24ab9cd8
disk-io.c 52.9 KB