westerndigitalcorporation / zenfs

ZenFS is a storage backend for RocksDB that enables support for ZNS SSDs and SMR HDDs.
GNU General Public License v2.0
235 stars 86 forks source link

What if I want to modify I/O scheduler algorithm? #272

Closed YummuyWang closed 11 months ago

YummuyWang commented 1 year ago

Which part should I revise to adapt my algorithm. I mean can I revise mq-deadline or how to modify I/O requests in zenfs?

aravind-wdc commented 1 year ago

I/O scheduler is part of the Linux kernel, modifying that is not recommended unless you know what you are doing. But nevertheless, you can modify it for your tests. There are other I/O schedulers that the kernel provides, but for now, ZNS drives works only with the mq-deadline I/O scheduler.

YummuyWang commented 1 year ago

Do you mean block/mq-deadline.c in source code or whole files like blk-mq-?

sinparking commented 1 year ago

you need to modify the linux kernel, that is not a part of zenfs or rocksdb or femu simulator