Commit Graph

14 Commits

Author SHA1 Message Date
Aliaksandr Valialkin b48200dc4a Return all the byte buffers to the pool until the first calibration 2016-06-24 14:18:14 +03:00
Aliaksandr Valialkin ea471ff2ce Do not return buffers with too big capacity to the pool 2016-06-23 22:41:46 +03:00
Aliaksandr Valialkin a1c2e6cf76 Revert "Return back pools segementation by size".
This reverts commit 08eb8e13d0,
since it led to high memory usage on the production box.

The commit need additional investigation.
2016-06-23 22:19:16 +03:00
Aliaksandr Valialkin 08eb8e13d0 Return back pools segementation by size 2016-06-23 22:07:48 +03:00
Aliaksandr Valialkin da2b103f14 Removed debug logging 2016-06-23 20:59:29 +03:00
Aliaksandr Valialkin 1dbe0d3c7d Drop buffers with sizes greater than 95% percentile 2016-06-23 20:58:48 +03:00
Aliaksandr Valialkin c0dd811f50 Atomically load pool indexes 2016-06-23 19:20:57 +03:00
Aliaksandr Valialkin 5f9190a306 Allocate from the most frequently used pool 2016-06-23 19:08:27 +03:00
Aliaksandr Valialkin ee98c9419f Keep zero-length buffers in the pool 2016-06-23 17:43:05 +03:00
Aliaksandr Valialkin 7e712dfeb6 Drop buffers with under-used capacity in order to reduce memory waste 2016-06-23 15:09:07 +03:00
Aliaksandr Valialkin 164e50ac3f renaming: AcquireByteBuffer -> Acquire, ReleaseByteBuffer -> Release 2016-06-23 11:07:55 +03:00
Aliaksandr Valialkin e8ad8e40ca Formatting fix 2016-06-22 20:47:40 +03:00
Aliaksandr Valialkin 2cfa228f2b Mention that fasthttp and quicktemplate use bytebufferpool 2016-06-22 20:39:15 +03:00
Aliaksandr Valialkin 21bf76e6cc Initial implementation 2016-06-22 20:28:05 +03:00