pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christiaan Willemsen <cwillemsen@technocon.com>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Using high speed swap to improve performance?
Date: Tue, 6 Apr 2010 09:38:54 +0200
Message-ID: <vmime.4bbae50e.61d6.7eb43efb6b92d0bd@yoda.dhcp.tecnocon.com> (raw)


Hi Scott,

 

That sound like a usefull thing to do, but the big advantage of the SAN is that in case the physical machine goes down, I can quickly startup a virtual machine using the same database files to act as a fallback. It will have less memory, and less CPU's but it will do fine for some time.

 

So when putting fast tables on local storage, I losse those tables when the machine goes down.

 

Putting indexes on there however might me intresting.. What will Postgresql do when it is started on the backupmachine, and it finds out the index files are missing? Will it recreate those files, or will it panic and not start at all, or can we just manually reindex?

 

Kind regards,

 

Christiaan
 
-----Original message-----
From: Scott Marlowe <scott.marlowe@gmail.com>
Sent: Sun 04-04-2010 23:08
To: Christiaan Willemsen <cwillemsen@technocon.com>; 
CC: pgsql-performance@postgresql.org; 
Subject: Re: [PERFORM] Using high speed swap to improve performance?

On Fri, Apr 2, 2010 at 1:15 PM, Christiaan Willemsen
<cwillemsen@technocon.com> 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...



view thread (10+ messages)  latest in thread

Message-ID: <vmime.4bbae50e.61d6.7eb43efb6b92d0bd@yoda.dhcp.tecnocon.com>
Permalink:  ../vmime.4bbae50e.61d6.7eb43efb6b92d0bd@yoda.dhcp.tecnocon.com/
Also on:    postgresql.org/message-id/vmime.4bbae50e.61d6.7eb43efb6b92d0bd@yoda.dhcp.tecnocon.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: cwillemsen@technocon.com, scott.marlowe@gmail.com
  Subject: Re: Using high speed swap to improve performance?
  In-Reply-To: <vmime.4bbae50e.61d6.7eb43efb6b92d0bd@yoda.dhcp.tecnocon.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox