hugepage_detect: Change hugepage detection to check for free hugepages 23/16923/9
authorChristian Trautman <ctrautma@redhat.com>
Thu, 14 Jul 2016 18:46:43 +0000 (14:46 -0400)
committerMaryam Tahhan <maryam.tahhan@intel.com>
Tue, 9 Aug 2016 08:03:20 +0000 (08:03 +0000)
commit31f0a3e0a25e147e285d14e2e262ac48aa83ce65
tree4c497db2655e0f2fc60ced59cb415feaeca10fc9
parent18253fb2133ae1bd294689d297b0182481c174c2
hugepage_detect: Change hugepage detection to check for free hugepages

Change hugepage detection to check if hugepages are configured. Also
verifies enough free hugepages are available based on test
configuration. Will result in an exception if not enough hugepages
are found. This performs the check based on the guest memory configs
as well as the dpdk socket configs.

Adds some new methods to check for free hugepages based on all
hugepages or for socket free hugepages.

Adds new logging indicitaing needed and free hugepages as well as info
level event if hugepages are not configured at recommended 1GB size.

JIRA: VSPerf-255

Change-Id: I80d5605308861070c412568d8d40339f01b9718b
Signed-off-by: Christian Trautman <ctrautma@redhat.com>
docs/configguide/installation.rst
testcases/testcase.py
tools/hugepages.py