!1140 简化安装增加cpu指令集rdtscp检测

Merge pull request !1140 from Ricardo_Cui/master
This commit is contained in:
opengauss-bot
2021-08-31 07:39:43 +00:00
committed by Gitee

View File

@ -156,6 +156,13 @@ function check_os() {
info "The required value should be greater than ${conn_floor}. You can modify it in file '/etc/sysctl.conf'."
exit 1
fi
# check cpu instruction
CPU_BIT=$(uname -m)
if [ X"$CPU_BIT" == X"x86_64" ]; then
if [ X"$(cat /proc/cpuinfo | grep rdtscp | uniq)" == X"" ]; then
echo "The cpu instruction rdtscp is missing." && exit 1
fi
fi
}
function change_gausshome_owner() {