This parameter specifies the maximum percentage of the total memory that can be filled with dirty pages. If this threshold gets reached, the system does not add dirty pages and the file read/write mode changes to the synchronous mode. In this case, the block time for the file read/write operations becomes longer, slowing down system performance. For services involving a lot of write operations, add this parameter to prevent the drives from entering the synchronous write state too early.
Solution (CentOS is used as an example):
echo 40 > /proc/sys/vm/dirty_ratio