From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 22:36:53 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 0694016A4CF for ; Fri, 20 Aug 2004 22:36:53 +0000 (GMT) Received: from pd4mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D64B43D45 for ; Fri, 20 Aug 2004 22:36:52 +0000 (GMT) (envelope-from gbaratto@superb.net) Received: from pd2mr3so.prod.shaw.ca (pd2mr3so-ser.prod.shaw.ca [10.0.141.108])2003))freebsd-questions@freebsd.org; Fri, 20 Aug 2004 16:33:09 -0600 (MDT) Received: from pn2ml8so.prod.shaw.ca ([10.0.121.152]) by pd2mr3so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I2R00HUBNZ9QJ00@pd2mr3so.prod.shaw.ca> for freebsd-questions@freebsd.org; Fri, 20 Aug 2004 16:33:09 -0600 (MDT) Received: from chivas (S01060080c8118809.vc.shawcable.net [24.85.89.252]) 2003))freebsd-questions@freebsd.org; Fri, 20 Aug 2004 16:33:09 -0600 (MDT) Date: Fri, 20 Aug 2004 15:32:35 -0700 From: "Gustavo A. Baratto" To: freebsd-questions@freebsd.org Message-id: <0ccb01c48705$978c7f50$6400a8c0@chivas> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mailer: Microsoft Outlook Express 6.00.2800.1437 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal Subject: memory questions 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: Fri, 20 Aug 2004 22:36:53 -0000 Greetings all... I wanna know how much memory apache/php processes are effectively using under freebsd... and how much they are sharing. The ps or top commands seems to report just the maximum amount of memory, and the resident memory (what's resident memory anyways??) If I 'cat /proc/pid/map', I get a map of the memory used by the apache processes but, it doesn't say what shared library or files are using a particular block of memory: -------- # more map 0x8048000 0x80d1000 135 0 0xc673e000 r-x 16 2 0x4 COW NC vnode 0x80d1000 0x80d3000 2 0 0xc678e094 rw- 1 0 0x2184 COW NNC vnode 0x80d3000 0x80da000 5 0 0xc678e1bc rw- 1 0 0x2184 COW NNC default 0x80da000 0x817f000 114 0 0xc678df08 rwx 1 0 0x2184 COW NNC default 0x817f000 0x8185000 6 0 0xc678de74 rwx 1 0 0x2184 COW NNC default 0x8185000 0x8189000 1 0 0xc678dd4c rwx 1 0 0x2184 NCOW NNC default 0x880d1000 0x880e8000 23 0 0xc65bb818 r-x 67 26 0x4 COW NC vnode 0x880e8000 0x880e9000 1 0 0xc65db8ac rw- 14 0 0x184 COW NC vnode .... ------- In the case of /proc/pid/map above, what's the meaning of each column? how can I find out which shared libraries, or files are being shared in memory? I need to know the real amount of memory an application is gonna use before going to production. Thanks for any input.