-
-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store records in off-heap memory #528
Comments
Probably we should simply store the trx intent log in a Chronicle map instead of a simple |
https://minborgsjavapot.blogspot.com/2019/07/java-chroniclemap-part-1-go-off-heap.html Should'nt be hard to implement. |
Hey @JohannesLichtenberger Guten tag , would like to work on this can you please assign this to me. |
@abhin-dynamify I wonder if serialization of page (fragments) and deserialization will be an issue and if it's faster or even slower. Same for Caffeine caches (the lightweight buffer manager)... that said, with the Caffeine caches, if the maximum sizes are too large, I've had severe performance issues regarding the GC (especially with the ZGC, apparently maybe because it is not generational yet). |
We can try and compare performance in a separate branch 👍 |
@abhin-dynamify hope it makes sense. Do you work on this? |
yeah i am working on it |
@abhin-dynamify did you have time? |
@JohannesLichtenberger Can I try this? |
In the |
@Sung-Heon still interested? |
Yes~! |
We currently have a way too high allocation rate, I think (2,7Gb/s with a single read-only trx). Can you try to replace the slots byte[][] array in |
We probably need an indirection array at the start of the page though with offset/lengths. Furthermore, the pages are variable sized, so the MemorySegment might have to be reassigned with a bigger one, copying all data. Also, for instance if variable sized data as Strings are reassigned and bigger as before... getting a bit tricky. |
You can probably join the Discord channel. |
@Sung-Heon do you have experience with this or database architecture stuff in general? It's of utmost importance to change this to reduce allocation pressure, I'd otherwise assign it to myself. The records perhaps should be backed by MemorySegments, too. Once a new record/node is created it should be serialized to the backing MemorySegment, which in turn should be set as the slot data as part of the large page MemorySegment. We can probably read from the MemorySegment directly, too, at least most stuff... |
In order to keep GC to a minimum (despite of low latency Garbage Collectors as for instance Shenandoah), we could try to store the records/nodes off-heap using the foreign memory API for instance, and compare performance.
The text was updated successfully, but these errors were encountered: