
29 Nov
2010
29 Nov
'10
7:03 p.m.
On 29/11/2010 17:08, Aditya Gadre wrote:
On my machine, the page size is 4096 bytes. In general, is it advisable to allocate memory in multiples of the page size? Thanks,
We'll, if you need fixed allocation it does not matter. If you are going to use dynamic allocation functions, if you don't allocate in multiples of the page-size, you are going to waste memory, since no one can use the the portions of the pagesize you don't fully map. See: http://www.boost.org/doc/libs/1_45_0/doc/html/interprocess/sharedmemorybetwe... Best, Ion