zfs icon indicating copy to clipboard operation
zfs copied to clipboard

WIP: Avoid kmem_alloc in IO path

Open lundman opened this issue 6 years ago • 2 comments

There appears to be some issues with too-frequent allocations in spl-kmem and this is especially noticable due to allocations we do for each read or write IO operation. We embed the vdev_buf into zio struct itself, and since ldi_vnode has to call buf_alloc() we also allow ldi_iokit to allocate a local holder. (It is inconvenient to try to include C++ headers in zio.h).

If this does speed up IO, it is only because we now avoid the real problem which is still something we should also address

lundman avatar Nov 13 '18 00:11 lundman

I'm running this now (rebased on master). Will report back how I fare. I've been heaving stabiity and performance problems lately on Mojave, maybe this'll help

JMoVS avatar Dec 27 '18 15:12 JMoVS

didn't see any obvious differences in speed, but maybe my hard drive setup is in general just too slow :D

JMoVS avatar Mar 04 '19 11:03 JMoVS