Re: Postgres running Very slowly

From: Bill Moran <wmoran(at)collaborativefusion(dot)com>
To: "Radhika S" <radhika(dot)sambamurti(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgres running Very slowly
Date: 2007-10-09 20:18:48
Message-ID: 20071009161848.ef0f3ca6.wmoran@collaborativefusion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

In response to "Radhika S" <radhika(dot)sambamurti(at)gmail(dot)com>:

> Hi -,
> I have a very peculiar situation.
>
> I am running a postgres 7.4.6 database. It is running slow....... .

7.4.6 is very old. You're lucky it hasn't corrupted your data. At
least upgrade to the latest 7.4.18 (yes, that's 12 patches ahead of
you). Optimally, upgrade to 8.2.5, which has a huge number of
performance improvements.

> I vacuum --analyze daily. I just did again.
> I did a vacuum full last night.
>
> But to no avail. CPU usage and memory are normal, but the system is
> crawling.

You need to specifically define "crawling" before anyone will be able
to provide any useful advice. What queries are running slow? What
does the explain output look like? The answers are in the details,
so we can't provide the answers unless you provide the details. Like
the OS you're running it on, for example.

> Here is the info from vacuum.
>
> CPU 0.02s/0.01u sec elapsed 0.02 sec.
> INFO: free space map: 167 relations, 1412 pages stored; 3440 total pages
> needed
> DETAIL: Allocated FSM size: 1000 relations + 20000 pages = 178 kB shared
> memory.
> VACUUM

This doesn't look problematic, so I doubt your vacuum policy is to blame.

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran(at)collaborativefusion(dot)com
Phone: 412-422-3463x4023

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Marcin Stępnicki 2007-10-10 05:25:45 Re: Shared Buffer setting in postgresql.conf
Previous Message Radhika S 2007-10-09 20:12:56 Shared Buffer setting in postgresql.conf