From: Dave Barach Date: Thu, 28 Jun 2018 14:59:05 +0000 (-0400) Subject: Fix mheap_get_aligned() performance jackpot X-Git-Tag: v18.07-rc1~79 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=9c949e72a473195c10a1c1caf503db9467c93f9a;hp=9c949e72a473195c10a1c1caf503db9467c93f9a;p=vpp.git 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 ---