1. Tune the sort 2. support spilled records counter.