-
Notifications
You must be signed in to change notification settings - Fork 127
Questions #5
Comments
|
Thank you. I watched the video, it's quite good. I'll try to do an implementation in our system, and benchmark it against The one downside to using native libraries like util-mmap or the Snappy There is a native java implementation of Snappy out there. As for the ByteBuffer problems,
http://bugs.java.com/view_bug.do?bug_id=4724038 In my opinion, this security issue is hardly "insurmountable". We're But for the purpose of the lsmtree, is it really ever necessary ever to On Thu, Jul 14, 2016 at 1:56 PM, jeffplaisance [email protected]
|
There's a solution here to the unmap problem: On Fri, Jul 15, 2016 at 6:39 PM, Chris Cleveland <[email protected]
|
It is necessary for the lsmtree to unmap files. As you add data, it creates and deletes files and the deleted ones need to be unmapped. If you want to use java's mmap you'd just have to implement the Memory interface using a bunch of MappedByteBuffers and then add a system property in MMapBuffer to make it choose between that and DirectMemory. I'd recommend making them 1 GB because the maximum length of a ByteBuffer is actually 2^31-1 bytes (one byte short of 2 GB) and doing all the math to figure out what buffer you should be accessing is going to be easier, cheaper, and more clear if they're aligned to powers of 2. |
You can use a segment tree for searching the memory mapped block correctly using a absolute address.I think it is not so difficult make it thread safe . |
Have some questions, not sure where else to ask. We're looking at this project for use in one of our systems.
Thanks for open-sourcing this project, by the way. I've poked around a bit and the code seems to be clean and well-designed.
The text was updated successfully, but these errors were encountered: