aboutsummaryrefslogtreecommitdiff
path: root/huge_page_setup_helper.py
AgeCommit message (Collapse)Author
2010-10-20setup_helper: don't crash when empty group name is provided.Anton Arapov
Don't crash with the empty group name provided, rather suggest "hugepages" one and use it by the default. Reported-by: CAI Qian <caiqian@redhat.com> Signed-off-by: Anton Arapov <anton@redhat.com> Signed-off-by: Eric B Munson <emunson@mgebm.net>
2010-10-20setup_helper: fix the crash where the user and group were the same.Anton Arapov
Huge page setup script was unable to create hugepages user with the same group. Reported-by: CAI Qian <caiqian@redhat.com> Signed-off-by: Anton Arapov <anton@redhat.com> Signed-off-by: Eric B Munson <emunson@mgebm.net>
2010-10-20setup_helper: make r/w ops of security/limits.d/*.conf more robust.Anton Arapov
previous routine led to failures on \n, whitespace, comment in configuration file. Reported-by: CAI Qian <caiqian@redhat.com> Signed-off-by: Anton Arapov <anton@redhat.com> Signed-off-by: Eric B Munson <emunson@mgebm.net>
2010-10-20setup_helper: check for permission and disable default debug modeAnton Arapov
1. fallback gracefully with explanation; 2. do actual work; not just print out; // *debug*mode* off. Signed-off-by: Anton Arapov <anton@redhat.com> Signed-off-by: Eric B Munson <emunson@mgebm.net>
2010-10-20setup_helper: fix the minor arithmetic issue.Anton Arapov
we do want compare MiB with MiB. Reported-by: CAI Qian <caiqian@redhat.com> Signed-off-by: Anton Arapov <anton@redhat.com> Signed-off-by: Eric B Munson <emunson@mgebm.net>
2010-10-20setup_helper: whitespace fixesAnton Arapov
ssia. important thing in python... Signed-off-by: Anton Arapov <anton@redhat.com> Signed-off-by: Eric B Munson <emunson@mgebm.net>
2009-12-20libhugetlbfs huge page setup helperJarod Wilson
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>
2009-12-18libhugetlbfs huge page setup helperJarod Wilson
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>