pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Frost <jeff@pgexperts.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: 9.1.3 backends getting stuck in 'startup'
Date: Thu, 24 May 2012 15:25:37 -0700
Message-ID: <7A939C5B-ABA4-4CF4-9473-F48989399813@pgexperts.com> (raw)
In-Reply-To: <2196.1337897586@sss.pgh.pa.us>
References: <4F9AC452.3050102@pgexperts.com>
	<28484.1337887297@sss.pgh.pa.us>
	<4FBE9CDB.3030009@pgexperts.com>
	<2196.1337897586@sss.pgh.pa.us>


On May 24, 2012, at 3:13 PM, Tom Lane wrote:

> 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_pretty 
----------------
 181 MB
(1 row)

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


Old broken system:

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

select pg_size_pretty(pg_relation_size('pg_index'));
 pg_size_pretty 
----------------
 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.

view thread (27+ messages)  latest in thread

Message-ID: <7A939C5B-ABA4-4CF4-9473-F48989399813@pgexperts.com>
Permalink:  ../7A939C5B-ABA4-4CF4-9473-F48989399813@pgexperts.com/
Also on:    postgresql.org/message-id/7A939C5B-ABA4-4CF4-9473-F48989399813@pgexperts.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: jeff@pgexperts.com, tgl@sss.pgh.pa.us
  Subject: Re: 9.1.3 backends getting stuck in 'startup'
  In-Reply-To: <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> <7A939C5B-ABA4-4CF4-9473-F48989399813@pgexperts.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox