Commit 6a54c6c
Add getSlabMemoryInfo() for IO registration
Summary:
Expose CacheLib slab memory base address and size via public API. This allows IO operations (e.g., RDMA, io_uring) to pre-register the entire cache arena for zero-copy get/put operations, avoiding per-API overhead.
Returns the user-visible slab data region only, excluding internal slab headers at the start of the memory arena. This prevents IO from corrupting CacheLib metadata.
Reviewed By: AlnisM
Differential Revision: D110330084
fbshipit-source-id: 87811ebfb14f714b16689811de89efdaf30dcc971 parent e178997 commit 6a54c6c
3 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
1286 | 1292 | | |
1287 | 1293 | | |
1288 | 1294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
502 | 507 | | |
503 | 508 | | |
504 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
366 | 374 | | |
367 | 375 | | |
368 | 376 | | |
| |||
0 commit comments