Re: Reducing memory consumption
Re: Reducing memory consumption
- Subject: Re: Reducing memory consumption
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 12 Oct 2006 13:43:26 -0700
On 10/11/06, Mark Wagner <email@hidden> wrote:
For that matter, is there some way to find out how much actual memory
(physical + swap space) is allocated to a program?
man vmmap
[0:596] > sudo vmmap 8624
Virtual Memory Map of process 8624 (gdb-powerpc-apple-darwin)
Output report format: 2.0
==== Non-writable regions for process 8624
__PAGEZERO 00000000-00001000 [ 4K] ---/--- SM=NUL
/usr/libexec/gdb/gdb-powerpc-apple-darwin
[snip]
system ffff8000-ffffa000 [ 8K] r--/r-- SM=SHM
commpage [libSystem.B.dylib]
==== Writable regions for process 8624
__DATA 0025e000-0028c000 [ 184K] rw-/rwx SM=COW
/usr/libexec/gdb/gdb-powerpc-apple-darwin
[snip]
Stack f0082000-f0102000 [ 512K] rw-/rwx SM=PRV thread 2
==== Legend
SM=sharing mode:
COW=copy_on_write PRV=private NUL=empty ALI=aliased
SHM=shared ZER=zero_filled S/A=shared_alias
==== Summary for process 8624
ReadOnly portion of Libraries: Total=7948KB resident=5424KB(68%)
swapped_out_or_unallocated=2524KB(32%)
Writable regions: Total=75044KB written=11392KB(15%)
resident=50456KB(67%) swapped_out=0KB(0%) unallocated=24588KB(33%)
REGION TYPE [ VIRTUAL]
=========== [ =======]
MALLOC [ 61624K]
SBRK [ 4096K]
STACK GUARD [ 24K]
Stack [ 9216K]
__DATA [ 460K]
__LINKEDIT [ 1004K]
__PAGEZERO [ 4K]
__TEXT [ 6944K]
mapped file [ 14184K]
system [ 8K]
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden