From owner-freebsd-hackers Mon Jan 3 12:28:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from news.IAEhv.nl (news.IAE.nl [194.151.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 7973F15130 for ; Mon, 3 Jan 2000 12:28:28 -0800 (PST) (envelope-from Arjan.deVet@adv.iae.nl) Received: (from uucp@localhost) by news.IAEhv.nl (8.9.1/8.9.1) with IAEhv.nl id VAA21399 for hackers@freebsd.org; Mon, 3 Jan 2000 21:28:27 +0100 (MET) Received: by adv.iae.nl (Postfix, from userid 100) id 8BC2822C5; Mon, 3 Jan 2000 21:27:58 +0100 (CET) To: hackers@freebsd.org Subject: Re: AIO was Re: Kernel threads X-Newsgroups: list.freebsd.hackers In-Reply-To: References: <007401bf561c$6ff51930$1e80000a@avantgo.com> Organization: Internet Access Eindhoven, the Netherlands Cc: Message-Id: <20000103202758.8BC2822C5@adv.iae.nl> Date: Mon, 3 Jan 2000 21:27:58 +0100 (CET) From: Arjan.deVet@adv.iae.nl (Arjan de Vet) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article you write: >> The best fix I've thought of thus far (other than async I/O, which I >> understand isn't ready for prime time) would be to have a number of kernel > >Speaking of AIO, which I would really like to use if possible, how >actively maintained is it? The copyright on vfs_aio.c is 1997, suggesting >to me that John Dyson has moved onto other things. Yep, that's right. Quite recently Christopher Sedore has done some work on vfs_aio.c, to make it work better with sockets and he also added a very useful aio_waitcomplete system call which returns the first aiocb (AIO control block) from the 'completed' queue. I would be nice if these patches could be added to FreeBSD-current. About AIO not ready for prime time: I did some experiments recently by throwing up to 256 aio requests on one fd (a raw disk device) into the system and it worked without any problems. The only time I got a panic was when (I think) I had a negative aiocb->offset (I still need to reproduce this). See http://www.iae.nl/users/devet/freebsd/aio/ for my aiotest.c program. I'm thinking about using AIO for a faster Squid file system by using raw disk devices instead of UFS which has too much overhead for Squid. Arjan -- Arjan de Vet, Eindhoven, The Netherlands URL: http://www.iae.nl/users/devet/ for PGP key: finger devet@iae.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message