buffer limit setting