From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 20 22:02:21 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 1C0DA16A400 for ; Wed, 20 Jun 2007 22:02:21 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id CB1A413C457 for ; Wed, 20 Jun 2007 22:02:20 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so84175anc for ; Wed, 20 Jun 2007 15:02:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ENbh4e/hbp32enpJHpF9txAOouBA8aW1HCJZaw6np7nHQ7csJohlAUfmfsB6Hx7iBhsF9m5d57qVv+Eg/Gb6VxDvmO4ux7JT6vR7aX16NF2QmwRyD1VNQS0nUfW2j4tard/qZYRA9FqcNINNzmp68pa0snFy8VdrTPYwYCX/2q0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s/RNykoiyBZBWcM2FlAJ9oX7suV9qC8SQZL1Whybz3feHBa4iZ1fh+tIFniNJI6tIxRpUmJz5Ymem4RhDUBEUThV3mETz840z93Gs9wH8g11CqKZ3TG0OcpTv0XSm0snt6tbnTqDWLuhZjXl8CSysMUFUizOpP9P7tMGe8Z1M6w= Received: by 10.100.195.10 with SMTP id s10mr685629anf.1182375314568; Wed, 20 Jun 2007 14:35:14 -0700 (PDT) Received: by 10.100.154.8 with HTTP; Wed, 20 Jun 2007 14:35:14 -0700 (PDT) Message-ID: Date: Wed, 20 Jun 2007 14:35:14 -0700 From: "Maksim Yevmenkin" To: "Julian Elischer" In-Reply-To: <467999C9.9000402@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <467787EF.9060009@elischer.org> <46797825.10900@polstra.com> <46799032.5060009@polstra.com> <467999C9.9000402@elischer.org> Cc: freebsd-hackers@freebsd.org, John Polstra , Nicolas Cormier 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 22:02:21 -0000 On 6/20/07, Julian Elischer wrote: > 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. he can take a look at bluetooth rfcomm sockets that are implemented on top of l2cap socket and feed into netgraph :) not exactly an in-kernel tcp server, but might give some ideas. thanks, max