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=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 8DF92BC0B for ; Mon, 4 Dec 2006 10:22:48 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kB49Mmrw031098 for ; Mon, 4 Dec 2006 10:22:48 +0100 Received: by ug-out-1314.google.com with SMTP id k3so2579102ugf for ; Mon, 04 Dec 2006 01:22:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZJW34oLYWKYkcnkaGbrmXgK78LHMk9zx97Q8zAe+IEdhoUoYjoUt0S2pad7SoaAS33eW+ZkgO9DYAe36Ee5mQD0TDJDYvagmQ6Br3/YAJJ1fNwvyZvC+9fDvB0rKa2yF+48602xEQHccqYzZCjKDXy0Kb57TQkSzLonEEa5Vb3Y= Received: by 10.82.141.4 with SMTP id o4mr1431405bud.1165224167669; Mon, 04 Dec 2006 01:22:47 -0800 (PST) Received: by 10.82.140.13 with HTTP; Mon, 4 Dec 2006 01:22:47 -0800 (PST) Message-ID: <53c655920612040122tbabcc27mb89fac3bee50475c@mail.gmail.com> Date: Mon, 4 Dec 2006 10:22:47 +0100 From: "David Baelde" Reply-To: david.baelde@ens-lyon.org To: "Hendrik Tews" Subject: Re: [Caml-list] Memory cost of a compaction Cc: Ocaml In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <53c655920612020734q4272cb9em5311c3ec3ea14ab2@mail.gmail.com> X-j-chkmail-Score: MSGID : 4573E8E8.000 on discorde : j-chkmail score : X : 0/20 1 X-Miltered: at discorde with ID 4573E8E8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; compaction:01 compactions:01 compactions:01 ocaml:01 bug:01 heap:01 heap:01 caml-list:01 seems:03 buffers:04 anyway:06 probably:07 memory:08 memory:08 wrong:09 Hi, I actually started logging Gc compactions and a few other messages after that mail. It showed me that many compactions happened before 10 hours of run, without any noticeable cost in memory consumption. Besides, the OCaml heap is really small compared to the C heap. Using mtrace() I actually found out that my bug is related to vorbis (probably used in a wrong way in ocaml-vorbis in case of downsampling) which after ten hours requires two 50MB PCM buffers... Anyway, after a little thinking it seems to me that not much extra memory is needed by compactions, you can just move things inside down the heap without extra room, right? David