Just want to try if this helps... We have a run-away memory consumption when under heavy load.
This was obviously wrong, as already noted in the comment.
We used a cache_size * num-cpu-shards actual cache size. This fixes it.
Added a comment
Merge branch 'daniel_writeback_memory_savings' into next