Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 2B9259FA180 for ; Fri, 19 Oct 2007 10:05:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 87097-02-5 for ; Fri, 19 Oct 2007 10:05:31 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id BBA689FA0BA for ; Fri, 19 Oct 2007 10:05:31 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id l9JD5PW9034585 for ; Fri, 19 Oct 2007 10:05:25 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id l9JD40DI029276 for pgsql-performance@postgresql.org; Fri, 19 Oct 2007 10:04:00 -0300 (ADT) (envelope-from news) From: Chris Browne X-Newsgroups: pgsql.performance Subject: Re: how to improve the performance of creating index Date: Fri, 19 Oct 2007 08:52:05 -0400 Organization: cbbrowne Computing Inc Lines: 34 Message-ID: <60hckngtca.fsf@dba2.int.libertyrms.com> References: <01c601c81247$3b8c5650$b2a502f0$@ust.hk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.20 (linux) Cancel-Lock: sha1:d4q5LyFenA9+IR0QOlrKRDoF4H4= To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/228 X-Sequence-Number: 27250 yinanli@cse.ust.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.