Update
This commit is contained in:
parent
d547f80cd2
commit
4a374820b1
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
|
@ -10,8 +10,8 @@ sockets=$(( $virt_cpu / 2 ))
|
|||
|
||||
mem=$(expr $(cat /proc/meminfo | grep "MemFree" | awk '{print $2}') / 1024 - $(( 2 * 1024 )) )
|
||||
|
||||
if [[ $mem -lt 6144 ]]; then
|
||||
mem=6144
|
||||
if [[ $mem -lt 4096 ]]; then
|
||||
mem=4096
|
||||
fi
|
||||
|
||||
if [[ $mem -gt 8192 ]]; then
|
||||
|
|
Loading…
Reference in New Issue