Are there optimization parameters for NVMe disks in TiDB?

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

Original topic: tidb对nvme的磁盘有优化参数嘛

| username: 田帅萌7

Does TiDB have optimization parameters for NVMe disks, apart from the optimization suggestions in the official documentation?

| username: tidb狂热爱好者 | Original post link

It’s in the official documentation.

| username: tidb菜鸟一只 | Original post link

Check Before Deployment

Add Data Disk ext4 File System Mount Parameters on Target Machine for TiKV Deployment

| username: dba远航 | Original post link

Take a look at the innodb_io_capacity parameter.

| username: TiDBer_QYr0vohO | Original post link

The official recommendations should be the optimizations for the best performance, right?

| username: zhanggame1 | Original post link

By default, there are basically no issues. I have tested adjusting the parameters, but there is no noticeable effect.

| username: 随缘天空 | Original post link

Generally, NVMe-related parameters are optimized to fully utilize machine resources when the machine configuration is high; otherwise, this part of the optimization can be ignored.

| username: zhaokede | Original post link

Use the default, generally.

| username: shigp_TIDBER | Original post link

Yes, refer to the official documentation, everything is explained in detail.

| username: xiaoqiao | Original post link

Generally, it doesn’t have much impact. In fact, 99% of performance issues are in the SQL itself.

| username: wangkk2024 | Original post link

Default

| username: 呢莫不爱吃鱼 | Original post link

Generally, just use the default settings, and there shouldn’t be any issues.

| username: TiDBer_JUi6UvZm | Original post link

Generally, it is sufficient to refer to the official recommended settings.

| username: YuchongXU | Original post link

The default is fine.

| username: 数据库真NB | Original post link

This document is about the mounting operation and does not contain any other optimization parameters.

| username: 数据库真NB | Original post link

TiDB probably doesn’t have this optimization. This type of optimization mainly involves tuning the parameters of the operating system and mounted disks, which is generally something people are hesitant to modify.

| username: 数据库真NB | Original post link

Recommended Mount Parameters for TiDB:

nodelalloc: By using the nodelalloc parameter to disable delayed allocation, it ensures that each data write operation is immediately synchronized to the disk, thereby reducing the risk of data loss. This is particularly important for application scenarios that have high requirements for data consistency or strict requirements for data persistence.

noatime: By using the noatime parameter, you can prevent the file system from updating the access timestamps of files, thereby reducing the metadata update operations of the file system and improving system performance and throughput. This is especially useful for application scenarios where file access times are not of interest.

| username: oceanzhang | Original post link

Are you all using the default parameters???

| username: Collen | Original post link

The default value of tidb_enable_clustered_index is INT_ONLY, which means that only tables with integer primary keys will use clustered indexes by default. If you want to enable clustered indexes for all tables, you need to set this parameter to ON.

| username: Jack-li | Original post link

Using the default parameters is fine.