pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: pgsql-hackers@postgresql.org
Subject: memory leak in e94568ecc10 (pre-reading in external sort)
Date: Thu, 6 Oct 2016 06:50:41 +0200
Message-ID: <7303da46-daf7-9c68-3cc1-9f83235cf37e@2ndquadrant.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Hi,

it seems e94568ecc10 has a pretty bad memory leak. A simple

   pgbench -i -s 300

allocates ~32GB of memory before it fails

   vacuum...
   set primary keys...
   ERROR:  out of memory
   DETAIL:  Failed on request of size 134184960.

The relevant bit from the memory context stats:

TupleSort main: 33278738504 total in 263 blocks; 78848 free (23 chunks);
33278659656 used


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (7+ messages)  latest in thread

Message-ID: <7303da46-daf7-9c68-3cc1-9f83235cf37e@2ndquadrant.com>
Permalink:  ../7303da46-daf7-9c68-3cc1-9f83235cf37e@2ndquadrant.com/
Also on:    postgresql.org/message-id/7303da46-daf7-9c68-3cc1-9f83235cf37e@2ndquadrant.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-hackers@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com
  Subject: Re: memory leak in e94568ecc10 (pre-reading in external sort)
  In-Reply-To: <7303da46-daf7-9c68-3cc1-9f83235cf37e@2ndquadrant.com>
  References: <7303da46-daf7-9c68-3cc1-9f83235cf37e@2ndquadrant.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