From b56a9f86541905776c5b7fe50f3a01c39924d624 Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 25 Jan 2011 04:31:38 +0000 Subject: [PATCH] add the memlock into the /etc/security/limits.conf git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8736 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhel.postinstall | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhel.postinstall b/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhel.postinstall index 5718efd2b..5c37997c1 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhel.postinstall +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/IBMhpc.rhel.postinstall @@ -73,5 +73,8 @@ fi #/usr/bin/sed -i 's/HARDRESIDENTLIMIT=.*/HARDRESIDENTLIMIT="unlimited"/g' $installroot/etc/sysconfig/ulimit #/usr/bin/sed -i 's/SOFTRESIDENTLIMIT=.*/SOFTRESIDENTLIMIT="unlimited"/g' $installroot/etc/sysconfig/ulimit +#max locked memory +echo "* soft memlock unlimited" >> $installroot/etc/security/limits.conf +echo "* hard memlock unlimited" >> $installroot/etc/security/limits.conf