From linux-kernel Wed Apr 03 20:57:11 2024 From: Linus Torvalds Date: Wed, 03 Apr 2024 20:57:11 +0000 To: linux-kernel Subject: Re: user-space concurrent pipe buffer scheduler interactions Message-Id: X-MARC-Message: https://marc.info/?l=linux-kernel&m=171217770723369 On Wed, 3 Apr 2024 at 13:52, Michael Clark wrote: > > On 4/4/24 05:56, Linus Torvalds wrote: > > On Tue, 2 Apr 2024 at 13:54, Michael Clark wrote: > >> > >> I am working on a low latency cross-platform concurrent pipe buffer > >> using C11 threads and atomics. > > > > You will never get good performance doing spinlocks in user space > > unless you actually tell the scheduler about the spinlocks, and have > > some way to actually sleep on contention. > > > > Which I don't see you as having. > > We can work on this. It's been tried. Nobody ever found a use-case that is sufficiently convincing, but see the write-up at https://lwn.net/Articles/944895/ for a pointer to at least attempts. Linus