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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id A4D3DBC57 for ; Mon, 30 Aug 2010 12:02:54 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUGADoee0xQRFuwWWdsb2JhbACgPwsBFhUENrhjhTcE X-IronPort-AV: E=Sophos;i="4.56,292,1280700000"; d="scan'208";a="66295458" Received: from furbychan.cocan.org ([80.68.91.176]) by mail1-smtp-roc.national.inria.fr with ESMTP; 30 Aug 2010 12:02:54 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1Oq1CW-0004RM-9Z; Mon, 30 Aug 2010 11:02:52 +0100 Date: Mon, 30 Aug 2010 11:02:52 +0100 To: Hugo Ferreira , g@annexia.org Cc: caml-list List Subject: Re: [Caml-list] Tracking memory usage: GC output not same order as unix top command Message-ID: <20100830100252.GA7715@annexia.org> References: <4C7B7D4E.4020500@inescporto.pt> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C7B7D4E.4020500@inescporto.pt> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; 0100,:01 escapes:01 wrote:01 unix:01 unix:01 heap:01 caml-list:01 output:02 output:02 red:92 memory:09 memory:09 aug:10 top:89 top:89 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. The output of top isn't a reliable way to measure memory usage. 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. Rich. -- Richard Jones Red Hat