• J
    dm space maps: improve performance with inc/dec on ranges of blocks · be500ed7
    Joe Thornber 提交于
    When we break sharing on btree nodes we typically need to increment
    the reference counts to every value held in the node.  This can
    cause a lot of repeated calls to the space maps.  Fix this by changing
    the interface to the space map inc/dec methods to take ranges of
    adjacent blocks to be operated on.
    
    For installations that are using a lot of snapshots this will reduce
    cpu overhead of fundamental operations such as provisioning a new block,
    or deleting a snapshot, by as much as 10 times.
    Signed-off-by: NJoe Thornber <ejt@redhat.com>
    Signed-off-by: NMike Snitzer <snitzer@redhat.com>
    be500ed7
dm-btree-spine.c 5.6 KB