Boost logo

Boost Users :

From: vivek1043 (vivek.vickky_at_[hidden])
Date: 2019-10-12 07:47:21


Hi,

I want to continue on this topic.
when i have created the maximum number of objects needed in the application
in shmem,
 the consumed memory is n bytes.(managed_shm.get_size() -
managed_shm.get_free_memory();)
However, during run time these objects can be deleted and created multiple
times causing fragmentation.

Is there a recommended size that can safe against bad_allocs due to
fragmentation (like 2n, 3n)?

-Vivek

--
Sent from: http://boost.2283326.n4.nabble.com/Boost-Users-f2553780.html

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