CN108052295B - Data storage method, solid state disk, host and storage system - Google Patents

Data storage method, solid state disk, host and storage system Download PDF

Info

Publication number
CN108052295B
CN108052295B CN201711455700.XA CN201711455700A CN108052295B CN 108052295 B CN108052295 B CN 108052295B CN 201711455700 A CN201711455700 A CN 201711455700A CN 108052295 B CN108052295 B CN 108052295B
Authority
CN
China
Prior art keywords
random access
access memory
dynamic random
host
solid state
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
CN201711455700.XA
Other languages
Chinese (zh)
Other versions
CN108052295A (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.)
Shenzhen Tigo Semiconductor Co ltd
Original Assignee
Shenzhen Tigo Semiconductor 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 Shenzhen Tigo Semiconductor Co ltd filed Critical Shenzhen Tigo Semiconductor Co ltd
Priority to CN201711455700.XA priority Critical patent/CN108052295B/en
Publication of CN108052295A publication Critical patent/CN108052295A/en
Application granted granted Critical
Publication of CN108052295B publication Critical patent/CN108052295B/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/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • 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/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system
    • 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)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The embodiment of the invention discloses a data storage method, a solid state disk, a host and a storage system, wherein the method comprises the following steps: mapping a dynamic random access memory of the solid state disk into a virtual disk in a host; and if the operation on the virtual disk is received, sending an operation instruction to a control unit of the solid state disk so that the control unit correspondingly operates the dynamic random access memory. By mapping the dynamic random access memory in the solid state disk into the virtual disk in the host, temporary data which needs to be frequently updated in the host can be stored in the dynamic random access memory, so that the data reading and writing speed is greatly improved, and the system performance is improved. In addition, the temporary data is frequently stored in the dynamic random access memory without influencing the service life of the solid state disk, so that the service life of the solid state disk can be longer.

Description

Data storage method, solid state disk, host and storage system
Technical Field
The invention relates to the technical field of storage, in particular to a data storage method, a solid state disk, a host and a storage system.
Background
The Solid State Drives (Solid State Drives), referred to as fixed disks for short, are hard disks made of Solid State electronic memory chip arrays, and are composed of a control unit and a memory unit (FLASH chip, DRAM chip). The memory cells typically include flash memory and dynamic random access memory. FLASH memory is also known as FLASH memory, and dynamic Random Access memory is also known as dram (dynamic Random Access memory) memory.
Flash memory is a Non-Volatile (Non-Volatile) memory that can hold data for a long time without current supply, and has storage characteristics equivalent to a hard disk, which is the basis of flash memory that has become a storage medium for various portable digital devices. However, the flash memory has a limited lifetime, and generally, the number of times of erasing and writing is about 3000, and the flash memory has a slow read/write speed.
In the existing storage system, some temporary data which are frequently read and written are usually written into the flash memory, the read-write speed of the flash memory is limited to be slow, the performance of the storage system can be influenced, and meanwhile, the repeated read-write process can reduce the usable times of the flash memory, so that the service life of the solid state disk is influenced.
Disclosure of Invention
The embodiment of the invention provides a data storage method, a solid state disk, a host and a storage system, which are used for improving the performance of the storage system and prolonging the service life of the solid state disk.
In a first aspect, an embodiment of the present invention provides a data storage method, where the method is applied to a host in a storage system, where the storage system further includes a solid state disk, where the solid state disk includes a control unit and a storage unit, and the storage unit includes a flash memory and a dynamic random access memory, and the method includes:
mapping the dynamic random access memory to a virtual disk in the host;
and if the operation on the virtual disk is received, sending an operation instruction to the control unit so that the control unit correspondingly operates the dynamic random access memory.
In a second aspect, an embodiment of the present invention provides a data storage method, where the method is applied to a solid state disk in a storage system, where the storage system further includes a host, the solid state disk includes a control unit and a storage unit, the storage unit includes a flash memory and a dynamic random access memory, and the method includes:
sending the capacity information of the dynamic random access memory to the host, so that the host maps the dynamic random access memory into a virtual disk;
and if an operation instruction sent by the host is received, correspondingly operating the dynamic random access memory, wherein the operation instruction is sent by the host when the host receives the operation on the virtual disk.
In a third aspect, an embodiment of the present invention provides a host, where the host includes a unit configured to perform the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a solid state disk, where the solid state disk includes a unit configured to perform the method of the second aspect.
In a fifth aspect, an embodiment of the present invention provides a storage system, where the storage system includes a host and a solid state disk, the solid state disk includes a control unit and a storage unit, the storage unit includes a flash memory and a dynamic random access memory, where:
the host is used for mapping the dynamic random access memory to a virtual disk in the host and sending an operation instruction to the solid state disk if the operation on the virtual disk is received;
and the control unit is used for correspondingly operating the dynamic random access memory according to the operation instruction when receiving the operation instruction.
By applying the technical scheme of the embodiment of the invention, the dynamic random access memory in the solid state disk is mapped into the virtual disk in the host, so that temporary data which needs to be frequently updated in the host is stored in the dynamic random access memory, the reading and writing speed of the data is greatly improved, and the performance of the system is improved. In addition, because the service life of the dynamic random access memory is irrelevant to the erasing times, the service life of the solid state disk is not influenced by frequently storing the temporary data in the dynamic random access memory, and the service life of the solid state disk is longer.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data storage method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a data storage method according to another embodiment of the present invention;
FIG. 3 is a schematic flow chart of a data storage method according to another embodiment of the present invention;
FIG. 4 is a schematic flow chart of a data storage method according to another embodiment of the present invention;
FIG. 5 is a schematic block diagram of a host according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a building unit of the host of FIG. 1;
FIG. 7 is a schematic block diagram of a first sending unit of the host of FIG. 1;
FIG. 8 is a schematic block diagram of a host according to another embodiment of the present invention;
fig. 9 is a schematic block diagram of a solid state disk according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a control unit of the solid state disk of FIG. 9 according to an embodiment;
FIG. 11 is a schematic block diagram of a first operating unit of the control unit of FIG. 10;
FIG. 12 is another schematic block diagram of a control unit of the solid state disk of FIG. 9;
fig. 13 is a schematic block diagram of a storage system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, wherein like reference numerals represent like elements in the drawings. It is apparent that the embodiments to be described below are only a part of the embodiments of the present invention, and not all of them. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the embodiments of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the invention. As used in the description of embodiments of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Referring to fig. 1, which is a flowchart illustrating a data storage method according to an embodiment of the present invention, it can be seen that the method of the present embodiment is applied to a host in a storage system, where the storage system includes the host and a solid state disk, the solid state disk includes a control unit and a storage unit, and the storage unit includes a flash memory and a dynamic random access memory. The host can be intelligent terminal equipment such as a computer. The dynamic random access memory is a high-performance memory, has fast read-write speed and long service life, can carry out frequent read-write without influencing the service life of the dynamic random access memory, and has the defects that the stored data can be lost after power failure. Specifically, the method includes the following steps S101-S102.
S101, mapping the dynamic random access memory of the solid state disk into a virtual disk in a host.
In a specific implementation, the host first obtains capacity information of the dynamic random access memory, where the capacity information includes information such as a remaining available capacity of the dynamic random access memory and contents stored in an already used capacity. And then, the host virtualizes a virtual disk in the host, and the capacity information of the virtual disk is consistent with the capacity information of the dynamic random access memory. The virtual disk is not a real disk, so that the user's operations on the virtual disk are all correspondingly converted to those on the dynamic random access memory.
S102, if the operation on the virtual disk is received, an operation instruction is sent to a control unit of the solid state disk, so that the control unit correspondingly operates the dynamic random access memory.
In specific implementation, when the host receives an operation on the virtual disk, the host correspondingly converts the operation into an operation instruction on the solid state disk, and sends the operation instruction to the control unit in the solid state disk, and the solid state disk correspondingly operates the dynamic random access memory.
It should be noted that, in order to fully utilize the characteristics of the dynamic random access memory, optionally, the operation in this embodiment mainly refers to a read/write operation on a large amount of temporary data in the host system. Temporary data in a host system needs to be updated frequently, and due to the characteristic of high read-write performance of the dynamic random access memory, the read-write speed can be greatly improved by storing the data in the dynamic random access memory, so that the performance of the system is improved.
By applying the technical scheme of the embodiment, the dynamic random access memory in the solid state disk is mapped to the virtual disk in the host, so that temporary data which needs to be frequently updated in the host is stored in the dynamic random access memory, the data reading and writing speed is greatly improved, and the system performance is improved. In addition, because the service life of the dynamic random access memory is irrelevant to the erasing times, the service life of the solid state disk is not influenced by frequently storing the temporary data in the dynamic random access memory, and the service life of the solid state disk is longer.
Referring to fig. 2, which is a flowchart illustrating a data storage method according to another embodiment of the present invention, it can be seen that the method of the present embodiment is applied to a host in a storage system, where the storage system includes the host and a solid state disk, the solid state disk includes a control unit and a storage unit, and the storage unit includes a flash memory and a dynamic random access memory. The host can be intelligent terminal equipment such as a computer. The dynamic random access memory is a high-performance memory, has fast read-write speed and long service life, can carry out frequent read-write without influencing the service life of the dynamic random access memory, and has the defects that the stored data can be lost after power failure. Specifically, the method includes the following steps S201-S206.
S201, sending a scanning instruction to a control unit of the solid state disk to enable the control unit to scan and acquire the capacity information of the dynamic random access memory.
In specific implementation, the host sends a scan command to the control unit of the solid state disk. When the control unit of the solid state disk receives the scanning instruction, the control unit scans the dynamic random access memory to acquire the capacity information of the dynamic random access memory. The capacity information includes information such as the remaining usable capacity of the dynamic random access memory and the contents stored in the capacity that has been used.
S202, receiving the capacity information of the dynamic random access memory sent by the control unit of the solid state disk.
In a specific implementation, after the control unit of the solid state disk scans and acquires the capacity information of the dynamic random access memory, the acquired capacity information is sent to the host. Accordingly, the host receives the capacity information of the dynamic random access memory sent by the control unit of the solid state disk, and further constructs the virtual disk according to the capacity information.
And S203, correspondingly generating a virtual disk according to the capacity information of the dynamic random access memory.
The address of the virtual disk corresponds to the address of the dynamic random access memory one by one.
In specific implementation, the host virtualizes a virtual disk in the host, and the capacity information of the virtual disk is consistent with the capacity information of the dynamic random access memory. And the addresses in the virtual disk correspond to the addresses in the dynamic random access memory one to one.
Since the virtual disk is not a real disk, the user's operation on the virtual disk is all correspondingly converted into an operation on the dynamic random access memory.
S204, if the operation on the virtual disk is received, the target address of the operation is acquired as a first target address.
In a specific implementation, when receiving an operation on a virtual disk, a host first obtains a target address of the operation, and takes the target address as a first target address. And then the host correspondingly converts the operation into an operation instruction for the solid state disk and sends the operation instruction to the solid state disk. And the target address of the operation instruction is also the first target address.
It should be noted that, in order to fully utilize the characteristics of the dynamic random access memory, optionally, the operation in this embodiment mainly refers to a read/write operation on a large amount of temporary data in the host system. Temporary data in a host system needs to be updated frequently, and due to the characteristic of high read-write performance of the dynamic random access memory, the read-write speed can be greatly improved by storing the data in the dynamic random access memory, so that the performance of the system is improved.
S205, an operation instruction with a target address as a first target address is sent to the control unit of the solid state disk, so that the control unit of the solid state disk correspondingly operates an area corresponding to a second target address in the dynamic random access memory.
The second target address is the address corresponding to the first target address in the dynamic random access memory.
In specific implementation, the host sends an operation instruction with a target address as a first target address to the control unit of the solid state disk. After receiving the operation instruction, a control unit of the solid state disk firstly analyzes and acquires a target address (a first target address) of the operation instruction; then according to the corresponding relation between the virtual disk and the address of the dynamic random access memory, determining the address corresponding to the first target address in the dynamic random access memory as a second target address; and finally, correspondingly operating the area corresponding to the second target address in the dynamic random access memory according to the operation instruction.
It should be noted that, in this embodiment, the corresponding relationship between the virtual disk and the address of the dynamic random access memory is stored in the solid state disk, the target address of the operation instruction sent by the host to the solid state disk is consistent with the target address of the operation received by the virtual disk, the solid state disk determines the address (second target address) corresponding to the first target address in the dynamic random access memory, and further performs corresponding operation on the dynamic random access memory. Or in other embodiments, the corresponding relationship between the virtual disk and the dynamic random access memory address is stored in the host, and at this time, the host directly sends an operation instruction with a target address being the second target address to the solid state disk.
And S206, if the instruction for storing the content of the virtual disk is received, sending a storage instruction to the control unit of the solid state disk so that the solid state disk can transfer the data in the dynamic random access memory to the flash memory.
Since the dram is powered down, the data stored therein is lost. For this reason, in the present embodiment, the user can select whether to save the contents in the dynamic random access memory through the host. Specifically, when the computer is powered off, the host sends query information about whether the content of the virtual disk is to be stored to the user, and determines whether the content of the virtual disk is to be stored according to an option selected by the user.
In a specific implementation, when the host receives a command for storing the content of the virtual disk, the host sends a storage command to the control unit of the solid state disk. When the control unit of the solid state disk receives a storage instruction sent by the host, the control unit transfers the data in the dynamic random access memory to the flash memory, so that the data in the dynamic random access memory is stored.
Referring to fig. 3, which is a flowchart illustrating a data storage method according to another embodiment of the present invention, it can be seen that the method of the present embodiment is applied to a solid state disk in a storage system, where the storage system includes a host and the solid state disk, the solid state disk includes a control unit and a storage unit, and the storage unit includes a flash memory and a dynamic random access memory. The host can be intelligent terminal equipment such as a computer. The dynamic random access memory is a high-performance memory, has fast read-write speed and long service life, can carry out frequent read-write without influencing the service life of the dynamic random access memory, and has the defects that the stored data can be lost after power failure. Specifically, the method includes the following steps S301-S302.
S301; and sending the capacity information of the dynamic random access memory to the host so that the host maps the dynamic random access memory into the virtual disk.
In a specific implementation, when receiving a scan instruction sent by a host, a control unit of the solid state disk scans the dynamic random access memory to obtain capacity information of the dynamic random access memory. And sending the capacity information to the host, and establishing a virtual disk by the host according to the capacity information of the dynamic random access memory.
S302; and if receiving an operation instruction sent by the host, correspondingly operating the dynamic random access memory.
The operation instruction is sent by the host computer when the operation on the virtual disk is received.
In specific implementation, when the host receives an operation on the virtual disk, the host correspondingly converts the operation into an operation instruction on the solid state disk, and sends the operation instruction to the control unit of the solid state disk. When the control unit of the solid state disk receives the operation instruction, the control unit correspondingly operates the dynamic random access memory according to the operation instruction.
Referring to fig. 4, which is a schematic flow chart of a data storage method according to still another embodiment of the present invention, it can be seen that the method of the present embodiment is applied to a solid state disk in a storage system, where the storage system includes a host and the solid state disk, the solid state disk includes a control unit and a storage unit, and the storage unit includes a flash memory and a dynamic random access memory. The host can be intelligent terminal equipment such as a computer. The dynamic random access memory is a high-performance memory, has fast read-write speed and long service life, can carry out frequent read-write without influencing the service life of the dynamic random access memory, and has the defects that the stored data can be lost after power failure. Specifically, the method comprises the following steps S401-S406.
S401; and sending the capacity information of the dynamic random access memory to the host so that the host maps the dynamic random access memory into the virtual disk.
The method of the embodiment is applied to the solid state disk in the storage system, the storage system comprises a host and the solid state disk, the solid state disk comprises a control unit and a storage unit, and the storage unit comprises a flash memory and a dynamic random access memory. The host can be intelligent terminal equipment such as a computer. The dynamic random access memory is a high-performance memory, has fast read-write speed and long service life, can carry out frequent read-write without influencing the service life of the dynamic random access memory, and has the defects that the stored data can be lost after power failure.
In a specific implementation, when receiving a scan instruction sent by a host, a control unit of the solid state disk scans the dynamic random access memory to obtain capacity information of the dynamic random access memory. And sending the capacity information to the host, and establishing a virtual disk by the host according to the capacity information of the dynamic random access memory.
S402; and if receiving an operation instruction sent by the host, acquiring a target address of the operation instruction as a first target address.
The operation instruction is sent by the host computer when the operation on the virtual disk is received.
In specific implementation, the control unit of the solid state disk analyzes an address of an operation instruction sent by the obtaining machine as a first target address.
S403; and determining an address corresponding to the first target address in the dynamic random access memory as a second target address.
The address of the virtual disk corresponds to the address of the dynamic random access memory one by one.
In specific implementation, the control unit of the solid state disk determines an address corresponding to the first target address in the dynamic random access memory as the second target address according to the corresponding relationship between the virtual disk and the address of the dynamic random access memory.
It should be noted that, in this embodiment, the corresponding relationship between the virtual disk and the address of the dynamic random access memory is stored in the solid state disk, the target address of the operation instruction sent by the host to the solid state disk is consistent with the target address of the operation received by the virtual disk, the solid state disk determines the address (second target address) corresponding to the first target address in the dynamic random access memory, and further performs corresponding operation on the dynamic random access memory. Or in other embodiments, the corresponding relationship between the virtual disk and the dynamic random access memory address is stored in the host, and at this time, the host directly sends an operation instruction with a target address being the second target address to the solid state disk.
S404; and correspondingly operating the area corresponding to the second target address in the dynamic random access memory according to the operation instruction.
In specific implementation, the control unit of the solid state disk correspondingly operates the area corresponding to the second target address in the dynamic random access memory according to the operation instruction.
S405; if receiving the storage command sent by the host, the data in the dynamic random access memory is transferred to the flash memory.
The storage command is sent by the host computer when receiving a command for storing the content of the virtual disk.
Since the dram is powered down, the data stored therein is lost. For this reason, in the present embodiment, the user can select whether to save the contents in the dynamic random access memory through the host. Specifically, when the computer is powered off, the host sends query information about whether the content of the virtual disk is to be stored to the user, and determines whether the content of the virtual disk is to be stored according to an option selected by the user.
In a specific implementation, when the host receives a command for storing the content of the virtual disk, the host sends a storage command to the control unit of the solid state disk. When the control unit of the solid state disk receives a storage instruction sent by the host, the control unit transfers the data in the dynamic random access memory to the flash memory, so that the data in the dynamic random access memory is stored.
S406; at startup, the data transferred into the flash memory is read from the flash memory into the corresponding area of the dynamic random access memory.
In a specific implementation, if the host is powered off last time, the host receives an instruction for storing the content of the virtual disk, so that the solid state disk transfers the data in the dynamic random access memory to the flash memory. The solid state disk reads data from the flash memory to the dynamic random access memory at startup. And the read data is the data transferred from the dynamic random access memory to the flash memory when the computer is shut down last time.
Referring to fig. 5, which is a schematic block diagram of a host 30 according to an embodiment of the present invention, it can be seen that the host 30 is applied to a storage system, where the storage system further includes a solid state disk, the solid state disk includes a control unit and a storage unit, and the storage unit includes a flash memory and a dynamic random access memory. The host 30 comprises a construction unit 31 and a first sending unit 32.
A building unit 31, configured to map the dynamic random access memory into a virtual disk in the host 30.
A first sending unit 32, configured to send an operation instruction to the solid state disk if the operation on the virtual disk is received, so that the solid state disk correspondingly operates the dynamic random access memory.
Referring to fig. 6, in some embodiments, for example, in the present embodiment, the constructing unit 31 includes a second sending unit 311, a receiving unit 312, and a generating unit 313.
The second sending unit 311 is configured to send a scan instruction to the solid state disk, so that the solid state disk scans to obtain the capacity information of the dynamic random access memory.
The receiving unit 312 is configured to receive the capacity information of the dynamic random access memory sent by the solid state disk.
The generating unit 313 is configured to generate the virtual disk correspondingly according to the capacity information of the dynamic random access memory. And the address of the virtual disk corresponds to the address of the dynamic random access memory one by one.
Referring to fig. 7, in some embodiments, for example, in this embodiment, the first sending unit 32 includes a first obtaining unit 321 and a third sending unit 322.
A first obtaining unit 321, configured to, if an operation on the virtual disk is received, obtain a target address of the operation as a first target address.
A third sending unit 322, configured to send an operation instruction with a target address being the first target address to the solid state disk, so that the solid state disk correspondingly operates an area corresponding to the second target address in the dynamic random access memory. Wherein the second target address is an address in the dynamic random access memory corresponding to the first target address.
Referring to fig. 8, in some embodiments, such as this embodiment, the host 30 further includes a fourth sending unit 33.
The fourth sending unit 33, if receiving the instruction for storing the content of the virtual disk, sends a storage instruction to the solid state disk, so that the solid state disk transfers the data in the dynamic random access memory to the flash memory.
Referring to fig. 9-10, in the solid state disk 40 according to the embodiment of the present invention, it can be seen that the solid state disk 40 is applied to a storage system, the storage system includes a host and the solid state disk 40, the solid state disk 40 includes a control unit 41 and a storage unit 42, and the storage unit 42 includes a dynamic random access memory 421 and a flash memory 422. The control unit 41 includes a fifth transmitting unit 411 and an operating unit 412.
A fifth transmitting unit 411; the system comprises a host and a dynamic random access memory, wherein the host is used for sending the capacity information of the dynamic random access memory to the host so as to enable the host to map the dynamic random access memory into a virtual disk.
A first operation unit 412; and the dynamic random access memory is used for correspondingly operating the dynamic random access memory if an operating instruction sent by the host is received.
The operation instruction is sent by the host when the host receives the operation on the virtual disk.
Referring to fig. 11, in some embodiments, for example, in the present embodiment, the first operation unit 412 includes a second obtaining unit 4121, a determining unit 4122, and a second operation unit 4123.
A second obtaining unit 4121 is configured to obtain a target address of the operation instruction as the first target address.
A determining unit 4122 for determining an address in the dynamic random access memory corresponding to the first target address as a second target address.
And the address of the virtual disk corresponds to the address of the dynamic random access memory one by one.
The second operation unit 4123 is configured to correspondingly operate a region corresponding to a second target address in the dynamic random access memory according to the operation instruction.
Referring to fig. 12, in some embodiments, for example, in the present embodiment, the control unit further includes a dump unit 413 and a read unit 414
A dump unit 413, configured to dump data in the dram to the flash memory if a storage instruction sent by the host is received.
Wherein the storage command is issued by the host when receiving a command to store the contents of the virtual disk.
A reading unit 414, configured to read the data from the flash memory into a corresponding area of the dynamic random access memory when starting up.
Referring to fig. 13, the present invention provides a storage system, as can be seen from the figure, the storage system includes a host 30 and a solid state disk 40, the solid state disk 40 includes a control unit 41 and a storage unit 42, the storage unit 42 includes a dynamic random access memory 421 and a flash memory 422, wherein:
the host 30 is configured to map the dynamic random access memory 41 as a virtual disk in the host 30, and send an operation instruction to the solid state disk 40 if an operation on the virtual disk is received;
the control unit 41 is configured to, when receiving the operation instruction, correspondingly operate the dynamic random access memory 421 according to the operation instruction.
Further, the host 30 is specifically configured to send a scan instruction to the control unit 41; receiving the capacity information of the dram 421 sent by the control unit 41; and correspondingly generating the virtual disk according to the capacity information of the dynamic random access memory 421, wherein the address of the virtual disk corresponds to the address of the dynamic random access memory 421 one by one.
The control unit 41 is configured to, upon receiving the scan instruction, scan and acquire the capacity information of the dynamic random access memory 421; and transmits the capacity information of the dynamic random access memory 421 to the host 30.
Further, the host 30 is specifically configured to, if an operation on the virtual disk is received, obtain a target address of the operation as a first target address; and sending an operation instruction with a target address being the first target address to the solid state disk 40.
The control unit 41 is configured to, when receiving an operation instruction that the target address is the first target address, correspondingly operate an area corresponding to the second target address in the dynamic random access memory 421, where the second target address is an address corresponding to the first target address in the dynamic random access memory 421.
Further, the host 30 is further configured to send a storage instruction to the control unit 41 if receiving an instruction to store the contents of the virtual disk.
The control unit 41 is configured to, upon receiving the storage instruction, transfer the data in the dynamic random access memory 421 to the flash memory 422.
Further, the control unit 41 is configured to read the data from the flash memory 422 to a corresponding area of the dynamic random access memory 421 when the solid state disk 40 is started.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the 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.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the host and the solid state disk described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, while the invention has been described with respect to the above-described embodiments, it will be understood that the invention is not limited thereto but may be embodied with various modifications and changes.
While the invention has been described with reference to specific embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A data storage method is applied to a host in a storage system, the storage system further comprises a solid state disk, the solid state disk comprises a control unit and a storage unit, the storage unit comprises a flash memory and a dynamic random access memory, and the method comprises the following steps:
mapping the dynamic random access memory to a virtual disk in the host;
if receiving the operation on the virtual disk, sending an operation instruction to the control unit so that the control unit correspondingly operates the dynamic random access memory;
wherein the mapping the dynamic random access memory to a virtual disk in the host comprises:
sending a scanning instruction to the control unit to enable the control unit to scan and acquire the capacity information of the dynamic random access memory;
receiving capacity information of the dynamic random access memory sent by the control unit;
correspondingly generating the virtual disk according to the capacity information of the dynamic random access memory, wherein the address of the virtual disk corresponds to the address of the dynamic random access memory one by one;
if receiving the operation on the virtual disk, sending an operation instruction to the control unit to enable the control unit to correspondingly operate the dynamic random access memory, including:
if receiving the operation on the virtual disk, acquiring a target address of the operation as a first target address;
and sending an operation instruction with a target address being the first target address to the control unit so that the control unit correspondingly operates an area corresponding to a second target address in the dynamic random access memory, wherein the second target address is an address corresponding to the first target address in the dynamic random access memory.
2. The method of claim 1, further comprising:
and if an instruction for storing the content of the virtual disk is received, sending a storage instruction to the control unit so that the control unit can transfer the data in the dynamic random access memory to the flash memory.
3. A data storage method is applied to a solid state disk in a storage system, the storage system further comprises a host, the solid state disk comprises a control unit and a storage unit, the storage unit comprises a flash memory and a dynamic random access memory, and the method comprises the following steps:
sending the capacity information of the dynamic random access memory to the host, so that the host maps the dynamic random access memory into a virtual disk;
if an operation instruction sent by the host is received, correspondingly operating the dynamic random access memory, wherein the operation instruction is sent when the host receives the operation on the virtual disk;
wherein the host mapping the dynamic random access memory to a virtual disk comprises:
the host receives the capacity information of the dynamic random access memory sent by the control unit and correspondingly generates the virtual disk according to the capacity information of the dynamic random access memory, and the address of the virtual disk corresponds to the address of the dynamic random access memory one by one;
the corresponding operation of the dynamic random access memory comprises:
acquiring a target address of the operation instruction as a first target address;
determining an address corresponding to the first target address in the dynamic random access memory as a second target address, wherein the addresses of the virtual disk correspond to the addresses of the dynamic random access memory one to one;
and correspondingly operating the area corresponding to the second target address in the dynamic random access memory according to the operation instruction.
4. The method of claim 3, further comprising:
if a storage instruction sent by the host is received, transferring the data in the dynamic random access memory to the flash memory, wherein the storage instruction is sent by the host when the host receives an instruction for storing the content of the virtual disk;
and reading the data from the flash memory into a corresponding area of the dynamic random access memory at the time of starting.
5. A host, characterized by comprising means for performing the method of any one of claims 1-2.
6. A solid state disk comprising means for performing the method of any of claims 3-4.
7. A storage system comprising the host computer according to claim 5 and the solid state disk according to claim 6.
CN201711455700.XA 2017-12-28 2017-12-28 Data storage method, solid state disk, host and storage system Active CN108052295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711455700.XA CN108052295B (en) 2017-12-28 2017-12-28 Data storage method, solid state disk, host and storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711455700.XA CN108052295B (en) 2017-12-28 2017-12-28 Data storage method, solid state disk, host and storage system

Publications (2)

Publication Number Publication Date
CN108052295A CN108052295A (en) 2018-05-18
CN108052295B true CN108052295B (en) 2020-11-10

Family

ID=62128798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711455700.XA Active CN108052295B (en) 2017-12-28 2017-12-28 Data storage method, solid state disk, host and storage system

Country Status (1)

Country Link
CN (1) CN108052295B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506851A (en) * 2002-12-12 2004-06-23 �Ҵ���˾ Data processing system capable of processing program utilizing virtual memory
CN102117183A (en) * 2010-01-04 2011-07-06 翔晖科技股份有限公司 Computer device and method for using solid state disk in computer device
CN103488578A (en) * 2012-12-28 2014-01-01 晶天电子(深圳)有限公司 Vmd application/driver

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI564792B (en) * 2014-06-24 2017-01-01 宇瞻科技股份有限公司 Storage device and address-corresponding method thereof
EP3260985B1 (en) * 2014-06-27 2019-02-27 Huawei Technologies Co., Ltd. Controller, flash memory apparatus, and method for writing data into flash memory apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506851A (en) * 2002-12-12 2004-06-23 �Ҵ���˾ Data processing system capable of processing program utilizing virtual memory
CN102117183A (en) * 2010-01-04 2011-07-06 翔晖科技股份有限公司 Computer device and method for using solid state disk in computer device
CN103488578A (en) * 2012-12-28 2014-01-01 晶天电子(深圳)有限公司 Vmd application/driver

Also Published As

Publication number Publication date
CN108052295A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
US11880602B2 (en) Data writing method and storage device
US8135903B1 (en) Non-volatile semiconductor memory compressing data to improve performance
US8117374B2 (en) Flash memory control devices that support multiple memory mapping schemes and methods of operating same
US8380919B2 (en) Flash storage device, data storage system, and data writing method
US7962685B2 (en) Portable data storage device incorporating multiple flash memory units
CN102375788B (en) Method and device for dynamic allocation of power budget for a system having non-volatile memory
KR100816761B1 (en) Memory card system including nand flash memory and sram/nor flash memory and data storage method thereof
EP2631916A1 (en) Data deletion method and device
US10120795B2 (en) Wear-leveling nandflash memory reading/writing method
US8661186B2 (en) Nonvolatile memory device, access device, and nonvolatile memory system
US20140136767A1 (en) Memory system having memory controller with cache memory and nvram and method of operating same
US8127072B2 (en) Data storage device and method for accessing flash memory
US10073771B2 (en) Data storage method and system thereof
US10585589B2 (en) Data collation method, storage device, storage controller, and storage array
JP2005258804A (en) Memory card apparatus and memory card control method
EP3142014B1 (en) Method, device and user equipment for reading/writing data in nand flash
KR20190120573A (en) Memory system, data processing system and operating method of the memory system
US20050169058A1 (en) Data management apparatus and method used for flash memory
TW201126338A (en) Flash memory device and data access method for flash memories
KR20140073955A (en) Memory system and method for operating the same
US11249917B2 (en) Data storage device and operating method thereof
CN108052295B (en) Data storage method, solid state disk, host and storage system
JP2009116465A (en) Storage device and memory control method
KR20080033649A (en) Flash memory system and managing method for the system capable of merging data less frequently
JP2008262565A (en) Data writing/reading system, memory device, method, and computer-readable medium

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