Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E672F64FC42 for ; Mon, 8 Dec 2008 12:11:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66656-10 for ; Mon, 8 Dec 2008 12:11:32 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.190]) by mail.postgresql.org (Postfix) with ESMTP id 8758D64FC41 for ; Mon, 8 Dec 2008 12:11:31 -0400 (AST) Received: by gv-out-0910.google.com with SMTP id i36so207818gve.7 for ; Mon, 08 Dec 2008 08:11:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=hxoraf/GkhxAg9RT15IpjMwNJ+qiZ9udzVMN/weV1vM=; b=AOMHAqEaKOTpwzbKUBS4Lthcs7YH07bzv+LNOMa5IGhzKzOMWVwBiOb1iNvdphpmYy oPsNZ9eRPT0KqBI3tmoios6rgDvmk/eSxoh8r/2yEPJdzcX1ayKdui4e5bHxk+bex36a 8xqlPshn/Wv/gB/zt/ilf583NxTXPNDxJTgno= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=felrFj9DfgjtilNcM59MC+fmwvCi8kFc0AYyX6PJLSbWsqPwAHaCDiHyfeZ6tBXnSt kYPBdb9zwMNKqbatW013lDQSPJNKDWSYuEiti56znF1Z2tgCMr6ovu47Vaw9QZzeI4Oo mgTDdZELCMMIet2nkh6Hm7m2zRHPCOFw4kntM= Received: by 10.86.52.1 with SMTP id z1mr2707895fgz.60.1228752688556; Mon, 08 Dec 2008 08:11:28 -0800 (PST) Received: by 10.86.83.10 with HTTP; Mon, 8 Dec 2008 08:11:28 -0800 (PST) Message-ID: <3a0028490812080811r1c8a4756i1a1a514911741def@mail.gmail.com> Date: Mon, 8 Dec 2008 14:11:28 -0200 From: "Rafael Domiciano" To: "Scott Marlowe" Subject: Re: Vacuum Problems Cc: "Matthew T. O'Connor" , "Rafael Martinez" , "pgsql-admin@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_154604_26191852.1228752688537" References: <3a0028490811260543x74d02719w775a457999cfc74@mail.gmail.com> <492D5C87.5090505@usit.uio.no> <3a0028490811260700w6e8d9d86o24effbe0bea2bddb@mail.gmail.com> <3a0028490811260921l5d6aac06v54dca32aae672b97@mail.gmail.com> <492DA95D.3010303@zeut.net> <3a0028490812080504x22618c6fxd7df8febaadb1632@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200812/49 X-Sequence-Number: 30882 ------=_Part_154604_26191852.1228752688537 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline How I do to see my I/O subsystem? vmstat? If so, follow:[root@postgres ~]# vmstat 1 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 0 13 127728 58020 19072 1332076 3 2 3 1 1 7 11 3 52 33 0 1 13 127728 56488 19156 1332456 0 0 644 168 2534 1528 5 3 48 44 0 2 10 127728 55644 19216 1333136 0 0 700 640 1989 1723 5 5 46 44 0 0 12 127728 53252 19268 1334640 0 0 864 796 2351 1833 5 4 47 43 0 0 13 127728 53016 19296 1334208 0 0 2040 452 2277 2126 6 5 40 49 0 0 11 127728 52944 19224 1331508 0 0 1208 484 2306 1421 5 3 21 71 0 1 15 127728 56628 19016 1331012 0 0 1620 944 2410 2499 7 5 24 64 0 1 12 127728 55360 19032 1332500 0 0 1040 592 2423 2074 6 5 7 82 0 2 9 127728 54592 19068 1333344 4 0 1392 604 2695 2431 8 8 22 63 0 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 4 8 127728 54632 19084 1334676 0 0 892 1164 2530 2147 5 4 53 38 0 0 10 127728 53256 19064 1333148 0 0 920 208 3119 2765 11 5 15 68 0 0 10 127728 54296 18856 1331404 0 0 756 572 2419 1412 7 3 40 50 0 1 9 127728 57544 18872 1332012 0 0 816 800 2577 2390 8 7 27 59 0 The Hard Drive is a SATA-II 150 Gb, dedicate to postgres service. 2008/12/8 Scott Marlowe > On Mon, Dec 8, 2008 at 6:04 AM, Rafael Domiciano > wrote: > > Hello guys, > > I tried to modify my vacuum routine, and started to only run vacuum > verbose > > analyze diary followed by a reindex weekly. > > But I still having problems in my database. The uptime database is hard > to > > stay below 10. > > I'm thinking that my hardware is not more good as it was sometime ago. > > The machine is a: 2 x Intel Xeon Dual-Core 2.3 GHz, 2 Gb RAM. The load on > > machine is about at 10000 transactions / m > > Maybe I need more RAM memory? > > Likely you need more hard drives and / or a quality caching RAID > controller. What's your I/O subsystem look like now? > ------=_Part_154604_26191852.1228752688537 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline How I do to see my I/O subsystem? vmstat? If so, follow:
[root@postgres ~]# vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa st
 0 13 127728  58020  19072 1332076    3    2     3     1    1     7 11  3 52 33  0
 1 13 127728  56488  19156 1332456    0    0   644   168 2534  1528  5  3 48 44  0
 2 10 127728  55644  19216 1333136    0    0   700   640 1989  1723  5  5 46 44  0
 0 12 127728  53252  19268 1334640    0    0   864   796 2351  1833  5  4 47 43  0
 0 13 127728  53016  19296 1334208    0    0  2040   452 2277  2126  6  5 40 49  0
 0 11 127728  52944  19224 1331508    0    0  1208   484 2306  1421  5  3 21 71  0
 1 15 127728  56628  19016 1331012    0    0  1620   944 2410  2499  7  5 24 64  0
 1 12 127728  55360  19032 1332500    0    0  1040   592 2423  2074  6  5  7 82  0
 2  9 127728  54592  19068 1333344    4    0  1392   604 2695  2431  8  8 22 63  0
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa st
 4  8 127728  54632  19084 1334676    0    0   892  1164 2530  2147  5  4 53 38  0
 0 10 127728  53256  19064 1333148    0    0   920   208 3119  2765 11  5 15 68  0
 0 10 127728  54296  18856 1331404    0    0   756   572 2419  1412  7  3 40 50  0
 1  9 127728  57544  18872 1332012    0    0   816   800 2577  2390  8  7 27 59  0

The Hard Drive is a SATA-II 150 Gb, dedicate to postgres service.

2008/12/8 Scott Marlowe <scott.marlowe@gmail.com>
On Mon, Dec 8, 2008 at 6:04 AM, Rafael Domiciano
<rafael.domiciano@gmail.com> wrote:
> Hello guys,
> I tried to modify my vacuum routine, and started to only run vacuum verbose
> analyze diary followed by a reindex weekly.
> But I still having problems in my database. The uptime database is hard to
> stay below 10.
> I'm thinking that my hardware is not more good as it was sometime ago.
> The machine is a: 2 x Intel Xeon Dual-Core 2.3 GHz, 2 Gb RAM. The load on
> machine is about at 10000 transactions / m
> Maybe I need more RAM memory?

Likely you need more hard drives and / or a quality caching RAID
controller.  What's your I/O subsystem look like now?

------=_Part_154604_26191852.1228752688537--