mem: unmap unneeded space
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 30 Apr 2018 11:21:43 +0000 (12:21 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 23:32:38 +0000 (01:32 +0200)
commit68c360386712df2d729858d2dde16ddb2fd90aac
tree639ba14a5416cf8d8a2cb83003f3b101ea0dea5b
parent91fe57ac0010324510d9e6532daf79b5bc50ed6c
mem: unmap unneeded space

When we ask to reserve virtual areas, we usually include
alignment in the mapping size, and that memory ends up
being wasted. Wasting a gigabyte of VA space while trying to
reserve one gigabyte is pretty expensive on 32-bit, so after
we're done mapping, unmap unneeded space.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/eal_common_memory.c