Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-04-22 Thread Adhemerval Zanella
On 04/18/2013 07:38 PM, Anton Blanchard wrote: > Since you are only reading one long you shouldn't need to check the > update count and loop, you will always see a consistent value. The > system call version of time() just does an unprotected load for example. Fixed. > With the above change and w

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-04-18 Thread Anton Blanchard
Hi Adhemerval, > This patch implement the time syscall as vDSO. I have a glibc patch > to use it as IFUNC (as latest gettimeofday patch). Below the perf > numbers: > > Baseline PPC32: 380 nsec > Baseline PPC64: 352 nsec > vdso PPC32: 20 nsec > vdso PPC64: 20 nsec Very nice speedup. On

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-04-17 Thread Michael Ellerman
On Mon, Apr 08, 2013 at 11:05:50AM -0300, Adhemerval Zanella wrote: > On 04/05/2013 03:21 AM, Michael Ellerman wrote: > > On Tue, Mar 19, 2013 at 04:55:31PM -0300, Adhemerval Zanella wrote: > >> Hi all, > >> > >> This patch implement the time syscall as vDSO. I have a glibc patch > >> to use it as

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-04-08 Thread Adhemerval Zanella
On 04/05/2013 03:21 AM, Michael Ellerman wrote: > On Tue, Mar 19, 2013 at 04:55:31PM -0300, Adhemerval Zanella wrote: >> Hi all, >> >> This patch implement the time syscall as vDSO. I have a glibc patch >> to use it as IFUNC (as latest gettimeofday patch). Below the perf >> numbers: >> >> Baseline

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-04-05 Thread Adhemerval Zanella
On 04/05/2013 03:21 AM, Michael Ellerman wrote: > On Tue, Mar 19, 2013 at 04:55:31PM -0300, Adhemerval Zanella wrote: >> Hi all, >> >> This patch implement the time syscall as vDSO. I have a glibc patch >> to use it as IFUNC (as latest gettimeofday patch). Below the perf >> numbers: >> >> Baseline

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-04-04 Thread Michael Ellerman
On Tue, Mar 19, 2013 at 04:55:31PM -0300, Adhemerval Zanella wrote: > Hi all, > > This patch implement the time syscall as vDSO. I have a glibc patch > to use it as IFUNC (as latest gettimeofday patch). Below the perf > numbers: > > Baseline PPC32: 380 nsec > Baseline PPC64: 352 nsec > vdso PPC32

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-04-04 Thread Adhemerval Zanella
Hi Benjamin, Any objection or request about this patch? On 20-03-2013 02:00, Benjamin Herrenschmidt wrote: > On Tue, 2013-03-19 at 16:55 -0300, Adhemerval Zanella wrote: >> I focused on 64 bit kernel, do I need to provide a scheme for 32 bits >> as well? > You did provide both 32 and 64-bit VDSO

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-03-26 Thread Adhemerval Zanella
Hi all, Just sending a ping about this patch. On 21-03-2013 10:40, Adhemerval Zanella wrote: > On 20-03-2013 02:00, Benjamin Herrenschmidt wrote: >> On Tue, 2013-03-19 at 16:55 -0300, Adhemerval Zanella wrote: >>> I focused on 64 bit kernel, do I need to provide a scheme for 32 bits >>> as well?

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-03-21 Thread Adhemerval Zanella
On 20-03-2013 02:00, Benjamin Herrenschmidt wrote: > On Tue, 2013-03-19 at 16:55 -0300, Adhemerval Zanella wrote: >> I focused on 64 bit kernel, do I need to provide a scheme for 32 bits >> as well? > You did provide both 32 and 64-bit VDSO implementations so 32-bit > kernels should be covered. In

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-03-19 Thread Benjamin Herrenschmidt
On Tue, 2013-03-19 at 16:55 -0300, Adhemerval Zanella wrote: > > I focused on 64 bit kernel, do I need to provide a scheme for 32 bits > as well? You did provide both 32 and 64-bit VDSO implementations so 32-bit kernels should be covered. Cheers, Ben. __

[PATCH] [RFC] powerpc: Add VDSO version of time

2013-03-19 Thread Adhemerval Zanella
Hi all, This patch implement the time syscall as vDSO. I have a glibc patch to use it as IFUNC (as latest gettimeofday patch). Below the perf numbers: Baseline PPC32: 380 nsec Baseline PPC64: 352 nsec vdso PPC32: 20 nsec vdso PPC64: 20 nsec I focused on 64 bit kernel, do I need to prov