DATA STORAGE CONTROL METHOD AND APPARATUS FOR EXTERNAL STORAGE DEVICE USING A PLURALITY OF FLASH MEMORIES
First Claim
1. A data storage control method for an external storage device using a plurality of flash memories each of which is limited in a rewrite number of times, an erasure block thereof is larger than a physical sector thereof for actually writing data therein and data within the erasure block is simultaneously erased, said data storage control method comprising the steps of:
- classifying said plurality of flash memories into a predetermined number of flash memories for rewrite data for storing rewrite data applied from outside and a flash memory for garbage collection, and writing data from the outside into said flash memories for rewrite data in a write once manner;
when there is no vacant area in said flash memories for rewrite data, performing garbage collection in which effective data within said flash memory for rewrite data is moved into said flash memory for garbage collection before erasing data within said flash memory for rewrite data, and storing rewrite data supplied hereinafter from the outside into said flash memory for garbage collection; and
after completion of movement of the effective data from said flash memory for rewrite data into said flash memory for garbage collection, simultaneously erasing data within said flash memory for rewrite data, wherein the data erasure of said flash memory for rewrite data and data accessing to said flash memories from the outside are executed in parallel.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention is to realize a data storage control method and apparatus for an external storage device using flash memories. The method and apparatus can eliminate the data erasure waiting time, eliminating the calculation of the erasure numbers of flash memories, elongating the life-time of the flash memories. Data is stored sequentially from a first flash memory for rewrite data to a third flash memory for rewrite data. When there is no vacant area in the third flash memory for rewrite data, a CPU instructs a first flash memory for garbage collection among the first and second flash memories for garbage collection to perform the garbage collection of the first flash memory for rewrite data. When a host computer issues a write access request, the write process is performed in the first flash memory for garbage collection with the first priority. When the garbage collection of the first flash memory for rewrite data has been completed, the garbage collection of the second flash memory for rewrite data is performed by the second flash memory for garbage collection. At the time of performing the garbage collection of the second flash memory for rewrite data, the data of the first flash memory for rewrite data is simultaneously erased. The first flash memory for garbage collection is changed into a flash memory for rewrite data by the CPU. Upon completion of the garbage collection of the second flash memory for rewrite data, the data thereof is simultaneously erased and the second flash memory for garbage collection is changed into a flash memory for rewrite data. Then, the garbage collection of the third flash memory for rewrite data is performed in the similar manner.
78 Citations
4 Claims
-
1. A data storage control method for an external storage device using a plurality of flash memories each of which is limited in a rewrite number of times, an erasure block thereof is larger than a physical sector thereof for actually writing data therein and data within the erasure block is simultaneously erased, said data storage control method comprising the steps of:
-
classifying said plurality of flash memories into a predetermined number of flash memories for rewrite data for storing rewrite data applied from outside and a flash memory for garbage collection, and writing data from the outside into said flash memories for rewrite data in a write once manner;
when there is no vacant area in said flash memories for rewrite data, performing garbage collection in which effective data within said flash memory for rewrite data is moved into said flash memory for garbage collection before erasing data within said flash memory for rewrite data, and storing rewrite data supplied hereinafter from the outside into said flash memory for garbage collection; and
after completion of movement of the effective data from said flash memory for rewrite data into said flash memory for garbage collection, simultaneously erasing data within said flash memory for rewrite data, wherein the data erasure of said flash memory for rewrite data and data accessing to said flash memories from the outside are executed in parallel. - View Dependent Claims (2)
-
-
3. A data storage control apparatus for an external storage device using a plurality of flash memories each of which is limited in a rewrite number of times, an erasure block thereof is larger than a physical sector thereof for actually writing data therein and data within the erasure block is simultaneously erased, said data storage control apparatus comprising:
-
a predetermined number of flash memories for rewrite data for storing rewrite data applied from outside in write once manner;
a flash memory for garbage collection for performing garbage collection in which effective data within said flash memory for rewrite data is moved therein; and
a data storage control means for, when there is no vacant area in said flash memories for rewrite data, performing garbage collection in which effective data within said flash memory for rewrite data is moved into said flash memory for garbage collection before erasing data within said flash memory for rewrite data, then storing rewrite data supplied hereinafter from the outside into said flash memory for garbage collection, and after completion of movement of the effective data from said flash memory for rewrite data into said flash memory for garbage collection, simultaneously erasing data within said flash memory for rewrite data, wherein the data erasure of said flash memory for rewrite data and data accessing to said flash memories from the outside are executed in parallel. - View Dependent Claims (4)
-
Specification