X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 964C3D1DAB1 for ; Sat, 17 Jan 2004 21:35:00 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 90274-06 for ; Sat, 17 Jan 2004 17:34:30 -0400 (AST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by svr1.postgresql.org (Postfix) with ESMTP id 845C4D1E756 for ; Sat, 17 Jan 2004 17:34:28 -0400 (AST) Received: from [10.0.1.3] (h000393e3ce55.ne.client2.attbi.com[24.91.235.158]) by comcast.net (rwcrmhc13) with SMTP id <2004011721342901500kgirse>; Sat, 17 Jan 2004 21:34:29 +0000 User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Sat, 17 Jan 2004 16:33:56 -0500 Subject: Re: Idle postmaster taking up a lot of CPU From: John Siracusa To: Postgres Performance Message-ID: In-Reply-To: <16686.1074360753@sss.pgh.pa.us> Mime-version: 1.0 Reply-To: siracusa@mindspring.com Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/188 X-Sequence-Number: 5362 On 1/17/04 12:32 PM, Tom Lane wrote: > John Siracusa writes: >> Process 20753 was hovering around 60-70% CPU usage for a long time. > >> I tried to see what that postmaster was doing, but it appeared to be "idle" > >> % ps -wwwx -p 20753 >> PID TTY STAT TIME COMMAND >> 20753 pts/3 R 26:59 postgres: postgres pdm 192.168.0.35 idle > > That seems odd to me too. What PG version is this exactly? This is Postgres 7.4.0 on: % uname -a Linux foo.com 2.4.22 #5 SMP Fri Oct 10 16:32:42 EDT 2003 i686 i686 i386 GNU/Linux > If it happens again, please see if you can get a stack trace from the > not-so-idle process: > > $ gdb /path/to/postgres-executable > gdb> attach PID-of-process > gdb> bt > gdb> quit Will do. -John