Re: Asynchronous I/O Support

Поиск
Список
Период
Сортировка
Искать

Re: Asynchronous I/O Support

От:
Neil Conway <neilc@samurai.com>
Дата:

Asynchronous I/O Support

От:
"Raja Agrawal" <raja.agrawal@gmail.com>
Дата:

Re: Asynchronous I/O Support

От:
"Raja Agrawal" <raja.agrawal@gmail.com>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:

Re: Asynchronous I/O Support

От:
Martijn van Oosterhout <kleptog@svana.org>
Дата:

Re: Asynchronous I/O Support

От:
Martijn van Oosterhout <kleptog@svana.org>
Дата:

Re: Asynchronous I/O Support

От:
Martijn van Oosterhout <kleptog@svana.org>
Дата:

Re: Asynchronous I/O Support

От:
Bruno Wolff III <bruno@wolff.to>
Дата:

Re: Asynchronous I/O Support

От:
Alvaro Herrera <alvherre@commandprompt.com>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
mark@mark.mielke.cc
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
mark@mark.mielke.cc
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
Martijn van Oosterhout <kleptog@svana.org>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
Martijn van Oosterhout <kleptog@svana.org>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
Bruce Momjian <bruce@momjian.us>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
Martijn van Oosterhout <kleptog@svana.org>
Дата:

Re: Asynchronous I/O Support

От:
Mark Kirkwood <markir@paradise.net.nz>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
Ron Mayer <rm_pg@cheapcomplexdevices.com>
Дата:

Re: Asynchronous I/O Support

От:
Florian Weimer <fweimer@bfk.de>
Дата:

Re: Asynchronous I/O Support

От:
"Merlin Moncure" <mmoncure@gmail.com>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
"Merlin Moncure" <mmoncure@gmail.com>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
"Merlin Moncure" <mmoncure@gmail.com>
Дата:

Re: Asynchronous I/O Support

От:
"Luke Lonergan" <llonergan@greenplum.com>
Дата:

Re: Asynchronous I/O Support

От:
NikhilS <nikkhils@gmail.com>
Дата:
Hi,

"bgwriter doing aysncronous I/O for the dirty buffers that it is supposed to sync"
Another decent use-case?

Regards,
Nikhils
EnterpriseDB   http://www.enterprisedb.com

On 10/15/06, Luke Lonergan <llonergan@greenplum.com> wrote:
Martijn,

On 10/15/06 10:56 AM, "Martijn van Oosterhout" <kleptog@svana.org> wrote:

> Have enough systems actually got to the point of actually supporting
> async I/O that it's worth implementing?

I think there are enough high end applications / systems that need it at
this point.

The killer use-case we've identified is for the scattered I/O associated
with index + heap scans in Postgres.  If we can issue ~5-15 I/Os in advance
when the TIDs are widely separated it has the potential to increase the I/O
speed by the number of disks in the tablespace being scanned.  At this
point, that pattern will only use one disk.

- Luke



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly



--
All the world's a stage, and most of us are desperately unrehearsed.

Re: Asynchronous I/O Support

От:
NikhilS <nikkhils@gmail.com>
Дата:
Hi,

On 10/18/06, Martijn van Oosterhout <kleptog@svana.org> wrote:
On Wed, Oct 18, 2006 at 08:04:29PM +1300, Mark Kirkwood wrote:
> >"bgwriter doing aysncronous I/O for the dirty buffers that it is
> >supposed to sync"
> >Another decent use-case?

Good idea, but async i/o is generally poorly supported.

Async i/o is stably supported on most *nix (apart from Linux 2.6.*) plus Windows.
Guess it would be still worth it, since one fine day 2.6.* will start supporting it properly too.

Regards,
Nikhils

> Is it worth considering using readv(2) instead?

Err, readv allows you to split a single consecutive read into multiple
buffers. Doesn't help at all for reads on widely areas of a file.

Have a ncie day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFNhtyIB7bNG8LQkwRApNAAJ9mOhEaFqU59HRCCoJS9k9HCZZl5gCdHDWt
FurlswevGH4CWErsjcWmwVk=
=sQoa
-----END PGP SIGNATURE-----





--
All the world's a stage, and most of us are desperately unrehearsed.

Re: [SPAM?] Re: Asynchronous I/O Support

От:
NikhilS <nikkhils@gmail.com>
Дата:
Hi,
 
While we are at async i/o. I think direct i/o and concurrent i/o also deserve a look at. The archives suggest that Bruce had some misgivings about dio because of no kernel caching, but almost all databases seem to (carefully) use dio (Solaris, Linux, ?) and cio (AIX) extensively nowadays.
 
Since these can be turned on a per file basis, perf testing them out should be simpler too.
 
Regards,
Nikhils
 
On 10/25/06, Martijn van Oosterhout <kleptog@svana.org> wrote:
On Tue, Oct 24, 2006 at 12:53:23PM -0700, Ron Mayer wrote:
> Anyway, for those who want to see what they do in Linux,
>   http://www.gelato.unsw.edu.au/lxr/source/mm/fadvise.c
> Pretty scary that Bruce said it could make older linuxes
> dump core - there isn't a lot of code there.

The bug was probably in the glibc interface to the kernel. Google found
this:

http://sourceware.org/ml/libc-hacker/2004-03/msg00000.html

i.e. posix_fadvise appears to have been broken on all 64-bit
architechtures prior to March 2004 due to a silly linking error.

And then things like this:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=313219

Which suggest that prior to glibc 2.3.5, posix_fadvise crashed on 2.4
kernels. That's a fairly recent version, so the bug would still be
fairly widespead.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFPnYrIB7bNG8LQkwRAuAqAJ4uqx8y9LxUa9RcEDm7CPwZ2lkS2wCfYxjB
2KzJ7iDYU21lumcZT6cHeLI=
=MzUY
-----END PGP SIGNATURE-----





--
All the world's a stage, and most of us are desperately unrehearsed.

Re: Asynchronous I/O Support

От:
"Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
"Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
"Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
"Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Дата:

Re: [SPAM?] Re: Asynchronous I/O Support

От:
"Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>
Дата:
FAQ