Thread (16 messages) 16 messages, 4 authors, 2020-01-10

Re: [RFC PATCH] powerpc/32: Switch VDSO to C implementation.

From: Andy Lutomirski <luto@kernel.org>
Date: 2019-10-26 13:55:44
Also in: lkml

On Tue, Oct 22, 2019 at 6:56 AM Christophe Leroy
[off-list ref] wrote:
quoted
quoted
quoted
The performance is rather disappoiting. That's most likely all
calculation in the C implementation are based on 64 bits math and
converted to 32 bits at the very end. I guess C implementation should
use 32 bits math like the assembly VDSO does as of today.
quoted
gettimeofday:    vdso: 750 nsec/call

gettimeofday:    vdso: 1533 nsec/call
Small improvement (3%) with the proposed change:

gettimeofday:    vdso: 1485 nsec/call
By inlining do_hres() I get the following:

gettimeofday:    vdso: 1072 nsec/call
A perf report might be informative.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help