TiFlash startup failure

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiFlash启动失败

| username: XuZhongCN

[TiDB Usage Environment] CentOS 7.7
[TiDB Version] v6.5.1
[Reproduction Path] Follow the official guide TiDB 数据库快速上手指南 | PingCAP 文档中心
[Encountered Problem: Symptoms and Impact] Error reported when starting tiflash
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]


tiup-cluster-debug-2023-04-12-10-04-26.log (474.0 KB)
tiflash_stderr.log (12.7 KB)

| username: Kongdom | Original post link

Please post the following log
/tidb-deploy/tiflash-9000/log

| username: Kongdom | Original post link

Is it because the CPU is not supported?

| username: XuZhongCN | Original post link

The tiflash_stderr.log attachment is as follows:
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.

| username: XuZhongCN | Original post link

My first reaction was the same, but I don’t think it’s that bad… It’s really a bummer if the CPU isn’t supported… I’m using a VM on an i7-7700HQ with CentOS 7.7. If this isn’t supported, a lot of people won’t be able to use it, right?

| username: 大鱼海棠 | Original post link

Starting from version 6.2, TiFlash has optimized the vectorized engine, but it also has certain requirements for the CPU architecture, needing support for AVX2.

| username: XuZhongCN | Original post link

Awesome! Bro! Changed to 6.1.6, which is the last version before 6.2, and it worked perfectly. Amazing!

| username: TiDBer_EsQEhM3m | Original post link

Exactly the same as your steps and error messages.

| username: XuZhongCN | Original post link

Switch to a version below 6.2. I changed to 6.1.6, and it worked immediately.

| username: solotzg-PingCAP | Original post link

The AVX2 instruction set was released around 2011, and mainstream cloud providers’ environments already support it by default. It is recommended to configure the CPU architecture of virtual machines to Haswell or set it to passthrough mode.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.