Re: A couple of patches for PostgreSQL 64bit support

From: Hans-Jürgen Schönig <postgres(at)cybertec(dot)at>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Koichi Suzuki <koichi(at)intellilink(dot)co(dot)jp>, pgsql-patches(at)postgresql(dot)org, Satoshi Nagayasu <nagayasus(at)nttdata(dot)co(dot)jp>, ikubo(at)intellilink(dot)co(dot)jp, yasunaga <yasunaga(dot)hisato(at)soft(dot)fujitsu(dot)com>, Bruce Momjian <root(at)candle(dot)pha(dot)pa(dot)us>, Jan Wieck <JanWieck(at)Yahoo(dot)com>, sakata(dot)tetsuo(at)lab(dot)ntt(dot)co(dot)jp, "T(dot)Honishi" <honishi(dot)takashi(at)lab(dot)ntt(dot)co(dot)jp>
Subject: Re: A couple of patches for PostgreSQL 64bit support
Date: 2005-07-07 16:54:28
Message-ID: 42CD5E44.8060101@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= <postgres(at)cybertec(dot)at> writes:
>
>>There is some practical evidence. Recently the number of large boxes in
>>the field is almost growing exponentially. Today I have heard somebody
>>say "this box has 'just 4 gig of ram' ".
>>On large installations we have already seen problems with too small
>>caches (= 2gb).
>>Surprisingly this has turned out to be a quite important issue in the
>>field. Tests have shown that the cache provided by the OS is a lot worse
>>for the database.
>
>
> *What* tests? This is all handwaving :-(
>
> What I would find credible is a set of, say, OSDL test runs, showing a
> continuing increase of performance with shared_buffers right up to the
> 2Gb limit. Everything done to date says that you hit the point of
> diminishing returns well before that.
>
> regards, tom lane

well, you can easily try it on a big machine with gigs of ram and
nothing but the database running. using a very low number of shared
buffers will lead to worse performance than many shared buffers - even
if the operating system caches some disk i/O (which is done by linux if
nobody else want to have some ram). i have no public hard figures i
could post here but customers have told me that 2Q cache vs. kernel
cache is around 5-10 times faster (it varies of course).

the 2gb thing is especially important for data crunchers - not
necessarily for 'normal' OLTP databases. just assume somebody getting 5
gig of data and doing some repeated computation with this data. you
definitely don't want to go to disk in this case. people will assume
that postgresql can work with large caches ("it is a good database - why
do i get errors on startup" - this is the usual story). people rather
tend to rely on PostgreSQL than on some operating system thing ;).

i might have some time to provide some real hard facts to prove this but
i am a bit busy at the moment.

best regards,

hans

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2005-07-07 16:58:02 Re: A couple of patches for PostgreSQL 64bit support
Previous Message Josh Berkus 2005-07-07 16:52:44 Re: SQL99 - Nested Tables

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Berkus 2005-07-07 16:58:02 Re: A couple of patches for PostgreSQL 64bit support
Previous Message Alvaro Herrera 2005-07-07 16:43:26 Re: Dependencies on shared objects