CN108052295A - A kind of date storage method, solid state disk, host and stocking system - Google Patents

A kind of date storage method, solid state disk, host and stocking system Download PDF

Info

Publication number
CN108052295A
CN108052295A CN201711455700.XA CN201711455700A CN108052295A CN 108052295 A CN108052295 A CN 108052295A CN 201711455700 A CN201711455700 A CN 201711455700A CN 108052295 A CN108052295 A CN 108052295A
Authority
CN
China
Prior art keywords
access memory
random access
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.)
Granted
Application number
CN201711455700.XA
Other languages
Chinese (zh)
Other versions
CN108052295B (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

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)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The embodiment of the invention discloses a kind of date storage method, solid state disk, host and stocking system, wherein method includes:The virtual disk dynamic random access memory of solid state disk being mapped as in host;If receiving the operation to virtual disk, operational order is sent to the control unit of solid state disk, so that control unit respective operations dynamic random access memory.Pass through the virtual disk dynamic random access memory in solid state disk being mapped as in host, it can be achieved the ephemeral data for needing frequent updating in host being stored in dynamic random access memory, so as to greatly improve the read or write speed of data, the performance of system is improved.Also, ephemeral data is frequently stored in dynamic random access memory and the service life of solid state disk can't be had an impact, so as to may be such that the service life of solid state disk is longer.

Description

A kind of date storage method, solid state disk, host and stocking system
Technical field
The present invention relates to storing technology field more particularly to a kind of date storage method, solid state disk, host and storage systems System.
Background technology
Solid state disk (Solid State Drives) referred to as consolidates disk, solid state disk solid-state electronic storage chip array And manufactured hard disk, it is made of control unit and storage unit (FLASH chip, dram chip).Its storage unit generally comprises Flash memories and dynamic random access memory.Flash memories also known as FLASH memory, dynamic random access memory Also known as DRAM (Dynamic Random Access Memory) memory.
Flash memories are a kind of non-volatile (Non-Volatile) memories, also can under conditions of the supply of no electric current Enough muchly to keep data, storage characteristics is equivalent to hard disk, this characteristic is exactly that flash memory is able to become all kinds of pockets number The basis of the storage medium of equipment.However, the service life of flash memories is limited, its general erasable number is commonly 3000 times or so, and the read or write speed of flash memories is slower.
In current stocking system, it will usually which the ephemeral data for frequently reading and writing some is written in flash memories, limit It is slower in the read or write speed of flash memories, it will to influence the performance of stocking system, while the read-write process repeated will drop The usable number of low flash memories, and then influence the service life of solid state disk.
The content of the invention
The embodiment of the present invention provides a kind of date storage method, solid state disk, host and stocking system, to promote storage The performance of system and the service life for improving solid state disk.
In a first aspect, the embodiment of the present invention provides a kind of date storage method, the method is applied in stocking system Host, the stocking system further include solid state disk, and the solid state disk includes control unit and storage unit, and the storage is single Member includes flash memories and dynamic random access memory, the described method includes:
The dynamic random access memory is mapped as the virtual disk in the host;
If receiving the operation to the virtual disk, operational order is sent to described control unit, so that the control Dynamic random access memory described in unit respective operations.
Second aspect, the embodiment of the present invention provide a kind of date storage method, and the method is applied in stocking system Solid state disk, the stocking system further include host, and the solid state disk includes control unit and storage unit, and the storage is single Member includes flash memories and dynamic random access memory, the described method includes:
The capacity information of the dynamic random access memory is sent to the host, so that the host will be described dynamic State random access memory is mapped as virtual disk;
If the operational order that the host is sent is received, dynamic random access memory described in respective operations, wherein institute It is that the host is sent when receiving the operation to the virtual disk to state operational order.
The third aspect, the embodiment of the present invention provide a kind of host, which includes performing the side of above-mentioned first aspect The unit of method.
Fourth aspect, the embodiment of the present invention provide a kind of solid state disk, which includes performing above-mentioned second The unit of the method for aspect.
5th aspect, the embodiment of the present invention provide a kind of stocking system, and the stocking system includes host and solid-state is hard Disk, the solid state disk include control unit and storage unit, and the storage unit includes flash memories and dynamic random Memory is accessed, wherein:
The host is used for the virtual disk being mapped as the dynamic random access memory in the host, Yi Jiruo When receiving the operation to the virtual disk, operational order is sent to the solid state disk;
Described control unit is used for when receiving the operational order, is moved according to the operational order respective operations State random access memory.
By the technical solution of the application embodiment of the present invention, the dynamic random access memory in solid state disk is mapped as Virtual disk in host realizes the ephemeral data that frequent updating is needed in host being stored in dynamic random access memory In, so as to greatly improve the read or write speed of data, improve the performance of system.Also, due to dynamic random access memory Service life it is unrelated with its erasable number, therefore, ephemeral data is frequently stored in dynamic random access memory can't The service life of solid state disk is had an impact, so as to may be such that the service life of solid state disk is longer.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, general for this field For logical technical staff, without creative efforts, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is a kind of schematic flow diagram of date storage method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram for date storage method that another embodiment of the present invention provides;
Fig. 3 is a kind of schematic flow diagram for date storage method that another embodiment of the present invention provides;
Fig. 4 is a kind of schematic flow diagram for date storage method that another embodiment of the present invention provides;
Fig. 5 is a kind of schematic block diagram of host provided in an embodiment of the present invention;
Fig. 6 is the schematic block diagram of the construction unit of host in Fig. 1;
Fig. 7 is the schematic block diagram of the first transmitting element of host in Fig. 1;
Fig. 8 is a kind of schematic block diagram for host that another embodiment of the present invention provides;
Fig. 9 is a kind of schematic block diagram of solid state disk provided in an embodiment of the present invention;
Figure 10 is the schematic block diagram of the control unit of solid state disk in Fig. 9 in an embodiment;
Figure 11 is the schematic block diagram of the first operating unit of control unit in Figure 10;
Figure 12 is another schematic block diagram of the control unit of solid state disk in Fig. 9;
Figure 13 is a kind of schematic block diagram of stocking system provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in embodiment is clearly and completely retouched It states, similar reference numerals represent similar component in attached drawing.Obviously, will be described below embodiment is only the present invention one Divide embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making All other embodiments obtained under the premise of creative work, belong to the scope of protection of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that in this embodiment of the present invention term used in the description merely for the sake of description particular implementation Example purpose and be not intended to limit the embodiment of the present invention.Such as the institute in specification and appended book of the embodiment of the present invention As use, other situations unless the context is clearly specified, otherwise " one " of singulative, "one" and "the" are intended to wrap Include plural form.
Referring to Fig. 1, for a kind of flow diagram for date storage method that the embodiment of the present invention proposes, as seen from the figure, The method of the present embodiment is applied to the host in stocking system, and stocking system includes host and solid state disk, solid state disk bag Control unit and storage unit are included, storage unit includes flash memories and dynamic random access memory.Host can be meter The intelligent terminals such as calculation machine.Dynamic random access memory is a kind of high performance memory, and read or write speed quickly, and makes It is very long with the service life, the service life frequently read and write without influencing itself can be carried out, only drawback is that after a power failure, The data of storage can lose.Specifically, this method comprises the following steps S101-S102.
S101, the virtual disk dynamic random access memory of solid state disk being mapped as in host.
In specific implementation, host obtains the capacity information of dynamic random access memory first, and capacity information includes dynamic The residue of random access memory capacity can be used and the capacity that has used in the information such as the content that stores.Afterwards, host A virtual disk, the capacity information of the virtual disk and the capacity information of dynamic random access memory are fictionalized in therein Unanimously.The virtual disk is not the disk of necessary being, and therefore, user is all accordingly converted to for the operation of the virtual disk To dynamic random access memory.
S102 if receiving the operation to virtual disk, sends operational order, so that control to the control unit of solid state disk Unit respective operations dynamic random access memory processed.
In specific implementation, for host when receiving the operation to virtual disk, which is to solid by host The operational order of state hard disk, and the operational order is sent to the control unit in solid state disk, by solid state disk Lai corresponding Ground operates dynamic random access memory.
It should be noted that the characteristics of in order to sufficiently utilize dynamic random access memory, optionally, in the present embodiment Operation be primarily referred to as read-write operation for a large amount of ephemeral datas in host computer system.Ephemeral data in host computer system needs frequency Numerous is updated, due to dynamic random access memory readwrite performance it is high the characteristics of, by storing that data in Dynamic random access memory can greatly improve read or write speed, and then improve the performance of system.
By the technical solution of application the present embodiment, the dynamic random access memory in solid state disk is mapped as host In virtual disk, realize and the ephemeral data that frequent updating is needed in host be stored in dynamic random access memory, So as to greatly improve the read or write speed of data, the performance of system is improved.Also, due to the longevity of dynamic random access memory Life is unrelated with its erasable number, and therefore, ephemeral data is frequently stored in dynamic random access memory can't be to solid The service life of state hard disk has an impact, so as to may be such that the service life of solid state disk is longer.
It, can by figure for a kind of flow diagram for date storage method that another embodiment of the present invention proposes referring to Fig. 2 Know, the method for the present embodiment is applied to the host in stocking system, and stocking system includes host and solid state disk, solid state disk Including control unit and storage unit, storage unit includes flash memories and dynamic random access memory.Host can be The intelligent terminals such as computer.Dynamic random access memory is a kind of high performance memory, read or write speed quickly, and Service life is very long, can carry out the service life frequently read and write without influencing itself, only drawback is that after a power failure, Its data stored can lose.Specifically, this method comprises the following steps S201-S206.
S201 sends scan instruction to the control unit of solid state disk, is deposited so that control unit scanning obtains dynamic random The capacity information of access to memory.
In specific implementation, host sends scan instruction to the control unit of solid state disk.The control unit of solid state disk exists When receiving scan instruction, dynamic random access memory will be scanned, to obtain the appearance of dynamic random access memory Measure information.The residue of capacity information including dynamic random access memory capacity can be used and the capacity that has used in store The information such as content.
S202 receives the capacity information of the dynamic random access memory of the control unit transmission of solid state disk.
In specific implementation, the control unit of solid state disk is obtaining the capacity information of dynamic random access memory in scanning Afterwards, the capacity information got is sent to host.Correspondingly, host receives the dynamic that the control unit of solid state disk is sent The capacity information of random access memory, and virtual disk is further built according to the capacity information.
S203 corresponds to generation virtual disk according to the capacity information of dynamic random access memory.
Wherein, the address of virtual disk and the address of dynamic random access memory correspond.
In specific implementation, host fictionalizes a virtual disk, capacity information and the dynamic of the virtual disk in therein The capacity information of random access memory is consistent.And the ground in the address and dynamic random access memory in the virtual disk Location corresponds.
Since the virtual disk is not the disk of necessary being, user is for the operation whole phase of the virtual disk The operation to dynamic random access memory should be converted to.
If S204 receive the operation to virtual disk, obtains the destination address of the operation as first object address.
In specific implementation, host obtains the destination address of the operation first when receiving the operation to virtual disk, and And as first object address.Aft engine the operation is accordingly converted into operational order to solid state disk, and send To solid state disk.And the destination address of the operational order is similarly first object address.
It should be noted that the characteristics of in order to sufficiently utilize dynamic random access memory, optionally, in the present embodiment Operation be primarily referred to as read-write operation for a large amount of ephemeral datas in host computer system.Ephemeral data in host computer system needs frequency Numerous is updated, due to dynamic random access memory readwrite performance it is high the characteristics of, by storing that data in Dynamic random access memory can greatly improve read or write speed, and then improve the performance of system.
S205 sends the operational order that destination address is first object address, so that solid to the control unit of solid state disk The region of corresponding second destination address in the control unit respective operations dynamic random access memory of state hard disk.
Wherein, the second destination address in dynamic random access memory with the corresponding address in first object address.
In specific implementation, host sends destination address to the control unit of solid state disk and refers to for the operation of first object address Order.For the control unit of solid state disk after the operational order is received, parsing first obtains the destination address (the of the operational order One destination address);Then according to virtual disk and the correspondence of dynamic random access memory address, determine that dynamic random is deposited With the corresponding address in first object address as the second destination address in access to memory;Finally according to operational order respective operations The region of corresponding second destination address in dynamic random access memory.
It should be noted that in the present embodiment, virtual disk and the correspondence of dynamic random access memory address It is stored in solid state disk, the operation that destination address and the virtual disk of the operational order that host is sent to solid state disk receive Destination address it is consistent, by solid state disk determine in dynamic random access memory with the corresponding address in first object address (the second destination address), and further dynamic random access memory is operated accordingly.Or in other embodiments, Virtual disk and the correspondence of dynamic random access memory address are stored in host, and host is directly to solid state disk at this time Send the operational order that destination address is the second destination address.
S206 if receiving the instruction of the content of storage virtual disk, sends storage to the control unit of solid state disk and refers to Order so that solid state disk by the data conversion storage in dynamic random access memory into flash memories.
Due to dynamic random access memory after a power failure, the data of storage can lose in.For this purpose, in the present embodiment In, whether user can preserve the content in dynamic random access memory by Selection of chiller.Specifically, in shutdown, host The inquiry message for the content that whether store virtual disk is sent to user, and determines whether to store up according to the option that user selects Deposit the content of virtual disk.
In specific implementation, when host is in the instruction for the content for receiving storage virtual disk, control of the host to solid state disk Unit processed sends storage instruction.The control unit of solid state disk is when receiving the storage instruction of host transmission, it will will dynamic Data conversion storage in random access memory is into flash memories, so that the data in dynamic random access memory obtain To preserve.
It, can by figure for a kind of flow diagram for date storage method that further embodiment of this invention proposes referring to Fig. 3 Know, the method for the present embodiment is applied to the solid state disk in stocking system, and stocking system includes host and solid state disk, solid-state Hard disk includes control unit and storage unit, and storage unit includes flash memories and dynamic random access memory.Host Can be the intelligent terminals such as computer.Dynamic random access memory is a kind of high performance memory, and read or write speed is very Soon, and service life is very long, the service life frequently read and write without influencing itself can be carried out, only drawback is that falling After electricity, the data of storage can lose.Specifically, this method comprises the following steps S301-S302.
S301;The capacity information of dynamic random access memory is sent to host, so that host is by dynamic randon access Memory is mapped as virtual disk.
In specific implementation, the control unit of solid state disk when receiving the scan instruction of host transmission, will to dynamic with Machine access memory is scanned, to obtain the capacity information of dynamic random access memory.And the capacity information is sent to Host establishes a virtual disk by host according to the capacity information of dynamic random access memory.
S302;If receive the operational order of host transmission, respective operations dynamic random access memory.
Wherein, operational order is that host is sent when receiving the operation to virtual disk.
In specific implementation, for host when receiving the operation to virtual disk, which is to solid by host The operational order of state hard disk, and the operational order is sent to the control unit of solid state disk.The control unit of solid state disk When receiving the operational order, will dynamic random access memory accordingly be operated according to the operational order.
It, can by figure for a kind of flow diagram for date storage method that yet another embodiment of the invention proposes referring to Fig. 4 Know, the method for the present embodiment is applied to the solid state disk in stocking system, and stocking system includes host and solid state disk, solid-state Hard disk includes control unit and storage unit, and storage unit includes flash memories and dynamic random access memory.Host Can be the intelligent terminals such as computer.Dynamic random access memory is a kind of high performance memory, and read or write speed is very Soon, and service life is very long, the service life frequently read and write without influencing itself can be carried out, only drawback is that falling After electricity, the data of storage can lose.Specifically, this method comprises the following steps S401-S406.
S401;The capacity information of dynamic random access memory is sent to host, so that host is by dynamic randon access Memory is mapped as virtual disk.
The method of the present embodiment is applied to the solid state disk in stocking system, and stocking system includes host and solid-state is hard Disk, solid state disk include control unit and storage unit, and storage unit includes flash memories and dynamic random access memory Device.Host can be the intelligent terminals such as computer.Dynamic random access memory is a kind of high performance memory, read-write Quickly, and service life is very long for speed, can carry out the service life frequently read and write without influencing itself, blemish in an otherwise perfect thing It is that after a power failure, the data of storage can lose.
In specific implementation, the control unit of solid state disk when receiving the scan instruction of host transmission, will to dynamic with Machine access memory is scanned, to obtain the capacity information of dynamic random access memory.And the capacity information is sent to Host establishes a virtual disk by host according to the capacity information of dynamic random access memory.
S402;If receiving the operational order of host transmission, obtain the destination address of operational order as first object Location.
Wherein, operational order is that host is sent when receiving the operation to virtual disk.
In specific implementation, the address of the operational order of the control unit parsing acquisition machine transmission of solid state disk is as the first mesh Mark address.
S403;It determines in dynamic random access memory with the corresponding address in first object address as the second target Location.
Wherein the address of virtual disk and the address of dynamic random access memory correspond.
In specific implementation, the control unit of solid state disk is according to virtual disk and pair of dynamic random access memory address It should be related to, determine in dynamic random access memory with the corresponding address in first object address as the second destination address.
It should be noted that in the present embodiment, virtual disk and the correspondence of dynamic random access memory address It is stored in solid state disk, the operation that destination address and the virtual disk of the operational order that host is sent to solid state disk receive Destination address it is consistent, by solid state disk determine in dynamic random access memory with the corresponding address in first object address (the second destination address), and further dynamic random access memory is operated accordingly.Or in other embodiments, Virtual disk and the correspondence of dynamic random access memory address are stored in host, and host is directly to solid state disk at this time Send the operational order that destination address is the second destination address.
S404;According to the region of corresponding second destination address in operational order respective operations dynamic random access memory.
In specific implementation, the control unit of solid state disk is according in operational order respective operations dynamic random access memory The region of corresponding second destination address.
S405;If receiving the storage instruction of host transmission, by the data conversion storage in dynamic random access memory to sudden strain of a muscle It deposits in memory.
Wherein, storage instruction is that host is sent when receiving the instruction of content of storage virtual disk.
Due to dynamic random access memory after a power failure, the data of storage can lose in.For this purpose, in the present embodiment In, whether user can preserve the content in dynamic random access memory by Selection of chiller.Specifically, in shutdown, host The inquiry message for the content that whether store virtual disk is sent to user, and determines whether to store up according to the option that user selects Deposit the content of virtual disk.
In specific implementation, when host is in the instruction for the content for receiving storage virtual disk, control of the host to solid state disk Unit processed sends storage instruction.The control unit of solid state disk is when receiving the storage instruction of host transmission, it will will dynamic Data conversion storage in random access memory is into flash memories, so that the data in dynamic random access memory obtain To preserve.
S406;On startup, the data dumped in flash memories are read dynamic random from flash memories to deposit In the corresponding region of access to memory.
In specific implementation, if when shutting down last time, the instruction that host receives the content of storage virtual disk causes solid-state Hard disk is by the data conversion storage in dynamic random access memory into flash memories.So solid state disk is on startup, it will Data are read into dynamic random access memory from flash memories.And read data for last time shut down when from dynamic with Machine access memory dumps to the data in flash memories.
It is a kind of schematic block diagram of host 30 provided in an embodiment of the present invention, as seen from the figure, the host referring to Fig. 5 30 are applied in stocking system, and the stocking system further includes solid state disk, and solid state disk includes control unit and storage unit, Storage unit includes flash memories and dynamic random access memory.The host 30 includes construction unit 31 and first Transmitting element 32.
Construction unit 31, for the dynamic random access memory to be mapped as to the virtual disk in the host 30.
First transmitting element 32, if during for receiving the operation to the virtual disk, being sent to the solid state disk Operational order, so that dynamic random access memory described in the solid state disk respective operations.
Referring to Fig. 6, in some embodiments, such as the present embodiment, the construction unit 31 includes the first transmitting element 311st, receiving unit 312 and generation unit 313.
Second transmitting element 311, for sending scan instruction to the solid state disk, so that solid state disk scanning obtains Take the capacity information of the dynamic random access memory.
Receiving unit 312, for receiving the capacity for the dynamic random access memory that the solid state disk is sent letter Breath.
Generation unit 313, it is described virtual for corresponding to generation according to the capacity information of the dynamic random access memory Disk.Wherein, the address of the virtual disk and the address of the dynamic random access memory correspond.
Referring to Fig. 7, in some embodiments, such as the present embodiment, first transmitting element 32 includes first and obtains list 321 and the 3rd transmitting element 322 of member.
First acquisition unit 321, if during for receiving the operation to the virtual disk, obtaining the target of the operation Address is as first object address.
3rd transmitting element 322, for the solid state disk send destination address be and the first object address Operational order, so as to correspond to second destination address in dynamic random access memory described in the solid state disk respective operations Region.Wherein, second destination address is opposite with the first object address in the dynamic random access memory The address answered.
Referring to Fig. 8, in some embodiments, such as the present embodiment, the host 30 further includes the 4th transmitting element 34.
4th transmitting element 33 if receiving the instruction for the content for storing the virtual disk, is sent out to the solid state disk Storage is sent to instruct, so that the solid state disk is by the data conversion storage in the dynamic random access memory to the flash memory storage In device.
Referring to a kind of Fig. 9-10 solid state disks 40 provided in an embodiment of the present invention, as seen from the figure, solid state disk 40 is applied to In stocking system, stocking system includes host 30 and solid state disk 40, and solid state disk 40 includes control unit 41 and storage is single Member 42, storage unit 42 include dynamic random access memory 421 and flash memories 422.Described control unit 41 includes 5th transmitting element 411 and operating unit 412.
5th transmitting element 411;For the capacity information of the dynamic random access memory to be sent to the host, So that the dynamic random access memory is mapped as virtual disk by the host.
First operating unit 412;If for receiving the operational order that the host is sent, dynamic described in respective operations with Machine accesses memory.
Wherein, the operational order is that the host is sent when receiving the operation to the virtual disk.
Referring to Figure 11, in some embodiments, such as the present embodiment, first operating unit 412 includes second and obtains Unit 4121,4122 and second operating unit 4123 of determination unit.
Second acquisition unit 4121, for obtaining the destination address of the operational order as first object address.
Determination unit 4122, it is corresponding with the first object address in the dynamic random access memory for determining Address as the second destination address.
Wherein, the address of the virtual disk and the address of the dynamic random access memory correspond.
Second operating unit 4123, in the dynamic random access memory according to the operational order respective operations The region of corresponding second destination address.
Referring to Figure 12, in some embodiments, such as the present embodiment, described control unit further include unloading unit 413 with And reading unit 414
Unloading unit 413, if for receiving the storage instruction that the host is sent, by the dynamic random access memory Data conversion storage in device is into the flash memories.
Wherein, the storage instruction is that the host is sent when receiving the instruction for the content for storing the virtual disk 's.
Reading unit 414, on startup, the data being read the dynamic random from the flash memories In the corresponding region for accessing memory.
Referring to Figure 13, the present invention proposes a kind of stocking system, and as seen from the figure, which includes host 30 and solid-state Hard disk 40, solid state disk 40 include control unit 41 and storage unit 42, and storage unit 42 includes dynamic random access memory 421 and flash memories 422, wherein:
The host 30 is used for the virtual disk being mapped as the dynamic random access memory 41 in the host 30, And if when receiving the operation to the virtual disk, operational order is sent to the solid state disk 40;
Described control unit 41 is used for when receiving the operational order, according to the operational order respective operations Dynamic random access memory 421.
Further, the host 30 is specifically used for sending scan instruction to described control unit 41;Receive the control The capacity information for the dynamic random access memory 421 that unit 41 is sent;And according to the dynamic random access memory The capacity information of device 421, which corresponds to, generates the virtual disk, wherein, the address of the virtual disk and the dynamic randon access The address of memory 421 corresponds.
Described control unit 41 is used for when receiving the scan instruction, and scanning obtains the dynamic random access memory The capacity information of device 421;And the capacity information of the dynamic random access memory 421 is sent to the host 30.
Further, if the host 30 is specifically used for receiving the operation to the virtual disk, the behaviour is obtained The destination address of work is as first object address;Sending destination address to the solid state disk 40 is and the first object address Operational order.
Described control unit 41 is used to receive the destination address as the operational order with the first object address When, the region of second destination address is corresponded in dynamic random access memory 421 described in respective operations, wherein, described Two destination addresses be the dynamic random access memory 421 in the corresponding address in first object address.
Further, if the host 30 is additionally operable to receive the instruction for the content for storing the virtual disk, to described Control unit 41 sends storage instruction.
Described control unit 41 is used for when receiving the storage instruction, by the dynamic random access memory 421 In data conversion storage into the flash memories 422.
Further, described control unit 41 is used for when the solid state disk 40 starts, by the data from the sudden strain of a muscle It deposits in the corresponding region that memory 422 reads the dynamic random access memory 421.
In the above-described embodiments, all emphasize particularly on different fields to the description of each embodiment, be not described in some embodiment Part, may refer to the associated description of other embodiment.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein Member and algorithm steps can be realized with the combination of electronic hardware, computer software or the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the master of foregoing description The specific work process of machine and solid state disk may be referred to the corresponding process in preceding method embodiment, and details are not described herein.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, even these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.
The above is the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any ripe It knows those skilled in the art in the technical scope disclosed by the present invention, various equivalent modifications can be readily occurred in or replaces It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (10)

1. a kind of date storage method, which is characterized in that applied to the host in stocking system, the stocking system further includes solid State hard disk, the solid state disk include control unit and storage unit, and the storage unit includes flash memories and dynamic Random access memory, the described method includes:
The dynamic random access memory is mapped as the virtual disk in the host;
If receiving the operation to the virtual disk, operational order is sent to described control unit, so that described control unit Dynamic random access memory described in respective operations.
2. according to the method described in claim 1, it is characterized in that, described be mapped as institute by the dynamic random access memory The virtual disk in host is stated, including:
Scan instruction is sent to described control unit, so that described control unit scanning obtains the dynamic random access memory Capacity information;
Receive the capacity information for the dynamic random access memory that described control unit is sent;
It is corresponded to according to the capacity information of the dynamic random access memory and generates the virtual disk, wherein, the virtual magnetic The address of disk and the address of the dynamic random access memory correspond.
If 3. according to the method described in claim 2, it is characterized in that, the operation received to the virtual disk, to Described control unit sends operational order, so that dynamic random access memory described in described control unit respective operations, including:
If receiving the operation to the virtual disk, the destination address of the operation is obtained as first object address;
The operational order that destination address is the first object address is sent to described control unit, so that described control unit pair The region of corresponding second destination address in the dynamic random access memory should be operated, wherein, second destination address is In the dynamic random access memory with the corresponding address in first object address.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
If receiving the instruction for the content for storing the virtual disk, storage instruction is sent to described control unit, so that described Control unit is by the data conversion storage in the dynamic random access memory into the flash memories.
5. a kind of date storage method, which is characterized in that applied to the solid state disk in stocking system, the stocking system also wraps Host is included, the solid state disk includes control unit and storage unit, and the storage unit includes flash memories and dynamic Random access memory, the described method includes:
The capacity information of the dynamic random access memory is sent to the host so that the host by the dynamic with Machine access memory is mapped as virtual disk;
If the operational order that the host is sent is received, dynamic random access memory described in respective operations, wherein the behaviour It is what the host was sent when receiving the operation to the virtual disk to make instruction.
6. according to the method described in claim 5, it is characterized in that, dynamic random access memory described in the respective operations, Including:
The destination address of the operational order is obtained as first object address;
It determines in the dynamic random access memory with the corresponding address in first object address as the second target Location, wherein, the address of the virtual disk and the address of the dynamic random access memory correspond;
According to the region of corresponding second destination address in dynamic random access memory described in the operational order respective operations.
7. it according to the method described in claim 5, it is characterized in that, further includes:
If the storage instruction that the host is sent is received, by the data conversion storage in the dynamic random access memory described in In flash memories, wherein, the storage instruction is that the host is receiving the instruction for the content for storing the virtual disk When send;
On startup, the data are read to the corresponding region of the dynamic random access memory from the flash memories In.
A kind of 8. host, which is characterized in that the list including being used to perform the method as described in claim 1-4 any claims Member.
9. a kind of solid state disk, which is characterized in that including being used to perform the method as described in claim 5-7 any claims Unit.
10. a kind of stocking system, which is characterized in that including host and solid state disk, the solid state disk includes control unit And storage unit, the storage unit include flash memories and dynamic random access memory, wherein:
If the host is used for the virtual disk that the dynamic random access memory is mapped as in the host and receives During to the operation of the virtual disk, operational order is sent to the solid state disk;
Described control unit be used for when receiving the operational order, according to the operational order respective operations dynamic with Machine accesses memory.
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 true CN108052295A (en) 2018-05-18
CN108052295B 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 (5)

* 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
US20150370487A1 (en) * 2014-06-24 2015-12-24 Apacer Technology Inc. Storage device and address-corresponding method, data-accessing method, and identifying and accessing method thereof
US20150378888A1 (en) * 2014-06-27 2015-12-31 Huawei Technologies Co.,Ltd. Controller, flash memory apparatus, and method for writing data into flash memory apparatus

Patent Citations (5)

* 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
US20150370487A1 (en) * 2014-06-24 2015-12-24 Apacer Technology Inc. Storage device and address-corresponding method, data-accessing method, and identifying and accessing method thereof
US20150378888A1 (en) * 2014-06-27 2015-12-31 Huawei Technologies Co.,Ltd. Controller, flash memory apparatus, and method for writing data into flash memory apparatus

Also Published As

Publication number Publication date
CN108052295B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
US8028120B2 (en) System with flash memory device and data recovery method thereof
KR100526190B1 (en) Remapping method for flash memory
US8108592B2 (en) Memory system and wear leveling method thereof
US9189420B2 (en) Wear-leveling method, storage device, and information system
US9032244B2 (en) Memory segment remapping to address fragmentation
CN101719099B (en) Method and device for reducing write amplification of solid state disk
US8417872B2 (en) Write and merge methods in memory card systems for reducing the number of page copies
US20040085849A1 (en) Flash memory, and flash memory access method and apparatus
EP1895418A1 (en) Nonvolatile memory device, method of writing data, and method of reading out data
US20140129758A1 (en) Wear leveling in flash memory devices with trim commands
US20030229753A1 (en) Flash memory file system
CN101673243B (en) Data storage device and method
CN101526923A (en) Data processing method, device thereof and flash-memory storage system
CN106326134A (en) Flash Translation Layer (FTL) address mapping method and device
CN104281538B (en) It is a kind of store equipment dilatation and Snapshot Method and storage equipment
CN105242879B (en) A kind of date storage method and protocol server
CN106648463A (en) Nand Flash block management method and system
CN103744611A (en) Computer system based on solid state disc as cache and cache accelerating method
CN105022701A (en) Method for storing running state and parameters of air conditioner
CN104834477A (en) Data writing method and device based on flash memory
CN107506311B (en) Method and device for flashing FTL (flash translation layer) table of solid state disk
CN103793331A (en) Method and device for managing physical memories
TWI517170B (en) A method for replacing the address of some bad bytes of the data area and the spare area to good address of bytes in non-volatile storage system
JP2016085677A (en) Memory management method, memory management program, and information processing device
CN117370222A (en) Storage mapping method, storage mapping device, computer readable storage medium and electronic equipment

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