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 Sun, 16 Jan 2005, Igor Sysoev wrote:
>
>> ????? ??????????? ????????? ?????? ???? ??????? ???????, ?????
>> ????????? ????? ???????????? ???????? ? ?????.
>
> ????? ?????????? ??? ????: ??? ??????? ????????? ????????????? ?
> ???? ???????, ? ???? ?? ???????, ??????? ????? ???? ????????? ???
> ????????? ? ????? (?????? ??? ? ????, ??? ?????? ? ????? ??????
> ?? ?????), ???? ?????????? ???????? ???????? ???? ??????????
> ????????. ?????? ??????? ? ????? ??????? ??????? ?????????????
> ???????????????.
?? ? ?????-??, ??????????? ?????? ???????? ???????? ?????? ??? - ? ???
???? ??????? ?? ??? ??? ???.
> ???????? ????? ?? ???? ????????? ?????? ?????? httpd: ?????
> ???????? ???????? ???? ??? ???????? ???????, ??????? ???????
> ????????? ??????????? ??????? ????? ?????? ? ?????? (???????
> mincore, ? ?????????????? ? ??? ?????, ?? ?? linix ? freebsd
> ????), ? ???? ??? - ???????? ?????? ?? ?????? ????????? ????????.
? ???????????? ??? ????, ??????????? ?? ????? Flash. ? ???? ????
???? ???-??? ???????? ?? ??, ??? ?????? ? ????? ????? ??????? EAGAIN,
?? ?????????? ??? - ? ?????????? ???????? ???????????? ?????????
??? ?????? ? ????? ? ??????? ???? ???????, ?? ? ??? ???? ? ????-??????.
÷??????, ????? ????? ?????? ?? ???????, ??? ??? ???? - ????????? ?????
???????????? ???????? ? ?????, ?? ????, ????? ????????? ???????/?????,
??????? ?????? ???? N ???????? ? ??????.
> ???? ??? ????????? ??????, ?? ??? ??? ????? ??????: ?????
> ??????????? ?????? ???????? ??????, ?????????? tcp-?????.
> ÷ nginx ????? ????? ????? ??? (????? setsockopt(SO_SNDBUF)),
> ??????? ????? ????????? ????????? ???????? ?? ?????????,
> ? linux ?????????? ?????? ? ????????? 16k ?? 128k:
> echo "4096 131072 131072" > /proc/sys/net/ipv4/tcp_wmem
> ???? ??????? ?? - ?????????? ;)
nginx ?? ????? ?????????? setsockopt(SO_SNDBUF).
?? ??? ??? ????? ???????? - ???????????? sendfile() ? nginx ?? ?????
???????? ?? ??, ??? ???? ?????? ????. ????????, ?? FreeBSD sendfile()
???????? ?? ????? ???????? ? ??????? ???????. ???? ???????? ? ??????
???, ?? ?? ?? ??????. FreeBSD ??? ???? ?????? ????? ???? (?????? 16K).
??? ???????? sendfile() ? ??????? - ?? ????, ?? ???????.
????? ?????????? ?? sendfile() ? ????????? ??????? ????? ??? ??????
????? (128K):
sendfile off;
output_buffers 1 128k;
????? ??????
http://sysoev.ru
|