Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2000 10:43:09 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        ym g <ymg@graffiti.net>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Zen regarding accept filters
Message-ID:  <20000729104309.D21967@fw.wintelcom.net>
In-Reply-To: <20000729130953.10802.qmail@graffiti.net>; from ymg@graffiti.net on Sat, Jul 29, 2000 at 09:09:53PM %2B0800
References:  <20000729130953.10802.qmail@graffiti.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* ym g <ymg@graffiti.net> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000729104309.D21967>