accept

Alexander Moskalenko alexander.moskalenko at gmail.com
Fri May 30 19:29:13 MSD 2008


Совсем недавно было обсуждение, мнения расходятся, погуглите.

2008/5/30 Goncharov Yuri <neo at kntele.com>:
> Спасибо, прочитал. Разобрался, но на практике не понял, применять мне его
> или нет и как это будет заметно/незаметно и для каких случаев. И что
> применять, http или data?
> А у кого как? у меня FreeBSD 6.x
>
> Alexander Moskalenko wrote:
>
> http://sysoev.ru/freebsd/accept-filters.html
> вот тут все описано
>
> 30 мая 2008 г. 17:30 пользователь Goncharov Yuri <neo at kntele.com> написал:
>
> Привет всем.
>
> accept_filter=фильтр ― задаёт название accept-фильтра. Работает только на
> FreeBSD, можно использовать два фильтра ― dataready и httpready. По сигналу
> -HUP accept-фильтр можно менять только в самых последних версиях FreeBSD:
> 6.0, 5.4-STABLE и 4.11-STABLE.
>
> Это тоже самое что в апаче http_accf ? Тогда подскажите где про это очень
> доступно прочитать, так как насколько я понял с доков апача специфика именно
> в экономии child processов, но в nginx нету childов
>
> "
> Versions of FreeBSD from August 2000 onwards include a feature called
> "accept filters" which delay the return from accept() until a condition has
> been met, e.g. an HTTP request has arrived. This postpones the requirement
> for a child process to handle the new connection which therefore increases
> the number of connections that a given number of child processes can handle.
> It also allows a child process to accomplish more immediately after accept()
> returns (because the request is already available to be read) so there is
> less context switching. "
>
> Где я что не понял или путаю?
>
> И раз уже задал такой глупый вопрос, подскажи пожалуйста в каком случае мне
> использовать их а в каком нет. И что лучше dataready или httpready?
> А чем отличаются?
>
> Пасиб большое.
>
> --
> Best regards
>
> Phone +380 44 496 88 17
> Mobile +380 67 509 05 79  CTO KNtelecom Ukraine Ltd.
> ----------------------------
> NEO83-RIPE
>
>
>
>
>
>
> --
> Best regards
>
> Phone +380 44 496 88 17
> Mobile +380 67 509 05 79
> CTO KNtelecom Ukraine Ltd.
> ----------------------------
> NEO83-RIPE





More information about the nginx-ru mailing list