set cpu_avg buffer to max needed size