From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Robert Haas <robertmhaas@gmail.com>
To: David Kerr <dmk@mr-paradox.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Very high effective_cache_size == worse performance?
Date: Tue, 20 Apr 2010 13:17:02 -0500
Message-ID: <4BCDA94E0200002500030BF8@gw.wicourts.gov> (raw)
In-Reply-To: <20100420180351.GA51940@mr-paradox.net>
References: <20100420173936.GA50886@mr-paradox.net>
<h2w603c8f071004201044tbc8ce8fenb846b7643a2b9376@mail.gmail.com>
<20100420180351.GA51940@mr-paradox.net>
David Kerr <dmk@mr-paradox.net> wrote:
> Incidentally the code is written to work like this :
>
> while (read X lines in file){
> Process those lines.
> write lines to DB.
> }
Unless you're selecting from multiple database tables in one query,
effective_cache_size shouldn't make any difference. There's
probably some other reason for the difference.
A couple wild shots in the dark:
Any chance the source files were cached the second time, but not the
first?
Do you have a large checkpoint_segments setting, and did the second
run without a new initdb?
-Kevin
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: Kevin.Grittner@wicourts.gov, robertmhaas@gmail.com, dmk@mr-paradox.net
Subject: Re: Very high effective_cache_size == worse performance?
In-Reply-To: <4BCDA94E0200002500030BF8@gw.wicourts.gov>
References: <20100420173936.GA50886@mr-paradox.net> <h2w603c8f071004201044tbc8ce8fenb846b7643a2b9376@mail.gmail.com> <20100420180351.GA51940@mr-paradox.net> <4BCDA94E0200002500030BF8@gw.wicourts.gov>
* 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