From owner-freebsd-arch@FreeBSD.ORG Mon Jul 23 07:51:56 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3D921065675; Mon, 23 Jul 2012 07:51:56 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id A2C768FC18; Mon, 23 Jul 2012 07:51:56 +0000 (UTC) Received: from JRE-MBP-2.local (c-67-180-24-15.hsd1.ca.comcast.net [67.180.24.15]) (authenticated bits=0) by vps1.elischer.org (8.14.5/8.14.5) with ESMTP id q6N7pm32030804 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 23 Jul 2012 00:51:49 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <500D028F.2040904@freebsd.org> Date: Mon, 23 Jul 2012 00:51:43 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Robert Watson References: <3CE55F29-A5B2-44A7-8854-1ED38BAE6F16@FreeBSD.org> <50075072.5050906@gmail.com> <500752CD.9030107@feral.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Matthew Jacob , freebsd-arch@freebsd.org Subject: Re: aio in GENERIC? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2012 07:51:56 -0000 On 7/22/12 9:53 AM, Robert Watson wrote: > > On Wed, 18 Jul 2012, Matthew Jacob wrote: > >> What practically does aio offer that is not achieved via pthreads >> other than slightly simpler code? > > Although the VFS side of the AIO code blocks kernel threads during > in-progress I/O, the socket side is able to do fully asynchronous > I/O down the stack without committing a kernel thread to it. As > such, it probably is actually significantly more scalable, allowing > larger numbers of simultaneous outstanding I/Os in the network > layer, and more efficiently than simply using threads. this is the reason that the cisco web security appliance uses aio and kevent but is generally not threaded... > > Robert > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >