Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9833D64FDA0 for ; Tue, 14 Oct 2008 17:18:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 28976-04 for ; Tue, 14 Oct 2008 17:18:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp-out26.alice.it (smtp-out26.alice.it [85.33.2.26]) by postgresql.org (Postfix) with ESMTP id DFD8264FD91 for ; Tue, 14 Oct 2008 17:18:38 -0300 (ADT) Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-out26.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Tue, 14 Oct 2008 22:18:35 +0200 Received: from FBCMCL01B01.fbc.local ([192.168.69.82]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 14 Oct 2008 22:18:37 +0200 Received: from kerberos.webthatworks.it ([82.48.124.156]) by FBCMCL01B01.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 14 Oct 2008 22:18:36 +0200 Received: from dawn.webthatworks.it (dawn.webthatworks.it [192.168.1.12]) by kerberos.webthatworks.it (Postfix) with ESMTP id E57DBE6A96 for ; Tue, 14 Oct 2008 22:18:33 +0200 (CEST) Received: from dawn.webthatworks.it (localhost [127.0.0.1]) by dawn.webthatworks.it (Postfix) with ESMTP id 2B8B83DA95 for ; Tue, 14 Oct 2008 22:18:32 +0200 (CEST) Date: Tue, 14 Oct 2008 22:18:31 +0200 From: Ivan Sergio Borgonovo To: pgsql-general@postgresql.org Subject: benchmark on D7 + PG 8.3 Re: Drupal and PostgreSQL - performance issues? Message-ID: <20081014221831.0304144c@dawn.webthatworks.it> In-Reply-To: References: <2434A118-CEFA-43A9-BA88-006EC1F80326@hoegh.org> <200810122214.53558.uwe@oss4u.com> <20081013090228.248a665f@dawn.webthatworks.it> <20081014114011.0ebe495a@dawn.webthatworks.it> <20081014184456.0b920620@dawn.webthatworks.it> Organization: http://www.webthatworks.it X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 14 Oct 2008 20:18:37.0313 (UTC) FILETIME=[0A558F10:01C92E3A] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/570 X-Sequence-Number: 138819 forwarding here too cos I just got the copy sent to my personal address and just much later the one from pg list... + adding some more siege run. On Tue, 14 Oct 2008 19:05:42 +0200 Mikkel H=C3=B8gh wrote: > Hmm, those are interesting numbers. Did you use a real, logged > in, drupal session ID (anonymous users also get one, which still > gives them cached pages). > They are in the form of =20 > "SESS6df8919ff2bffc5de8bcf0ad65f9dc0f=3D59f68e60a120de47c2cb5c98b010ffff" >=20 > Note how the thoughput stays in the 30-ish range from 100 to 400, =20 > although the response time climbs steeply. That might indicate > that your Apache configuration is the main roadblock here, since > that indicates that clients are waiting for a free Apache process > to handle their request (I suppose you're using MPM_PREFORK)=E2=80=A6 right ivan@wtw:~$ aptitude search apache2 | grep prefork i A apache2-mpm-prefork - Traditional model for Apache HTTPD 2.1 But... well since Apache was not tuned... if I remember right it comes with a default of 100 processes max. I copied your siege line. Apache config was nearly untouched with the exception of virtualhost configs. Everything was running on a nearly stock Debian etch. thx for suggestions about tuning Apache... Currently I'm just installing D7 on my notebook to see how it's going. The notebook is running Lenny... that comes with pg 8.3. I really hope D7 is going in the right direction for DB support. I really would like to help there but I'm overwhelmed by a multi-months, thousands lines of code drupal/postgresql project. OK these were run on: Core(TM)2 CPU T7200 @ 2.00GHz 2Gb RAM notebook so no raid etc... actually a very slow HD. Default debian lenny install of pg and apache NO tuning at all. vserver kernel but not run in a vserver. So pg is 8.3 stock debian install + minor tweak to pg_hba just to setup all the stuff. D7 with most modules on and basic cache systems on. -c20 Transactions: 1446 hits Availability: 100.00 % Elapsed time: 30.30 secs Data transferred: 2.87 MB Response time: 0.42 secs Transaction rate: 47.72 trans/sec Throughput: 0.09 MB/sec Concurrency: 19.87 Successful transactions: 1446 Failed transactions: 0 Longest transaction: 0.60 Shortest transaction: 0.09 -c100 Transactions: 1396 hits Availability: 100.00 % Elapsed time: 30.13 secs Data transferred: 2.77 MB Response time: 2.08 secs Transaction rate: 46.33 trans/sec Throughput: 0.09 MB/sec Concurrency: 96.46 Successful transactions: 1396 Failed transactions: 0 Longest transaction: 2.67 Shortest transaction: 0.09 Pretty impressive improvement. Hard to say if the improvement was due to D7 update or PG 8.3 update. If I've to chse I'd say the improvement comes from drupal new caching system. I'll try to find some spare time and do some more extensive benchmark. It would be interesting to see which are the slowest queries. --=20 Ivan Sergio Borgonovo http://www.webthatworks.it