jhf*_*ntz 5 linux storage ionice performance-tuning
该ionice男子说:页
以空闲 io 优先级运行的程序只会在没有其他程序在定义的宽限期内请求磁盘 io 时获得磁盘时间。
这个“宽限期”在哪里定义?它是否可见/可调(可能通过 /sys)?
宽限期为 250 毫秒。
http://lkml.indiana.edu/hypermail/linux/kernel/0412.2/1099.html
There is an idle scheduling class, which only runs when nothing else
is using the disk. A grace period is defined for which idle has to
wait before getting disk access when other io has run. This defaults
to 250ms currently.
Run Code Online (Sandbox Code Playgroud)
您没有提供操作系统版本或发行版(是的,它确实有所不同),但 RHEL/CentOS 5+6 的可调参数在此处定义为fifo_expire_async/sys/block/[device]/queue/iosched/(其中 [device] 是 sda、sdb、cciss0 等) .)。