ClydeProjects / EagleTree

An SSD Simulator
GNU General Public License v3.0
41 stars 54 forks source link

The flow of wear leveling process #7

Open MrAta opened 7 years ago

MrAta commented 7 years ago

Hi there, First, I would like to thank you for your efforts on this project. I was wondering what is the exact course of wear leveling process? I have read the wear_leveling_strategy.cpp and I can understand all the functions. But I want to know the exact flow of wear leveling process. when and where it invoked? what and where it do?

Bests.

nivdayan commented 7 years ago

Hi Ata,

Glad to hear that you are using EagleTree.

The wear-leveling strategy is called whenever an erase takes place. It is called from Block_manager_parent, from within the method register_erase_outcome. The wear-leveling policy in wear_leveling_strategy.cpp then decides if it should schedule a wear-leveling operation depending on the state of the device, and its list of candidates.

Hope this helps!

Best, Niv

On Sat, Dec 3, 2016 at 8:10 AM, Ata Fatahi Baarzi notifications@github.com wrote:

Hi there, First, I would like to thank you for your efforts on this project. I was wondering what is the exact course of wear leveling process? I have read the wear_leveling_strategy.cpp and I can understand all the functions. But I want to know the exact flow of wear leveling process. when and where it invoked? what and where it do?

Bests.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ClydeProjects/EagleTree/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsw5Or8b0RUGPKSCM5oLjbDdF--7redks5rEWoqgaJpZM4LDSi1 .