[dpdk-dev] [PATCH v2 2/2] mem: unmap unneeded space
Bruce Richardson
bruce.richardson at intel.com
Mon Apr 30 14:50:36 CEST 2018
On Mon, Apr 30, 2018 at 12:21:43PM +0100, Anatoly Burakov wrote:
> 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 at intel.com>
> ---
>
> Notes:
> v2:
> - Split fix for size_t overflow into separate patch
> - Improve readability of unmapping code
> - Added comment explaining why unmapping is done
>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list