From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 15 22:05:16 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 7C99516A469 for ; Sat, 15 Dec 2007 22:05:16 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outL.internet-mail-service.net (outL.internet-mail-service.net [216.240.47.235]) by mx1.freebsd.org (Postfix) with ESMTP id 6C53613C46A for ; Sat, 15 Dec 2007 22:05:16 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Sat, 15 Dec 2007 14:05:16 -0800 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id B12ED126CC4; Sat, 15 Dec 2007 14:05:14 -0800 (PST) Message-ID: <47644F93.5080201@elischer.org> Date: Sat, 15 Dec 2007 14:05:07 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: James Mansion References: <4763A398.2040109@mansionfamily.plus.com> <47644BFE.3060003@elischer.org> In-Reply-To: <47644BFE.3060003@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sat, 15 Dec 2007 22:05:16 -0000 Julian Elischer wrote: > James Mansion wrote: >> Any idea what the author of libev is on about here (from >> http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod): >> >> unsigned int ev_recommended_backends () >> >> Return the set of all backends compiled into this binary of libev >> and also recommended for this platform. This set is often smaller >> than the one returned by |ev_supported_backends|, as for example >> kqueue is broken on most BSDs and will not be autodetected unless >> you explicitly request it (assuming you know what you are doing). >> >> and >> >> |EVBACKEND_KQUEUE| (value 8, most BSD clones) >> >> Kqueue deserves special mention, as at the time of this writing, it >> was broken on all BSDs except NetBSD (usually it doesn't work with >> anything but sockets and pipes, except on Darwin, where of course >> its completely useless). For this reason its not being >> "autodetected" unless you explicitly specify it explicitly in the >> flags (i.e. using |EVBACKEND_KQUEUE|). >> >> It looks like a decent library, but these comments seem unfortunate. >> Does anyone know what the author is concerned about? > > he's just plain misinformed > kqueue works well with aio to files and raw devices for example. (Only using AIO really makes sense in these cases anyhow, so I've never really tried using kqueue with non-aio calls.) >> >> James >> >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to >> "freebsd-hackers-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"