X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 558679FA3A6 for ; Sat, 3 Jun 2006 06:44:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 39918-10 for ; Sat, 3 Jun 2006 06:44:00 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by postgresql.org (Postfix) with ESMTP id 6E3029FA2E6 for ; Sat, 3 Jun 2006 06:44:00 -0300 (ADT) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1FmSfj-0005Qt-Go; Sat, 03 Jun 2006 11:43:56 +0200 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1FmSfj-00065I-00; Sat, 03 Jun 2006 11:43:55 +0200 Date: Sat, 3 Jun 2006 11:43:55 +0200 From: "Steinar H. Gunderson" To: fzied@planet.tn Cc: pgsql-performance@postgresql.org Subject: Re: scaling up postgres Message-ID: <20060603094355.GA23297@uio.no> Mail-Followup-To: fzied@planet.tn, pgsql-performance@postgresql.org References: <200606030931.k539V38Y007877@smtp2.planet.net.tn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <200606030931.k539V38Y007877@smtp2.planet.net.tn> X-Operating-System: Linux 2.6.16trofastxen on a x86_64 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/19 X-Sequence-Number: 19376 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/