fix bug: compact buffer when compression is enabled, sleep between evict