consider div-by-0 when calculating the vcache's hitrate
wrap the progress bar in a critical region