pingcap / pingcap/tidb

Using new CPU features to increase performance

Open
#59,957 2 comments 0 reactions 0 assignees View on GitHub
type/enhancement type/performance
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

- `GOAMD64=v3` avx2, etc
- `GOARM64=v8.2,lse,crypto` for large system extensions (lse), and hardware crypto for TLS etc

This should still be compatible with AWS Graviton2

#### Reference

- https://go.dev/wiki/MinimumRequirements#amd64
- https://go.dev/wiki/MinimumRequirements#arm64
- https://en.wikipedia.org/wiki/AWS_Graviton#Graviton2
- https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels

To see what your CPU supports:
```
$ /usr/bin/ld.so --help | grep -E 'x86-64-v'
x86-64-v4
x86-64-v3 (supported, searched)
x86-64-v2 (supported, searched)
$ uname -sr
Linux 6.13.5-200.fc41.x86_64
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.