This parameter specifies how long dirty data stays in the cache before writing them into the drives. If there are continuous data writes, set this parameter to a smaller value to avoid I/O burst and I/O waiting.
Solution (CentOS is used as an example):
# echo 2000 > /proc/sys/vm/dirty_expire_centisecs