RE: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-08 Thread David Laight
From: Zebediah Figura > Sent: 08 March 2021 16:18 > > On 3/3/21 6:42 PM, André Almeida wrote: > > ** The wait on multiple problem > > > > The use case lies in the Wine implementation of the Windows NT interface > > WaitMultipleObjects. This Windows API function allows a thread to sleep > >

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-08 Thread Zebediah Figura
On 3/3/21 6:42 PM, André Almeida wrote: ** The wait on multiple problem The use case lies in the Wine implementation of the Windows NT interface WaitMultipleObjects. This Windows API function allows a thread to sleep waiting on the first of a set of event sources (mutexes, timers, signal

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-08 Thread Stefan Metzmacher
Am 08.03.21 um 12:11 schrieb David Laight: > From: Stefan Metzmacher >> Sent: 07 March 2021 11:35 >> >> Hi André, >>> ** The wait on multiple problem >>> >>> The use case lies in the Wine implementation of the Windows NT interface >>> WaitMultipleObjects. This Windows API function allows a threa

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-08 Thread Stefan Metzmacher
Am 07.03.21 um 12:56 schrieb Daurnimator: > On Sun, 7 Mar 2021 at 22:35, Stefan Metzmacher wrote: >> Instead of having a blocked futex_waitv() waiting on an fd (maybe a generic >> eventfd() or a new futex2fd()) >> would be a better interface? > > Like bring back FUTEX_FD? (which was removed ba

RE: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-08 Thread David Laight
From: Stefan Metzmacher > Sent: 07 March 2021 11:35 > > Hi André, > > ** The wait on multiple problem > > > > The use case lies in the Wine implementation of the Windows NT interface > > WaitMultipleObjects. This Windows API function allows a thread to sleep > > waiting on the first of a set o

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-07 Thread Daurnimator
On Sun, 7 Mar 2021 at 22:35, Stefan Metzmacher wrote: > Instead of having a blocked futex_waitv() waiting on an fd (maybe a generic > eventfd() or a new futex2fd()) > would be a better interface? Like bring back FUTEX_FD? (which was removed back in 2.6.25)

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-07 Thread Stefan Metzmacher
Hi André, > ** The wait on multiple problem > > The use case lies in the Wine implementation of the Windows NT interface > WaitMultipleObjects. This Windows API function allows a thread to sleep > waiting on the first of a set of event sources (mutexes, timers, signal, > console input, etc)

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-05 Thread Peter Oskolkov
On Fri, Mar 5, 2021 at 12:03 PM Peter Oskolkov wrote: > > Hi André! > > On Thu, Mar 4, 2021 at 10:58 AM André Almeida > wrote: > > > > Hi Peter, > > > > Às 02:44 de 04/03/21, Peter Oskolkov escreveu: > > > On Wed, Mar 3, 2021 at 5:22 PM André Almeida > > > wrote: > > >> > > >> Hi, > > >> > > >

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-05 Thread Peter Oskolkov
Hi André! On Thu, Mar 4, 2021 at 10:58 AM André Almeida wrote: > > Hi Peter, > > Às 02:44 de 04/03/21, Peter Oskolkov escreveu: > > On Wed, Mar 3, 2021 at 5:22 PM André Almeida > > wrote: > >> > >> Hi, > >> > >> This patch series introduces the futex2 syscalls. > >> > >> * FAQ > >> > >> ** "A

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-04 Thread André Almeida
Hi Ted, Às 12:01 de 04/03/21, Theodore Ts'o escreveu: On Wed, Mar 03, 2021 at 09:42:06PM -0300, André Almeida wrote: ** Performance - For comparing futex() and futex2() performance, I used the artificial benchmarks implemented at perf (wake, wake-parallel, hash and requeue). The se

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-04 Thread André Almeida
Hi Peter, Às 02:44 de 04/03/21, Peter Oskolkov escreveu: On Wed, Mar 3, 2021 at 5:22 PM André Almeida wrote: Hi, This patch series introduces the futex2 syscalls. * FAQ ** "And what's about FUTEX_64?" By supporting 64 bit futexes, the kernel structure for futex would need to have a

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-04 Thread Theodore Ts'o
On Wed, Mar 03, 2021 at 09:42:06PM -0300, André Almeida wrote: > ** Performance > > - For comparing futex() and futex2() performance, I used the artificial >benchmarks implemented at perf (wake, wake-parallel, hash and >requeue). The setup was 200 runs for each test and using 8, 80, 800,

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-03 Thread Peter Oskolkov
On Wed, Mar 3, 2021 at 5:22 PM André Almeida wrote: > > Hi, > > This patch series introduces the futex2 syscalls. > > * What happened to the current futex()? > > For some years now, developers have been trying to add new features to > futex, but maintainers have been reluctant to accept then, give