Re: PostgreSQL on Webmin

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: "Kostadin Solakov" <kostadin(dot)solakov(at)gmail(dot)com>, "'John R Pierce'" <pierce(at)hogranch(dot)com>
Subject: Re: PostgreSQL on Webmin
Date: 2009-03-17 04:57:46
Message-ID: 200903170057.47024.xzilla@users.sourceforge.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday 16 March 2009 17:55:00 Kostadin Solakov wrote:
> John R Pierce wrote:
>
> thats odd, as a domain socket should be slightly -faster- than a tcp/ip
> socket. now, since you say 'previous host' I could wonder if other
> configuration items are impacting this, such as buffer sizes in
> postgresql.conf, relative speed of disk controllers, etc. or perhaps
> this new database hasn't been analyzed since it was populated, or its
> indexes need rebuilding, or something similar...
>
> I think that is the issue. Previous server was old machine and the
> settings in postgresql.conf were the default ones.
> The new machine is Xeon quad with 8GB ram and I already made some
> changes in postgresql.conf, but still no result.
> I followed the instructions on
> http://www.powerpostgresql.com/PerfList/ and made the following changes:
>
> shared_buffers = 50000
> work_mem = 512000
> checkpoint_segments = 32
> effective_cache_size = 200000
>
> Also I ran REINDEX on the DB and VACUUM VERBOSE ANALYZE on each
> table, but still the results are the same as before.
> What are the settings you recommend for this server?
> The application that is going to use it has a very demanding back
> end, it parses very large XML files (20+) and saves the data in the DB.
>

Unless you're actually running 8.2, that information is a bit out of date.
There's a better write up at
http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server

Once you go through that and restart, if it's still slow, can you paste
explain analyze from the two different servers?

--
Robert Treat
Conjecture: http://www.xzilla.net
Consulting: http://www.omniti.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nagalingam, Karthikeyan 2009-03-17 05:15:55 Re: deployment query
Previous Message Joshua D. Drake 2009-03-17 04:22:09 Re: Postgres 8.2.x support on Windows 2008