• Joe Thornber's avatar
    dm space maps: improve performance with inc/dec on ranges of blocks · be500ed7
    Joe Thornber authored
    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: default avatarJoe Thornber <ejt@redhat.com>
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    be500ed7
dm-era-target.c 38.5 KB