From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 4001FBC57 for ; Sun, 15 Aug 2010 11:55:13 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4DABZWZ0xKfVIuimdsb2JhbACTOY0JCBUBAQEKCQwHDwUfnTmZRYU7BIli X-IronPort-AV: E=Sophos;i="4.55,371,1278280800"; d="scan'208";a="67624503" Received: from mail-ww0-f46.google.com ([74.125.82.46]) by mail4-smtp-sop.national.inria.fr with ESMTP; 15 Aug 2010 11:55:13 +0200 Received: by wwe15 with SMTP id 15so1800729wwe.3 for ; Sun, 15 Aug 2010 02:55:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.27.130 with SMTP id e2mr1386136wea.66.1281866112561; Sun, 15 Aug 2010 02:55:12 -0700 (PDT) Received: by 10.216.154.79 with HTTP; Sun, 15 Aug 2010 02:55:12 -0700 (PDT) X-Originating-IP: [110.33.116.174] In-Reply-To: References: <1281855821.2115.4.camel@glinka> <1281863810.2115.11.camel@glinka> Date: Sun, 15 Aug 2010 19:55:12 +1000 Message-ID: Subject: Fwd: [Caml-list] More re GC hanging From: Paul Steckler To: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; steckler:01 steck:01 basile:01 basile:01 ocaml:01 camlparam:01 ocaml:01 garbage:01 wrote:01 caml-list:01 openssl:01 caml:02 kernel:02 sys:03 library:03 On Sun, Aug 15, 2010 at 7:16 PM, Basile Starynkevitch wrote: > To check that it did work as expected (which I doubt) do > =A0 cat /proc/sys/kernel/randomize_va_space > it should give 0 It did work as expected. > Are you sure that you don't have badly coded C routines that you call > from your Ocaml code (don't forget correct use of CAMLparam & CAMLlocal, > read again carefully > http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html and perhaps > other material about precise garbage collectors). I'm not calling any C code directly. =A0I am using the ocaml-ssl library, which has some simple calls into the OpenSSL library. > Are you sure you don't have a memory leak in your Ocaml code? This could > happen when a reference value refers to a "big" value you don't need > anymore. Possible. =A0I'll try printing out some memory statistics to see how much m= emory is being consumed. -- Paul