Re: [HACKERS] Safe/Fast I/O ... - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Safe/Fast I/O ...
Date
Msg-id 199804121422.KAA22778@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Safe/Fast I/O ...  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] Safe/Fast I/O ...
List pgsql-hackers
> 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.


     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.

Now I am questioning this.  I am not sure this acually for file i/o, or
only tty i/o.


--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.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)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] subselect and optimizer
Next
From: "Vadim B. Mikheev"
Date:
Subject: Re: [HACKERS] Did we ever...