我要评分
获取效率
正确性
完整性
易理解

Modifying I/O Parameters

Purpose

Modify some I/O parameter settings at the operating system layer to improve server performance.

Procedure

Linux Parameter

Description

Recommended Value

Commands

/sys/block/${device}/queue/scheduler

I/O scheduling. deadline or noop is more suitable for MySQL databases.

In the command, replace ${device} with the actual drive name in performance tuning.

NOTICE:

NVMe drives do not support this operation.

Set the I/O scheduler of the specified block device to deadline.

echo deadline > /sys/block/${device}/queue/scheduler

/sys/block/${device}/queue/nr_requests

Drive throughput. Increase the value to add the drive throughput.

In the command, replace ${device} with the actual drive name in performance tuning.

Set the I/O request queue length of the specified device to 2048.

echo 2048 > /sys/block/${device}/queue/nr_requests