|
Boost : |
Subject: [boost] Need urgent help >> How to Handle Fragmentation in Boost's managed_shared_memory
From: vijay sharma (sharmavijay1991_at_[hidden])
Date: 2017-08-17 16:22:46
I am using Boost::managed_shared_memory for my project. For allocate and
deallocate we are using boost APIs as show in below example:
shm_controller.reset(new boost::interprocess::managed_shared_memory(
boost::interprocess::open_or_create, shmName, size));void * addr =
shm_controller->allocate(size) ;
shm_controller ->deallocate(addr);
For this I have two question:
1) How can i handle fragmentation in this ? We are doing very frequent
allocation and release.
2) What kind of allocation we are using in boost (slab, slub, slob) ?
First question is very important for me. Please let me know if you want
more info on any of these.
Thanks,
sharmavijay1991_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk