add cpu instruction detected

This commit is contained in:
Ricaro.Cui 2021-07-30 10:17:50 +08:00
parent 3eaf5e5066
commit f2475579f6
1 changed files with 5 additions and 0 deletions

View File

@ -156,6 +156,11 @@ 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
if [ X"$(cat /proc/cpuinfo | grep rdtscp | uniq)" == X"" ]
then
echo "The cpu instruction rdtscp is missing." && exit 1
fi
}
function change_gausshome_owner() {