$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Interprocess] Minimum allocation size for managed_shared_memorty
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-11-29 14:03:59
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:
Best,
Ion