Re: [dm-devel] [PATCH v1 0/5] dm: dm-user: New target that proxies BIOs to userspace

From: Vitaly Mayatskih
Date: Wed Dec 16 2020 - 13:26:38 EST


On Mon, Dec 14, 2020 at 10:03 PM Palmer Dabbelt <palmer@xxxxxxxxxxx> wrote:

> I was really experting someone to say that. It does seem kind of silly to build
> out the new interface, but not go all the way to a ring buffer. We just didn't
> really have any way to justify the extra complexity as our use cases aren't
> that high performance. I kind of like to have benchmarks for this sort of
> thing, though, and I didn't have anyone who had bothered avoiding the last copy
> to compare against.

I worked on something very similar, though performance was one of the
goals. The implementation was floating around lockless ring buffers,
shared memory for zerocopy, multiqueue and error handling. It could be
that every disk storage vendor has to implement something like that in
order to bridge Linux kernel to their own proprietary datapath running
in userspace.

--
wbr, Vitaly