• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
memory allocation and virtual memory increase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: memory allocation and virtual memory increase
      • From: Bill Bumgarner <email@hidden>
    • Re: memory allocation and virtual memory increase
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: Noob question regarding Cocoa objects.
  • Next by Date: Re: memory allocation and virtual memory increase
  • Previous by thread: Re: Noob question regarding Cocoa objects.
  • Next by thread: Re: memory allocation and virtual memory increase
  • Index(es):
    • Date
    • Thread