From owner-cvs-all Thu Nov 5 06:28:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA17847 for cvs-all-outgoing; Thu, 5 Nov 1998 06:28:26 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA17841; Thu, 5 Nov 1998 06:28:25 -0800 (PST) (envelope-from dg@FreeBSD.org) From: David Greenman Received: (from dg@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id GAA15513; Thu, 5 Nov 1998 06:28:27 -0800 (PST) Date: Thu, 5 Nov 1998 06:28:27 -0800 (PST) Message-Id: <199811051428.GAA15513@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/conf options param.c src/sys/kern init_sysent.c syscalls.c syscalls.master uipc_syscalls.c src/sys/sys mbuf.h socket.h socketvar.h syscall-hide.h syscall.h syscall.mk sysproto.h src/sys/vm vm_object.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk dg 1998/11/05 06:28:27 PST Modified files: sys/conf options param.c sys/kern init_sysent.c syscalls.c syscalls.master uipc_syscalls.c sys/sys mbuf.h socket.h socketvar.h syscall-hide.h syscall.h syscall.mk sysproto.h sys/vm vm_object.c Log: 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. Revision Changes Path 1.107 +2 -1 src/sys/conf/options 1.31 +7 -1 src/sys/conf/param.c 1.61 +1 -0 src/sys/kern/init_sysent.c 1.54 +1 -0 src/sys/kern/syscalls.c 1.54 +3 -1 src/sys/kern/syscalls.master 1.42 +403 -1 src/sys/kern/uipc_syscalls.c 1.30 +2 -1 src/sys/sys/mbuf.h 1.27 +12 -1 src/sys/sys/socket.h 1.30 +8 -1 src/sys/sys/socketvar.h 1.48 +1 -0 src/sys/sys/syscall-hide.h 1.52 +2 -1 src/sys/sys/syscall.h 1.7 +2 -1 src/sys/sys/syscall.mk 1.42 +10 -0 src/sys/sys/sysproto.h 1.135 +1 -3 src/sys/vm/vm_object.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message