trafodion-codereview mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DaveBirdsall <...@git.apache.org>
Subject [GitHub] incubator-trafodion pull request #615: [TRAFODION-1605] sqstart hangs if uli...
Date Sat, 23 Jul 2016 05:43:57 GMT
Github user DaveBirdsall commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/615#discussion_r71967732
  
    --- Diff: 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"
    --- End diff --
    
    Ah, I see. Thanks for the explanation. Perhaps "WARNING: issue detected during startup.
Please make sure ulimit -l is set up correctly."


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message