Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C822B1337B79 for ; Wed, 20 Oct 2010 17:39:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 98283-03 for ; Wed, 20 Oct 2010 20:39:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ulysses.lattica.com (lattica.com [204.14.19.114]) by mail.postgresql.org (Postfix) with ESMTP id 5F1EF1337B50 for ; Wed, 20 Oct 2010 17:39:35 -0300 (ADT) Received: from localhost (ulysses.lattica.com [127.0.0.1]) by ulysses.lattica.com (Postfix) with ESMTP id 3AB13738781; Wed, 20 Oct 2010 16:39:35 -0400 (EDT) X-Virus-Scanned: amavisd-new at lattica.com Received: from ulysses.lattica.com ([127.0.0.1]) by localhost (ulysses.lattica.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1jbFMFAyuoIC; Wed, 20 Oct 2010 16:39:34 -0400 (EDT) Received: from [192.168.3.11] (CPE00222d5a2ad0-CM00222d5a2acd.cpe.net.cable.rogers.com [99.230.157.51]) by ulysses.lattica.com (Postfix) with ESMTP id 0971673877B; Wed, 20 Oct 2010 16:39:34 -0400 (EDT) Subject: Re: What is postmaster doing? From: Dimi Paun To: Tom Lane Cc: Jeff Davis , pgsql-performance@postgresql.org In-Reply-To: <3615.1287606374@sss.pgh.pa.us> References: <1287600255.18151.58.camel@dimi.lattica.com> <1287604781.28384.50.camel@jdavis-ux.asterdata.local> <3615.1287606374@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Organization: Lattica, Inc. Date: Wed, 20 Oct 2010 16:39:33 -0400 Message-ID: <1287607173.18151.75.camel@dimi.lattica.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/323 X-Sequence-Number: 40741 On Wed, 2010-10-20 at 16:26 -0400, Tom Lane wrote: > > It seems strange that the postmaster is eating 99% cpu. Is there a > > chance that it's flooded with connection attempts? Maybe, I'll try to figure that one out next time it happens. > It's probably a backend process, not the postmaster --- I suspect the > OP is using a version of ps that only tells you the original process > name by default. "ps auxww" or "ps -ef" (depending on platform) > is likely to be more informative. Looking into pg_stat_activity, > even more so. I'm running CentOS 5.5, using procps-3.2.7-16.el5. I cannot check more at this point as postmaster seems to have finished whatever it was doing, but I'll try to investigate better next time. -- Dimi Paun Lattica, Inc.