From owner-freebsd-questions@FreeBSD.ORG Tue Apr 6 07:16:39 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46D8616A50A for ; Tue, 6 Apr 2004 07:16:39 -0700 (PDT) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97B6F43D5D for ; Tue, 6 Apr 2004 07:16:36 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Tue, 6 Apr 2004 15:13:48 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 1BArJ4-0005Im-00; Tue, 06 Apr 2004 15:12:02 +0100 Date: Tue, 6 Apr 2004 15:12:02 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Artem Koutchine In-Reply-To: <004301c41bce$a5a9fb50$0c00a8c0@artem> Message-ID: References: <004301c41bce$a5a9fb50$0c00a8c0@artem> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant cc: freebsd-questions@freebsd.org Subject: Re: How to get memory usage for process? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 14:16:39 -0000 On Tue, 6 Apr 2004, Artem Koutchine wrote: > Hi! > > I need to figure out how much memory process really takes. > For example, i am running 100 perl scripts, they are all the > same source and i guess some memory is shared among them > (mostly perl interperter i guess). So, i need to know how much > memory is shared and how much memory is used for each new > running script (including buffers, e.t.c.). What command shoud > do the trick and with what options? You're probably after the sysutils/pmap utility, in the ports. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ "...perl has been dead for more than 4 years." - Abigail in the Monastery