aboutsummaryrefslogtreecommitdiffstats
path: root/tools/hugepages.py
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2016-05-04 13:21:14 +0100
committerMartin Klozik <martinx.klozik@intel.com>2016-05-04 13:29:55 +0100
commit9bfdb9f76d95cc0d9e8266f85e244f0fac8f069d (patch)
treea10c9aee03493d9c792c19c8a949ca698d6469df /tools/hugepages.py
parent25969600ac9508ecc54a25d7b0f628e0713a82a2 (diff)
bugfix: Fix creation of vsperfenv in Ubuntu
Wrong version of virtualenv was executed in Ubuntu specific script. So python modules could not be installed and vsperf was not working. Hugepages mount point is newly created inside sudo environment to avoid issues with permissions. Change-Id: I4f5afc22bceb2eebbf018c42f42b7074a93e2293 JIRA: VSPERF-292 Signed-off-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com>
Diffstat (limited to 'tools/hugepages.py')
-rw-r--r--tools/hugepages.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/hugepages.py b/tools/hugepages.py
index 71535922..3a434d6e 100644
--- a/tools/hugepages.py
+++ b/tools/hugepages.py
@@ -78,7 +78,8 @@ def mount_hugepages():
return
if not os.path.exists(settings.getValue('HUGEPAGE_DIR')):
- os.makedirs(settings.getValue('HUGEPAGE_DIR'))
+ tasks.run_task(['sudo', 'mkdir', settings.getValue('HUGEPAGE_DIR')], _LOGGER,
+ 'Creating directory ' + settings.getValue('HUGEPAGE_DIR'), True)
try:
tasks.run_task(['sudo', 'mount', '-t', 'hugetlbfs', 'nodev',
settings.getValue('HUGEPAGE_DIR')],