Re: PostgreSQL pgbench performance regression in 2.6.23+
From: Mike Galbraith
Date: Thu May 22 2008 - 05:05:25 EST
On Thu, 2008-05-22 at 13:58 +0530, Dhaval Giani wrote:
> On Thu, May 22, 2008 at 09:10:07AM +0200, Mike Galbraith wrote:
> > On Wed, 2008-05-21 at 13:34 -0400, Greg Smith wrote:
> > > PostgreSQL ships with a simple database benchmarking tool named pgbench,
> > > in what's labeled the contrib section (in many distributions it's a
> > > separate package from the main server/client ones). I see there's been
> > > some work done already improving how the PostgreSQL server works under the
> > > new scheduler (the "Poor PostgreSQL scaling on Linux 2.6.25-rc5" thread).
> > > I wanted to provide you a different test case using pgbench that has taken
> > > a sharp dive starting with 2.6.23, and the server improvement changes in
> > > 2.6.25 actually made this problem worse.
> > >
> > > I think it will be easy for someone else to replicate my results and I'll
> > > go over the exact procedure below.
> > Yup, I can reproduce. Running the test with 18.104.22.168, everything is
> > waking/running on one CPU, leaving my box 75% idle. Not good.
> Can you try with 2.6.26-rc? There is minimal load balancing for group
> scheduling till 25, which might explain the lack of scalability.
I'm playing with it now, it's tweakable with migration cost. This
testcase is funky. It can't generate enough work to keep CPUs busy for
spit, and can't saturate my little quad with any kernel I've tried.
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/