From: Martijn van Oosterhout <kleptog@svana.org>
To: Rick Gigger <rick@alpinenetworking.com>
Cc: scott.marlowe <scott.marlowe@ihs.com>
Cc: PgSQL General ML <pgsql-general@postgresql.org>
Subject: Re: performance problem
Date: Wed, 19 Nov 2003 13:30:56 +1100
Message-ID: <20031119023055.GA22116@svana.org> (raw)
In-Reply-To: <021a01c3ae43$3b25a2f0$0700a8c0@trogdor>
References: <Pine.LNX.4.33.0311181419320.26776-100000@css120.ihs.com>
<021a01c3ae43$3b25a2f0$0700a8c0@trogdor>
On Tue, Nov 18, 2003 at 04:54:59PM -0700, Rick Gigger wrote:
> > That's VERY high. When postgresql has to manage a lot of buffers it
> > actually is slower than letting the kernel in Linux or BSD do it for you.
>
> Even if you've got the memory to spare? Does postgres actually slow down
> just because it's slower to manager a lot of them just or because you're
> taking the memory away from the kernel so the kernel has to swap more?
It's a combination. Any buffer that's stored in the postgresql cache is also
in the kernel cache so that's just slightly inefficient. The kernel pool
manager tends to be more optimised for handling large numbers of buffers.
Because it's the kernel is can tailor for hardware quirks like high memory
and bounce buffers and such. And when you're not using your shared memory
it's wasted but the kernel can reallocate any memory it likes for any
purpose.
Hope this helps,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/> "All that is needed for the forces of evil to triumph is for enough good
> men to do nothing." - Edmond Burke
> "The penalty good people pay for not being interested in politics is to be
> governed by people worse than themselves." - Plato
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: kleptog@svana.org, rick@alpinenetworking.com, scott.marlowe@ihs.com, pgsql-general@postgresql.org
Subject: Re: performance problem
In-Reply-To: <20031119023055.GA22116@svana.org>
References: <Pine.LNX.4.33.0311181419320.26776-100000@css120.ihs.com> <021a01c3ae43$3b25a2f0$0700a8c0@trogdor> <20031119023055.GA22116@svana.org>
* 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