pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Boreham <david_list@boreham.org>
To: pgsql-hackers@postgresql.org
Subject: Re: ice-broker scan thread
Date: Tue, 29 Nov 2005 10:28:57 -0700
Message-ID: <438C8FD9.3090302@boreham.org> (raw)
In-Reply-To: <20051129164651.GF31333@svana.org>
References: <Pine.LNX.4.58.0511282217470.13586@josh.db>
	<Pine.LNX.4.58.0511291429330.18112@linuxworld.com.au>
	<20051129110214.GA31333@svana.org>
	<438C76DA.4060801@boreham.org>
	<20051129164651.GF31333@svana.org>


>By default when you use aio you get the version in libc (-lrt IIRC)
>which has the issue I mentioned, probably because it's probably
>optimised for the lots-of-network-connections type program where
>multiple outstanding requests on a single fd are not meaningful. You
>can however link in some other library which gives you kernel support.
>However, I don't have a new enough kernel to have the kernel support so
>I havn't tested that.
>  
>
Actually, after reading up on the current state of things, I'm not sure you
can even get POSIX aio on top of kernel aio in Linux. There are also a
few limitations in the 2.6 aio implementation that might prove troublesome:
for example it only works with O_DIRECT.

libaio gives userland access to the kernel aio api (which is different 
from POSIX aio).









view thread (39+ messages)  latest in thread

Message-ID: <438C8FD9.3090302@boreham.org>
Permalink:  ../438C8FD9.3090302@boreham.org/
Also on:    postgresql.org/message-id/438C8FD9.3090302@boreham.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: david_list@boreham.org
  Subject: Re: ice-broker scan thread
  In-Reply-To: <438C8FD9.3090302@boreham.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox