Re: how to improve the performance of creating index

From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: how to improve the performance of creating index
Date: 2007-10-19 12:52:05
Message-ID: 60hckngtca.fsf@dba2.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

yinanli(at)cse(dot)ust(dot)hk ("Yinan Li") writes:
>          I am trying to improve the performance of creating index.:p>
>
>          I've set shared_buffers = 1024MB:p>
>
>                    Effective_cache_size = 1024MB:p>
>
>                    Work_mem = 1GB:p>
>
>                    Maintenance_work_mem=512MB:p>
>
>          (I'm sure that the server process has received the SIGHUP signal):p>
>
> However, when create index, I found that the memory used by Postgres is only 50MB. And it is very
> slow. How to make it faster?:p>
>
> All helps are appreciated.:p>

Those values seem rather large, with the exception of the effective
cache size, which I would expect to be somewhat bigger, based on the
other values.

Note that the values for work_mem and maintenance_work_mem get used
each time something is sorted or maintained. So if those values get
set high, this can pretty easily lead to scary amounts of swapping,
which would tend to lead to things getting "very slow."

You may want to do a census as to how much resources you have on the
server. Knowing that would help people make more rational evaluations
of whether your parameters are sensible or not.
--
(reverse (concatenate 'string "moc.enworbbc" "@" "enworbbc"))
http://linuxdatabases.info/info/languages.html
All syllogisms have three parts, therefore this is not a syllogism.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Heikki Linnakangas 2007-10-19 14:50:07 Re: how to improve the performance of creating index
Previous Message Heikki Linnakangas 2007-10-19 12:03:27 Re: how to improve the performance of creating index