diff options
author | dg <dg@FreeBSD.org> | 1998-11-05 14:28:26 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1998-11-05 14:28:26 +0000 |
commit | b178f74f12a0446656640ae873e0bc71057f5de3 (patch) | |
tree | d66b2ab9c599863a9679de94cdc9514d6a3dbd1d /sys/vm | |
parent | 60b560b337fe2a6159e49741372219aa0353da03 (diff) | |
download | FreeBSD-src-b178f74f12a0446656640ae873e0bc71057f5de3.zip FreeBSD-src-b178f74f12a0446656640ae873e0bc71057f5de3.tar.gz |
Implemented zero-copy TCP/IP extensions via sendfile(2) - send a
file to a stream socket. sendfile(2) is similar to implementations in
HP-UX, Linux, and other systems, but the API is more extensive and
addresses many of the complaints that the Apache Group and others have
had with those other implementations. Thanks to Marc Slemko of the
Apache Group for helping me work out the best API for this.
Anyway, this has the "net" result of speeding up sends of files over
TCP/IP sockets by about 10X (that is to say, uses 1/10th of the CPU
cycles) when compared to a traditional read/write loop.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_object.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 1bb7a40..1ea7978 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_object.c,v 1.133 1998/10/25 17:44:58 phk Exp $ + * $Id: vm_object.c,v 1.134 1998/10/27 13:22:51 dg Exp $ */ /* @@ -461,8 +461,6 @@ vm_object_terminate(object) vm_page_free(p); cnt.v_pfree++; } else { - if (!(p->flags & PG_FICTITIOUS)) - printf("vm_object_terminate: not freeing wired page; wire_count=%d\n", p->wire_count); vm_page_busy(p); vm_page_remove(p); } |