Best IO Scheduler for local zfs storage

VGusev2007

Renowned Member
May 24, 2010
107
12
83
Russia
Dear all. I have zpool/zvol - as a local storage (with l2arc+cache). Which best IO Scheduler in a common case? Is the CFQ best or not in this situation?
 
What is currently used there? Normally - as I read about this issue - ZFS is setting the scheduler accordingly.
How can I check it for zfs?


For zfs I have:

Code:
root@dve-01:~# cat /sys/block/zdXX/queue/scheduler
none


For HDD I have:

Code:
root@dve-01:~# cat /sys/block/sdc/queue/scheduler
noop [deadline] cfq
 
By checking I see, that I have noop everywhere where disks were setup with default install and manual SLOG, L2ARC later. HDD or SSD, does not matter.
Unused disks have deadline. I wonder if it will change once I create a ZFS pool on them automatically to noop.
 
It seems that ZFS automatically sets noop. I would suggest you use noop (that is no scheduler).
 
I _think_ noop should be used always where there are no other filesystems on the same drive and preferably even when they are.
 
I _think_ noop should be used always where there are no other filesystems on the same drive and preferably even when they are.

Wrong. If yours storage have anothers layers betheen the storage layers(who will use an unknown or others disk queue like ssd) then the best bet is noop. But if you use let say rotational disks, is better to use deadline (who have 2 differnst queue for writes 40% and for reads 60%).
Any of them noop/dedline will have 0% impact if you do not saturate the I/O disk capacity. Also many others details can impact on this (cache, iops, latency, etc)
As a side note, you can use in OS let say noop, but for zfs you can use dedline.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!