pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
clustering takes too long! 2+ messages / 2 participants [nested] [flat]
* clustering takes too long! @ 2006-06-18 08:45 Ravindra Guravannavar <ravindrag@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: Ravindra Guravannavar @ 2006-06-18 08:45 UTC (permalink / raw) To: pgsql-admin; +Cc: ravindrag@gmail.com Hi, I am trying to cluster an index on the TPC-H lineitem table having 6 million records. The index is on a single column l_suppkey. Postgres (8.1.3) is not able to finish the operation even after 2 hours! The disk is being accessed continuously and CPU is at 2%. Postmaster is started with the following options: -B 2000 --work-mem=10240 --maintenance_work_mem=10240 --wal_buffers=32 --checkpoint_segments=128 --checkpoint_timeout=600 No useful messages in the logfile. With the default checkpoint_segments (before I increased it to 128), there was a warning about checkpoints taking place too frequently. I tried this on two different machines and also with 8.1.4 and see the same behavior. On the same system, I am able to cluster an index on another much larger table (10 million) records within few minutes. Any clues on what could be going wrong? Thanks, Ravi ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: clustering takes too long! @ 2006-06-22 15:40 Tom Lane <tgl@sss.pgh.pa.us> parent: Ravindra Guravannavar <ravindrag@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2006-06-22 15:40 UTC (permalink / raw) To: Ravindra Guravannavar <ravindrag@gmail.com>; +Cc: pgsql-admin "Ravindra Guravannavar" <ravindrag@gmail.com> writes: > I am trying to cluster an index on the TPC-H lineitem table having > 6 million records. The index is on a single column l_suppkey. Postgres > (8.1.3) is not able to finish the operation even after 2 hours! The disk > is being accessed continuously and CPU is at 2%. Postmaster is > started with the following options: > -B 2000 --work-mem=10240 --maintenance_work_mem=10240 --wal_buffers=32 > --checkpoint_segments=128 --checkpoint_timeout=600 You should increase maintenance_work_mem for large reindexing operations. That shared_buffers setting is about a factor of 10 too small too. regards, tom lane ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-06-22 15:40 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2006-06-18 08:45 clustering takes too long! Ravindra Guravannavar <ravindrag@gmail.com> 2006-06-22 15:40 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox