Thread: Tuning: Taking advantage of 2GB RAM

Tuning: Taking advantage of 2GB RAM

From
brianb-pggeneral@edsamail.com
Date:
I have Postgres 6.5 running on a 4-cpu Linux server with 2GB RAM, however
it does not seem to be taking full advantage of the available memory, even
during large queries. How do I tell Postgres that more memory is available?

Brian

P.S. Yes, I know we should upgrade to 7, but it looks like we're moving
this application to Oracle soon.
--
Brian Baquiran <brianb@edsamail.com>
http://www.baquiran.com/  AIM: bbaquiran
Work: +63(2)7182222       Home: +63(2) 9227123

Is Pg 7.0.x's Locking Mechanism BROKEN?

From
Fabrice Scemama
Date:
Hello;

we've been using Postgres for nearly 2 years now, and have
followed updgrades, from 6.4.2 to 7.0.2. Our applications
are mainly shell scripts, and CGI. All is done in perl.
We have long, heavy, and simultaneous transactions.

With 7.0.x versions, we've come across a problem, new for us:
very often (2 or 3 times a day), there are on our Pg machine
a dozen of 'update waiting', and our perl scripts are waiting
too to begin a transaction. So many postgres are running, than
no other one can be added; only SELECTs continue to be possible.
We finally have to restart Postgres; but even if we kill
postmaster's process, there still are postgres processes runnings,
and they have to be killed too! Definitely not working.

We've been looking for solutions for a few weeks, and even
decided to move Pg from a satured PIII 650 to a DEC Alpha 500mhz,
where Postgres is the only application to run.
So far, we haven't found any workaround, and the hangings have
been quite nasty for our project.

Yesterday, I moved back our DB to Pg 6.5.3, and yes, now
everything works fine again (it's slower, but it works).
And vacuums don't hang the postmaster any more.

So, I've got 2 questions:
- Am I the only one here to have such problems with 7.0.2?
- Is 7.0.2 broken?

Regards
Fabrice Scemama

Re: Is Pg 7.0.x's Locking Mechanism BROKEN?

From
Tom Lane
Date:
Fabrice Scemama <fabrice@scemama.org> writes:
> With 7.0.x versions, we've come across a problem, new for us:
> very often (2 or 3 times a day), there are on our Pg machine
> a dozen of 'update waiting', and our perl scripts are waiting
> too to begin a transaction.

Can you list exactly what *all* the backends are doing when this
happens?  It might help to run the postmaster with -d2 so that
the postmaster log contains a trace of all queries executed.

> - Am I the only one here to have such problems with 7.0.2?

Haven't seen any other such reports.

            regards, tom lane