Re: [PATCHv7 18/33] lib/vdso: Add unlikely() hint into vdso_read_begin()

2019-10-16 Thread Vincenzo Frascino
On 10/11/19 2:23 AM, Dmitry Safonov wrote: > From: Andrei Vagin > > Place the branch with no concurrent write before contended case. > > Performance numbers for Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz > (more clock_gettime() cycles - the better): > | before| after >

[PATCHv7 18/33] lib/vdso: Add unlikely() hint into vdso_read_begin()

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Place the branch with no concurrent write before contended case. Performance numbers for Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (more clock_gettime() cycles - the better): | before| after --- | 150252214 | 153242367