|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Slawa Olhovchenkov 2:5030/500 02 Feb 2004 14:24:18 To : All Subject : sendfile --------------------------------------------------------------------------------
silby 2004/01/31 23:56:44 PST
FreeBSD src repository
Modified files:
sys/kern kern_subr.c uipc_mbuf.c uipc_syscalls.c
sys/sys uio.h
Log:
Rewrite sendfile's header support so that headers are now sent in the first
packet along with data, instead of in their own packet. When serving files
of size (packetsize - headersize) or smaller, this will result in one less
packet crossing the network. Quick testing with thttpd and http_load has
shown a noticeable performance improvement in this case (350 vs 330 fetches
per second.)
Included in this commit are two support routines, iov_to_uio, and
m_uiotombuf;
these routines are used by sendfile to construct the header mbuf chain that
will be linked to the rest of the data in the socket buffer.
... Если ничто другое не помогает, прочтите наконец инструкцию!
--- GoldED+/BSD 1.1.5
* Origin: (2:5030/500)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/2221401e2572.html, оценка из 5, голосов 10
|