Re: [HACKERS] Safe/Fast I/O ...

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: maillist(at)candle(dot)pha(dot)pa(dot)us (Bruce Momjian)
Cc: winter(at)jurai(dot)net, scrappy(at)hub(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Safe/Fast I/O ...
Date: 1998-04-12 14:06:14
Message-ID: 199804121406.KAA22478@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> As David Gould mentioned, we need to do pre-fetching of data pages
> somehow.
>
> When doing a sequential scan on a table, the OS is doing a one-page
> prefetch, which is probably enough. The problem is index scans of the
> table. Those are not sequential in the main heap table (unless it is
> clustered on the index), so a prefetch would help here a lot.
>
> That is where we need async i/o. I am looking in BSDI, and I don't see
> any way to do async i/o. The only way I can think of doing it is via
> threads.

I found it. It is an fcntl option. From man fcntl:

O_ASYNC Enable the SIGIO signal to be sent to the process group when
I/O is possible, e.g., upon availability of data to be read.

Who else supports this?

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-04-12 14:11:02 Re: [HACKERS] subselect and optimizer
Previous Message Bruce Momjian 1998-04-12 14:04:14 Book recommendation, was Re: [HACKERS] Safe/Fast I/O ...