From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 20 21:19:07 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1837416A400 for ; Wed, 20 Jun 2007 21:19:07 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outU.internet-mail-service.net (outU.internet-mail-service.net [216.240.47.244]) by mx1.freebsd.org (Postfix) with ESMTP id 0267B13C448 for ; Wed, 20 Jun 2007 21:19:06 +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.32) with ESMTP; Wed, 20 Jun 2007 14:19:06 -0700 Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 2C083125B26; Wed, 20 Jun 2007 14:19:06 -0700 (PDT) Message-ID: <467999C9.9000402@elischer.org> Date: Wed, 20 Jun 2007 14:19:05 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: Nicolas Cormier References: <467787EF.9060009@elischer.org> <46797825.10900@polstra.com> <46799032.5060009@polstra.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, John Polstra Subject: Re: in-kernel tcp server 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: Wed, 20 Jun 2007 21:19:07 -0000 Nicolas Cormier wrote: > On 6/20/07, John Polstra wrote: >> Using ng_ksocket is almost the same as using the so* functions, since >> the ksocket methods call the so* functions. But by using netgraph, you >> get a nice management interface, too. >> >> For my application, I found that going through the socket layer (the so* >> functions and/or ng_ksocket) hurt performance too much. That's why I >> ended up bypassing them. > > Thanks for this precision. I would actually like to address the performance issues. is there any chance the oldest version (4.x based) might be released, or at least it would be nice to get the code snippet that attaches to eh ng_ksocket and reads and writes the stream.. I could make a TCP ECHO node that way and use it for tracking down the bottlenecks I'm not too interested in the actual webserver itself.