cvs commit: src/sys/kern uipc_syscalls.c src/sys/sys socket.h
Mike Silbersack
silby at FreeBSD.org
Sat Feb 7 23:35:49 PST 2004
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
Revision Changes Path
1.173 +22 -19 src/sys/kern/uipc_syscalls.c
1.76 +5 -0 src/sys/sys/socket.h
More information about the cvs-src
mailing list