Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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


pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group