Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 8333B9FB9CD for ; Thu, 19 Apr 2007 16:31:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 49579-03-7 for ; Thu, 19 Apr 2007 16:30:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id D3F8F9FBA19 for ; Thu, 19 Apr 2007 16:30:38 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from postoffice.cryptologic.com (postoffice.cryptologic.com [206.186.114.128]) by svr4.postgresql.org (Postfix) with ESMTP id 074805AF89A for ; Thu, 19 Apr 2007 19:30:35 +0000 (GMT) Received: from straightflush.cryptologic.com ([10.3.2.146]) by postoffice.cryptologic.com (8.13.6/8.13.4) with ESMTP id l3JJUSEq046354 for ; Thu, 19 Apr 2007 15:30:28 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C782B9.1A543AB3" Subject: postgres: 100% CPU utilization Date: Thu, 19 Apr 2007 15:29:52 -0400 Message-ID: <2C20E65455FC964690D89F8C4A2E9B1D03A669CD@STRAIGHTFLUSH.cryptologic.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: postgres: 100% CPU utilization Thread-Index: AceCuRn7xoLu4IAoT5yUSMD++M9hVg== From: "Sergey Tsukinovsky" To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL=0.003, BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200704/379 X-Sequence-Number: 24256 This is a multi-part message in MIME format. ------_=_NextPart_001_01C782B9.1A543AB3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm currently dealing with performance issues of postgres and looking for some advice. =20 Platform Postgres: 7.0.2 OS: FreeBSD4.4 DB: size - about 50M, most frequently updated tables are of an average size of 1000-2000 rows and there are not many of them, about 15 in total =20 Description My current system load keeps the postgres CPU utilization at the level of 90-100%.=20 'vacuumdb' results in a sharp drop of the CPU usage down to 25-30%, but not for a long period of time - it gets back to 100% within 30 minutes. Disk IO ratio during the test keeps on about 0.5 MB/s =20 Questions: 1. When reading the 'vacuum analyze' output how to identify which one of the actions had the most effect on reducing the CPU usage - garbage cleaning or statistics recalculation for the analyzer? 2. What would be the recommended set of parameters to tune up in order to improve the performance over the time, instead of considering an option to vacuum every 30 minutes or so? 3. Is it safe to run 'vacuum' as frequently as every 15-30 minutes? 4. Suggestions? =20 I know that 7.0.2 is an old version and therefore ran the same test on 7.3.18 - the performance behavior was similar.=20 =20 Thank you in advance, Sergey _________________________________________________ This message, including any attachments, is confidential and/or privileged and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy. =20 ------_=_NextPart_001_01C782B9.1A543AB3 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I’m currently dealing with performance issues = of postgres and looking for some advice.

 

Platform=

Postgres: 7.0.2

OS: FreeBSD4.4

DB: size - about 50M, most frequently updated tables = are of an average size of 1000-2000 rows and there are not many of them, about = 15 in total

 

Description<= /u>

My current system load keeps the postgres CPU = utilization at the level of 90-100%.

‘vacuumdb’ results in a sharp drop of the = CPU usage down to 25-30%, but not for a long period of time – it gets = back to 100% within 30 minutes.

Disk IO ratio during the test keeps on about 0.5 = MB/s

 

Questions:

1. When reading the ‘vacuum analyze’ = output how to identify which one of the actions had the most effect on reducing the = CPU usage – garbage cleaning or statistics recalculation for the = analyzer?

2. What would be the recommended set of parameters to = tune up in order to improve the performance over the time, instead of = considering an option to vacuum every 30 minutes or so?

3. Is it safe to run ‘vacuum’ as = frequently as every 15-30 minutes?

4. Suggestions?

 

I know that 7.0.2 is an old version and therefore ran = the same test on 7.3.18 – the performance behavior was similar. =

 

Thank you in advance,

Sergey

______________________________________________= ___

This message, including any attachments, is confidential and/or privileged = and contains information intended only for the person(s) named above. Any = other distribution, copying or disclosure is strictly prohibited. If you are = not the intended recipient or have received this message in error, please notify = us immediately by reply email and permanently delete the original = transmission from all of your systems and hard drives, including any attachments, = without making a copy.

 

------_=_NextPart_001_01C782B9.1A543AB3--