multikernel
multikernel copied to clipboard
[mm] Unit Tests for Remote Memory Cache
Description
The following unit tests should be introduced for the Remote Memory Manager.
API Tests
- [x] Allocate and Free a Remote Memory Block
- [x] Get and Release a Reference for a Remote Memory Block
- [x] Flush Changes on a Remote Memory Block
- [x] FiFo Replacement Consistency
- [x] LiFo Replacement Consistency
- [x] LRU Replacement Consistency
Fault Injection Tests
- [ ] Free an Invalid Remote Memory Block
- [ ] Free a Bad Remote Memory Block
- [ ] Get a Reference for an Invalid Remote Memory Block
- [ ] Get a Reference for a Bad Remote Memory Block
- [ ] Release a Reference for an Invalid Remote Memory Block
- [ ] Release a Reference for a Bad Remote Memory Block
- [ ] Flush an Invalid Remote Memory Block
- [ ] Flush a Bad Remote Memory Block
Stress Tests
- [ ] Allocate and Free Remote Memory Blocks Sequentially
- [ ] Allocate and Free Remote Memory Blocks Interleaved
- [ ] Get and Release References to Remote Memory Blocks Sequentially
- [ ] Get and Release References to Remote Memory Blocks Interleaved
- [ ] Allocate and Free All Remote Memory Blocks
- [ ] Get and Release References to All Remote Memory Blocks