From owner-freebsd-questions@FreeBSD.ORG Tue Apr 6 05:04:15 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 B9DC616A4CE for ; Tue, 6 Apr 2004 05:04:15 -0700 (PDT) Received: from osiris.ipform.ru (osiris.itlegion.ru [212.248.52.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id E430D43D31 for ; Tue, 6 Apr 2004 05:04:14 -0700 (PDT) (envelope-from matrix@itlegion.ru) Received: from artem (artem.office.ipform.ru [192.168.0.12]) by osiris.ipform.ru (8.12.6/8.12.6) with ESMTP id i36C3VXg034891 for ; Tue, 6 Apr 2004 16:03:32 +0400 (MSD) (envelope-from matrix@itlegion.ru) X-AntiVirus: Checked by Dr.Web (http://www.drweb.net) Message-ID: <004301c41bce$a5a9fb50$0c00a8c0@artem> From: "Artem Koutchine" To: Date: Tue, 6 Apr 2004 15:59:41 +0400 Organization: IT Legion MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: 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 12:04:15 -0000 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? Regards, Artem