Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 17E13633F58 for ; Fri, 2 Apr 2010 16:24:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 23018-10 for ; Fri, 2 Apr 2010 19:24:32 +0000 (UTC) X-Greylist: delayed 00:09:24.335777 by SQLgrey-1.7.6 Received: from yoda.tecnocon.com (mail.technocon.com [62.132.195.121]) by mail.postgresql.org (Postfix) with ESMTP id 604F3633E32 for ; Fri, 2 Apr 2010 16:24:32 -0300 (ADT) Received: from yoda (localhost [127.0.0.1]) by yoda.tecnocon.com (Postfix) with ESMTP id 2241467A0E1 for ; Fri, 2 Apr 2010 21:15:06 +0200 (CEST) Received: from localhost ([127.0.0.1]) by yoda with SMTP ID 105 for ; Fri, 2 Apr 2010 21:15:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by yoda.tecnocon.com (Postfix) with ESMTP id C7B8367A0ED for ; Fri, 2 Apr 2010 21:15:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at technocon.com Received: from yoda.tecnocon.com ([127.0.0.1]) by localhost (yoda.dhcp.tecnocon.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EunlCK9heltA for ; Fri, 2 Apr 2010 21:15:00 +0200 (CEST) Received: from yoda.dhcp.tecnocon.com (localhost [127.0.0.1]) by yoda.tecnocon.com (Postfix) with ESMTP id 51B0D67A0E1 for ; Fri, 2 Apr 2010 21:15:00 +0200 (CEST) Subject: Using high speed swap to improve performance? From: =?windows-1252?Q?Christiaan_Willemsen?= To: pgsql-performance@postgresql.org Date: Fri, 2 Apr 2010 21:15:00 +0200 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_Q8AJHrbfdVf3X4T2ZxJdbqLLJ-1brrVQtfglH8asdkHFXx6K" X-Priority: 3 (Normal) X-Mailer: Zarafa 6.20.11-17604 Message-Id: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=-10 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201004/18 X-Sequence-Number: 38268 This is a multi-part message in MIME format. Your mail reader does not understand MIME message format. --=_Q8AJHrbfdVf3X4T2ZxJdbqLLJ-1brrVQtfglH8asdkHFXx6K Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable =0D=0AHi there,=0D=0A=0D=0A=A0=0D=0A=0D=0AAbout a year ago we setup a mac= hine 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 m= ore familiar with Linux anyway).=0D=0A=0D=0A=A0=0D=0A=0D=0ASo the plan is= to move to Linux and put the data on a SAN using iSCSI (two or four netw= ork interfaces). This however leaves us with with 16 very nice disks dooi= ng nothing. Sound like a wast of time. If we were to use Solaris, ZFS wou= ld have a solution: use it as L2ARC. But there is no Linux filesystem wit= h those features (ZFS on fuse it not really an option).=0D=0A=0D=0A=A0=0D= =0A=0D=0ASo 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.=0D=0A=0D=0A=A0=0D=0A=0D=0A= So I could create a 1TB swap disk, and put it onto the OS next to the 64G= B 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 databa= se will fit into memory. The question is: will this do any good=3F And if= so: what will happen=3F=0D=0A=0D=0A=A0=0D=0A=0D=0AKind regards,=0D=0A=0D= =0A=A0=0D=0A=0D=0AChristiaan=0D=0A --=_Q8AJHrbfdVf3X4T2ZxJdbqLLJ-1brrVQtfglH8asdkHFXx6K Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable =0A=0A =0A =0A Usin= g high speed swap to improve performance=3F=0A =0A=0A=0A

Hi there,

 

About a year ago we setup a machine with sixteen 15k dis= k spindles on Solaris using ZFS. Now that Oracle has taken Sun, and is cl= osing up Solaris, we want to move away (we are more familiar with Linux a= nyway).

 

So the plan is to move to Linux and put the da= ta on a SAN using iSCSI (two or four network interfaces). This however le= aves 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 L2= ARC. But there is no Linux filesystem with those features (ZFS on fuse it= not really an option).

 

So I was thinking: Why not mak= e a big fat array using 14 disks (raid 1, 10 or 5), and make this a big a= nd fast swap disk. Latency will be lower than the SAN can provide, and th= roughput will also be better, and it will relief the SAN from a lot of re= ad 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 m= ore than the RAM size so it will start swapping. It would appear to postg= res that the complete database will fit into memory. The question is: wil= l this do any good=3F And if so: what will happen=3F

 

K= ind regards,

 

Christiaan

=0A=0A --=_Q8AJHrbfdVf3X4T2ZxJdbqLLJ-1brrVQtfglH8asdkHFXx6K--