From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 9B18BBC0A for ; Tue, 2 Jan 2007 06:26:50 +0100 (CET) Received: from mail9.dslextreme.com (mail9.dslextreme.com [66.51.199.94]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id l025QnxS026412 for ; Tue, 2 Jan 2007 06:26:49 +0100 Received: (qmail 10099 invoked from network); 2 Jan 2007 05:26:46 -0000 Received: from unknown (HELO [192.168.1.100]) (erickt@68.183.71.106) by mail9. with (RC4-MD5 encrypted) SMTP; Mon, 01 Jan 2007 21:26:46 -0800 Message-ID: <4599ED15.3080004@dslextreme.com> Date: Mon, 01 Jan 2007 21:26:45 -0800 From: Erick Tryzelaar User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Erik de Castro Lopo Cc: skaller , caml-list@yquem.inria.fr, matthieu.dubuget@laposte.net Subject: Re: [Caml-list] ANNOUNCE : libsndfile-ocaml alpha References: <20061222155407.ebe6c272.mle+ocaml@mega-nerd.com> <45923DC2.9000504@ujf-grenoble.fr> <20061227211046.656615d0.mle+ocaml@mega-nerd.com> <20061231080756.66e89d6c.mle+ocaml@mega-nerd.com> <1167535885.27287.66.camel@rosella.wigram> <20061231152305.694fd3e9.mle+ocaml@mega-nerd.com> <20061231110831.GA21198@furbychan.cocan.org> <20070101095114.911ca90d.mle+ocaml@mega-nerd.com> <4599205A.7050802@laposte.net> <20070102065845.c6558b18.mle+ocaml@mega-nerd.com> <1167699073.13679.15.camel@rosella.wigram> <20070102121424.07da295b.mle+ocaml@mega-nerd.com> In-Reply-To: <20070102121424.07da295b.mle+ocaml@mega-nerd.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4599ED19.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; chunks:01 wrote:01 wrote:01 writes:01 caml-list:01 data:02 stream:04 erik:04 erik:04 accessed:05 space:07 space:07 alpha:08 memory:08 memory:08 Erik de Castro Lopo wrote: > skaller wrote: > >> Why not? That's tiny compared to available address space on a 64 >> bit machine, and personal computers have heaps >> of free address space >> > > Ok, so someone writes a simple application that loads the whole file > into memory and then plays it. Unfortunately disk transfer speeds being > in the order of 100 Mb/sec means that its going to take 110 seconds to > load that file. Thats bad! > > Obviously, the smart way to do it is to stream that file off disk 100kB > chunks at a time. Thats what libsndfile is designed and optimised for. > > Erik > But a mem-mapped file shouldn't be loaded into physical memory until it's accessed, and then only the page that has the data, right? -e