1 2 3 4 5 6 7 |
echo "####################################memorycheck#######################################" memory=`free -m | grep Mem` read total used buffers cached<<< `echo "$memory" |awk '{print $2,$3,$6,$7}'` echo "$total $used $buffers $cached" let "usedtrue=used-buffers-cached" percent=`echo "$usedtrue*100/$total"|bc`"%" echo "## MEMORY Used Percent: $percent" |
Latest posts by Zhiming Zhang (see all)
- istio Ingress Gateways - 十一月 25, 2020
- Istio VirtualService - 十一月 23, 2020
- istio 组件 - 十一月 18, 2020