From owner-freebsd-hackers Sun Feb 17 15:20:24 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 1D3D737B404; Sun, 17 Feb 2002 15:20:17 -0800 (PST) Received: from pool0152.cvx21-bradley.dialup.earthlink.net ([209.179.192.152] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16cab7-0007R7-00; Sun, 17 Feb 2002 15:19:58 -0800 Message-ID: <3C703A92.2EBD3E67@mindspring.com> Date: Sun, 17 Feb 2002 15:19:46 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Roy Sigurd Karlsbakk Cc: Dag-Erling Smorgrav , Thomas Hurst , hiten@uk.FreeBSD.org, hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: in-kernel HTTP Server for FreeBSD? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Roy Sigurd Karlsbakk wrote: > > > > sendfile() isn't zero-copy, it's just two-less-copies. > > > zero-copy means "zero copy-operations within memory" > > > > To an MCSE, maybe. > > strange ... > > It's interesting that Dr. Scient Paal Halvorsen that recently finished his > thesis about the subject 'Memory buffering / caching in multimedia > streaming systems'. This has the following description > > The INSTANCE operating system enhancements show great improvements for > multimedia streaming. In this thesis, we want to look at > buffering/caching/prefetching mechanisms suitable for multimedia streams > combined with the INSTANCE zero-copy data path. > > See http://www.ifi.uio.no/~paalh/index2.html for more info > > hm > > Am I an idiot here or have someone else misunderstood? First, the URL reference you give is bad; it's one of those terrible web pages that has a stupid frame that prevents you getting the real URL. The publications URL is: http://www.ifi.uio.no/~paalh/publications/ Second, there's no publication there with this title; the closest one is where he's the junior name on the paper: "Evaluation of a Zero-Copy Protocol Implementation". Third, this paper is bases on the idea that data is being replicated in main memory in lots of places; that doesn't really happen on FreeBSD, which uses a unified VM and buffer cache. Fourth, I think the reason he made the joke about MSCE's was that there are ways of doing true zero copy, using DMA directly between devices. There are a couple of people that have done this by, for example, rewriting the Tigon II firmware to permit page aligned buffers, and DMA'ing directly between disk and ethernet controllers. Technically, that's not zero copy, either, since there's a copy on the disk, and one in some controller memory. "Zero copy" usually means "zero unnecessary copies"; but what someone thinks of as "necessary" is really based on their bias towards an existing implementation. 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message