memory allocation and virtual memory increase
memory allocation and virtual memory increase
- Subject: memory allocation and virtual memory increase
- From: "Bruce Johnson" <email@hidden>
- Date: Mon, 27 Nov 2006 22:22:09 -0800
I'm trying to track down some memory issues, specifically virtual memory issues.
My program contantly allocates (via malloc) chunks of memory to hold
computer generated data. It then writes the data out to disk via
fwrite. Then the memory is then freed.
When the application runs the physical memory usage stays constant and
do not increase and no leaks are detected. However, the virtual
memory size grows and grows until it crashes the application.
I found a similar problem here:
http://www.cocoabuilder.com/archive/message/cocoa/2006/10/24/173264
But I don't understand all the details. I don't use vm_allocate so I
shouldn't need vm_deallocate (like I would know how to use either)
The memory allocations and freeing are occuring inside of pthreads.
Any ideas where I could start to look to reduce the vm size?
Thanks in advance.
--
----
Bruce Johnson
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden