confusion about memory fragmentation, vm, and blocks
confusion about memory fragmentation, vm, and blocks
- Subject: confusion about memory fragmentation, vm, and blocks
- From: Mario Emmenlauer <email@hidden>
- Date: Tue, 03 Mar 2009 16:57:15 +0100
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden