Skip to content
  • Olaf Hering's avatar
    xenpaging: improve performance in policy_choose_victim · 6c767584
    Olaf Hering authored
    
    
    policy_choose_victim() is one of the bottlenecks in xenpaging. It is called
    alot to find free bits in the fragmented bitmaps.
    
    Reduce turnaround time by skipping longs with all bits set.
    Adjust wrap detection in loop.
    
    v2:
     - fix copy&paste error, bitmap was tested twice
    
    Signed-off-by: default avatarOlaf Hering <olaf@aepfle.de>
    Committed-by: Ian Jackson <ian.jackson.citrix.com>
    6c767584