Boost logo

Boost Users :

Subject: [Boost-users] allocating shared memory fails beyond 8 GB
From: vipin sachdeva (vipin.sachdeva_at_[hidden])
Date: 2014-04-28 21:56:08


   I am using managed_xsi_shared_memory to allocate memory as below:

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).

------ Shared Memory Limits --------

max number of segments = 1874919423

max seg size (kbytes) = 9765624999999

max total shared memory (kbytes) = 39999999999999996

min seg size (bytes) = 1

kernel.shmmax = 9999999999999999

kernel.shmall = 9999999999999999

kernel.shmmni = 1874919423

vm.hugetlb_shm_group = 0

Is there any reason why this allocation should fail ?

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