usertools: show error if unable to reserve hugepages
authorSarosh Arif <sarosh.arif@emumba.com>
Fri, 8 Jan 2021 09:06:27 +0000 (14:06 +0500)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 Feb 2021 18:49:32 +0000 (19:49 +0100)
commitb25f0a7df80b620bab09dcb34bf4547d31ddede1
tree6d0ae5ee665463d3ac2106199a073880a30b1621
parent2204feccf225071d459947e5eebf279469aca961
usertools: show error if unable to reserve hugepages

Sometimes the system is unable to reserve the requested hugepages because
enough space is not available in the RAM. In that case, currently the
script displays no error message hence the user can be under the delusion
that the hugepages requested are all successfully reserved. This patch
displays an error message if the pages reserved are different from the
requested pages.

Signed-off-by: Sarosh Arif <sarosh.arif@emumba.com>
usertools/dpdk-hugepages.py