Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 83436632952 for ; Sun, 4 Apr 2010 18:08:06 -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 20018-06 for ; Sun, 4 Apr 2010 21:07:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id E7FC96321A8 for ; Sun, 4 Apr 2010 18:07:55 -0300 (ADT) Received: by gyg13 with SMTP id 13so1751524gyg.19 for ; Sun, 04 Apr 2010 14:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=WiYW9rRrc8iWS+DD4EWU0Bu14oxPnkpXWGAB0EVDlw0=; b=oHQPHvQU7CvZh/IKaUcSAt7LKEFfr+WocW3a4hmeGRrvrvwzLoapIGSB0pTv1nOHzC hmtlijoO2CkY2EOOr37A31u2QP0z8srk827ZcG73UNDd2T+Cf6wkUOAHTTTz5Dc/Ygp7 JZTu1NC6ItsqYckzh2Lz1OE5igciBnM4KKHlQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=VLJNh+DMMHfzytrjwLmsjUwa2lPX1OmWL3vPz5wxHd7Ksy7SxtDMwXb5MBRt9KI7Nm NQ1U3t3kbaCk+k5hK7UQrcwqw/NV32V1Yeoa/MV4OqNxouXowVgfIq6R636vjSII7g3r qqVwBeHeSP7EfuCUZ/4COgrUpMuBkdaIhA8nU= MIME-Version: 1.0 Received: by 10.151.13.4 with HTTP; Sun, 4 Apr 2010 14:07:54 -0700 (PDT) In-Reply-To: References: Date: Sun, 4 Apr 2010 15:07:54 -0600 Received: by 10.150.120.35 with SMTP id s35mr5900069ybc.224.1270415274724; Sun, 04 Apr 2010 14:07:54 -0700 (PDT) Message-ID: Subject: Re: Using high speed swap to improve performance? From: Scott Marlowe To: Christiaan Willemsen Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.252 tagged_above=-10 required=5 tests=AWL=-1.067, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 201004/33 X-Sequence-Number: 38283 On Fri, Apr 2, 2010 at 1:15 PM, Christiaan Willemsen wrote: > Hi there, > > About a year ago we setup a machine with sixteen 15k disk spindles on > Solaris using ZFS. Now that Oracle has taken Sun, and is closing up Solaris, > we want to move away (we are more familiar with Linux anyway). > > So the plan is to move to Linux and put the data on a SAN using iSCSI (two > or four network interfaces). This however leaves us with with 16 very nice > disks dooing nothing. Sound like a wast of time. If we were to use Solaris, > ZFS would have a solution: use it as L2ARC. But there is no Linux filesystem > with those features (ZFS on fuse it not really an option). > > 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. > > So I could create a 1TB swap disk, and put it onto the OS next to the 64GB > of memory. Then I can set Postgres to use more than the RAM size so it will > start swapping. It would appear to postgres that the complete database will > fit into memory. The question is: will this do any good? And if so: what > will happen? I'd make a couple of RAID-10s out of it and use them for highly used tables and / or indexes etc...