From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 20 20:50:44 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 021B516A469 for ; Wed, 20 Jun 2007 20:50:44 +0000 (UTC) (envelope-from n.cormier@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id B387D13C448 for ; Wed, 20 Jun 2007 20:50:43 +0000 (UTC) (envelope-from n.cormier@gmail.com) Received: by py-out-1112.google.com with SMTP id a29so628012pyi for ; Wed, 20 Jun 2007 13:50:43 -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=lRf8kWw5E+7j7F9Qe1W2FF42zCRP9SP2p6Mrkz/KdGiCgXs1JRce4oXnRVhEwOQ3ZlOKhOj4ioKrgVGIo+9A96b89p2holHyfa9lt5rJf7wjipox7QzdtoNOl/gABIsJbLHUVhZUlQAJVBBT9GF7iJJwBlJBnmRhGhdJH5Ta0Q0= 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=LObW1GfMa9c2yHzJYhXIz95jbOfqBWZQiTn7XCg4J+YlHvk7mYHOUaCBJvJZ6gQERCP9VUMj8V1kZ6+6nrvbV+rdV+fJZ/yJotE+N6scoJefsXzsAscSDGFdxSxymnxuLSp4/t0Fl436a4xJXE6U9t+AcBwLZpGralBZ9hF/uk4= Received: by 10.35.83.20 with SMTP id k20mr1802351pyl.1182372643100; Wed, 20 Jun 2007 13:50:43 -0700 (PDT) Received: by 10.35.40.11 with HTTP; Wed, 20 Jun 2007 13:50:43 -0700 (PDT) Message-ID: Date: Wed, 20 Jun 2007 22:50:43 +0200 From: "Nicolas Cormier" To: "John Polstra" In-Reply-To: <46799032.5060009@polstra.com> 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> Cc: freebsd-hackers@freebsd.org, Julian Elischer 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 20:50:44 -0000 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. -- Nicolas Cormier