Virtual memory mapping notification...
Virtual memory mapping notification...
- Subject: Virtual memory mapping notification...
- From: Michael Burbidge <email@hidden>
- Date: Wed, 17 Jan 2007 10:28:16 -0800
I work on Adobe InDesign. I am trying to chase down a problem where we consume large amounts of VM (0.75 - 1GB). That sounds like a relatively easy problem to find, but we use many components (framework and dynamic libraries) that we do not directly control. I believe the VM leak is coming from one of these components.
Is there some way for my application to get notified when the system maps regions into our virtual address space? I have patched vm_allocate, vm_deallocate, vm_map and vm_remap (using http://rentzsch.com/mach_star/). Using this patch, I see lots of vm coming and going, but still the mysterious GB of virtual address space does not go through vm_allocate. I think I do see it going through vm_deallocate as the process shuts down. And by calculating how much vm my process is currently mapped using task_info, I do see that vm is being allocated some other way. And I can see roughly when it is.
The documentation for vm_allocate makes the following statement "The kernel automatically allocates memory to hold out-of-line data passed in a message (and received with mach_msg)." I'm wondering if this is how the mysterious vm is getting mapped. Would there be a way to get notified of these occurring?
Any suggestions would be appreciated.
Michael- |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden