Re: Seq scans roadmap

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas ADI SD
Тема Re: Seq scans roadmap
Дата
Msg-id E1539E0ED7043848906A8FF995BDA57901FD9726@m0143.s-mxs.net
обсуждение исходный текст
Ответ на Re: Seq scans roadmap  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: Seq scans roadmap  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
> >> What do you mean with using readahead inside the heapscan?
> >> Starting an async read request?
> >
> > Nope - just reading N buffers ahead for seqscans.  Subsequent calls
> > use previously read pages.  The objective is to issue
> contiguous reads
> > to the OS in sizes greater than the PG page size (which is much
> > smaller than what is needed for fast sequential I/O).
>
> Are you filling multiple buffers in the buffer cache with a
> single read-call?

yes, needs vector or ScatterGather IO.
> The OS should be doing readahead for us
> anyway, so I don't see how just issuing multiple ReadBuffers
> one after each other helps.

Last time I looked OS readahead was only comparable to 32k blocked
reads.
256k blocked reads still perform way better. Also when the OS is
confronted
with an IO storm the 256k reads perform way better than OS readahead.

Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Zeugswetter Andreas ADI SD"
Дата:
Сообщение: Re: Seq scans roadmap
Следующее
От: Ale Raza
Дата:
Сообщение: Patch: Allocation of "kind" codes for spatial type.