Boost logo

Boost Users :

Subject: Re: [Boost-users] allocating shared memory fails beyond 8 GB
From: vipin sachdeva (vipin.sachdeva_at_[hidden])
Date: 2014-04-29 17:23:51

It is error code 13; basically I would like to find out out beforehand how
much maximum shared memory (using MemFree from /proc/meminfo, sysctl info
etc) I can allocate on a machine and only make an allocation that big , and
only allocate a segment of that size. Are there any other system variables
I need to consider ? Thanks.

Error ID 13
terminate called after throwing an instance of
  what(): Cannot allocate memory


On Tue, Apr 29, 2014 at 3:59 AM, Ion Gaztañaga <igaztanaga_at_[hidden]> wrote:

> El 29/04/2014 3:56, vipin sachdeva escribió:
> Hi,
>> I am using managed_xsi_shared_memory to allocate memory as below:
>> boost::interprocess::managed_xsi_shared_memory
>> shmem(boost::interprocess::create_only, key, atol(argv[2]));
>> For some reason, I cannot allocate more than 8 GB of memory. Both sysctl
>> and ipcs have limits higher than that set (output below).
> Why type of exception throws? If an error is returned from the OS, the
> errno value will be stored in that exception.
> Best,
> Ion
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at