Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A03C9632952 for ; Mon, 5 Apr 2010 11:55:28 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 95526-09 for ; Mon, 5 Apr 2010 14:55:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mail.postgresql.org (Postfix) with ESMTP id BE9DF6328C5 for ; Mon, 5 Apr 2010 11:55:17 -0300 (ADT) Received: from [192.168.0.105] (pool-96-244-14-10.bltmmd.fios.verizon.net [96.244.14.10]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MT3vW-1O99Yn2y6I-00RlY5; Mon, 05 Apr 2010 16:55:12 +0200 Message-ID: <4BB9F9CE.1020106@2ndquadrant.com> Date: Mon, 05 Apr 2010 10:55:10 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Christiaan Willemsen CC: pgsql-performance@postgresql.org Subject: Re: Using high speed swap to improve performance? References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/b6qYp1DtuThvIHS4mRQBLBp7GCwiymy0iYtq xxyl1uj84DRrqd9PmGS7HZ1GATfaCS97u5nUay4amZDZTK0FzF q5/nPFMTMwqjT4DbzaQZh64u6na2tg3 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.066 tagged_above=-10 required=5 tests=AWL=-1.067, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201004/37 X-Sequence-Number: 38287 Christiaan Willemsen wrote: > > So I was thinking: Why not make a big fat array using 14 disks (raid > 1, 10 or 5), and make this a big and fast swap disk. Latency will be > lower than the SAN can provide, and throughput will also be better, > and it will relief the SAN from a lot of read iops. > Presuming that swap will give predictable performance as things go into and out of there doesn't sound like a great idea to me. Have you considered adding that space as a tablespace and setting temp_tablespaces to point to it? That's the best thing I can think of to use a faster local disk with lower integrity guarantees for. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us