Re: scaling up postgres - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: scaling up postgres
Date
Msg-id 20060603094355.GA23297@uio.no
Whole thread Raw
In response to scaling up postgres  (fzied@planet.tn)
Responses Re: scaling up postgres  (Mario Splivalo <mario.splivalo@mobart.hr>)
List pgsql-performance
On Sat, Jun 03, 2006 at 10:31:03AM +0100, fzied@planet.tn wrote:
> I do have 2 identical beasts (4G - biproc Xeon 3.2 - 2 Gig NIC)
> One beast will be apache, and the other will be postgres.
> I'm using httperf/autobench for measurments and the best result I can get
> is that my system can handle a trafiic of almost 1600 New con/sec.

What version of PostgreSQL? (8.1 is better than 8.0 is much better than 7.4.)
Have you remembered to turn HT off? Have you considered Opterons instead of
Xeons? (The Xeons generally scale bad with PostgreSQL.) What kind of queries
are you running? Are you using connection pooling? Prepared queries?

> vmstat is not showing any "annoyance" I cannot find where is it blocked !

How many context switches ("cs" in vmstat) do you get per second?

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: fzied@planet.tn
Date:
Subject: scaling up postgres
Next
From: PFC
Date:
Subject: Re: scaling up postgres