[dpdk-dev] [PATCH] usertools: show an error message if unable to reserve requested hugepages

Stephen Hemminger stephen at networkplumber.org
Mon Nov 30 17:43:48 CET 2020


On Mon, 30 Nov 2020 17:45:33 +0500
Sarosh Arif <sarosh.arif at emumba.com> wrote:

> 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 he requested are all successfully reserved. This patch
> displays an error message if the pages reserved are different from the
> requested pages and shows the actual pages reserved.
> 
> Signed-off-by: Sarosh Arif <sarosh.arif at emumba.com>

This is ok, but this code was written to go through python lint
cleanly. This patch introduces new warnings:


usertools/dpdk-hugepages.py:239:4: W0601: Global variable 'args' undefined at the module level (global-variable-undefined)
usertools/dpdk-hugepages.py:239:4: C0103: Constant name "args" doesn't conform to UPPER_CASE naming style (invalid-name)


More information about the dev mailing list