Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3FD0FB5DBCE for ; Fri, 17 Jun 2011 05:42:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 91799-06 for ; Fri, 17 Jun 2011 08:42:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174]) by mail.postgresql.org (Postfix) with ESMTP id C6624B5D944 for ; Fri, 17 Jun 2011 05:42:22 -0300 (ADT) Received: by wyb38 with SMTP id 38so148003wyb.19 for ; Fri, 17 Jun 2011 01:42:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=EfliXmCEd/OFNDzI7JxYsBUSmRszVjTOAk1pWESIBgk=; b=jG2NOSQrWEafJmUjI9hAGIuj9nPF+qdQfMHhCMydHw3KKgCX4KZcI6rxvszSLnx0IS fPnrYVJMCLFcXqr9wcOCadO9Sz4wzQ/FpHReH8hEHq0b10DNVO7mP9OleANNEuBzBG4Y UB2HyYPv3CfX2BM4ZYBKW0LDj0bkPRbrKbWBI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=XATuKNQc6k3JxwNuMGYPBhhAaDkKBvocxw7MnziiuYlmM25YNWKIEz1C0KV/OUIpms gFSwJx9ias+RUe6ymXaS8ZTbHgPPrrZUTctAbqHxqFpD+fWOODBbm7e9bdfEGO1dapy2 kcYrnfHRFzo29InR2HvyL5xRp1UBEnT70cmRU= Received: by 10.227.174.69 with SMTP id s5mr1836493wbz.80.1308300142040; Fri, 17 Jun 2011 01:42:22 -0700 (PDT) Received: from [192.168.1.36] ([194.153.94.2]) by mx.google.com with ESMTPS id gb6sm773561wbb.0.2011.06.17.01.42.20 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Jun 2011 01:42:21 -0700 (PDT) Subject: Re: Performance advice for a new low(er)-power server Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Haestan In-Reply-To: <4DFA4B89.6080504@krogh.cc> Date: Fri, 17 Jun 2011 10:42:19 +0200 Cc: pgsql-performance@postgresql.org Content-Transfer-Encoding: 7bit Message-Id: <90F18659-0304-40B6-88B2-A0D5930364DC@gmail.com> References: <4DFA4B89.6080504@krogh.cc> To: Jesper Krogh X-Mailer: Apple Mail (2.1084) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201106/150 X-Sequence-Number: 44083 On Jun 16, 2011, at 20:29, Jesper Krogh wrote: > On 2011-06-16 17:09, Haestan wrote: >> I am evaluating hardware for a new PostgreSQL server. For reasons >> concerning power consumption and available space it should not have >> more than 4 disks (in a 1U case), if possible. Now, I am not sure what >> disks to use and how to layout them to get the best performance. > What is your data:memory-size ratio? Can you afford to have everything > in memory and only have the disks to be able to sustain writes? Yes, I can definitely affort to have everything in memory. Right now, the main database is about 10GB in size including bloat (around 4GB without). And there are some more db's of about 4GB in size. So in total around 14GB at the moment and slowly rising. I was planning to put in at least 16GB RAM or probably even 24GB to be safe. The problem is that the data of the main db is more or less constantly updated or deleted/reinserted throughout the day. It seems to me that the resulting bloat and the constant new data is really hurting the cache hit rate (which is now around 90% in the main appl.). It's those remaining queries that read from the disk that I really would like to speed up as best as possible. >> Furthermore, the LSI MegaRAID 9261 offers CacheCade which uses SSD >> disks a as secondary tier of cache for the SAS disks. Would this >> feature make sense for a PostgreSQL server, performance wise? > I have one CacheCade setup... not a huge benefit but it seems > measurable. (but really hard to test). .. compared to a full > SSD-setup I wouldn't consider it at all. Thanks for that input. What I've read from you and others, the SSD cache doesn't seem a viable option for me.