Re: Effects of setting linux block device readahead size

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: david(at)lang(dot)hm
Cc: "Scott Carey" <scott(at)richrelevance(dot)com>, "James Mansion" <james(at)mansionfamily(dot)plus(dot)com>, "Greg Smith" <gsmith(at)gregsmith(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Effects of setting linux block device readahead size
Date: 2008-09-12 02:30:38
Message-ID: dcc563d10809111930g10fc5256wac2020d596e3474d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Sep 11, 2008 at 4:33 PM, <david(at)lang(dot)hm> wrote:
> On Thu, 11 Sep 2008, Scott Marlowe wrote:
>
>> On Thu, Sep 11, 2008 at 3:36 PM, <david(at)lang(dot)hm> wrote:
>>>
>>> by even if it didn't, most modern drives read the entire cylinder into
>>> their
>>> buffer so any additional requests to the drive will be satisfied from
>>> this
>>> buffer and not have to wait for the disk itself.
>>
>> Generally speaking I agree, but I would still make a separate logical
>> partition for pg_xlog so that if the OS fills up the /var/log dir or
>> something, it doesn't impact the db.
>
> this is a completely different discussion :-)
>
> while I agree with you in theory, in practice I've seen multiple partitions
> cause far more problems than they have prevented (due to the partitions
> ending up not being large enough and having to be resized after they fill
> up, etc) so I tend to go in the direction of a few large partitions.

I've never had that problem. I've always made the big enough. I
can't imagine building a server where /var/log shared space with my
db. It's not like every root level dir gets its own partition, but
seriously, logs should never go anywhere that another application is
writing to.

> the only reason I do multiple partitions (besides when the hardware or
> performance considerations require it) is when I can identify that there is
> some data that I would not want to touch on a OS upgrade. I try to make it
> so that an OS upgrade can wipe the OS partitions if nessasary.

it's quite handy to have /home on a separate partition I agree. But
on most servers /home should be empty. A few others like /opt or
/usr/local I tend to make a separate one for the reasons you mention
as well.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jignesh K. Shah 2008-09-12 03:30:39 Re: PostgreSQL TPC-H test result?
Previous Message Scott Carey 2008-09-11 23:20:19 Re: Effects of setting linux block device readahead size