[go: up one dir, main page]

HK1141605B - System and method for managing flash memory card - Google Patents

System and method for managing flash memory card Download PDF

Info

Publication number
HK1141605B
HK1141605B HK10108092.8A HK10108092A HK1141605B HK 1141605 B HK1141605 B HK 1141605B HK 10108092 A HK10108092 A HK 10108092A HK 1141605 B HK1141605 B HK 1141605B
Authority
HK
Hong Kong
Prior art keywords
flash memory
memory card
read
write
independent disks
Prior art date
Application number
HK10108092.8A
Other languages
Chinese (zh)
Other versions
HK1141605A1 (en
Inventor
陈明航
陈西发
Original Assignee
深圳市朗科科技股份有限公司
Filing date
Publication date
Priority claimed from CN2008101458882A external-priority patent/CN101655776B/en
Application filed by 深圳市朗科科技股份有限公司 filed Critical 深圳市朗科科技股份有限公司
Publication of HK1141605A1 publication Critical patent/HK1141605A1/en
Publication of HK1141605B publication Critical patent/HK1141605B/en

Links

Description

Flash memory card management system and method
Technical Field
The present invention relates to the field of semiconductor memory, and more particularly, to a flash memory card management system and method.
Background
With the continuous development of electronic technology, the speed requirement of handheld or portable devices (such as notebook computers, personal digital assistants, digital cameras) on data storage devices is getting faster and faster, and the requirement on the reliability of data is also increased. However, the read-write speed or the security performance of a single flash memory card often cannot meet the requirements of high-end handheld or portable devices.
Redundant Array of Independent Disks (RAID) technology has been developed, and now seven basic RAID levels, namely RAID0 to RAID6, are available. In addition, there are some basic RAID level combinations, such as RAID0 and RAID1, RAID3 and RAID5, and so on. RAID technology has been widely used in hard disks, and the read-write speed or security of the hard disks is greatly improved. There is no mature technology in the prior art for applying RAID technology to flash memory cards. If RAID technology can be applied to the flash memory card, the problem of read-write speed or security of the flash memory card can be solved.
Disclosure of Invention
It is therefore an objective of the claimed invention to provide a flash memory card management system and method for improving the read/write speed or security of the flash memory card.
The invention provides a flash memory card management system, which comprises at least one flash memory card, a configuration parameter storage unit and a read-write configuration parameter storage unit, wherein the read-write configuration parameter storage unit is used for storing read-write configuration parameters of the flash memory card; the information processing unit is respectively connected with the configuration parameter storage unit and the flash memory card, extracts the read-write configuration parameters of the flash memory card stored in the configuration parameter storage unit, performs read-write type configuration on the flash memory card, and reads and writes the flash memory card subjected to the read-write type configuration according to the read-write type.
The flash memory card management system also comprises a flash memory card control unit which is respectively connected with the flash memory card and the information processing unit and reads and writes the flash memory card according to the instruction of the information processing unit.
And the cache unit is connected with the information processing unit and is used for reading and writing data of the flash memory card.
The read-write configuration parameters of the flash memory card stored in the configuration parameter storage unit comprise the read-write type, the number and the capacity of the flash memory card.
The read-write type of the flash memory card comprises a combination of a level 0 of an independent redundant disk array, a level 1 of the independent redundant disk array, a level 2 of the independent redundant disk array, a level 3 of the independent redundant disk array, a level 4 of the independent redundant disk array, a level 5 of the independent redundant disk array, a level 6 of the independent redundant disk array, a level 0 of the independent redundant disk array and a level 1 of the independent redundant disk array or a combination of the level 3 of the independent redundant disk array and the level 5 of the independent redundant disk array.
The invention also provides a flash memory card management method, which comprises the following steps:
step S1, configuring the read-write type of the flash memory card according to the read-write configuration parameters of the flash memory card;
step S2, read/write the flash memory card with read/write type configuration.
The step S1 is preceded by:
and storing the read-write configuration parameters of the flash memory card.
The step S1 includes:
step S11, extracting the read-write configuration parameters of the stored flash memory card;
step S12, writing the read/write configuration parameters of the flash memory card into the flash memory card to complete the read/write type configuration of the flash memory card.
The step S2 includes:
step S21, recognizing the read-write type of the flash memory card;
step S22, read/write the flash memory card configured with the read/write type according to the read/write type.
The read-write configuration parameters of the flash memory card comprise the read-write type, the number and the capacity of the flash memory card.
The read-write type of the flash memory card comprises a combination of a level 0 of an independent redundant disk array, a level 1 of the independent redundant disk array, a level 2 of the independent redundant disk array, a level 3 of the independent redundant disk array, a level 4 of the independent redundant disk array, a level 5 of the independent redundant disk array, a level 6 of the independent redundant disk array, a level 0 of the independent redundant disk array and a level 1 of the independent redundant disk array or a combination of the level 3 of the independent redundant disk array and the level 5 of the independent redundant disk array.
The invention carries out read-write type configuration on the flash memory card through the flash memory card management system and the method, and reads and writes the flash memory card which is subjected to the read-write type configuration according to the read-write type, thereby greatly improving the read-write speed of the flash memory card. In addition, the flash memory card configured by the read-write type can have the function of data redundancy, so that the damaged data can be recovered by using redundant information once the user data is damaged, thereby ensuring the safety of the user data.
Drawings
FIG. 1 is a block diagram of a flash memory card management system according to an embodiment of the present invention;
FIG. 2 is a block diagram of a flash memory card management system according to yet another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for flash card management according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating read/write type configuration of a flash memory card according to an embodiment of the present invention;
fig. 5 is a flow chart illustrating the process of reading and writing the flash memory configured with the read-write type according to an embodiment of the present invention.
The objects, functions and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The flash memory card management system and the method provided by the embodiment of the invention carry out read-write type configuration on the flash memory card, and read and write the flash memory card which is subjected to the read-write type configuration according to the read-write type, thereby greatly improving the read-write speed of the flash memory card. In addition, the flash memory card configured by the read-write type has the function of data redundancy, so that once the user data is damaged, the damaged data can be recovered by using the redundant information, and the safety of the user data is guaranteed.
FIG. 1 shows a flash memory card management system according to an embodiment of the present invention, which includes a configuration parameter storage unit 10, an information processing unit 20, and at least one flash memory card 30; the configuration parameter storage unit 10 stores read-write configuration parameters of the flash memory card 30; the information processing unit 20 is connected to the configuration parameter storage unit 10 and the flash memory card 30, respectively, extracts the read/write configuration parameters of the flash memory card 30 stored in the configuration parameter storage unit 10, performs read/write type configuration on the flash memory card 30, and reads/writes the flash memory card 30 that has been configured by the read/write type according to the read/write type.
Fig. 2 shows a flash memory card management system according to another embodiment of the present invention, which includes a configuration parameter storage unit 10, an information processing unit 20, at least one flash memory card 30, a flash memory card control unit 40, a flash memory card interface 50, and a cache unit 60.
The configuration parameter storage unit 10 stores read/write configuration parameters of a flash memory card of the flash memory card 30, where the read/write configuration parameters of the flash memory card are written into the configuration parameter storage unit 10 by a private SCSI (Small Computer System Interface) command through an upper Computer (e.g., a single chip microcomputer and a Computer) in advance according to needs. In one embodiment, the read/write configuration parameters of the flash memory card include the read/write type of the flash memory card, the number of the flash memory cards, and the capacity of the flash memory card. The read-write type of the flash memory card comprises a combination of a redundant array of independent disks level 0(RAID0), a redundant array of independent disks level 1(RAID1), a redundant array of independent disks level 2(RAID2), a redundant array of independent disks level 3(RAID3), a redundant array of independent disks level 4(RAID4), a redundant array of independent disks level 5(RAID5), a redundant array of independent disks level 6(RAID6), a redundant array of independent disks level 0(RAID0) and a redundant array of independent disks level 1(RAID1), or a combination of the redundant array of independent disks level 3(RAID3) and the redundant array of independent disks level 5(RAID 5).
The information processing unit 20 is connected to the configuration parameter storage unit 10 and the flash memory card control unit 40, respectively, extracts the read/write configuration parameters of the flash memory card 30 stored in the configuration parameter storage unit 10, writes the read/write configuration parameters of the flash memory card 30 into the flash memory card 30 through the flash memory card control unit 40, and completes the read/write configuration of the flash memory card 30. In one embodiment, the flash memory card control unit 40 writes the read/write configuration parameters of the flash memory card 30 into the flash memory card 30 through the flash memory card interface 50. The information processing unit 20 is further connected to the main chip 70, and receives the read/write command from the main chip 70, and reads and writes the flash memory card 30 configured with the read/write type according to the read/write type. The read/write type has been described above, and is not described herein. The host chip 70 includes a south bridge chip of a computer, a host chip of an embedded system, and the like.
The buffer unit 60 is connected to the information processing unit 20, and when the main chip 70 writes data to the flash memory card 30 through the information processing unit 20, if the flash memory card 30 is busy, the data can be stored in the buffer unit 60 first, and then written in when the flash memory card 30 is idle; in addition, when the main chip 70 reads data of the flash memory card 30 through the information processing unit 20, the information processing unit 20 first takes the data out of the flash memory card 30 and then places the data into the buffer unit 60 for the main chip 70 to read.
As shown in fig. 3, a flow chart of a flash memory card management method according to an embodiment of the present invention includes the following steps:
step S1, configuring the read-write type of the flash memory card 30 according to the read-write configuration parameters of the flash memory card 30;
step S2, read/write the flash memory card 30 with read/write type configuration.
Wherein, the step S1 further includes storing the read/write configuration parameters of the flash memory card 30.
To better explain the embodiment shown in fig. 3, fig. 4 shows a flow of performing read/write type configuration on a flash memory card 30 according to an embodiment of the present invention, which includes the steps of:
step S11, extracting the read-write configuration parameters of the flash memory card 30;
step S12, the read/write configuration parameters of the flash memory card 30 are written into the flash memory card 30, and the read/write type configuration of the flash memory card 30 is completed.
The above steps can be implemented by the configuration parameter storage unit 10 shown in fig. 1 or fig. 2 in cooperation with the information processing unit 20. The information processing unit 20 extracts the read-write configuration parameters of the flash memory card 30 stored in the configuration parameter storage unit 10. The information processing unit 20 writes the extracted read/write configuration parameters of the flash memory card 30 into the flash memory card 30, and completes the read/write type configuration of the flash memory card 30.
In one embodiment, the read/write configuration parameters of the flash memory card 30 include the read/write type of the flash memory card 30 and the attributes of the flash memory card 30. The read-write type of the flash memory card comprises a combination of a redundant array of independent disks level 0(RAID0), a redundant array of independent disks level 1(RAID1), a redundant array of independent disks level 2(RAID2), a redundant array of independent disks level 3(RAID3), a redundant array of independent disks level 4(RAID4), a redundant array of independent disks level 5(RAID5), a redundant array of independent disks level 6(RAID6), a redundant array of independent disks level 0(RAID0) and a redundant array of independent disks level 1(RAID1) or a combination of redundant array of independent disks level 3(RAID3) and a redundant array of independent disks level 5(RAID 5).
To better explain the embodiment shown in fig. 3, fig. 5 shows a flow of reading and writing the flash memory card 30 with read and write type configuration according to an embodiment of the present invention, which includes the steps of:
step S21, recognizing the read-write type of the flash memory card 30;
step S22, the flash memory card 30 with read/write type configuration is read/written according to the read/write type.
The above steps can be implemented by the information processing unit 20 shown in fig. 1 or fig. 2. The information processing unit 20 reads the read-write type of the flash memory card 30 and identifies the read-write type of the flash memory card 30; the information processing unit 20 reads and writes the flash memory card 30, which has been configured with the read/write type, according to the read/write type. The read/write type has been described above, and is not described herein.
In one embodiment, to improve the data read/write speed of the flash memory cards 30, RAID0 configuration may be performed on both flash memory cards 30. The upper computer writes the read-write configuration parameters of the flash memory card containing RAID0 to the configuration parameter storage unit 10 for storage, and the information processing unit 20 writes the read-write configuration parameters of the flash memory card containing RAID0 type to the flash memory card 30 through the flash memory card control unit 40, thereby completing the RAID0 configuration of the flash memory card 30.
The process of writing to the flash memory card 30 by the information processing unit 20 in RAID0 is: after the information processing unit 20 splits the data to be written by the main chip 70 to the flash memory cards 30, it writes to two flash memory cards 30 separately through the flash memory card control unit 40 instead of writing to only one flash memory card 30. The information processing unit 20 usually splits the data to be written by the master chip 70 to the flash memory cards 30 according to RAID0, and writes the data in "Segment" (Segment) units to two flash memory cards 30, for example, data Segment 1 is written to one flash memory card 30, and data Segment 2 is written to the other flash memory card 30. If the flash memory card 30 is busy, the data segment can be stored in the buffer unit 60 first, and the data segment stored in the buffer unit 60 can be written into the flash memory card 30 when the flash memory card 30 is idle.
The process of reading the flash memory card 30 by the information processing unit 20 in RAID0 is: the information processing unit 20 then places the data segments read from both flash memory cards 30 in the buffer unit and merges the data segments to read the complete data.
In one embodiment, three or more flash memory cards 30 may be configured with RAID5 to ensure data security of the flash memory cards 30. The upper computer writes the read-write configuration parameters of the flash memory card containing RAID5 to the configuration parameter storage unit 10 for storage, and the information processing unit 20 writes the read-write configuration parameters of the flash memory card containing RAID5 type to the flash memory card 30 through the flash memory card control unit 40, thereby completing the RAID5 configuration of the flash memory card 30.
The information processing unit 20 writes the data segment and the check information segment into three or more flash memory cards 30, respectively, and stores the check information segment of the data segment in each flash memory card 30 alternately. The information processing unit 20 can simultaneously perform read operations or write operations to the two flash memory cards 30. With the flash memory cards 30 configured with RAID5, when any one of the flash memory cards 30 fails, the data on the failed flash memory card 30 can be recovered by the data and the check information field on the remaining flash memory cards 30, thereby effectively ensuring the security of the data.
The above embodiments are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents thereof, and all such changes, modifications, substitutions, combinations, and simplifications are intended to be included in the scope of the present invention.

Claims (9)

1. A flash memory card management system comprising at least two flash memory cards, further comprising:
a configuration parameter storage unit for storing read-write configuration parameters of the flash memory card;
the information processing unit is respectively connected with the configuration parameter storage unit and the flash memory card, extracts the read-write configuration parameters of the flash memory card stored in the configuration parameter storage unit, performs read-write type configuration on the flash memory card, and reads and writes the flash memory card subjected to the read-write type configuration according to the read-write type;
the read-write type comprises a redundant array of independent disks level 0, a redundant array of independent disks level 1, a redundant array of independent disks level 2, a redundant array of independent disks level 3, a redundant array of independent disks level 4, a redundant array of independent disks level 5, a redundant array of independent disks level 6, a combination of the redundant array of independent disks level 0 and the redundant array of independent disks level 1 or a combination of the redundant array of independent disks level 3 and the redundant array of independent disks level 5.
2. The flash memory card management system of claim 1, further comprising:
and the flash memory card control unit is respectively connected with the flash memory card and the information processing unit and reads and writes the flash memory card according to the instruction of the information processing unit.
3. The flash memory card management system of claim 1, further comprising:
and the cache unit is connected with the information processing unit and is used for reading and writing data of the flash memory card.
4. The flash memory card management system of any of claims 1 to 3, wherein:
the read-write configuration parameters of the flash memory cards stored in the configuration parameter storage unit also comprise the number and the capacity of the flash memory cards.
5. A flash memory card management method, comprising the steps of:
step S1, configuring the read-write type of the flash memory card according to the read-write configuration parameters of the flash memory card;
step S2, reading and writing the flash memory card with read-write type configuration;
the read-write type comprises a redundant array of independent disks level 0, a redundant array of independent disks level 1, a redundant array of independent disks level 2, a redundant array of independent disks level 3, a redundant array of independent disks level 4, a redundant array of independent disks level 5, a redundant array of independent disks level 6, a combination of the redundant array of independent disks level 0 and the redundant array of independent disks level 1 or a combination of the redundant array of independent disks level 3 and the redundant array of independent disks level 5.
6. The flash memory card management method of claim 5, wherein the step S1 is preceded by the steps of:
and storing the read-write configuration parameters of the flash memory card.
7. The flash memory card management method of claim 6, wherein the step S1 includes:
step S11, extracting the read-write configuration parameters of the stored flash memory card;
step S12, writing the read/write configuration parameters of the flash memory card into the flash memory card to complete the read/write type configuration of the flash memory card.
8. The flash memory card management method of claim 5, wherein the step S2 includes:
step S21, recognizing the read-write type of the flash memory card;
step S22, read/write the flash memory card configured with the read/write type according to the read/write type.
9. The flash memory card management method of any of claims 5 to 8, wherein:
the read-write configuration parameters of the flash memory card also comprise the number and the capacity of the flash memory cards.
HK10108092.8A 2010-08-24 System and method for managing flash memory card HK1141605B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101458882A CN101655776B (en) 2008-08-18 2008-08-18 System and method for managing flash memory card

Publications (2)

Publication Number Publication Date
HK1141605A1 HK1141605A1 (en) 2010-11-12
HK1141605B true HK1141605B (en) 2013-04-05

Family

ID=

Similar Documents

Publication Publication Date Title
EP2732373B1 (en) Method and apparatus for flexible raid in ssd
US8819338B2 (en) Storage system and storage apparatus
KR101491943B1 (en) Transaction log recovery
US10353614B2 (en) Raid system and method based on solid-state storage medium
US8799745B2 (en) Storage control apparatus and error correction method
US20130227346A1 (en) Controlling nonvolatile memory device and nonvolatile memory system
US20130191705A1 (en) Semiconductor storage device
TW201118569A (en) Data storing method for a flash memory, and flash memory controller and flash memory storage system using the same
CN103534688A (en) Data recovery method, storage equipment and storage system
US20150019808A1 (en) Hybrid storage control system and method
TWI421870B (en) Data writing method for a flash memory, and controller and storage system using the same
JP5426684B2 (en) Independent disk redundant array (RAID) write cache subassembly
TW201216057A (en) Block management method, memory controller and memory storage apparatus
TW201348965A (en) File protecting method and system, and memory controller and memory storage apparatus thereof
CN103729149A (en) Data storage method
CN104050014B (en) Efficient storage management method based on virtual platform
US9405715B2 (en) Host computer and method for managing SAS expanders of SAS expander storage system
CN103593260A (en) Protecting method and protecting device for metadata
US8694602B2 (en) Storage apparatus and its data processing method
CN107885620A (en) A kind of method and system for improving Solid-state disc array Performance And Reliability
CN115543223A (en) Method, medium, equipment and disk array card for flexibly forming disk array card
US11016689B2 (en) Data storage system
CN102087632B (en) Data storage method for flash memory, controller and storage system thereof
CN101655776B (en) System and method for managing flash memory card
HK1141605B (en) System and method for managing flash memory card