快閃記憶體由於具有耐震、省電以及成本低廉等特性,已經成為嵌入式產品的主流儲存裝置。然而,由於在執行寫入前必須抹除原有資料,造成空間回收的機制不定時的被觸發,此種不明確的執行時間傷害了系統的效能。猶有甚者,快閃記憶體先天上有著抹寫次數的限制,對其中任一區塊的過度抹寫會造成快閃記憶體的提早損壞。耗損平均的策略著眼於區塊的挑選,戮力於消除各區塊抹寫次數的差異。定時啟動回收工作的方式被提出來消除不明確的執行時間及達到均勻耗損。然而,過高的執行頻率使得系統必須負擔額外的回收成本;過低的執行頻率則易流於造成可用空間不足的窘境。在這個研究中,我們提出了一個均衡的回收機制,該機制藉由明確的寫入回應時間來滿足系統之所需,並且適時的啟動回收機制來保證足夠的空間的供給。在此篇論文中,我們提出了一個名為DBFTL均衡的回收機制。DBFTL於處理寫入需求時,以明確的回應時間為嵌入式系統提供可預測性,並且藉由適時的啟動回收機制來保證足夠的可用空間供給。實驗的結果顯示出DBFTL於任何時刻均能提供足夠的空間給系統使用,並且在讀寫的處理能力也有著較佳的表現。
Due to the characteristics of the flash memory, the NAND flash memory-based storage device has become the favorite of the embedded system. However, the non-deterministic response time of reclaiming space, which is subject to out-of-place writes, always degrades the system performance. Moreover, the flash memory has the constraint of the limited erase counts. Hence, any excessive erase operations on certain block would lead the flash memory into the premature death. Wear-leveling policies are devoted to the victim selection to eliminate the wear deviation of each block. A periodic based approach is proposed in the previous study to remove the uncertainty of the write response time and get the flash memory erased evenly. However, the frequency to trigger the periodical mechanism has a strong impact on the performance of reclaiming space. The over-recycling incurs the extra cost when the system has no demand for the space. Oppositely, less frequency imposes insufficient space while serving the write requests. In this thesis, we propose a balanced reclaiming scheme named DBFTL which provides the predictability for the embedded system with deterministic response time while servicing each write request and guarantees enough free space by the appropriately triggered timing. The simulation results show that DBFTL can provide sufficient space to use at any time and has the better performance in read/write throughput.