CMU-SAFARI / MQSim

MQSim is a fast and accurate simulator modeling the performance of modern multi-queue (MQ) SSDs as well as traditional SATA based SSDs. MQSim faithfully models new high-bandwidth protocol implementations, steady-state SSD conditions, and the full end-to-end latency of requests in modern SSDs. It is described in detail in the FAST 2018 paper by Arash Tavakkol et al., "MQSim: A Framework for Enabling Realistic Studies of Modern Multi-Queue SSD Devices" (https://people.inf.ethz.ch/omutlu/pub/MQSim-SSD-simulation-framework_fast18.pdf)
https://people.inf.ethz.ch/omutlu/pub/MQSim-SSD-simulation-framework_fast18.pdf
MIT License
273 stars 149 forks source link

BugFix: the running error in WRITE_READ_CACHE mode #34

Closed pglprome closed 4 years ago

pglprome commented 4 years ago

These fix are all in Data_Cache_Manager_Flash_Advanced.cpp

  1. An additional MEMORY_WRITE_FOR_CACHE_FINISHED event was committed in case WRITE_READ_CACHE. Those code is repeated with the following code.

  2. The back_pressure_buffer_depth should be cumulated after evicting a cache slot and write to the back end flash.

  3. The readed data should invoke the insert_read_data function to write to the cache. The cache status should be in CLEAN.