Re: firebird X postgresql 8.1.2 windows, performance comparison

From: Chris Travers <chris(at)metatrontech(dot)com>
To: Andre Felipe Machado <andremachado(at)techforce(dot)com(dot)br>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: firebird X postgresql 8.1.2 windows, performance comparison
Date: 2006-03-11 06:14:15
Message-ID: 44126AB7.6060709@metatrontech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Andre Felipe Machado wrote:

>Postgresql uses around 30% cpu and hard disk heavily (not so as vacuum)
>at all executions.
>Firebird uses around 40% cpu and hard disk heavily at the first
>execution.
>The second execution uses around 60% cpu and **NO** disk activity.
>
>The previously cited query running at 26 miliseconds down from 10
>minutes, can achieve this performance at the second run, with **NO**
>disk activity.
>At the first run it uses 1,7 seconds, down from 10 minutes.
>
>The hard disk is clearly a bottleneck.
>1,7 seconds against 26 miliseconds.
>
>
>So,
>How "convince" postgresql to use windows disk cache or to read all
>indexes to ram?
>It seems that effective_cache_size does not tell postgresql to actually
>use windows disk cache.
>What parameter must be configured?
>Do you have some suggestions?
>
>
Assuming these are selects and that you have already vacuumed, etc.

Look at memory useage. It seems likely that you have a difference in
caching behavior. PostgreSQL has its own cache, and failing that will
use the OS disk cache. So there may be a number of possible issues
involved including whether the data is staying in the OS cache, how much
memory is being used for caching, etc. It is also likely that the
Windows version of PostgreSQL may have some issues in these areas that
the UNIX/Linux versions may not simply because it is more immature.

You might even try a vacuum full to retrieve space. This may mean
smaller tables, more likely to remain in disk cache, etc. But that
would not provide any indication of scalability.

Best Wishes,
Chris Travers
Metatron Technology Consulting

Attachment Content-Type Size
chris.vcf text/x-vcard 171 bytes

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Joost Kraaijeveld 2006-03-11 07:49:38 Re: x206-x225
Previous Message Andre Felipe Machado 2006-03-11 01:39:57 firebird X postgresql 8.1.2 windows, performance comparison