CPC G06F 3/064 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0659 (2013.01); G06F 3/0673 (2013.01)] | 20 Claims |
1. A data storage device comprising:
a memory; and
a data storage controller including an electronic processor and a data storage controller memory that includes a space-leveling scheme and a block container assignment queue (BCAQ), the electronic processor, when executing the space-leveling scheme, is configured to:
receive a first host data stream,
store the first host data stream in the BCAQ,
detect a next storage block container switching event,
responsive to detecting the next storage block container switching event, randomly select a location of the BCAQ,
responsive to randomly selecting the location of the BCAQ, assign a second host data stream located at the location of the BCAQ that is selected to a storage block container of the memory, and
control the memory to store the second host data stream in the storage block container that is assigned.
|