Modifying I/O Parameters
Purpose
Modify some I/O parameter settings at the operating system layer to improve server performance.
Procedure
Linux Parameter |
Description |
Operation |
|---|---|---|
/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. NVMe drives do not support this operation. |
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. |
echo 2048 > /sys/block/${device}/queue/nr_requests |
Parent topic: OS Tuning