X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id DFD339DCC84 for ; Tue, 29 Nov 2005 12:47:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05564-05 for ; Tue, 29 Nov 2005 12:47:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svana.org (svana.org [203.20.62.76]) by postgresql.org (Postfix) with ESMTP id 6FB9F9DCC91 for ; Tue, 29 Nov 2005 12:47:11 -0400 (AST) Received: from kleptog by svana.org with local (Exim 3.35 #1 (Debian)) id 1Eh8dA-0001Np-00; Wed, 30 Nov 2005 03:47:00 +1100 Date: Tue, 29 Nov 2005 17:47:00 +0100 From: Martijn van Oosterhout To: David Boreham Cc: pgsql-hackers@postgresql.org Subject: Re: ice-broker scan thread Message-ID: <20051129164651.GF31333@svana.org> Reply-To: Martijn van Oosterhout References: <20051129110214.GA31333@svana.org> <438C76DA.4060801@boreham.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H4SyuGOnfnj3aJqJ" Content-Disposition: inline In-Reply-To: <438C76DA.4060801@boreham.org> User-Agent: Mutt/1.3.28i X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[AWL=0.000] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/1480 X-Sequence-Number: 76762 --H4SyuGOnfnj3aJqJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 29, 2005 at 08:42:18AM -0700, David Boreham wrote: >=20 > >Unfortunatly I can't really test it at it's full potential because it > >uses glibc's default POSIX AIO which is *lame*. No more than one > >outstanding request per fd which for PostgreSQL is crappy. There was > >=20 > I had the impression from the kernel aio mailing list a while back > that post- linux, the POSIX aio calls were > forwarded to the kernel aio interface. Or are you saying that the > POSIX API itself imposes that limitation ? 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. POSIX AIO doesn't prescribe either way. Have a nice day, --=20 Martijn van Oosterhout http://svana.org/kleptog/ > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a > tool for doing 5% of the work and then sitting around waiting for someone > else to do the other 95% so you can sue them. --H4SyuGOnfnj3aJqJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQFDjIX7IB7bNG8LQkwRAqupAJ4qGQJJfdDw8fwOsgMCBD9qhvgZqACbBMeV 5tWAU59E+Vi52Q20j+sBtlU= =RnDd -----END PGP SIGNATURE----- --H4SyuGOnfnj3aJqJ--