On Mon, 30 Nov 2020 17:45:33 +0500 Sarosh Arif <sarosh.a...@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.a...@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)