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Ã³:
>> I am using managed_xsi_shared_memory to allocate memory as below:
>> shmem(boost::interprocess::create_only, key, atol(argv));
>> 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.
> Boost-users mailing list
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net