News: 0001492777

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

OpenZFS Merges Support For Direct IO

([Linux Storage] 6 Hours Ago OpenZFS Direct IO)


The OpenZFS project has merged DirectIO (O_DIRECT) support for the ZFS file-system to bypass the ARC for reads and writes.

The Direct IO support for OpenZFS dates back to a pull request started back in 2020 by Brian Atkinson. The [1]pull request explains:

"By adding Direct IO support to ZFS, the ARC can be bypassed when issuing reads/writes. There are certain cases where caching data in the ARC can decrease overall performance. In particular the performance of ZPool's composed of NVMe devices displayed poor read/write performance due to the extra overhead of memcpy's issued to the ARC.

There are also cases where caching in the ARC may not make sense such as when data will not be referenced later. By using the O_DIRECT flag, unnecessary data copies to the ARC can be avoided."

This Direct IO support should be a nice boost to performance for NVMe storage devices.

After more than four years of the pull request being opened, last week it was finally merged to the OpenZFS codebase.



[1] https://github.com/openzfs/zfs/pull/10018



Britoid

ssokolow

User29

drjohnnyfever

skeevy420

Britoid

Britoid

skeevy420

skeevy420

Also, the Scots are said to have invented golf. Then they had
to invent Scotch whiskey to take away the pain and frustration.