Re: 20% performance drop on PostgreSQL 9.2 from kernel 3.5.3 to3.6-rc5 on AMD chipsets - bisected

From: Ingo Molnar
Date: Thu Sep 27 2012 - 01:58:58 EST



* Ingo Molnar <mingo@xxxxxxxxxx> wrote:

> * Mike Galbraith <efault@xxxxxx> wrote:
>
> > I think the pgbench problem is more about latency for the 1
> > in 1:N than spinlocks.
>
> So my understanding of the psql workload is that basically
> we've got a central psql proxy process that is distributing
> work to worker psql processes. If a freshly woken worker
> process ever preempts the central proxy process then it is
> preventing a lot of new work from getting distributed.

Also, I'd like to stress that despite the optimization dilemma,
the psql workload is *important*. More important than tbench -
because psql does some real SQL work and it also matches the
design of many real desktop and server workloads.

So if indeed the above is the main problem of psql it would be
nice to add a 'perf bench sched proxy' testcase that emulates it
- that would remove psql version dependencies and would ease the
difficulty of running the benchmarks.

We alread have 'perf bench sched pipe' and 'perf bench sched
messaging' - but neither shows the psql pattern currently.

I suspect a couple of udelay()s in the messaging benchmark would
do the trick? The wakeup work there already matches much of how
psql looks like.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/