|
发表于 2010-1-8 07:12:33
|
显示全部楼层
应该只是检查下共享内存设置,要上班了,没仔细看。
- # Make sure the system has enough shared memory available to cover shmmaxMinValue.
- # To handle overflow/wrapping, check that shmmax is greater than 1 since any overflow
- # will make shmmax look negative. At least until shmmax or shmmaxMinValue wrap around
- # again.
- vmwareCheckSharedMemory() {
- if [ -f "$shmmaxPath" ]; then
- shmmax=`cat $shmmaxPath`
- # Account for numbers that are too large that they wrap around and alias
- # to a smaller number or they are outright set to -1. If "1 < XXXX" fails
- # then the XXX value is # out of bounds. The only acceptable combo is that
- # both values satisfy that condition, else report that the max value the
- # system supports may not satisfy this programs requirements.
- if (( $shmmax < 1 )) || (( $shmmaxMinValue < 1 )) \
- || (( $shmmax < $shmmaxMinValue )) ; then
- echo "$shmmaxMinValue" > "$shmmaxPath"
- echo ""
- echo "Setting the max shared memory the system will allow to $shmmaxMinValue."
- echo ""
- fi
- fi
- return 0
- }
复制代码 |
|