path: root/huge_page_setup_helper.py
diff options
authorJarod Wilson <jarod@redhat.com>2009-12-16 16:36:09 -0500
committerEric B Munson <ebmunson@us.ibm.com>2009-12-20 08:08:35 +0000
commitc3b782e0d3c54fe6a2140fc962b5f810a164282c (patch)
treecc7ecef45ed36246f97f4cf20071ba925514b51b /huge_page_setup_helper.py
parent1186391ed704fabc11aab28de35771f13e76fe52 (diff)
libhugetlbfs huge page setup helper
A common complaint we (Red Hat) get from customers is that setting up huge pages for use with their java or database applications is complex. While hugeadm makes this easier than it has been in the past, some customers want brain-dead simple, fire and forget setup. The attached patch adds a python script which attempts to implement that, asking the user only three questions (how much memory and what users and group should be able to use it), which should get them up and going. Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'huge_page_setup_helper.py')
1 files changed, 1 insertions, 1 deletions
diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py
index 5676e16..cdf3121 100755
--- a/huge_page_setup_helper.py
+++ b/huge_page_setup_helper.py
@@ -159,7 +159,7 @@ if userGIDReq > -1:
print "Group %s (gid %d) already exists, we'll use it" % (userGroupReq, userGIDReq)
if debug == False:
- os.popen("/usr/sbin/groupadd %s" % userGroupReq)
+ os.popen("/usr/sbin/groupadd %s" % userGroupReq)
print "/usr/sbin/groupadd %s" % userGroupReq
groupNames = os.popen("/usr/bin/getent group %s" % userGroupReq).readlines()