From owner-cvs-all Thu Nov 5 19:35:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA10392 for cvs-all-outgoing; Thu, 5 Nov 1998 19:35:17 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA10385; Thu, 5 Nov 1998 19:35:11 -0800 (PST) (envelope-from marcs@znep.com) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.9.1a/8.9.1) with UUCP id UAA28550; Thu, 5 Nov 1998 20:34:48 -0700 (MST) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with ESMTP id TAA20410; Thu, 5 Nov 1998 19:30:58 -0800 (PST) Date: Thu, 5 Nov 1998 19:30:58 -0800 (PST) From: Marc Slemko To: "Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?=" cc: David Greenman , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: 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 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by hub.freebsd.org id TAB10386 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On 5 Nov 1998, Dag-Erling C. [iso-8859-1] Smørgrav wrote: > David Greenman writes: > > 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. > > Huzzah! > > Are you planning to rewrite FreeBSD's ftpd to use sendfile(2)? If not, > mind if I do? :) When I have access to a system I also plan to implement it in Apache to see what sort of difference it makes. While the ideal implementation won't be until Apache 2.0, it will be interesting to see just what impact this has with the current Apache. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message