Re: how to improve the performance of creating index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yinanli@xxxxxxxxxx ("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.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux