maxBuffer to correspond to maxRepoSize