diff options
author | Dave Barach <dave@barachs.net> | 2018-06-28 10:59:05 -0400 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-06-28 16:33:36 +0000 |
commit | 9c949e72a473195c10a1c1caf503db9467c93f9a (patch) | |
tree | f44a2128cd25735f553cc9a494a4b12e2580d085 /src/vnet/vnet_msg_enum.h | |
parent | 7e12d949a346d2e69afb7a8029c0099b5f131b25 (diff) |
Fix mheap_get_aligned() performance jackpot
If non-trivial alignment (e.g. 64) requested, and the object size
(e.g. 16) is smaller than (alignment_request -
MHEAP_ELT_OVERHEAD_BYTES), round up the size request.
This avoids creating remainder chunks, which are
false-cache-line-sharing bait to begin with.
Change-Id: Ie1a21286d29557d125bb346254b1be2def868b1a
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/vnet_msg_enum.h')
0 files changed, 0 insertions, 0 deletions