From owner-freebsd-current@FreeBSD.ORG Fri May 2 06:21:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA11A37B401 for ; Fri, 2 May 2003 06:21:01 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 273A343F3F for ; Fri, 2 May 2003 06:21:00 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h42DKg913261; Fri, 2 May 2003 10:20:43 -0300 Message-ID: <3EB270AA.9000904@tcoip.com.br> Date: Fri, 02 May 2003 10:20:42 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4a) Gecko/20030416 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Niall Dalton References: <1051793484.2200.112.camel@localhost> <3EB12490.4000500@newsguy.com> <1051797636.2209.142.camel@localhost> In-Reply-To: <1051797636.2209.142.camel@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: In-kernel http server X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 13:21:02 -0000 Niall Dalton wrote: > On Thu, 2003-05-01 at 14:43, Daniel C. Sobral wrote: > >>Supposedly, most of the gain of a kernel-based httpd can be achieved >>through accept filters (specifically, of course, the accept_http filter). > > > You mean simply compiling the accept_http filter into the > kernel and running a standard web server is it? Has this > been benchmarked? A google search didn't throw up much for > me on this. AFAIK, the application has to select the accept filter: An accept filter is requested via the setsockopt(2) system call, passing in an optname of SO_ACCEPTFILTER. (that's from accept_filter(9)) It's based on something Yahoo uses in-house, if my memory doesn't fail me. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net I exist, therefore I am paid.