Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9E827632308 for ; Fri, 4 Jun 2010 22:54:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 47136-05 for ; Sat, 5 Jun 2010 01:53:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f46.google.com (mail-pw0-f46.google.com [209.85.160.46]) by mail.postgresql.org (Postfix) with ESMTP id 7EC29632450 for ; Fri, 4 Jun 2010 22:53:52 -0300 (ADT) Received: by pwj5 with SMTP id 5so222013pwj.19 for ; Fri, 04 Jun 2010 18:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:organization:user-agent :x-operating-system:x-face:face:x-mailer:mime-version:content-type :content-transfer-encoding; bh=rEHq3V5H1nw0I6/v+VTvBIASFtrGnqtnndQo72RowZA=; b=bjaVSP7yxxV5OnTm2Oq4pnpZ/4VO/hvdlaxAPic6WW/hl0fyCTeGVCytEsWvfcADLn pzLA3xs+qxLLNTboHLOKAYwz8BSP0r3YuA7Ts/tIWjMP/cknl/oavGhQU8SufzOYmG5R oDrIWenQukzOotrpEe7aty4fR1e9o2jLwbL+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:user-agent:x-operating-system:x-face:face:x-mailer :mime-version:content-type:content-transfer-encoding; b=NcAQQCNUCV6NX5eedztKzKS6abd8qk8YIgmGOyErWfaMI2+qBqs0esgVbRlEp44Gdb BiH23X7991lotknhEImxw3G/FU70+3gelotmU7GuQhMMTPeB/+BbAurjM12RS/9TKtTO h4Ftkz7dKxeJKoW8Q1DC/UK72hXTf6v76Xp0U= Received: by 10.141.107.11 with SMTP id j11mr9583780rvm.199.1275702830380; Fri, 04 Jun 2010 18:53:50 -0700 (PDT) Received: from icy.localdomain ([115.72.196.52]) by mx.google.com with ESMTPS id b12sm2882039rvn.22.2010.06.04.18.53.48 (version=SSLv3 cipher=RC4-MD5); Fri, 04 Jun 2010 18:53:50 -0700 (PDT) Date: Sat, 5 Jun 2010 08:53:40 +0700 From: "Anh Ky Huynh" To: RBN Cc: pgsql-admin@postgresql.org Subject: Re: Filesystem and PG configuration Message-ID: <20100605085340.76006e62@icy.localdomain> In-Reply-To: References: Organization: Vietnamese TeX Users Group User-Agent: FreeBSD X-Operating-System: FreeBSD X-Face: FreeBSD Face: FreeBSD X-Mailer: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/48 X-Sequence-Number: 34826 On Fri, 4 Jun 2010 11:25:55 -0400 RBN wrote: > Can someone suggest some appropriate initial configuration > parameters and shared memory settings for the following hardware? > > I'm running Debian on a Dell with 4x6 core CPU and 128GB memory and > writing to a coraid with 9 x 32GB SSDs RAID 10 using jfs with 8 > drives active and 1 as spare. > > I'm considering changing to xfs. I'm not sure what block size to > use for the file system, is 8192 appropriate? The OS page size is > 4096. > > The database is both write and read intensive, with about 750MB of > new data added per week and old deleted every six months to one > year. A good start: Tuning: http://www.westnet.com/~gsmith/content/postgresql/pgbench-scaling.htm Benchmark: http://edoceo.com/liber/db-postgresql-benchmark Here's my benchmark on `m1.medium` instance of Amazon EC2: http://gx.viettug.org/zen/kyanh/jobs/pgbench0.jpg.html Good luck, -- Anh Ky Huynh