confusion about memory fragmentation, vm, and blocks
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Thunderbird 2.0.0.18 (Macintosh/20081105) Hi all, I have a problem understanding memory allocation, blocks and fragmentation. According to what I have read, memory allocation can only allocate as much as the largest contiguous free block is in size. What I fail to understand is whether that is true only for the operating system, or if its the same from an applications point of view. What actually confuses me is that I assumed from the applications point of view all memory is virtual memory? Since the OS has to map application addresses to pages and a backing store, I would assume that blocking happens invisible to the application? On a side note, what I'm trying to achieve is knowing how much free memory my app can access. If blocking is not invisible to the application, then do I need to probe for blocks of decreasing size repeatedly? If it is invisible, then the largest successful allocation should give me all free memory? Best, Mario _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Mario Emmenlauer