Mike Silbersack b49d824e8b 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
2004-02-08 07:35:48 +00:00
..
2003-12-26 06:11:43 +00:00
2003-09-08 08:30:43 +00:00
2003-05-31 16:54:37 +00:00
2003-12-31 22:27:51 +00:00
2003-05-01 14:40:16 +00:00
2003-06-22 08:41:43 +00:00
2002-11-05 17:51:56 +00:00
2003-12-24 00:51:30 +00:00
2003-05-19 20:29:07 +00:00
2003-02-13 17:47:44 +00:00
2003-08-19 16:41:12 +00:00
2003-02-21 16:24:49 +00:00
2002-07-10 04:47:25 +00:00
2003-02-12 07:00:59 +00:00
2003-05-22 17:07:57 +00:00
2004-02-03 05:11:31 +00:00
2003-09-10 19:08:16 +00:00