|
-
January 15th, 2008, 02:19 AM
#1
about dwAllocationGranularity of SYSTEM_INFO
Hello everyone,
I read the description of dwAllocationGranularity from,
1. http://msdn2.microsoft.com/en-us/library/ms724958.aspx
2. http://msdn2.microsoft.com/en-us/lib...87(VS.85).aspx
and tested on my system it is 65535.
But from the above description, I do not quite understand what does it mean. Does it mean that when memory manager deals with real memory allocation, it will always allocate 65535 bytes at a time, and divide into small chunks to upper level API (for example, when we new[256], it will allocate 256 bytes from the 65535 allocated raw bytes to application)?
Another question is, what benefit will we get if we know this parameter? For example, how do we allocate memory will utilize the system at most to achieve best performance?
thanks in advance,
George
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|