You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2016/07/25 16:19:50 UTC

[1/3] incubator-trafodion git commit: [TRAFODION-1605] sqstart hangs if ulimits not correct

Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 63b06288f -> f444869dd


[TRAFODION-1605] sqstart hangs if ulimits not correct


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/da42f9f9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/da42f9f9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/da42f9f9

Branch: refs/heads/master
Commit: da42f9f94b13f4b6be6d46eb20e97e4352607b75
Parents: 81a455e
Author: Liu Ming <ov...@sina.com>
Authored: Thu Jul 21 19:20:20 2016 -0400
Committer: Liu Ming <ov...@sina.com>
Committed: Thu Jul 21 19:20:20 2016 -0400

----------------------------------------------------------------------
 core/sqf/sql/scripts/sqstart | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/da42f9f9/core/sqf/sql/scripts/sqstart
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/sqstart b/core/sqf/sql/scripts/sqstart
index 5e5f01a..c54a070 100755
--- a/core/sqf/sql/scripts/sqstart
+++ b/core/sqf/sql/scripts/sqstart
@@ -245,6 +245,39 @@ function checkKerberos {
    return 0
 }
 
+function checkUlimit {
+  
+ #check max_pid 
+ userProc=`cat /proc/sys/kernel/pid_max`
+ if [[ $userProc -gt 65535 ]] ; then
+    echoLog ""
+    echoLog "ERROR: detect issue during startup, please make sure your kernel parameter (sysctl) setup correctly"
+    echoLog "ERROR: max_pid should not be greater than 65535"
+    echoLog ""
+    return
+ fi
+
+ #check ulimit -l
+ maxLockMem=`ulimit -l`
+ if [[ $maxLockMem -lt 65536 ]] ; then
+    echoLog ""
+    echoLog "ERROR: detect issue during startup, please make sure your ulimit setup correctly"
+    echoLog "ERROR: max locked memory is smaller than 64M"
+    echoLog ""
+    return 
+ fi
+  
+ #check ulimit -l
+ if [[ $maxLockMem -lt 327680 ]] ; then
+    echoLog ""
+    echoLog "WARNING: detect issue during startup, please make sure your ulimit setup correctly"
+    echoLog "WARNING: max locked memory is smaller than 320M "
+    echoLog ""
+    return 
+ fi
+
+}
+
 #########################################################
 # MAIN portion of sqstart begins here
 #########################################################
@@ -268,6 +301,8 @@ else
     exit 1;
 fi
 
+checkUlimit
+
 # Check SeaMonster kernel module if SeaMonster is enabled
 if [[ $SQ_SEAMONSTER == "1" ]]; then
     echoLog
@@ -372,6 +407,7 @@ if [ ! -w $MPI_TMPDIR ]; then
     exit 1
 fi
 
+
 COLD_STARTFILE=$SQSCRIPTS_DIR/gomon.cold
 WARM_STARTFILE=$SQSCRIPTS_DIR/gomon.warm
 COLD_RECOV_STARTFILE=$SQSCRIPTS_DIR/gomon.cold.recovery
@@ -590,6 +626,9 @@ echo
 echo "You can monitor the SQ shell log file : $SQMON_LOG"
 echo
 
+#check ulimit again to add it into log
+checkUlimit
+
 echo
 STOPtime=$(date +%s)
 elapsed_seconds=$(( $STOPtime - $STARTtime))


[2/3] incubator-trafodion git commit: use better English words

Posted by db...@apache.org.
use better English words


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/185f3001
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/185f3001
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/185f3001

Branch: refs/heads/master
Commit: 185f3001a2d7317bea55d66e589e9614242653aa
Parents: da42f9f
Author: Liu Ming <ov...@sina.com>
Authored: Sat Jul 23 03:07:47 2016 -0400
Committer: Liu Ming <ov...@sina.com>
Committed: Sat Jul 23 03:07:47 2016 -0400

----------------------------------------------------------------------
 core/sqf/sql/scripts/sqstart | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/185f3001/core/sqf/sql/scripts/sqstart
----------------------------------------------------------------------
diff --git a/core/sqf/sql/scripts/sqstart b/core/sqf/sql/scripts/sqstart
index c54a070..dbe3fcf 100755
--- a/core/sqf/sql/scripts/sqstart
+++ b/core/sqf/sql/scripts/sqstart
@@ -251,7 +251,7 @@ function checkUlimit {
  userProc=`cat /proc/sys/kernel/pid_max`
  if [[ $userProc -gt 65535 ]] ; then
     echoLog ""
-    echoLog "ERROR: detect issue during startup, please make sure your kernel parameter (sysctl) setup correctly"
+    echoLog "ERROR: issue detected during startup. Please make sure your kernel parameter (sysctl) is set up correctly."
     echoLog "ERROR: max_pid should not be greater than 65535"
     echoLog ""
     return
@@ -261,7 +261,7 @@ function checkUlimit {
  maxLockMem=`ulimit -l`
  if [[ $maxLockMem -lt 65536 ]] ; then
     echoLog ""
-    echoLog "ERROR: detect issue during startup, please make sure your ulimit setup correctly"
+    echoLog "ERROR: issue detected during startup. Please make sure your ulimit -l is set up correctly."
     echoLog "ERROR: max locked memory is smaller than 64M"
     echoLog ""
     return 
@@ -270,7 +270,7 @@ function checkUlimit {
  #check ulimit -l
  if [[ $maxLockMem -lt 327680 ]] ; then
     echoLog ""
-    echoLog "WARNING: detect issue during startup, please make sure your ulimit setup correctly"
+    echoLog "WARNING: issue detected during startup, please make sure your ulimit -l is set up correctly."
     echoLog "WARNING: max locked memory is smaller than 320M "
     echoLog ""
     return 


[3/3] incubator-trafodion git commit: [TRAFODION-1605] PR 615 sqstart hangs if ulimits are not correct

Posted by db...@apache.org.
[TRAFODION-1605] PR 615 sqstart hangs if ulimits are not correct


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/f444869d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/f444869d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/f444869d

Branch: refs/heads/master
Commit: f444869ddf2f9a39edaf23ceb14e361ac556fb4d
Parents: 63b0628 185f300
Author: Dave Birdsall <db...@apache.org>
Authored: Mon Jul 25 16:19:02 2016 +0000
Committer: Dave Birdsall <db...@apache.org>
Committed: Mon Jul 25 16:19:02 2016 +0000

----------------------------------------------------------------------
 core/sqf/sql/scripts/sqstart | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
----------------------------------------------------------------------