Re: Indexes on ramdisk

From: Alex Turner <armtuk(at)gmail(dot)com>
To: emil(at)baymountain(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Indexes on ramdisk
Date: 2005-10-05 15:03:03
Message-ID: 33c6269f0510050803w72097bb5v526a0126af876af4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

What kind of order of improvement do you need to see?

What period are these number for? Were they collected over 1 hour, 1 day, 1
month?

How much Cache do you have on the controller?

You can certainly get more speed by adding more disk and possibly by adding
more controller RAM/a second controller. 10 disks isn't really that many for
a totally kick-ass DB server. You can acheive more block writes with RAID
10s than with RAID 1s. Wether it's cost effective is dependant on lots of
factors like your chassis and drive enclosures etc. vs SSD. SSD will be
faster, but last I heard was expensive, and I checked a few websites but
couldn't get much price info. Normaly when you can't get price info, thats a
bad sign ;). If you are doing large chunks of writes to a small number of
tables, then you might be better off with a single large RAID 10 for your
tablespace than with seperate RAID 1s. If you are writing 5 to 1 more table
data than index data, you are hurting yourself by seperating on to multiple
RAID 1s instead of a single RAID 10 which could write at 2-3x for the 5, and
2-3x for the 1 and only suffer a single seek penalty but get data onto disk
twice to three times as fast (depending how many RAID 1s you join). Try
unseperating RAID 1s, and combine to a RAID 10. for indexes and tablespaces.
The controller will re-sequence your writes/reads to help with effeciency,
and dbwriter is there to make things go easier.

You can at least get some idea by doing an iostat and see how many IOs and
how much throughput is happening. That will rappidly help determine if you
are bound by IOs or by MB/sec.

Worst case I'm wrong, but IMHO it's worth a try.

Alex Turner
NetEconomist

On 10/4/05, Emil Briggs <emil(at)baymountain(dot)com> wrote:
>
> > Talk about your IO system a bit. There might be obvious ways to improve.
> >
> > What System/Motherboard are you using?
> > What Controller Cards are you using?
> > What kind of Disks do you have (SATA, SCSI 7.6k 10k 15k)
> > What denominations (9, 18, 36, 72, 143, 80, 160, 200 240Gig)?
> > What kind of RAIDs do you have setup (How many drives what stripe sizes,
> > how many used for what).
> > What levels of RAID are you using (0,1,10,5,50)?
> >
>
> It's a quad opteron system. RAID controller is a 4 channel LSILogic
> Megaraid
> 320 connected to 10 15k 36.7G SCSI disks. The disks are configured in 5
> mirrored partitions. The pg_xlog is on one mirror and the data and indexes
> are spread over the other 4 using tablespaces. These numbers from
> pg_stat_user_tables are from about 2 hours earlier today on this one
> table.
>
>
> idx_scan 20578690
> idx_tup_fetch 35866104841
> n_tup_ins 1940081
> n_tup_upd 1604041
> n_tup_del 1880424
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Frank Wiles 2005-10-05 15:05:43 Re: Is There Any Way ....
Previous Message Merlin Moncure 2005-10-05 14:55:36 Re: Indexes on ramdisk