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
'boost::interprocess::interprocess_exception'
what(): Cannot allocate memory
Regards
vipin
On Tue, Apr 29, 2014 at 3:59 AM, Ion Gaztañaga
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users