[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108733324B - Data reading and writing method, device and equipment of solid state disk and storage medium - Google Patents

Data reading and writing method, device and equipment of solid state disk and storage medium Download PDF

Info

Publication number
CN108733324B
CN108733324B CN201810514459.1A CN201810514459A CN108733324B CN 108733324 B CN108733324 B CN 108733324B CN 201810514459 A CN201810514459 A CN 201810514459A CN 108733324 B CN108733324 B CN 108733324B
Authority
CN
China
Prior art keywords
data
solid state
read
state disk
effective
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810514459.1A
Other languages
Chinese (zh)
Other versions
CN108733324A (en
Inventor
苏军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810514459.1A priority Critical patent/CN108733324B/en
Publication of CN108733324A publication Critical patent/CN108733324A/en
Application granted granted Critical
Publication of CN108733324B publication Critical patent/CN108733324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The embodiment of the invention discloses a data reading and writing method, a data reading and writing device and data reading and writing equipment of a solid state disk and a computer readable storage medium. The method comprises the step of writing data to be written of users, which are the same as the number of effective addresses of an effective plane group of the solid state disk, into the NAND flash memory if the type of a read-write instruction is a write message instruction based on the multi-plane. If the type of the read-write instruction is a read message instruction, reading data from a cache of the NAND flash memory when a preset condition is met; the preset condition is that when the last operation of the current operation is a read operation and the address corresponding to the read message instruction belong to the same plane set. According to the technical scheme, the solid state disk reading and writing method based on the multi-plane characteristic is optimized, the reading and writing speed of the solid state disk is effectively improved, the performance of the whole solid state disk is improved, and the competitiveness of the solid state disk is further enhanced.

Description

Data reading and writing method, device and equipment of solid state disk and storage medium
Technical Field
The embodiment of the invention relates to the technical field of solid state disks, in particular to a data reading and writing method, a data reading and writing device and data reading and writing equipment of a solid state disk and a computer readable storage medium.
Background
With the rapid development and wide popularization and application of computer technologies such as the internet, cloud computing, the internet of things and the like, mass data can be generated at any moment in daily work or life and needs to be processed and stored, and the explosive growth of the data, the increase of the safety requirement of a user on the data and the high-speed development of the information technology all put higher requirements on the performance of a storage system.
SSD (Solid State Drives), also called Solid State disk, is a hard disk made of an array of Solid State electronic memory chips, and consists of a control unit and a Solid State memory unit (FLASH chip or DRAM chip), and NAND FLASH memory particles are widely used as storage media for Solid State disks because the FLASH memory (FLASH chip) is more stable than DRAM. The read-write performance is an important index for measuring the performance of the solid state disk.
Lun is the minimum unit of the NAND flash memory capable of operating according to commands such as read, write, erase, etc., and the Lun can only have one operation at the same time, and the Lun and Lun can execute respective operations at the same time. Layer (plane) is a physical concept under lun, and plane is used to concurrently perform the same type of operation. Each plane is a memory matrix, each plane includes a plurality of data blocks (blocks), each data block includes a plurality of pages (pages), and a page is the minimum read-write unit of the NAND flash memory. Usually, one lun (logical unit number) corresponds to one plane, and at the same time, only one address can be read and written, and when the amount of data read and written to the same address is large, it is obvious that it takes a long time to process the data amount, and the read and write efficiency is not high.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a computer readable storage medium for reading and writing data of a solid state disk, which are based on a multi-plane and simultaneously perform operations on a plurality of addresses, so as to improve the reading and writing speed of the solid state disk, and further improve the performance of the entire solid state disk.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a data read-write method for a solid state disk, which is based on a multi-plane and includes:
receiving a user read-write instruction, and identifying the type of the read-write instruction;
if the type of the read-write instruction is a write message instruction, acquiring the number of effective addresses of an effective plane group of the solid state disk, and simultaneously writing a plurality of groups of data to be written by users into the NAND flash memory; the number of groups of data to be written by the user is the same as the number of the effective addresses;
if the type of the read-write instruction is a read message instruction, reading data from a cache of the NAND flash memory when a preset condition is met; and the preset condition is that when the last operation of the current operation is a read operation and the address corresponding to the read message instruction belong to the same plane set.
Optionally, when the preset condition is not satisfied, reading data from the NAND flash memory.
Optionally, the obtaining the number of effective addresses of the effective plane set of the solid state disk, and writing the multiple groups of data to be written by the user into the NAND flash memory at the same time includes:
distributing the data blocks in the solid state disk to each plane group in advance according to grouping instructions;
selecting an effective plane set from each plane set according to the received available plane instruction;
judging whether the number of effective addresses contained in the effective plane set is not less than the number of groups of data to be written;
if so, simultaneously writing a plurality of groups of data to be written by the user into the NAND flash memory;
and if not, writing the data to be written of the user in the NAND flash memory in batches according to the number of the effective addresses in the effective plane set and the number of the groups of the data to be written.
Optionally, the method further includes:
and feeding back error prompt information when the number of effective addresses contained in the effective plane set is 0.
Another aspect of the embodiments of the present invention provides a data read/write apparatus for a solid state disk, which is based on a multi-plane, and includes:
the command receiving module is used for receiving a user read-write command and identifying the type of the read-write command;
the write message optimization module is used for acquiring the number of effective addresses of the effective plane set of the solid state disk and simultaneously writing a plurality of groups of data to be written by the user into the NAND flash memory when the type of the read-write instruction is the write message instruction; the number of groups of data to be written by the user is the same as the number of the effective addresses;
the read message optimization module is used for reading data from the cache of the NAND flash memory when the type of the read-write instruction is a read message instruction and a preset condition is met; and the preset condition is that when the last operation of the current operation is a read operation and the address corresponding to the read message instruction belong to the same plane set.
Optionally, the read message optimization module is a module that reads data from the NAND flash memory when the preset condition is not satisfied.
Optionally, the write message optimization module includes:
the grouping submodule is used for allocating the data blocks in the solid state disk to each plane group in advance according to a grouping instruction;
the effective plane set selection module is used for selecting an effective plane set from each plane set according to the received available plane instruction;
the judging submodule is used for judging whether the number of the effective addresses contained in the effective plane set is not less than the number of the groups of the data to be written;
the judgment execution module is used for writing a plurality of groups of data to be written of users into the NAND flash memory simultaneously when the number of effective addresses contained in the effective plane set is not less than the number of groups of the data to be written; and when the number of the effective addresses contained in the effective plane set is less than the group number of the data to be written, writing the data to be written of the user in the NAND flash memory in batches according to the number of the effective addresses in the effective plane set and the group number of the data to be written.
Optionally, the method further includes:
and the feedback module is used for feeding back error prompt information when the number of the effective addresses contained in the effective plane set is 0.
The embodiment of the present invention further provides a data reading and writing device for a solid state disk, including a processor, where the processor is configured to implement the steps of the data reading and writing method for a solid state disk according to any one of the foregoing embodiments when executing a computer program stored in a memory.
The embodiment of the present invention finally provides a computer-readable storage medium, where a data read-write program of the solid state disk is stored on the computer-readable storage medium, and the step of implementing the data read-write method of the solid state disk as described in any one of the preceding items is implemented when the data read-write program of the solid state disk is executed by a processor.
The embodiment of the invention provides a data reading and writing method of a solid state disk, which is based on a multi-plane, and simultaneously writes data to be written of users in arrays with the same number as the effective addresses of an effective plane set of the solid state disk into a NAND flash memory if the type of a reading and writing instruction is a write message instruction. If the type of the read-write instruction is a read message instruction, reading data from a cache of the NAND flash memory when a preset condition is met; the preset condition is that when the last operation of the current operation is a read operation and the address corresponding to the read message instruction belong to the same plane set.
The technical scheme provided by the application has the advantages that based on multi-plane characteristics, aiming at the write message, the data to be written of a user can be written into the NAND flash memory at the same time, the data volume written into the NAND flash memory at one time is increased, when the user has a large amount of data to be written, the data writing time can be greatly shortened, and the data writing efficiency is improved; aiming at the read information, when the data in the address of the same plane group is read, the data can be directly read in the cache of the NAND flash memory without reading the data by the NAND flash memory, so that the data reading efficiency is improved, and the hit rate of the read cache is improved; by optimizing the solid state disk reading and writing method based on the multi-plane characteristic, the reading and writing speed of the solid state disk is effectively improved, the performance of the whole solid state disk is improved, and the competitiveness of the solid state disk is further enhanced.
In addition, the embodiment of the invention also provides a corresponding implementation device, equipment and a computer readable storage medium for the data reading and writing method of the solid state disk, so that the method has higher practicability, and the device, the equipment and the computer readable storage medium have corresponding advantages.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data reading and writing method for a solid state disk according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another method for reading and writing data in a solid state disk according to an embodiment of the present invention;
fig. 3 is a structural diagram of a specific embodiment of a data reading and writing device of a solid state disk according to an embodiment of the present invention;
fig. 4 is a structural diagram of another specific embodiment of a data reading and writing device of a solid state disk according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data read-write method of a solid state disk according to an embodiment of the present invention, where the embodiment of the present invention includes the following contents based on a multi-plane:
s101: and receiving a read-write instruction of a user and identifying the type of the read-write instruction.
The user read-write command comprises a user read data command and a user write data command, namely a read message command and a write message command. The operation of the current user can be identified as read operation or write operation according to different instruction information input by the user.
S102: and if the type of the read-write instruction is a write message instruction, acquiring the number of effective addresses of an effective plane group of the solid state disk, and simultaneously writing a plurality of groups of data to be written by the user into the NAND flash memory.
The valid plane set is a plane with normal physical characteristics of the storage medium, that is, a plane set which is not damaged and can perform read-write operations.
After the system creates a plurality of planes, the data blocks in the solid state disk are allocated to each plane group in advance according to the grouping instruction. For example, when there are n planes in a lun and there are m effective addresses in the first plane set, each data block in the plane set may be named blockmn、blockmn+1、…、blockmn+n-1
The number of valid addresses of a plane set is the number of available data blocks in the set. The number of groups of data to be written by a user is the same as the number of effective addresses, that is, the number of effective addresses of the plane group where the current address is located is the same, and the number of groups of data can be written into the NAND flash memory at the same time. When the number of the groups of the data to be written is larger than the number of the effective addresses of the plane group where the current address is located, the data can be written in batches, which data can be randomly selected and written in each batch, and the data can also be determined according to a pre-established LAB table, which does not affect the implementation of the application.
For example, if the number of effective addresses of the plane set where the current address is located is 5 and the number of sets of data to be written includes 10, 5 sets of data can be written to the NAND flash memory twice at a time.
When the number of the effective addresses of the plane group where the current address is located is 0, the current solid state disk may operate abnormally or be damaged, and the system can automatically feed back error prompt information so as to prompt a user or a worker to search and maintain as soon as possible and reduce user loss.
S103: and if the type of the read-write instruction is a read message instruction, reading data from the cache of the NAND flash memory when a preset condition is met.
The preset condition may be that when the last operation of the current operation is a read operation and the address corresponding to the read message instruction belong to the same plane set.
In the technical scheme provided by the embodiment of the invention, based on multi-plane characteristics, aiming at a write message, the data to be written of a user can be simultaneously written into the NAND flash memory, so that the data volume written into the NAND flash memory at one time is increased, when the user has a large amount of data to be written, the data writing time can be greatly shortened, and the data writing efficiency is improved; aiming at the read information, when the data in the address of the same plane group is read, the data can be directly read in the cache of the NAND flash memory without reading the data by the NAND flash memory, so that the data reading efficiency is improved, and the hit rate of the read cache is improved; by optimizing the solid state disk reading and writing method based on the multi-plane characteristic, the reading and writing speed of the solid state disk is effectively improved, the performance of the whole solid state disk is improved, and the competitiveness of the solid state disk is further enhanced.
Based on the foregoing embodiment, the present application further provides another embodiment, please refer to fig. 2, which specifically includes:
s201: judging whether the user read-write instruction is a message write instruction, if so, executing S202; if not, go to S206.
S202: an active plane set is selected from the respective plane sets according to the received available plane instructions.
S203: and judging whether the number of effective addresses contained in the effective plane set is not less than the number of groups of data to be written, if so, executing S204, and if not, executing S205.
S204: and simultaneously writing a plurality of groups of data to be written of users into the NAND flash memory.
S205: and writing the data to be written of the user in the NAND flash memory in batches.
S206: and judging whether a preset condition is met, if so, executing S207, and otherwise, executing S208.
The preset condition is that when the last operation of the current operation is a read operation and the address corresponding to the read message instruction belong to the same plane set.
S207: and reading data from the cache of the NAND flash memory.
S208: data is read from the NAND flash memory.
That is, when the operation immediately preceding the current operation is a write operation, the current read operation can only be read from the NAND flash memory; when the previous operation of the current operation is a read operation, but the address of the read data and the address of the current read data do not belong to the same plane, the current read operation can only read from the NAND flash memory.
After reading the data from the NAND flash memory, the last saved read information may be further updated for subsequent use.
As can be seen from the above, the embodiment of the present invention is based on the multi-plane, and performs operations on multiple addresses at the same time, so as to improve the read-write speed of the solid state disk, and further improve the performance of the entire solid state disk.
The embodiment of the invention also provides a corresponding implementation device for the data reading and writing method of the solid state disk, so that the method has higher practicability. The following introduces a data reading and writing apparatus of a solid state disk according to an embodiment of the present invention, and the data reading and writing apparatus of the solid state disk described below and the data reading and writing method of the solid state disk described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a structural diagram of a data reading and writing apparatus of a solid state disk according to an embodiment of the present invention in a specific implementation manner, and based on a multi-plane, the apparatus may include:
the instruction receiving module 301 is configured to receive a read-write instruction of a user and identify a type of the read-write instruction.
The write message optimization module 302 is configured to, when the type of the read-write instruction is a write message instruction, acquire the number of effective addresses of an effective plane set of the solid state disk, and write a plurality of groups of data to be written by the user into the NAND flash memory at the same time; the number of groups of data to be written by the user is the same as the number of effective addresses.
The read message optimization module 303 is configured to, when the type of the read-write instruction is a read message instruction, read data from a cache of the NAND flash memory when a preset condition is met; the preset condition is that when the last operation of the current operation is a read operation and the address corresponding to the read message instruction belong to the same plane set.
In a specific embodiment, the read message optimization module 303 may be a module that reads data from the NAND flash memory when a preset condition is not satisfied.
Optionally, in another embodiment, the write message optimization module 302 may further include:
the grouping submodule is used for allocating the data blocks in the solid state disk to each plane group in advance according to the grouping instruction;
the effective plane set selection module is used for selecting an effective plane set from each plane set according to the received available plane instruction;
the judging submodule is used for judging whether the number of the effective addresses contained in the effective plane set is not less than the number of the groups of the data to be written;
the judgment execution module is used for writing a plurality of groups of data to be written of users into the NAND flash memory simultaneously when the number of effective addresses contained in the effective plane set is not less than the number of groups of the data to be written; and when the number of the effective addresses contained in the effective plane set is less than the group number of the data to be written, writing the data to be written of the user in the NAND flash memory in batches according to the number of the effective addresses in the effective plane set and the group number of the data to be written.
Optionally, in some embodiments of this embodiment, referring to fig. 4, the apparatus may further include:
a feedback module 304, configured to feed back an error notification message when the number of effective addresses included in the effective plane set is 0.
The functions of the functional modules of the data reading and writing device of the solid state disk according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
As can be seen from the above, the embodiment of the present invention is based on the multi-plane, and performs operations on multiple addresses at the same time, so as to improve the read-write speed of the solid state disk, and further improve the performance of the entire solid state disk.
The embodiment of the present invention further provides a data read-write device for a solid state disk, which specifically includes:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the steps of the data reading and writing method of the solid state disk according to any one of the above embodiments.
The functions of the functional modules of the data reading and writing device of the solid state disk according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
As can be seen from the above, the embodiment of the present invention is based on the multi-plane, and performs operations on multiple addresses at the same time, so as to improve the read-write speed of the solid state disk, and further improve the performance of the entire solid state disk.
The embodiment of the invention also provides a computer readable storage medium, which stores a data reading and writing program of the solid state disk, wherein the data reading and writing program of the solid state disk is executed by a processor, and the steps of the data reading and writing method of the solid state disk are as described in any one of the above embodiments.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
As can be seen from the above, the embodiment of the present invention is based on the multi-plane, and performs operations on multiple addresses at the same time, so as to improve the read-write speed of the solid state disk, and further improve the performance of the entire solid state disk.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The detailed description is given above of a data read-write method, device, apparatus and computer readable storage medium for a solid state disk provided by the present invention. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A data read-write method of a solid state disk is characterized in that the method is based on a multi-plane and comprises the following steps:
receiving a user read-write instruction, and identifying the type of the read-write instruction;
if the type of the read-write instruction is a write message instruction, acquiring the number of effective addresses of an effective plane group of the solid state disk, and simultaneously writing a plurality of groups of data to be written by users into the NAND flash memory; the number of groups of data to be written by the user is the same as the number of the effective addresses; the effective plane set is a plane set with normal physical characteristics of the storage medium, and the number of effective addresses is the number of available data blocks in the set;
if the type of the read-write instruction is a read message instruction, reading data from a cache of the NAND flash memory when a preset condition is met; and the preset condition is that when the last operation of the current operation is a read operation and the address corresponding to the read message instruction belong to the same plane set.
2. The method according to claim 1, wherein when the preset condition is not satisfied, reading data from the NAND flash memory.
3. The method according to claim 2, wherein the obtaining of the number of effective addresses of the effective plane set of the solid state disk and the writing of the plurality of sets of data to be written by the user into the NAND flash memory include:
distributing the data blocks in the solid state disk to each plane group in advance according to grouping instructions;
selecting an effective plane set from each plane set according to the received available plane instruction;
judging whether the number of effective addresses contained in the effective plane set is not less than the number of groups of data to be written;
if so, simultaneously writing a plurality of groups of data to be written by the user into the NAND flash memory;
and if not, writing the data to be written of the user in the NAND flash memory in batches according to the number of the effective addresses in the effective plane set and the number of the groups of the data to be written.
4. The data reading and writing method of the solid state disk according to claim 3, further comprising:
and feeding back error prompt information when the number of effective addresses contained in the effective plane set is 0.
5. A data read-write device of a solid state disk is characterized by being based on a multi-plane and comprising:
the command receiving module is used for receiving a user read-write command and identifying the type of the read-write command;
the write message optimization module is used for acquiring the number of effective addresses of the effective plane set of the solid state disk and simultaneously writing a plurality of groups of data to be written by the user into the NAND flash memory when the type of the read-write instruction is the write message instruction; the number of groups of data to be written by the user is the same as the number of the effective addresses; the effective plane set is a plane set with normal physical characteristics of the storage medium, and the number of effective addresses is the number of available data blocks in the set;
the read message optimization module is used for reading data from the cache of the NAND flash memory when the type of the read-write instruction is a read message instruction and a preset condition is met; and the preset condition is that when the last operation of the current operation is a read operation and the address corresponding to the read message instruction belong to the same plane set.
6. The data reading and writing device of the solid state disk according to claim 5, wherein the read message optimization module is a module that reads data from the NAND flash memory when the preset condition is not satisfied.
7. The data reading and writing device of the solid state disk according to claim 6, wherein the write message optimization module comprises:
the grouping submodule is used for allocating the data blocks in the solid state disk to each plane group in advance according to a grouping instruction;
the effective plane set selection module is used for selecting an effective plane set from each plane set according to the received available plane instruction;
the judging submodule is used for judging whether the number of the effective addresses contained in the effective plane set is not less than the number of the groups of the data to be written;
the judgment execution module is used for writing a plurality of groups of data to be written of users into the NAND flash memory simultaneously when the number of effective addresses contained in the effective plane set is not less than the number of groups of the data to be written; and when the number of the effective addresses contained in the effective plane set is less than the group number of the data to be written, writing the data to be written of the user in the NAND flash memory in batches according to the number of the effective addresses in the effective plane set and the group number of the data to be written.
8. The data reading and writing device of the solid state disk according to claim 7, further comprising:
and the feedback module is used for feeding back error prompt information when the number of the effective addresses contained in the effective plane set is 0.
9. A data reading and writing device for a solid state disk, comprising a processor, wherein the processor is configured to implement the steps of the data reading and writing method for a solid state disk according to any one of claims 1 to 4 when executing a computer program stored in a memory.
10. A computer-readable storage medium, wherein a data reading and writing program of a solid state disk is stored on the computer-readable storage medium, and when the data reading and writing program of the solid state disk is executed by a processor, the steps of the data reading and writing method of the solid state disk according to any one of claims 1 to 4 are implemented.
CN201810514459.1A 2018-05-25 2018-05-25 Data reading and writing method, device and equipment of solid state disk and storage medium Active CN108733324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810514459.1A CN108733324B (en) 2018-05-25 2018-05-25 Data reading and writing method, device and equipment of solid state disk and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810514459.1A CN108733324B (en) 2018-05-25 2018-05-25 Data reading and writing method, device and equipment of solid state disk and storage medium

Publications (2)

Publication Number Publication Date
CN108733324A CN108733324A (en) 2018-11-02
CN108733324B true CN108733324B (en) 2021-11-09

Family

ID=63935320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810514459.1A Active CN108733324B (en) 2018-05-25 2018-05-25 Data reading and writing method, device and equipment of solid state disk and storage medium

Country Status (1)

Country Link
CN (1) CN108733324B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860190A (en) * 2021-02-25 2021-05-28 西北民族大学 Data reading and writing method based on computer equipment
CN113268204B (en) * 2021-05-26 2022-10-18 绿芯半导体(厦门)有限公司 Method for improving SSD multi-channel concurrent data read-write efficiency
CN113849194B (en) * 2021-08-20 2022-10-14 荣耀终端有限公司 Burning method and terminal equipment
CN114546289B (en) * 2022-02-27 2023-06-02 苏州浪潮智能科技有限公司 Method, system, equipment and medium for reading data
CN114546294B (en) * 2022-04-22 2022-07-22 苏州浪潮智能科技有限公司 Solid state disk reading method, system and related components

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1150492A (en) * 1994-06-02 1997-05-21 英特尔公司 Bit map addressing schemes for flash memory
CN104809075A (en) * 2015-04-20 2015-07-29 电子科技大学 Solid recording device and method for accessing in real time and parallel processing
CN105630707A (en) * 2015-11-16 2016-06-01 上海磁宇信息科技有限公司 Storage device with power-off protection function, power-off protection method and computing system
US9519578B1 (en) * 2013-01-28 2016-12-13 Radian Memory Systems, Inc. Multi-array operation support and related devices, systems and software

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8456905B2 (en) * 2007-12-16 2013-06-04 Apple Inc. Efficient data storage in multi-plane memory devices
US9384839B2 (en) * 2013-03-07 2016-07-05 Sandisk Technologies Llc Write sequence providing write abort protection
US10114562B2 (en) * 2014-09-16 2018-10-30 Sandisk Technologies Llc Adaptive block allocation in nonvolatile memory
US9952784B2 (en) * 2015-03-11 2018-04-24 Sandisk Technologies Llc Multichip dual write

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1150492A (en) * 1994-06-02 1997-05-21 英特尔公司 Bit map addressing schemes for flash memory
US9519578B1 (en) * 2013-01-28 2016-12-13 Radian Memory Systems, Inc. Multi-array operation support and related devices, systems and software
CN104809075A (en) * 2015-04-20 2015-07-29 电子科技大学 Solid recording device and method for accessing in real time and parallel processing
CN105630707A (en) * 2015-11-16 2016-06-01 上海磁宇信息科技有限公司 Storage device with power-off protection function, power-off protection method and computing system

Also Published As

Publication number Publication date
CN108733324A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN108733324B (en) Data reading and writing method, device and equipment of solid state disk and storage medium
US20190332428A1 (en) Task queues
US8843502B2 (en) Sorting a dataset of incrementally received data
US9189389B2 (en) Memory controller and memory system
JP6343438B2 (en) Computer system and data management method for computer system
KR101811297B1 (en) Memory controller controlling a nonvolatile memory
CN105224237A (en) A kind of date storage method and device
CN101419573A (en) Storage management method, system and storage apparatus
US10725902B2 (en) Methods for scheduling read commands and apparatuses using the same
CN105095116A (en) Cache replacing method, cache controller and processor
US20150253992A1 (en) Memory system and control method
CN111324303B (en) SSD garbage recycling method, SSD garbage recycling device, computer equipment and storage medium
CN113625973B (en) Data writing method, device, electronic equipment and computer readable storage medium
CN107122130B (en) Data deduplication method and device
US20200356491A1 (en) Data storage device and method for loading logical-to-physical mapping table thereof
CN101763433B (en) Data storage system and method
US10168951B2 (en) Methods for accessing data in a circular block mode and apparatuses using the same
US20160378375A1 (en) Memory system and method of operating the same
CN112466378A (en) Solid state disk operation error correction method and device and related components
CN104598161A (en) Data reading and writing method and device and data storage structure
US10007601B2 (en) Data storage device and operating method for flash memory
EP4053704B1 (en) Storage controller redirecting write operation and operating method thereof
CN111782153A (en) Method, system, device and medium based on read data
CN114816322B (en) SSD external ordering method, SSD external ordering device and SSD memory
CN110990301A (en) Sequential reading method of multi-plane storage medium and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant