ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА














     АРХИВ :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[apache-talk] Re: [apache-talk] прошу помощ и в performance tuning



On Mon, 17 Jan 2005, Maxim Zotov wrote:

> On Mon, 17 Jan 2005, Igor Sysoev wrote:
>
>>> ????? ?????????? ??? ????: ??? ??????? ????????? ????????????? ?
>>> ???? ???????, ? ???? ?? ???????, ??????? ????? ???? ????????? ???
>>
>> ?? ? ?????-??, ??????????? ?????? ???????? ???????? ?????? ??? - ? ???
>> ???? ??????? ?? ??? ??? ???.
>
> ??, ? ? ?????? ???????? ?????? ? ?????? ?????? _?????_ ????????
> ?????????? ???????? ???????. ? ? ????? 0W-httpd ????? ????
> ??????????? ????????? ?????????? ?? ??????? ? ????????
> ????????, ?????? ??? ???????? ????????? ????????? ?? ?? ?????
> ???????, ?? ?? ??????, ?? ????????? ????????? ??????????
> ?????????, ? ??? ????? ?? ?????? ????.

??????, ?? FreeBSD 5.3 ? sendfile() ???????? ???? SF_NODISKIO, ??? ?????????
???????? sendfile() ?????????? EBUSY, ???? ???????? ??? ? ??????.
??? ????????? ?????????? ??? mmap()/mincore()/munmap().

>> ????????, ?? FreeBSD sendfile() ???????? ?? ????? ???????? ?
>> ??????? ???????.

? ??????, ?????? sendfile() ???????? ?? ????????, ?? ?????? ????
???????? MAXBSIZE (64?), ?????? ???????? ????????? ?????? ????????.

> ??????, ?? freebsd ????????????? ? ??????? ?????? ????? ???
> ?????????? LowWatermark (? ???????????? ??? ???? ??????, ???
> ?????? ??????, ????? ????? ?? ????????? ??????, ????????:
> 120/128). ????? sendfile ?????? ? ????? ???????? ??????? ??
> ???.

????????? ? ??????? ???????? ?????, ?????? ????????? ????? ??
SO_SNDLOWAT  ?? ???????, ? ?????? ????? MAXBSIZE. ÷ ?? ?? ?????
? sendfile() SO_SNDLOWAT, ?????? 120? ??? ?????? ? 128?, ????????
? ????, ??? ????? ???????? ?? ??????? ??????? 8K, sendfile()
?????????? EAGAIN (src/sys/kern/uipc_syscalls.c):

                 if (sbspace(&so->so_snd) < so->so_snd.sb_lowat) {
                         if (so->so_state & SS_NBIO) {
                                 m_freem(m);
                                 sbunlock(&so->so_snd);
                                 splx(s);
                                 error = EAGAIN;
                                 goto done;
                         }

??? ??? ??? ?????? ??????????? ????? ?????????.

nginx, ????????? kqueue ? ????????? send_lowat, ?? ?????? SO_SNDLOWAT,
? ?????? NOTE_LOWAT, ??????? SO_SNDLOWAT ???????? ????????? (2?),
? ????????? ? ????????? ????? ???????? ? kqueue ?? ????????? NOTE_LOWAT.


????? ??????
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.