pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: luben karavelov <karavelov@mail.bg>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6763: Severe memory leak with arrays and hstore
Date: Fri, 27 Jul 2012 13:59:25 +0800
Message-ID: <50122E3D.4050208@ringerc.id.au> (raw)
In-Reply-To: <5011FD7E.305@ringerc.id.au>
References: <E1SuCw0-0007s2-5D@wrigleys.postgresql.org>
	<5010FD0F.4020400@ringerc.id.au>
	<10398EEF-03DE-405E-B276-06F73ABF9E3A@mail.bg>
	<5011FD7E.305@ringerc.id.au>

On 07/27/2012 10:31 AM, Craig Ringer wrote:

> Ouch. Sure looks like a leak to me, yeah.
... but it turns out I'm not thinking very straight. I forgot to check 
the size of your `shared_buffers' or `work_mem' and forgot to get you to 
report `free -m' output after each run to measure _real_ memory use.

During testing I did got a backend crash when running an INSERT - which 
I didn't expect given that I have only 20MB of work_mem and 256MB of 
shared_buffers. I was surprised by that as I would not have expected 
that query to require a huge gob of RAM. I didn't dig much further as 
I'm on a swapless system with overcommit enabled ( 'cos the Java VM 
does't work with overcommit off ) which isn't exactly a recommended Pg 
configuration.

--
Craig Ringer



view thread (15+ messages)  latest in thread

Message-ID: <50122E3D.4050208@ringerc.id.au>
Permalink:  ../50122E3D.4050208@ringerc.id.au/
Also on:    postgresql.org/message-id/50122E3D.4050208@ringerc.id.au

 · 

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: ringerc@ringerc.id.au, karavelov@mail.bg
  Subject: Re: BUG #6763: Severe memory leak with arrays and hstore
  In-Reply-To: <50122E3D.4050208@ringerc.id.au>
  References: <E1SuCw0-0007s2-5D@wrigleys.postgresql.org> <5010FD0F.4020400@ringerc.id.au> <10398EEF-03DE-405E-B276-06F73ABF9E3A@mail.bg> <5011FD7E.305@ringerc.id.au> <50122E3D.4050208@ringerc.id.au>

* 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