From: | Steve Midgley <science(at)misuse(dot)org> |
---|---|
To: | Erik Brandsberg <erik(at)heimdalldata(dot)com> |
Cc: | Ed Behn <ed(dot)behn(at)collins(dot)com>, pgsql-sql(at)lists(dot)postgresql(dot)org |
Subject: | Re: Separate volumes |
Date: | 2020-04-06 17:11:39 |
Message-ID: | CAJexoSLSHRVOKzVGD-pDHE=KY9un7bPsxGO6fSKZVgeGsj2t6g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Mon, Apr 6, 2020 at 9:42 AM Erik Brandsberg <erik(at)heimdalldata(dot)com>
wrote:
> With SSD and it's random IO performance, I doubt that this advice would
> apply as much, and adds complexity to your configuration and management.
> In particular if you use any filesystem level snapshotting (like with ZFS),
> splitting the filespaces will make it harder to do restores and using
> snapshots.
>
> On Mon, Apr 6, 2020 at 10:40 AM Ed Behn <ed(dot)behn(at)collins(dot)com> wrote:
>
>> I was once told that it's best practice to store tables and indexes in
>> separate tablespaces located on separate physical drives. It seemed logical
>> that this should improve performance because the read-head wouldn't need to
>> jump back and forth between a table and its index.
>>
>> However, I can't seem to find this advice anywhere online. Is it indeed
>> best practice? Is it worth the hassle?
>>
>>
>>
>
> As a general and practical matter I 100% agree with Erik -- the advice is
a bit out of date, and for SSDs it probably makes no meaningful difference.
However for extremely high, sustained workloads, you might find splitting
tables, indices, and transaction logs onto separate disk _disk arrays and
controllers_ could yield improvements, particularly for certain RAID
setups. But maxing out a disk controller is pretty hard to do (impossible
afaik with a single drive), so you'd want to have some strong metrics to
show this is worth it. At that point, you'd probably be better off getting
commercial disk array solutions into the mix rather than rolling your own
anyway..
Steve
From | Date | Subject | |
---|---|---|---|
Next Message | MichaelDBA | 2020-04-06 19:30:57 | Re: Separate volumes |
Previous Message | Erik Brandsberg | 2020-04-06 16:41:48 | Re: Separate volumes |