pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Nasby <jnasby@enova.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Merlin Moncure <mmoncure@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Problems with hash join over nested loop
Date: Wed, 30 Oct 2013 17:32:06 -0500
Message-ID: <527188E6.2030209@enova.com> (raw)
In-Reply-To: <527187ED.1000907@enova.com>
References: <526EDDF7.3090102@enova.com>
	<13775.1383002035@sss.pgh.pa.us>
	<CAHyXU0ydScKt=-5G4yBpHWAh9eO6eV60P6uVCnui+YS9EMY5vw@mail.gmail.com>
	<526FE086.4020903@enova.com>
	<3692.1383065114@sss.pgh.pa.us>
	<526FE7D0.9000605@enova.com>
	<5575.1383070823@sss.pgh.pa.us>
	<527015BC.3020405@enova.com>
	<8314.1383078998@sss.pgh.pa.us>
	<527187ED.1000907@enova.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

On 10/30/13 5:27 PM, Jim Nasby wrote:
> On 10/29/13 3:36 PM, Tom Lane wrote:
>> Jim Nasby <jnasby@enova.com> writes:
>>> Is there a way to measure memory consumption during planning, short of something like strace? (I've got no dev tools available on our servers.)
>>
>> Nothing built-in, I'm pretty sure.  You could probably add some
>> instrumentation, but that would require running modified executables ...
>
> FYI, client_min_messages = debug5 and log_planner_stats = on is useful, though I wish it included ru_maxrss (see http://www.gnu.org/software/libc/manual/html_node/Resource-Usage.html).

Oh, and in my 28 table case ru_minflt was 428 4k memory pages (1.7MB). Not a great measurement, but better than nothing. I didn't detect anything noticeable on vmstat either, so I don't think the consumption is huge (an email in the older thread mentioned 1GB... I'm not seeing that).
-- 
Jim Nasby, Lead Data Architect   (512) 569-9461


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



view thread (13+ messages)  latest in thread

Message-ID: <527188E6.2030209@enova.com>
Permalink:  ../527188E6.2030209@enova.com/
Also on:    postgresql.org/message-id/527188E6.2030209@enova.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jnasby@enova.com, tgl@sss.pgh.pa.us, mmoncure@gmail.com
  Subject: Re: Problems with hash join over nested loop
  In-Reply-To: <527188E6.2030209@enova.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