From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 16 22:30:54 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2852B16A419 for ; Sun, 16 Dec 2007 22:30:54 +0000 (UTC) (envelope-from janm@transactionware.com) Received: from mail.transactionware.com (mail.transactionware.com [203.14.245.7]) by mx1.freebsd.org (Postfix) with SMTP id 6471013C457 for ; Sun, 16 Dec 2007 22:30:53 +0000 (UTC) (envelope-from janm@transactionware.com) Received: (qmail 81174 invoked from network); 16 Dec 2007 22:04:33 -0000 Received: from midgard.transactionware.com (192.168.1.55) by dm.transactionware.com with SMTP; 16 Dec 2007 22:04:33 -0000 Received: (qmail 95377 invoked by uid 907); 16 Dec 2007 22:04:10 -0000 Received: from midgard.transactionware.com (HELO STUDYPC) (192.168.1.55) by midgard.transactionware.com (qpsmtpd/0.32) with ESMTP; Mon, 17 Dec 2007 09:04:10 +1100 From: "Jan Mikkelsen" To: "'Julian Elischer'" , "'James Mansion'" Date: Mon, 17 Dec 2007 09:04:13 +1100 Message-ID: <000c01c8402f$9819d710$0301a8c0@STUDYPC> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 In-Reply-To: <47644F93.5080201@elischer.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Importance: Normal Thread-Index: Acg/ZuWFvKyhl5bvRAenwXTVoJ70CAAx+RCw X-Mailman-Approved-At: Mon, 17 Dec 2007 00:02:50 +0000 Cc: freebsd-hackers@freebsd.org Subject: RE: kqueue and libev X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Dec 2007 22:30:54 -0000 Julian Elischer wrote: > Julian Elischer wrote: > > James Mansion wrote: > >> [ On the libev being unhappy with kqueue ] > >> ... > >> It looks like a decent library, but these comments seem=20 > unfortunate. > >> Does anyone know what the author is concerned about? > >=20 > > he's just plain misinformed > >=20 >=20 > kqueue works well with aio to files and raw devices for=20 > example. (Only using AIO really makes sense in these cases=20 > anyhow, so I've never really tried using kqueue with non-aio calls.) It also depends what version of FreeBSD. For example, in FreeBSD 4, = kqueue was non-functional with USB serial devices. I ran into that exact = problem with kqueue when porting my event library. Problems like that can make = life difficult for a library author; having a special case for one kind of = handle is a pain, to the point of leading to comments like this. Of course, in this case the best thing to do is to ask the author, and = to see if the situation has changed. Regards, Jan Mikkelsen