|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Igor Sysoev 2:5020/400 09 Feb 2004 17:30:40 To : Slawa Olhovchenkov Subject : Re: sendfile again -------------------------------------------------------------------------------- Slawa Olhovchenkov <Slawa.Olhovchenkov@f500.n5030.z2.fidonet.org> wrote: > silby 2004/02/07 23:35:48 PST > > FreeBSD src repository > > Modified files: > sys/kern uipc_syscalls.c > sys/sys socket.h > Log: > Add the SF_NODISKIO flag to sendfile. This flag causes sendfile to be > mindful of blocking on disk I/O and instead return EBUSY when such > blocking would occur. > > Results from the DeBox project indicate that blocking on disk I/O > can slow the performance of a kqueue/poll based webserver. Using > a flag such as SF_NODISKIO and throwing connections that would block > to helper processes/threads helped increase performance. > > Currently, only the Flash webserver uses this flag, although it could > probably be applied to thttpd with relative ease. > > Idea by: Yaoping Ruan & Vivek Pai Хорошая вещь, хотя, конечно, использовать её не так просто. -- Игорь Сысоев http://sysoev.ru --- ifmail v.2.15dev5.3 * Origin: Demos online service (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/6577c19f7316.html, оценка из 5, голосов 10
|