pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: G.Bakalarski@icm.edu.pl <G.Bakalarski@icm.edu.pl>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8318: memory leak during CREATE TEMPORARY TABLE
Date: Wed, 31 Jul 2013 08:54:27 -0700 (PDT)
Message-ID: <1375286067.18051.YahooMailNeo@web162902.mail.bf1.yahoo.com> (raw)
In-Reply-To: <1e0b28053877c4a86f39784ed69d8514.squirrel@webmail.icm.edu.pl>
References: <E1V1Fcz-0006Q2-Co@wrigleys.postgresql.org>
	<1375220280.46993.YahooMailNeo@web162905.mail.bf1.yahoo.com>
	<1e0b28053877c4a86f39784ed69d8514.squirrel@webmail.icm.edu.pl>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

"G.Bakalarski@icm.edu.pl" <G.Bakalarski@icm.edu.pl> wrote:
> Kevin Grittner <kgrittn@ymail.com> wrote:
>> "g.bakalarski@icm.edu.pl" <g.bakalarski@icm.edu.pl> wrote:
>>
>>> When doing these kind of statements
>>
>>> execute <unnamed>: CREATE TEMPORARY TABLE [...]
>>
>>> After few days [...] my huge server (192GB of RAM), gets stucked
>>> due to no memory available (usually %commit is around 103-105%),
>>> linux OOM killer goes into action - it usually kills one of
>>> postgres processes - postmaster restart all databases) and after
>>> all linux  has again some 100GB of not commited memory
>>
>> What do you have as settings for temp_buffers and max_connections?
>>
> temp_buffers = 16GB
> max_connections = 250

temp_buffers is per-connection, and any space allocated for this
purpose by a connection is not released until the connection is
closed.  So you have configured your server to acquire and hold up
to 3.9 TB of RAM for this purpose.

http://www.postgresql.org/docs/current/static/runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-M...

> (with real number of connections about 120 and not going above)

OK, so you can only get to 1.9 TB of RAM used for temp_buffers with
120 connections, but that's still way more than the 192 GB you
actually have.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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



view thread (4+ messages)

Message-ID: <1375286067.18051.YahooMailNeo@web162902.mail.bf1.yahoo.com>
Permalink:  ../1375286067.18051.YahooMailNeo@web162902.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1375286067.18051.YahooMailNeo@web162902.mail.bf1.yahoo.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: kgrittn@ymail.com, G.Bakalarski@icm.edu.pl
  Subject: Re: BUG #8318: memory leak during CREATE TEMPORARY TABLE
  In-Reply-To: <1375286067.18051.YahooMailNeo@web162902.mail.bf1.yahoo.com>
  References: <E1V1Fcz-0006Q2-Co@wrigleys.postgresql.org> <1375220280.46993.YahooMailNeo@web162905.mail.bf1.yahoo.com> <1e0b28053877c4a86f39784ed69d8514.squirrel@webmail.icm.edu.pl> <1375286067.18051.YahooMailNeo@web162902.mail.bf1.yahoo.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