X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C05E2D1E7C7 for ; Wed, 5 May 2004 10:03:40 -0300 (ADT) 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 26637-01 for ; Wed, 5 May 2004 10:03:18 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id CC142D1E7C4 for ; Wed, 5 May 2004 10:03:14 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i45D3Ftm024917; Wed, 5 May 2004 09:03:16 -0400 (EDT) To: "Cyrille Bonnet" Cc: pgsql-performance@postgresql.org Subject: Re: very high CPU usage in "top", but not in "mpstat" In-reply-to: <47E18B2A3472@3months.com> References: <47E18B2A3472@3months.com> Comments: In-reply-to "Cyrille Bonnet" message dated "Wed, 05 May 2004 11:34:41 +1200" Date: Wed, 05 May 2004 09:03:15 -0400 Message-ID: <24916.1083762195@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/32 X-Sequence-Number: 6863 "Cyrille Bonnet" writes: > Should I be worried that Postgres is eating up 99% of my CPU??? Or is this > *expected* behaviour? It's not expected, unless you are running some very long-running query. The conflict between what top says and what mpstat says is strange; I wonder if you might have a buggy version of one of them? You should probably check some other tools (try "vmstat 1" for instance) to see if you can get a consensus on whether the CPU is maxed out or not ... regards, tom lane