Commit 83ee491
authored
[ICRDMA] Chunk reclamation feature for slot mem pool. Change limit. EXT-1782 (#31708)
The original implementation of slot mem pool has no ability to reuse chunk for slots size X if it was split for slots size Y. It may cause the situation when we have no ability to allocate memory if all chunks was split for workset with different sizes.
The proposed change track usage of chunk and allows to reuse it for any slot size if use count for the chunk becomes 0.
This commit also changes limit so allocate object up to 32MB are allowed.
Two improvement should be implemented in a future work:
* Priority to allocate slots by use count of underlying chunk. This heuristic increases probability of success reclaimation
* Varied chunk size. No need to use 32Mb chunk to split it in to 4K slots. It also increases probability of success reclaimation and improve performance of it1 parent 1c215e4 commit 83ee491
File tree
8 files changed
+1269
-113
lines changed- ydb/library/actors/interconnect/rdma
- ut_mem_pool_limit_128
- ut_mem_pool_limit_32
- ut_mem_pool_limit
8 files changed
+1269
-113
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | | - | |
39 | | - | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
47 | 50 | | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
100 | | - | |
| 104 | + | |
101 | 105 | | |
102 | | - | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
Lines changed: 0 additions & 57 deletions
This file was deleted.
0 commit comments