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.5 required=5.0 tests=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 55FDFBB84 for ; Mon, 12 Jan 2009 16:03:40 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAK/qaklSkiEx/2dsb2JhbADSbIVv X-IronPort-AV: E=Sophos;i="4.37,253,1231110000"; d="scan'208";a="22348878" Received: from 5070.info ([82.146.33.49]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Jan 2009 16:03:40 +0100 X-Bogosity: Unsure, tests=bogofilter Received: from [192.168.1.21] (92-124-51-69.pppoe.irtel.ru [92.124.51.69] (may be forged)) (authenticated bits=0) by 5070.info (8.14.3/8.14.0) with ESMTP id n0CF3Gdw040398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 12 Jan 2009 15:03:38 GMT (envelope-from john@ispsystem.com) Subject: Re: [Caml-list] Re: memory usage From: John Lepikhin To: caml-list@yquem.inria.fr In-Reply-To: <20090112114127.GA1568@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> Content-Type: text/plain Date: Mon, 12 Jan 2009 23:03:10 +0800 Message-Id: <1231772590.4376.214.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 15:03:39 +0000 (UTC) X-Spam: no; 0.00; descriptors:01 ocaml:01 threads:01 threads:01 caml-list:01 short:01 short:01 simplest:02 allocated:02 module:03 concurrent:04 concurrent:04 pipes:04 stand-alone:05 john:08 > > The only specific module is ocaml-fd (send file descriptors over pipes). > What version of OCaml is this? 3.10.2. > I'm afraid to say that you'll have to post a short reproducer here > before I can look at this further ... Yes, it could be the simplest solution. I have this issue only under the high load, on production server, with real client applications. At this time, I have no idea how to reduce code from big commercial application to something short. May be I'll create some stand-alone GC test later. P.S. Interesting thing I found on other machine, where application works with another load: after the same number of connections processed, only 5MB was allocated (feel the difference: 5MB and 40MB, both after processing 250.000 connections). The only difference is the first machine had processed 250.000 connections in 5 hours (up to ~20 concurrent threads), the second in 24 hours (up to ~10 concurrent threads).