]> granicus.if.org Git - zfs/commit
Improve write performance by using dmu_read_by_dnode()
authorTony Nguyen <tony.nguyen@delphix.com>
Thu, 15 Aug 2019 23:36:24 +0000 (17:36 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Aug 2019 23:36:24 +0000 (17:36 -0600)
commitc8bbf7c00b3e1d949f928fd3aace234e38906a12
tree06e633ce6c954b75afdd99c2109b86bf3112f052
parent0e37a0f4f3bc4feb62a966a7c0dd64544172395f
Improve write performance by using dmu_read_by_dnode()

In zfs_log_write(), we can use dmu_read_by_dnode() rather than
dmu_read() thus avoiding unnecessary dnode_hold() calls.

We get a 2-5% performance gain for large sequential_writes tests, >=128K
writes to files with recordsize=8K.

Testing done on Ubuntu 18.04 with 4.15 kernel, 8vCPUs and SSD storage on
VMware ESX.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Nguyen <tony.nguyen@delphix.com>
Closes #9156
module/zfs/zfs_log.c