Try out vmmap against your (or some) application to see how things are getting allocated. It can give you insights into how things are working at the VM level.
[0:502] > vmmap iTunes Virtual Memory Map of process 7842 (iTunes) Output report format: 2.2 -- 32-bit process ==== Non-writable regions for process 7842 __PAGEZERO 00000000-00001000 [ 4K] ---/--- SM=NUL /Applications/iTunes.app/Contents/MacOS/iTunes __TEXT 00001000-00ae9000 [ 10.9M] r-x/rwx SM=COW /Applications/iTunes.app/Contents/MacOS/iTunes .... snip .... MALLOC_TINY 01000000-01100000 [ 1024K] rw-/rwx SM=PRV DefaultMallocZone_0x1000000 MALLOC_TINY 01100000-01200000 [ 1024K] rw-/rwx SM=PRV zone_0x0 MALLOC_LARGE 01200000-01210000 [ 64K] rw-/rwx SM=PRV DefaultMallocZone_0x1000000 MALLOC_LARGE 01218000-01219000 [ 4K] rw-/rwx SM=PRV DefaultMallocZone_0x1000000 VM_ALLOCATE ? 01219000-0121b000 [ 8K] rw-/rwx SM=PRV MALLOC_LARGE 0121b000-0123b000 [ 128K] rw-/rwx SM=PRV DefaultMallocZone_0x1000000 .... snip .... ==== Summary for process 7842 ReadOnly portion of Libraries: Total=146.7M resident=81.4M(56%) swapped_out_or_unallocated=65.3M(44%) Writable regions: Total=757.6M written=114.9M(15%) resident=131.2M(17%) swapped_out=17.6M(2%) unallocated=626.3M(83%) REGION TYPE [ VIRTUAL] =========== [ =======] ATS (font support) [ 33.6M] CG backing stores [ 9616K] CG shared images [ 1056K] Carbon [ 2040K] CoreGraphics [ 480K] IOKit [ 512.8M] MALLOC [ 145.2M] Memory tag=240 [ 4K] STACK GUARD [ 56.1M] Stack [ 22.2M] VM_ALLOCATE ? [ 16.4M] __DATA [ 10.4M] __IMAGE [ 1240K] __IMPORT [ 744K] __LINKEDIT [ 6540K] __OBJC [ 2240K] __PAGEZERO [ 4K] __TEXT [ 140.3M] __UNICODE [ 532K] mapped file [ 32.1M] shared memory [ 49.4M] shared pmap [ 1096K] -Shawn _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]