tune buffer sizes