Patent ID: 9372792
Filing Date: 2016-06-21
CPC Classification: G06F

Claim Text:
1. A method of managing a non-volatile memory module, the method comprising: receiving data sectors during a set of at least one write transactions; wherein each data sector belongs to a memory space portion out of multiple memory space portions; writing the data sectors into a buffer of the non-volatile memory module; wherein the buffer comprises multiple buffer blocks; wherein the multiple memory space portions comprise currently buffered memory space portions that are associated with currently buffered data sectors; selecting, out of the currently buffered portions, to-be-merged memory space portions and to-be-cleaned memory space portions; wherein a target ratio between (a) a number of to-be-cleaned memory space portions and (b) a sum of the number of to-be-cleaned memory space portions and a number of to-be-merged memory space portions ranges between an upper limit and a lower limit, wherein the upper limit differs from the lower limit and exceeds one half; merging, for each to-be-merged memory space portion and before the buffer becomes full, data sectors that belong to the to-be-merged memory space portion into a sequential portion of the non-volatile memory module, wherein the sequential portion differs from the buffer; copying, for each to-be-cleaned memory space and before the buffer becomes full, data sectors that belong to the to-be-cleaned memory space portion into a buffer block of the buffer.