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

Can ZenFS support non-ZNS type SSDs? #291

Open benqwu opened 4 months ago

benqwu commented 4 months ago

Can ZenFS support non-ZNS type SSDs, and what is the performance impact?

yhr commented 4 months ago

Yes, it can be supported, but one would have to implement it and benchmark it to measure the benefits.

Implementing this interface for conventional drives(somehow faking zone operations) could work: https://github.com/westerndigitalcorporation/zenfs/blob/master/fs/zbdlib_zenfs.h

Write amp could potentially be reduced a bit (delta conventional file systems), but probably the biggest advantage would be faster synced writes. ZenFS outperforms ext4 and xfs for small synchronized buffered(e.g. WAL) writes by about 2x.

On Thu, Apr 11, 2024 at 8:50 AM benqwu @.***> wrote:

Can ZenFS support non-ZNS type SSDs, and what is the performance impact?

— Reply to this email directly, view it on GitHub https://github.com/westerndigitalcorporation/zenfs/issues/291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADNGOD7ZOIBI674YWRKRFDY4YXB3AVCNFSM6AAAAABGBW7QXOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTOMBSHAZDIMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

benqwu commented 4 months ago

Thank you for your reply. Does the ZenFS have a plan to support non-ZNS SSDs so that ZenFS can be applied to a wider range of scenarios?

yhr commented 4 months ago

I have no plans to implement support for conventional devices, but would of course happily review any pull requests in this direction :) Thanks for your interest!

On Mon, Apr 15, 2024 at 3:52 AM benqwu @.***> wrote:

Thank you for your reply. Does the ZenFS have a plan to support non-ZNS SSDs so that ZenFS can be applied to a wider range of scenarios?

— Reply to this email directly, view it on GitHub https://github.com/westerndigitalcorporation/zenfs/issues/291#issuecomment-2054302483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADNGOEO3QQIMXDRJ47WMM3Y5MXEFAVCNFSM6AAAAABGBW7QXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJUGMYDENBYGM . You are receiving this because you commented.Message ID: @.***>