[infinispan-dev] Learning ISPN7 DataContainer internals ... first steps

cotton-ben ben.cotton at ALUMNI.RUTGERS.EDU
Fri Mar 14 22:11:09 EDT 2014


Hi Mircea and RedHat,

Dmitry, and I are now taking initial steps to code the integration of
OpenHFT SHM as an off-heap ISPN7 DataContainer.

We have mused that a possible approach to this may be to use the symmetry of
ISPN7's existing DefaultDataContainer.java impl and (copy a/o extend) that
existing work into a new
org.infinispan.offheap.OffHeapDefaultDataContainer.java impl.

The key steps would be for us to 100% soundly and 100% completely replace

 ConcurrentMap entries = CollectionFactory.makeConcurrentParallelMap(128,
concurrencyLevel);

with

ConcurrentMap entries = entries = new
net.openhft.collections.SharedHashMapBuilder()
                    .generatedValueType(Boolean.TRUE)
                    .entrySize(512)
                    .create(
                            new
File("/dev/shm/offHeapSharedHashMap.DataContainer"),
                            Object.class,
                            InternalCacheEntry.class
                    );

We are of course very newbie wrt to ISPN7 DataContainer internals.  Before
we get into building and testing compelling exercises and hardening the
OffHeapDefaultDataContainer,  would you please comment wrt to your view that
this seems like the correct first steps?

https://github.com/Cotton-Ben/infinispan/blob/master/off-heap/src/main/java/org/infinispan/offheap/OffHeapDefaultDataContainer.java




--
View this message in context: http://infinispan-developer-list.980875.n3.nabble.com/Learning-ISPN7-DataContainer-internals-first-steps-tp4029053.html
Sent from the Infinispan Developer List mailing list archive at Nabble.com.


More information about the infinispan-dev mailing list