Re: Same query doing slow then quick

From: Nikolay Ulyanitsky <lystor(at)gmail(dot)com>
To: FFW_Rude <FFW_Rude(at)hotmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Same query doing slow then quick
Date: 2012-09-26 15:52:27
Message-ID: CA+Medix+6HXJT3F67c=Wn2XPtHeo+2qzB6f1YSS_XMNDA6xf6A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 26 September 2012 18:38, FFW_Rude <FFW_Rude(at)hotmail(dot)com> wrote:
> root(at)testBI:/etc/postgresql/9.1/main# hdparm -tT /dev/sda
> Timing cached reads: 892 MB in 2.01 seconds = 444.42 MB/sec
> Timing buffered disk reads: 190 MB in 3.02 seconds = 62.90 MB/sec

It's OK for single HDD.

> Is fsync off by default ? I have
> #fsync = on (so it's off right ?).

Disable fsync for pgbench temporarily.

> pgbench is not found on my server. Do i have to apt-get install pgbench ?

Install the postgresql-contrib deb:
http://pkgs.org/download/postgresql-contrib

# sudo apt-get update
# sudo apt-get install postgresql-contrib

--
With best regards,
Nikolay

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Undertaker Rude 2012-09-26 16:05:11 Re: Same query doing slow then quick
Previous Message Bruce Momjian 2012-09-26 15:52:12 Re: [PERFORM] Planner selects different execution plans depending on limit