Re: [patch, v2.6.22-rc6] sys_time() speedup

From: Stephen Rothwell
Date: Mon Jun 25 2007 - 22:20:46 EST


On Mon, 25 Jun 2007 15:15:08 -0700 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Mon, 25 Jun 2007 23:09:46 +0200
> Roman Zippel <zippel@xxxxxxxxxxxxxx> wrote:
>
> > On Monday 25 June 2007, Ingo Molnar wrote:
> >
> > > the patch improves the sysbench OLTP macrobenchmark significantly:
> >
> > Has that any real practical relevance?
>
> Interesting question. The patch adds a new test-n-branch to gettimeofday()
> so if gettimeofday() is used much more frequently than time(), we lose.

Isn't gettimeofday() called *lots* by the X server and programs - one of
the reasons we bother putting it in the VDSO.

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature