Commit 524325d
Add eviction writeback callback to FeatureEvict (pytorch#5832)
Summary:
X-link: facebookresearch/FBGEMM#2754
Add EvictionWritebackCallback type and wire it through FeatureEvict eviction loops. When a dirty block is evicted from DRAM, its data is serialized and passed to the callback for writeback to SSD. The callback is invoked after releasing the DRAM shard lock to avoid holding locks during SSD I/O.
Differential Revision: D1074917251 parent 7941ff8 commit 524325d
5 files changed
Lines changed: 535 additions & 48 deletions
File tree
- fbgemm_gpu
- fbgemm_gpu/tbe/ssd
- src
- dram_kv_embedding_cache
- ssd_split_embeddings_cache
- test/dram_kv_embedding_cache
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
| 959 | + | |
959 | 960 | | |
960 | 961 | | |
961 | 962 | | |
| |||
0 commit comments