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.1 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 321B0BB84 for ; Mon, 12 Jan 2009 22:34:37 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.37,254,1231110000"; d="scan'208";a="22367125" Received: from discorde.inria.fr ([192.93.2.38]) by mail1-smtp-roc.national.inria.fr with ESMTP; 12 Jan 2009 22:34:37 +0100 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id n0CLYaEX023887 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 12 Jan 2009 22:34:36 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAKBFa0lSkiEx/2dsb2JhbADTQYVv X-IronPort-AV: E=Sophos;i="4.37,254,1231110000"; d="scan'208";a="33639582" Received: from 5070.info ([82.146.33.49]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Jan 2009 22:34:36 +0100 X-Bogosity: Unsure, tests=bogofilter Received: from [192.168.1.21] (92-124-28-6.pppoe.irtel.ru [92.124.28.6] (may be forged)) (authenticated bits=0) by 5070.info (8.14.3/8.14.0) with ESMTP id n0CLYCIe032037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 12 Jan 2009 21:34:34 GMT (envelope-from john@ispsystem.com) Subject: Re: [Caml-list] Re: memory usage From: John Lepikhin To: caml-list@inria.fr In-Reply-To: <20090112201219.GB21039@annexia.org> References: <1231746106.4376.27.camel@john-laptop> <20090112083913.GA28059@annexia.org> <1231751641.4376.39.camel@john-laptop> <1231759695.4376.55.camel@john-laptop> <20090112114127.GA1568@annexia.org> <1231782999.4376.246.camel@john-laptop> <20090112201219.GB21039@annexia.org> Content-Type: text/plain Date: Tue, 13 Jan 2009 05:34:06 +0800 Message-Id: <1231796046.4376.261.camel@john-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (5070.info [82.146.33.49]); Mon, 12 Jan 2009 21:34:35 +0000 (UTC) X-Miltered: at discorde with ID 496BB76C.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; stdout:01 endline:01 unix:01 unix:01 caml-list:01 data:02 data:02 output:02 cached:02 string:02 flush:03 let:03 let:03 dev:04 dev:04 > > I'm not sure this is the same issue. Look at this test code: > For reasons I don't fully understand, this code doesn't seem to do > anything. A print statement after the Unix.openfile is never printed. Possibly you use print_string or something like this. Such output is cached. You should either flush stdout or use print_endline. > > let read_data _ = > > let fd = Unix.openfile "/dev/random" [] 0o644 in > You probably want to use something like /dev/urandom or /dev/zero > here. I'm so sleepy at this time, it's a quick written test code :-) RSS still grows after I changed the source of data to /dev/zero. I didn't expect something else...