From owner-freebsd-hackers Tue Aug 18 17:37:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA10775 for freebsd-hackers-outgoing; Tue, 18 Aug 1998 17:37:36 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from couatl.uchicago.edu (couatl.uchicago.edu [128.135.21.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA10760 for ; Tue, 18 Aug 1998 17:37:30 -0700 (PDT) (envelope-from sfarrell@couatl.uchicago.edu) Received: (from sfarrell@localhost) by couatl.uchicago.edu (8.9.1/8.9.0) id TAA00687; Tue, 18 Aug 1998 19:36:36 -0500 (CDT) To: "Matthew N. Dodd" Cc: hackers@FreeBSD.ORG Subject: Re: sendfile() API? References: From: stephen farrell Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: 18 Aug 1998 19:36:36 -0500 In-Reply-To: "Matthew N. Dodd"'s message of "Mon, 17 Aug 1998 13:21:46 -0400 (EDT)" Message-ID: <877m05byej.fsf@couatl.uchicago.edu> Lines: 30 X-Mailer: Gnus v5.6.22/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Matthew N. Dodd" writes: > Apache 1.3 uses MMAP to send static content. > > I assume this is what sendfile() would do. > > The fact that Apache already has this feature, without the > abstracting API would indicate that such a thing would be worth it > no? The argument (in linux kernel) was something like that mmap has a lot of overhead, and that a specific sendfile could be better optimized... http://linux.ucs.indiana.edu/hypermail/linux/kernel/9806.3/0171.html worth looking at: http://linux.ucs.indiana.edu/hypermail/linux/kernel/9806.3/0305.html The discussion is roughly hereish -- need to search around for thread implementations and sendfile: http://linux.ucs.indiana.edu/hypermail/linux/kernel/9806.3/index.html (not that i've been reading linux-kernel or anything ;-) -- Steve Farrell To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message