• Oran Agra's avatar
    make active defrag test more stable · f89c93c8
    Oran Agra authored
    on slower machines, the active defrag test tended to fail.
    although the fragmentation ratio was below the treshold, the defragger was
    still in the middle of a scan cycle.
    
    this commit changes:
    - the defragger uses the current fragmentation state, rather than the cache one
      that is updated by server cron every 100ms. this actually fixes a bug of
      starting one excess scan cycle
    - the test lets the defragger use more CPU cycles, in hope that the defrag
      will be faster, but also give it more time before we give up.
    f89c93c8
memefficiency.tcl 8.05 KB