Monty Taylor posted interesting investigation of the fact read_buffer_size variable … while there well could be some internal gotchas. The next Monty comes up with 2 posts on mmap allocation. Indeed allocating…” and in real life it can get much slower than Monty results show. Mmap allocation process can be split to two…
Post: Impact of the sort buffer size in MySQL
… the sort buffer comes from the way Linux allocates memory. Monty Taylor (here) have described the underlying issue in detail, but basically…

