Re: Cache hit ratio - Mailing list pgsql-performance

From Josh Berkus
Subject Re: Cache hit ratio
Date
Msg-id 46129D24.7070108@agliodbs.com
Whole thread Raw
In response to Re: Cache hit ratio  (Guillaume Cottenceau <gc@mnc.ch>)
List pgsql-performance
Guillaume,


> which shows the index on primary keys is used, but is always read
> from disk.

or, more likely, from the FS cache.

> But, the clock time used for the request is actually identical
> when using -B 1000 or -B 20000. I suppose the kernel is bringing
> the performance difference thanks to filesystem caching.

Yes.  The only way you'd see a differeence is on a mixed load of
concurrent read & write queries.  Any single-query test is unlikely to
show a difference between using the FS cache and shared_buffers.

--Josh

pgsql-performance by date:

Previous
From: Ben
Date:
Subject: Re: Cache hit ratio
Next
From: Arnau
Date:
Subject: Equivalents in PostgreSQL of MySQL's "ENGINE=MEMORY" "MAX_ROWS=1000"