Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id AA3B82E2E92 for ; Wed, 12 Mar 2008 12:25:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 39632-01 for ; Wed, 12 Mar 2008 12:25:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.235]) by postgresql.org (Postfix) with ESMTP id 4D55C2E1A8C for ; Wed, 12 Mar 2008 12:25:35 -0300 (ADT) Received: by hu-out-0506.google.com with SMTP id 22so2449098hug.23 for ; Wed, 12 Mar 2008 08:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; bh=qToU6vHfB2pw4jrdyEgEgNcx0Oizk5hq5pu3KBE7K5I=; b=PYWMxr0Z1IQ8G4SH7IX2FrH78ubDoi8f3dTBcG4L4ruUFnXPol5ZyoRC2ni85JNtxefU3RkLRTrQx2Vowz8cmXq6fBU2/QF0B0eqN7B8jFKodaG7E/7eC7FKkl96Aj60PRXTXVRooWQHNRfpIv2Ow62IwXa+5Q/Bgq57zDaRFu4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; b=uJOBlg1HoI4xTkuhQJjYxZgu4pmqiZ5DrZwix7JXxxC1n63y8uQjaYR6pBuPDXamfcREbBsZUE4WzENRdd3Yz811BoG09aAqHkys41Jy0oWS2BZdhUtYWY4nMzinIwVrWBvew2vFM8dcga+vDg+hTAqEh866HW+iFES8WvXQmlA= Received: by 10.67.196.2 with SMTP id y2mr835805ugp.60.1205335533172; Wed, 12 Mar 2008 08:25:33 -0700 (PDT) Received: from ?192.168.0.43? ( [213.212.148.34]) by mx.google.com with ESMTPS id j1sm3546367ugf.74.2008.03.12.08.25.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Mar 2008 08:25:32 -0700 (PDT) Message-Id: <2226A814-87D8-4531-AC26-D1E7B44227C0@gmail.com> From: Enrico Sirola To: pgsql-performance@postgresql.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: 8.3 write performance Date: Wed, 12 Mar 2008 16:25:29 +0100 X-Mailer: Apple Mail (2.919.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/256 X-Sequence-Number: 29210 Hello, (you could receive this message twice - I have some email issues sorry) I'm setting up a new DB with Centos 5 (amd64) + postgresql 8.3 installed from the pgsql yum repository. This is a host dedicated to postgresql. From the benchmarks I found here and there on the web, and having digged a bit on the ML, it seems that I could expect something similar to 4000 tps with pgbench. The host is a HP DL580 G5, 8GB of RAM with 8x146G 10k SAS disks and 2x2.4GHz quad-code intel xeons, with a battery-backed P400/512MB controller. I tried two disk layout configurations: - raid 1 system - raid 1 for WAL - raid 10 (4 disks) for data and - raid 1 system - raid 10 (6 disks) WAL+data the FS is ext3 (without lvm) for all the db-related partitions, created with the following options -b 4096 -E stride=32 -j -m 10 -T largefile (the array stripe size is 128k) and mounted with noatime,data=writeback pgbench reports circa 2000 tps with a number of clients ranging from 2 to 12 and starts decreasing afterwards with the number of clients, for example I get 1200 tps with 50 clients. The relevant configuration items of the DB is like in the following (default values are not shown) ------------------------------------ max_connections = 100 shared_buffers = 2GB temp_buffers = 128MB work_mem = 8MB maintenance_work_mem = 128MB max_fsm_pages = 1000000 bgwriter_delay = 200ms fsync = on synchronous_commit = on wal_sync_method = fdatasync wal_buffers = 1024kB commit_delay = 100 checkpoint_segments = 128 effective_cache_size = 5GB constraint_exclusion = on -------------------------------------- I'm a bit worried about this 2k tps limit I hit regardless of the disk layout, and also by the fact that it seems someone else reported to have much better figures (4ktps) with similar hardware. Does anyone have hints/suggestions/advices about what could be further optimized? Thanks a lot for your help, Enrico