From owner-freebsd-stable Sat Jul 29 10:43:19 2000 Delivered-To: freebsd-stable@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 2CBE537B58C for ; Sat, 29 Jul 2000 10:43:14 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e6THh9Z10761; Sat, 29 Jul 2000 10:43:09 -0700 (PDT) Date: Sat, 29 Jul 2000 10:43:09 -0700 From: Alfred Perlstein To: ym g Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Zen regarding accept filters Message-ID: <20000729104309.D21967@fw.wintelcom.net> References: <20000729130953.10802.qmail@graffiti.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20000729130953.10802.qmail@graffiti.net>; from ymg@graffiti.net on Sat, Jul 29, 2000 at 09:09:53PM +0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * ym g [000729 06:12] wrote: > Greetings, I just read a cvs commit message about accept filters > into 4.1-STABLE [submitted by Alfred Perlstein]. My C/kernel skills > are very low compared to others so I couldn't grok much by reading > the source. I assume they provide some framework for faster socket > performance. Is this correct, how does one use them They provide a way to filter incomming connections so that the application doesn't see them accept()'able until the filter is satisfied. The idea is that once apache does a setsocketopt() using SO_ACCEPTFILTER and accf_http the kernel will hold connections until the full http request is there. This reduces the active amount of apache processes needed from the hundreds, probably down to the tens. > Are there plans to incorporate this into some webserver like > Apache/thttpd possibly in conjunction with kqueue/kevent I don't know, I don't work on those servers. I do have plans to write a FreeBSD specific server that ought to be insanely fast, but that'll be a while. :) -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message