Re: O_DIRECT use

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: O_DIRECT use
Date: 2002-01-04 21:47:10
Message-ID: 7161.1010180830@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Tom Lane wrote:
>> Why exactly would we wish to minimize OS caching?

> Not sure. Someone on IRC brought it up. If we are sequential scanning a
> large table, caching may be bad because we are pushing out stuff already
> in the cache that may be useful.

Yeah, but people normally try to set things up to avoid doing large
sequential scans, at least in all the contexts where they need high
performance. For index searches you definitely want all the caching
you can get.

For that matter, I would expect that O_DIRECT also defeats readahead,
so I'd fully expect it to be a loser for seqscans too.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-01-04 21:48:50 Re: O_DIRECT use
Previous Message Bruce Momjian 2002-01-04 21:31:40 Re: O_DIRECT use