[bind10-dev] use of boost offset_ptr for in-memory data structure

Michal 'vorner' Vaner michal.vaner at nic.cz
Mon Jun 11 14:14:30 UTC 2012


Hello

On Mon, Jun 11, 2012 at 01:47:08AM -0700, JINMEI Tatuya / 神明達哉 wrote:
> Although this is not a topic for the soonest development goals,
> assuming we'll work on the "in-memory scalability" feature not far
> from now...

I certainly hope so. The amount of memory used is ridiculous now.

> I played with the boost offset_ptr
> http://www.boost.org/doc/libs/1_35_0/doc/html/interprocess/offset_ptr.html
> and found that it can be used in a pretty intuitive way (i.e., mostly
> just like bare pointers).  So, even if our initial version doesn't use
> sexy shared-memory type of trick, I propose we use it in the internal
> representation from the beginning.

This looks nice. I think it is better to use the offset pointer unconditionally
to see it works even in cases where we don't really need them.

Also, is there something like shared offset pointer? I don't know if it might be
useful or not, though.

However, I think there still be some difficulties. We may want to have multiple
segments allocated and point from one to another, for example.

With regards

-- 
Support your right to arm bears!!

Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20120611/e095dbe7/attachment.bin>


More information about the bind10-dev mailing list