From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA12195; Tue, 18 May 2004 19:13:05 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA11906 for ; Tue, 18 May 2004 19:13:04 +0200 (MET DST) Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i4IHD3SH026606 for ; Tue, 18 May 2004 19:13:03 +0200 Received: from diebuntekuh.de (dialin-212-144-187-119.arcor-ip.net [212.144.187.119]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id 9A4E7C43B42 for ; Tue, 18 May 2004 19:13:02 +0200 (CEST) Received: by diebuntekuh.de (Postfix, from userid 500) id 1AFCA608EC0; Tue, 18 May 2004 19:19:25 +0200 (CEST) To: OCaml List Subject: [Caml-list] Limits for Bigarray.Array?.map_file From: Christoph Bauer Date: Tue, 18 May 2004 19:19:24 +0200 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 40AA441F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; bauer:01 bauer:01 bigarrays:01 printf:01 printf:01 bigarray:01 bigarray:01 afaik:01 command:98 rec:01 unix:02 let:04 let:04 differences:04 array:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I have to do some work with really huge files (>1GB). Bigarray.Array1.map_file works fine and very fast for small and medium sized files, but virtual memory is limited. (On windows AFAIK 2GB). Is there a way to specify an offset to the given file (e.g. with a seek command) to make several Bigarrays of one file? What is a realistic limit of the size for such a Bigarray? Are there known differences between Unix/Windows? A 64 bit processor is not a solution. Thanks for any enlightenment, Christoph Bauer -- let () = let rec f a w i j = Printf.printf "%.20f\r" a; let a1 = a *. i /. j in if w then f a1 false (i +. 2.0) j else f a1 true i (j +. 2.0) in f 2.0 false 2.0 1.0 ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners