Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Server Freezing


  • From: Greg Smith <greg(at)2ndquadrant(dot)com>
  • To: Waldomiro <waldomiro(at)shx(dot)com(dot)br>
  • Cc: pgsql-performance(at)postgresql(dot)org
  • Subject: Re: Server Freezing
  • Date: Mon, 30 Nov 2009 19:08:09 -0500
  • Message-id: <4B145E69.80209@2ndquadrant.com> <text/plain>

Waldomiro wrote:
Is It possible the checkpoint is doing that? Or the archiving? How can I see?
If you're using PostgreSQL 8.3 or later, you can turn on log_checkpoints and you'll get a note when each checkpoint finishes. The parts that are more likely to slow the server down are right at the end, so if you see a bunch of slow queries around the same time as the checkpoint message appears in the logs, that's the likely cause. Bad checkpoint behavior can certainly cause several seconds of freezing on a system with 32GB of RAM, because with that much data you can have quite a bit in the OS write cache that all gets forced out at the end of the checkpoint.

Finding when the checkpoints happen on 8.2 or earlier is much harder; I can tell you what to look for on Linux for example, but it's kind of painful to track them down.

--
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com  www.2ndQuadrant.com




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group