Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 430FE2E023D for ; Sun, 2 Dec 2007 17:34:12 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 46403-08 for ; Sun, 2 Dec 2007 17:34:04 -0400 (AST) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by postgresql.org (Postfix) with ESMTP id 984822E023C for ; Sun, 2 Dec 2007 17:34:06 -0400 (AST) Received: by mu-out-0910.google.com with SMTP id i10so24765mue for ; Sun, 02 Dec 2007 13:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=wensJ8OiaChGFgks5/qOdfE27850KbEmJazm/vlQTLM=; b=ZlrXP6ns+TXeqmVb0kBulfXBdZvtR+6lj0EF+mgXliL9FqVK/CwOMORD8pvPce2TCSzCWRsJywGiATKQF/dbXC1xf7xuKDZ2o8kox3E3V4keEo3zoAg8FUTotQSr2kgsisJQvxE08g722BPlaxiuHo07bB7DKf0ytQcuyaxiwTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:mime-version:content-type; b=oK2qBBJctDggmtyvPF0UjdRzHramWYqZWbk5nExSU4f6zl7Cc2bM3P6IybY3R/S0lpCdcMLqdKZ/Wxjwkeyra2rVZii+tEGi93OotyzLs4ipp67Ri24XNx4Wq8T1F2n1DzxpxgRv/FqKQHcSew/BTcpbp+pRcMWXfKIaA7sgvQU= Received: by 10.82.162.14 with SMTP id k14mr12112775bue.1196631240491; Sun, 02 Dec 2007 13:34:00 -0800 (PST) Received: by 10.82.108.7 with HTTP; Sun, 2 Dec 2007 13:34:00 -0800 (PST) Message-ID: <329bff5c0712021334k474483bav278f79e7e27b26ac@mail.gmail.com> Date: Sun, 2 Dec 2007 23:34:00 +0200 From: "Beyers Cronje" To: pgsql-performance@postgresql.org Subject: PostgreSQL 8.2.5 slow performance on INSERT on Linux MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5766_6145828.1196631240479" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/15 X-Sequence-Number: 27831 ------=_Part_5766_6145828.1196631240479 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I'm busy evaluating PostgreSQL and I'm having performance problems on one of my servers. I have a very simple one table database, and the client using Mono 1.2.5.1 is running a loop doing INSERTs on the table. Initially I tested this on my development PC, an old P4 system with 2GB RAM and 10,000 INSERTs took ~12 secs on average, which I was fairly satisfied with. I then moved everything over to our test server, a new Dell 1950 server with quad core Xeon processors, 4GB RAM and SCSI hdd expecting to see better performance, but instead performance dropped to ~44 secs for 10,000 INSERTs. This obviously is not acceptable. Both the PC and server are running the exact same PostgreSQL version, Mono version, client application and both tests were run under very low load and on an empty table. I noticed that CPU utilization on the Dell server is very low, 1-2% utilization, so obviously it's not a load problem. Only the test application is accessing the database. So my question is, can anyone please give me some tips on what commands or tools I can use to try and pin down where exactly the performance drop is coming from? I'm obviously new to PostgreSQL so even basic checks can be relevant. Kind regards Beyers Cronje ------=_Part_5766_6145828.1196631240479 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all,

I'm busy evaluating PostgreSQL and I'm having perfor= mance problems on one of my servers. I have a very simple one table databas= e, and the client using  Mono 1.2.5.1 i= s running a loop doing INSERTs on the table. Initially I tested this on my = development PC, an old P4 system with 2GB RAM and 10,000 INSERTs took ~12 s= ecs on average, which I was fairly satisfied with. I then moved everything = over to our test server, a new Dell 1950 server with quad core Xeon process= ors, 4GB RAM and SCSI hdd expecting to see better performance, but instead = performance dropped to ~44 secs for 10,000 INSERTs. This obviously is not a= cceptable. Both the PC and server are running the exact same PostgreSQL ver= sion, Mono version, client application and both tests were run under very l= ow load and on an empty table. I noticed that CPU utilization on the Dell s= erver is very low, 1-2% utilization, so obviously it's not a load probl= em. Only the test application is accessing the database.

So my question is, can anyone please give me some tips on what comm= ands or tools I can use to try and pin down where exactly the performance d= rop is coming from? I'm obviously new to PostgreSQL so even basic check= s can be relevant.

Kind regards

Beyers Cronje
------=_Part_5766_6145828.1196631240479--