Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id BE3AA7591C8 for ; Thu, 24 May 2012 19:25:53 -0300 (ADT) Received: from smtp.01.com ([199.36.142.181]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SXgTg-0004gz-K0 for pgsql-bugs@postgresql.org; Thu, 24 May 2012 22:25:53 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 19CA43F65CE; Thu, 24 May 2012 17:25:40 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CLRIn8umgE7P; Thu, 24 May 2012 17:25:40 -0500 (CDT) Received: from smtp.01.com (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id E552A3F65F5; Thu, 24 May 2012 17:25:39 -0500 (CDT) Received: from [10.10.10.20] (8.202-62-69.ftth.swbr.surewest.net [69.62.202.8]) by smtp-out-1.01.com (Postfix) with ESMTPSA id AE3B13F65CE; Thu, 24 May 2012 17:25:39 -0500 (CDT) Subject: Re: 9.1.3 backends getting stuck in 'startup' Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/alternative; boundary="Apple-Mail=_957709DB-C1C8-4A40-8C52-E530F5041CDC" From: Jeff Frost In-Reply-To: <2196.1337897586@sss.pgh.pa.us> Date: Thu, 24 May 2012 15:25:37 -0700 Cc: pgsql-bugs@postgresql.org Message-Id: <7A939C5B-ABA4-4CF4-9473-F48989399813@pgexperts.com> References: <4F9AC452.3050102@pgexperts.com> <28484.1337887297@sss.pgh.pa.us> <4FBE9CDB.3030009@pgexperts.com> <2196.1337897586@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.1257) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/192 X-Sequence-Number: 33163 --Apple-Mail=_957709DB-C1C8-4A40-8C52-E530F5041CDC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On May 24, 2012, at 3:13 PM, Tom Lane wrote: > Jeff Frost writes: >> On 05/24/12 12:21, Tom Lane wrote: >=20 > Huh. A bit bigger, but not by that much. It doesn't seem like this > would be enough to make seqscan performance fall off a cliff, as it > apparently did. Unless maybe the slightly-bloated catalogs were just = a > bit too large to fit in RAM, and so the repeated seqscans went from > finding all their data in kernel disk buffers to finding none of it? Seems unlikely. >=20 >> So, interestingly, they're both quite large, but the old broken = system is >> quite a bit larger. Any other data points be helpful? >=20 > I think it would be interesting to get the pg_relation_size for = pg_class > plus pg_attribute plus pg_index (which I think is everything that gets > seqscannedd in this way) on both systems, and see how those numbers > match up to total RAM on the box. Server has 128GB of RAM. Currently running system: select pg_size_pretty(pg_relation_size('pg_class')); pg_size_pretty=20 ---------------- 181 MB (1 row) select pg_size_pretty(pg_relation_size('pg_index')); pg_size_pretty=20 ---------------- 23 MB (1 row) Old broken system: select pg_size_pretty(pg_relation_size('pg_class')); pg_size_pretty=20 ---------------- 221 MB (1 row) select pg_size_pretty(pg_relation_size('pg_index')); pg_size_pretty=20 ---------------- 44 MB (1 row) BTW, when I connected to it this time, I had a really long time before = my psql was able to send a query, so it seems to be still broken at = least. --Apple-Mail=_957709DB-C1C8-4A40-8C52-E530F5041CDC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Jeff = Frost <jeff@pgexperts.com>= writes:
On 05/24/12 12:21, Tom Lane = wrote:

Huh.  A bit bigger, but not by that = much.  It doesn't seem like this
would be enough to make seqscan = performance fall off a cliff, as it
apparently did.  Unless = maybe the slightly-bloated catalogs were just a
bit too large to fit = in RAM, and so the repeated seqscans went from
finding all their data = in kernel disk buffers to finding none of = it?

Seems = unlikely.


So, interestingly, they're both quite large, but the old = broken system is
quite a bit = larger.  Any other data points be helpful?

I = think it would be interesting to get the pg_relation_size for = pg_class
plus pg_attribute plus pg_index (which I think is everything = that gets
seqscannedd in this way) on both systems, and see how those = numbers
match up to total RAM on the = box.

Server has 128GB of = RAM.

Currently running = system:

select = pg_size_pretty(pg_relation_size('pg_class'));
 pg_size_pret= ty 
----------------
 181 MB
(1 = row)

select = pg_size_pretty(pg_relation_size('pg_index'));
 pg_size_pret= ty 
----------------
 23 MB
(1 = row)


Old broken = system:

select = pg_size_pretty(pg_relation_size('pg_class'));
 pg_size_pret= ty 
----------------
 221 MB
(1 = row)

select = pg_size_pretty(pg_relation_size('pg_index'));
 pg_size_pret= ty 
----------------
 44 MB
(1 = row)

BTW, when I connected to it this = time, I had a really long time before my psql was able to send a query, = so it seems to be still broken at = least.

= --Apple-Mail=_957709DB-C1C8-4A40-8C52-E530F5041CDC--