From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Subject: Re: [9fans] output of ps(1) memory usage From: David Presotto To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 20 Feb 2003 21:43:42 -0500 Topicbox-Message-UUID: 6c81b894-eacb-11e9-9e20-41e7f4b1d025 > Is there an easy way to determine the amount of memory > really inuse (or physically mapped?) within a process? cat /proc//segment. The first number is the range, the second is the reference count. The ref will help you figure out how many other procs are using the segment. For example: presotto@presto-home% ps|grep rio presotto 14 0:00 0:03 752K Rendez rio presotto 113 0:00 0:00 752K Pread rio presotto 114 0:00 0:00 752K Pread rio presotto 115 0:00 0:00 752K Rendez rio presotto 116 0:00 0:00 752K Pread rio presotto 117 0:00 0:00 752K Pread rio presotto 177 0:00 0:00 752K Await rio presotto@presto-home% cat /proc/113/segment Stack 7efff000 7ffff000 1 Text R 00001000 0002d000 7 Data 0002d000 00036000 7 Bss 00036000 000bd000 7 There are 7 rio's...