Unix Technical Forum

Postgres running Very slowly

This is a discussion on Postgres running Very slowly within the Pgsql Performance forums, part of the PostgreSQL category; --> Hi -, I have a very peculiar situation. I am running a postgres 7.4.6 database. It is running slow....... ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 11:40 AM
Radhika S
 
Posts: n/a
Default Postgres running Very slowly

Hi -,
I have a very peculiar situation.

I am running a postgres 7.4.6 database. It is running slow....... .
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.

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


Is there anything else I should be looking at like FSM configuration in the
conf file?

Any help would be appreciated.

Thanks.
Radhika

--
It is all a matter of perspective. You choose your view by choosing where to
stand. --Larry Wall

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 11:40 AM
Bill Moran
 
Posts: n/a
Default Re: Postgres running Very slowly

In response to "Radhika S" <radhika.sambamurti@gmail.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@collaborativefusion.com
Phone: 412-422-3463x4023

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com