Closed akiradeveloper closed 8 years ago
I add some tests that's still ignored because this fix is not given yet. This isn't a tunable for users but myself only.
fix-122 passed the test. will be merged.
[info] REPRO_122:
[info] - nr_read_cache_cells works
[info] Run completed in 12 seconds, 534 milliseconds.
[info] Total number of tests run: 1
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
As of now, read cache cells is a fixed size that is 2048 * 4KB (8MB in total). read data are once cached in the cells and when the cells is full, flushed to the rambuffer as clean write requests (cf. inject_read_cache)
This value is carefully chosen for the production use. But setting this value to 1 makes testing read-caching easy because the behavior becomes more predictable.
Since we need more white-box tests for the read-caching, making the value tunable will pay off.