Skip to content
Snippets Groups Projects
Commit a58b9bb8 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

iproto: reduce effects of input buffer fragmentation on large cfg.readahead

When cfg.readahead is large, iproto_reset_input() has a tendency to
leave all input buffers large enough for a long time. On the other hand,
the input buffer is not recycled until its maximal size is reached.
This leaves to a case when we keep shifting the read position towards
the end of the buffer, fragmenting memory and growing it to readahead
size, even if input packets and batches are actually small.

Suggested by Alexander Turenko.
parent 363ab8e6
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment