From: Jaime Casanova <jcasanov@systemguards.com.ec>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: decibel <decibel@decibel.org>
Cc: psql performance list <pgsql-performance@postgresql.org>
Subject: Re: [PERFORMANCE] work_mem vs temp files issue
Date: Wed, 13 Jan 2010 01:31:43 -0500
Message-ID: <3073cc9b1001122231m1a15d187lae2a8096a813361b@mail.gmail.com> (raw)
In-Reply-To: <18803.1263241120@sss.pgh.pa.us>
References: <3073cc9b0908191745o3dc63d95q6b9308ef5bd199f2@mail.gmail.com>
<B43373EF-4CFC-4643-AB6E-5BC0D4A7EB58@decibel.org>
<25315.1252881420@sss.pgh.pa.us>
<3073cc9b1001111015t3888cbbex7171d61b952218da@mail.gmail.com>
<603c8f071001111107v75276375g4d626dfc0efd8dc4@mail.gmail.com>
<3073cc9b1001111114j7ddacd56p8966f9d61997a8b@mail.gmail.com>
<3073cc9b1001111116x53427c9bm1e448128a3b4f6c6@mail.gmail.com>
<18803.1263241120@sss.pgh.pa.us>
On Mon, Jan 11, 2010 at 3:18 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Hmm. Not clear where the temp files are coming from, but it's *not* the
> sort --- the "internal sort ended" line shows that that sort never went
> to disk. What kind of plan is feeding the sort node?
>
some time ago, you said:
"""
It might be useful to turn on trace_sort to see if the small files
are coming from sorts. If they're from hashes I'm afraid there's
no handy instrumentation ...
"""
and is clearly what was bother me... because most of all temp files
are coming from hash...
why we don't show some of that info in explain? for example: we can
show memory used, no? or if the hash goes to disk... if i remove
#ifdef HJDEBUG seems like we even know how many batchs the hash
used...
the reason i say "most of the temp files" is that when i removed
#ifdef HJDEBUG it says that in total i was using 10 batchs but there
were 14 temp files created (i guess we use 1 file per batch, no?)
"""
nbatch = 1, nbuckets = 1024
nbatch = 1, nbuckets = 1024
nbatch = 8, nbuckets = 2048
"""
--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157
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-performance@postgresql.org
Cc: jcasanov@systemguards.com.ec, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, decibel@decibel.org
Subject: Re: [PERFORMANCE] work_mem vs temp files issue
In-Reply-To: <3073cc9b1001122231m1a15d187lae2a8096a813361b@mail.gmail.com>
References: <3073cc9b0908191745o3dc63d95q6b9308ef5bd199f2@mail.gmail.com> <B43373EF-4CFC-4643-AB6E-5BC0D4A7EB58@decibel.org> <25315.1252881420@sss.pgh.pa.us> <3073cc9b1001111015t3888cbbex7171d61b952218da@mail.gmail.com> <603c8f071001111107v75276375g4d626dfc0efd8dc4@mail.gmail.com> <3073cc9b1001111114j7ddacd56p8966f9d61997a8b@mail.gmail.com> <3073cc9b1001111116x53427c9bm1e448128a3b4f6c6@mail.gmail.com> <18803.1263241120@sss.pgh.pa.us> <3073cc9b1001122231m1a15d187lae2a8096a813361b@mail.gmail.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