Date: Sat, 7 Feb 2004 23:35:48 -0800 (PST) From: Mike Silbersack <silby@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_syscalls.c src/sys/sys socket.h Message-ID: <200402080735.i187Zmit063367@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402080735.i187Zmit063367>