From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id D26ECBC59 for ; Mon, 30 Aug 2010 12:06:48 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUGAOIfe0xQRFuwWWdsb2JhbACgPwsBFhUENrhmhTcE X-IronPort-AV: E=Sophos;i="4.56,292,1280700000"; d="scan'208";a="57968756" Received: from furbychan.cocan.org ([80.68.91.176]) by mail2-smtp-roc.national.inria.fr with ESMTP; 30 Aug 2010 12:06:48 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1Oq1GK-0004UA-F6; Mon, 30 Aug 2010 11:06:48 +0100 Date: Mon, 30 Aug 2010 11:06:48 +0100 To: Hugo Ferreira Cc: caml-list@inria.fr Subject: Re: [Caml-list] Tracking memory usage: GC output not same order as unix top command Message-ID: <20100830100648.GB7715@annexia.org> References: <4C7B7D4E.4020500@inescporto.pt> <20100830100252.GA7715@annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20100830100252.GA7715@annexia.org> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; 0100,:01 0100,:01 escapes:01 wrote:01 wrote:01 unix:01 unix:01 heap:01 caml-list:01 output:02 output:02 red:92 memory:09 memory:09 aug:10 On Mon, Aug 30, 2010 at 11:02:52AM +0100, Richard Jones wrote: > On Mon, Aug 30, 2010 at 10:43:42AM +0100, Hugo Ferreira wrote: > > The output > > shows memory usage below the 100M mark, however the unix command > > "top" shows usage in the order of Gigabytes (at least 4.8). This > > memory consumption grows gradually. >=20 > The output of top isn't a reliable way to measure memory usage. >=20 > Really you should be looking at /proc//maps. That will show you > if, for example, the heap is becoming fragmented or if there's some > memory leak. There is a nice utility for examining maps files and > system memory usage, but the name of it escapes me at the moment. I might have been thinking of this one: http://lwn.net/Articles/329458/ Rich. --=20 Richard Jones Red Hat