{"id":43821572,"url":"https://github.com/rabbitwhite1/d-rocksdb","last_synced_at":"2026-02-06T01:58:39.910Z","repository":{"id":132857781,"uuid":"482587400","full_name":"RabbitWhite1/d-rocksdb","owner":"RabbitWhite1","description":"D-RocksDB disaggregate the memory of block cache in RocksDB, but seems not quite useful with my implementation.","archived":false,"fork":false,"pushed_at":"2022-11-01T02:15:02.000Z","size":25240,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-18T05:40:14.326Z","etag":null,"topics":["disaggregation","rocksdb"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RabbitWhite1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-17T17:19:49.000Z","updated_at":"2024-09-12T09:25:43.000Z","dependencies_parsed_at":"2023-09-25T06:58:16.746Z","dependency_job_id":null,"html_url":"https://github.com/RabbitWhite1/d-rocksdb","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"167286f74271e80d166a64b6b3ae211fb91cbf80"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RabbitWhite1/d-rocksdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RabbitWhite1%2Fd-rocksdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RabbitWhite1%2Fd-rocksdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RabbitWhite1%2Fd-rocksdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RabbitWhite1%2Fd-rocksdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RabbitWhite1","download_url":"https://codeload.github.com/RabbitWhite1/d-rocksdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RabbitWhite1%2Fd-rocksdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29145561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T01:13:33.096Z","status":"ssl_error","status_checked_at":"2026-02-06T01:11:47.313Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["disaggregation","rocksdb"],"created_at":"2026-02-06T01:58:38.962Z","updated_at":"2026-02-06T01:58:39.889Z","avatar_url":"https://github.com/RabbitWhite1.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Disaggregated RocksDB\n\n**This disaggregation in block cache of RocksDB seems actually not quite useful given the fast SSD.**\n\n**But you may find the RDMA-related codes useful if you are a beginner in RDMA.**\n\n## TODO\n\n### D-RocksDB\n\n#### Intuitive Version\n\n- [x] 1. a simple remote memory allocator\n- [x] 2. copy and tidy up the LRUCache codes and create RMLRUCache, remove Secondary Cache Logics for convenient\n- [x] 3. a simple rdma server or interface for convenient fetching and storing operations.\n  - [x] a server handling control message and cm events\n  - [x] a client that has one qp to write/read remote memory \n  - [x] unit test above\n- [x] 4. embed the rdma interface into rocksdb\n- [x] 5. implement the remote memory logic for LRUCache.\n  - [x] LRUHandle. modify its fields to support below operations\n  - [x] rm_lru. implement rm_lru related methods (the simplest lru)\n  - [x] eviction. \n    - [x] evict local block to remote if exceeding local memory\n    - [x] evict remtote block if exceeding total memory\n      - [x] shard remote memory so that any shard can control its own rm (otherwise, it may fail when allocate a space but memory is framented by other shards)\n  - [x] fetch if remote\n  - [x] statistics about the remote memory\n    - [x] count of hit in rm/hit in lm\n    - [x] time of hit in rm/hit in lm (or rm overhead)\n    - [x] stats of lm/rm usage (through `GetMapProperty`)\n\n#### Improved Version v1.1.0\n\n- [x] try to treat remote memory as blocks, i.e., only allocate a block for each cache block (here is an assumption that the block size can always be fit in a cache)\n\n#### Improved Version v2.0.0\n\n- [x] support async read/write\n  - [x] modify rdma_transport to support async read/write (ignore potential race)\n  - [x] modify rm to support async ops\n    - [x] AsyncRequest with a buffer to recv remote value or a pointer to buffer that will be sent\n  - [x] modify DLRUCache to use async ops\n    - [x] do the transfering out of mutex\n    - [x] invoke `wait` upon using the DLRUHandle (e.g., Lookup), and do free if necessary.\n- [x] modify rm to support rdma_transport pool (avoid contention)\n- [x] overlap rdma read/write as much as possible\n  - [x] overlap read/write exchange in Lookup\n\n#### Improved Version v3.0.0\n\n- [ ] local BlockBasedMemoryAllocator\n  - [x] a basic usable allocator (with custom deleter)\n  - [ ] shard the memory region to avoid lock contention\n- [x] register local BlockBasedMemoryAllocator for RDMA\n- [x] directly read/write to avoid copy\n  - [x] sync version\n  - [x] async version\n\n### YCSB\n\n- [ ] support configuration of using `d_lru_cache` or normal `lru_cache`\n- [x] support configuration of using `rm_ratio`\n- [x] modify value generator to use transformation of key, for easier verification of the correctness.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabbitwhite1%2Fd-rocksdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frabbitwhite1%2Fd-rocksdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabbitwhite1%2Fd-rocksdb/lists"}