diff options
author | silby <silby@FreeBSD.org> | 2004-02-08 07:35:48 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2004-02-08 07:35:48 +0000 |
commit | 9428de17dec59f3de2ef6169eb732876b548dce7 (patch) | |
tree | adace10635c2ee5bfd954e6874ea83f360d8645e /lib/libc | |
parent | 00fa84a3dba78cb35bbb4f9bed72fcf08995e5dc (diff) | |
download | FreeBSD-src-9428de17dec59f3de2ef6169eb732876b548dce7.zip FreeBSD-src-9428de17dec59f3de2ef6169eb732876b548dce7.tar.gz |
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
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions