CN106569744B - Method for storing temporary data and storage device - Google Patents
Method for storing temporary data and storage device Download PDFInfo
- Publication number
- CN106569744B CN106569744B CN201610931333.5A CN201610931333A CN106569744B CN 106569744 B CN106569744 B CN 106569744B CN 201610931333 A CN201610931333 A CN 201610931333A CN 106569744 B CN106569744 B CN 106569744B
- Authority
- CN
- China
- Prior art keywords
- data
- temporary data
- storage device
- cache
- storage
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0688—Non-volatile semiconductor memory arrays
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method for storing temporary data and a storage device, which are used for prolonging the service life of a storage disc of the storage device. The method for storing temporary data comprises the following steps: the storage device marks temporary data needing to be written into a Cache of the storage device; the storage device writes the marked temporary data into the Cache; and when the Cache is full and the marked life cycle of the temporary data is not ended, the storage device writes the temporary data into a storage disk of the storage device.
Description
Technical Field
The present application relates to the field of data storage technologies, and in particular, to a method for storing temporary data and a storage device.
Background
The Solid State Drive (SSD) has the advantages of fast read/write speed, low power consumption, low noise, shock resistance, and falling resistance, and is widely used. However, the flash memory of the SSD cannot be used after a certain number of times of erasing, resulting in a short lifespan of the SSD.
In the prior art, a write leveling algorithm is usually adopted to improve the service life of the SSD, and specifically, the SSD writes data into a new flash memory region each time the data is written, so that all flash memory regions share the write operation, and the write frequency of a part of flash memory regions is avoided being too many.
However, for a scenario where a large amount of data needs to be written, the above write leveling algorithm has a limited effect on improving the service life of the SSD.
Disclosure of Invention
The embodiment of the invention provides a method for storing temporary data and a storage device, which are used for prolonging the service life of a storage disc of the storage device.
In a first aspect, an embodiment of the present invention provides a method for storing temporary data, where the method includes the following steps: first, the storage device marks temporary data that needs to be written into a Cache (Cache) of the storage device, where the temporary data is temporary protection data for the data that needs to be saved, such as data backup. After the temporary data are marked, the temporary data are written into the Cache by the storage equipment; then, the storage device does not immediately write the temporary data from the Cache to the storage disk of the storage device, but only writes the temporary data to the storage disk of the storage device when the Cache is full and the life cycle of the temporary data is not finished yet.
In the implementation mode, the storage device writes the temporary data with the unfinished life cycle into the storage disk from the cache only when the cache is full, and the life cycle of the temporary data is short, so that the life cycle of a lot of temporary data is finished when the cache is not full, the storage device does not need to write the temporary data with the finished life cycle into the storage disk, and the data writing times of the storage disk are reduced. On the other hand, since the temporary data whose lifetime has ended are not written to the disk as described above, the disk does not need to perform an erase operation on the temporary data. Therefore, after the mode is adopted, the number of temporary data needing to be written and erased in the storage disc is reduced, and the service life of the storage disc can be further prolonged.
In an optional implementation manner, the storage device includes a solid state disk SSD and a non-SSD storage disk, and when the Cache is full and the lifetime of the temporary data is not finished, the storage device writes the temporary data into the storage disk, and specifically writes the temporary data into the non-SSD storage disk, so that the number of times of writing and erasing of the SSD is reduced, and the life of the SSD is prolonged.
In an optional implementation manner, when the Cache is not full and the lifetime of the temporary data is over, the storage device deletes the temporary data from the Cache. In the implementation mode, the storage device can delete the temporary data with the end of the life cycle in the cache before the cache is full, so that on one hand, the storage device does not need to write the part of data into the storage disk, the data writing frequency of the storage disk is reduced, and the service life of the storage device is prolonged. On the other hand, the temporary data is deleted from the cache, so that the cache can cache more new data, and the data storage capacity of the cache is increased.
In an optional implementation manner, the storage device determines the temporary data from the data that needs to be written into the Cache according to attribute information of the data that needs to be written into the Cache.
In an alternative implementation, the storage device marks the temporary data when generating the temporary data.
In an optional implementation manner, the storage device adds, to a memory page for carrying the data, an identifier for characterizing that the data is temporary data.
In a second aspect, the present invention provides a storage device for performing the method of the first aspect or any possible implementation of the first aspect. In particular, the apparatus comprises means for performing the method of the first aspect described above or any possible implementation of the first aspect.
In a second aspect, an embodiment of the present invention provides a storage device, where the storage device is configured to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the storage device comprises an interface, a controller, a cache and a storage disk. The interface is used for receiving a data writing request and data requested to be written; the cache is used for caching data needing to be written into the storage disk; the storage disk is used for receiving data to be stored from the cache. The controller is adapted to implement the method of the first aspect or any possible implementation of the first aspect via an interface, a cache, and a storage disk.
In a fourth aspect, an embodiment of the present invention provides a computer-readable medium for storing a computer program comprising instructions for performing the method of the first aspect or any possible implementation of the first aspect.
The embodiments of the present invention may be further combined to provide more implementations on the basis of the implementations provided by the above aspects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments will be briefly described below.
Fig. 1 is a schematic structural diagram of a storage device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for storing temporary data according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a detailed process of a method for storing temporary data according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an example of an application for storing temporary data according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a storage device 400 according to an embodiment of the present invention.
Detailed Description
In the field of data storage, in order to ensure the reliability of data, when normal data is stored, protection data for the normal data, such as backup data of the normal data, is generally generated, and the protection data has temporality and a short life cycle, and is also referred to as temporary data. For example, when migrating data to the device B, the device a backs up the data to be migrated, so as to avoid data loss caused by link failure in the data migration process, and once the data is successfully migrated to the device B, the device a deletes the backed-up data. In practical situations, for many scenarios where temporary data is generated, such as copying of a file system, cutting of the file system, synchronization of the file system among multiple devices, and the like, embodiments of the present invention are not illustrated here.
In the prior art, the storage device stores the temporary data in the same way as normal data, that is, the temporary data is first written into a Cache (Cache), and then the temporary data is written into the SSD from the Cache. However, since the lifetime of the temporary data is short, the storage device erases the temporary data from the SSD again when the lifetime of the temporary data is over, and thus, the write operation for the temporary data is necessary to waste the use of the SSD, which results in a reduction in the lifetime of the SSD. In addition, in actual operation, the amount of the temporary data is huge, and if the storage mode in the prior art is adopted, the SSD frequently writes the temporary data with a short lifetime, and frequently erases the temporary data at the end of the lifetime of the temporary data, so that the service life of the SSD is sharply reduced.
In view of the foregoing problems, embodiments of the present invention provide a method for storing temporary data, so as to mitigate an influence of the temporary data on a service life of a storage disk of a storage device. The technical solutions of the present invention are described in detail below with reference to the drawings and the specific embodiments, and it should be understood that the specific features in the embodiments and the embodiments of the present invention are not intended to limit the technical solutions of the present invention, but may be combined with each other without conflict.
Fig. 1 is a schematic diagram of a storage device according to an embodiment of the present invention, where the storage device includes an interface 11, a controller 12, a cache 13, and a storage disk 14.
The interface 11 is configured to receive a request for writing data and data requested to be written; the controller 12 is used for data management, for example, the controller 12 determines where data needs to be written to the storage disk 14, and when the data should be written to the storage disk 14; the buffer 13 is used for buffering data to be written into the storage disk 14, and typically, the controller 12 returns a report that data writing is successful to the upper layer application after writing the data into the buffer 13, and then writes the data from the buffer 13 into the storage disk 14.
To extend the life of the storage disk 14, in one embodiment of the invention, the controller 12 is further configured to: before writing data into the cache memory 13, it is determined whether the data is temporary data, if so, the data is marked, and then the marked data is written into the cache memory 13. When the buffer memory 13 is not full, the controller 12 does not write the data marked as temporary data from the buffer memory 13 to the storage disk 14, and only when the buffer memory 13 is full, the data whose life cycle has not yet ended among the marked data is written from the buffer memory 13 to the storage disk 14.
Alternatively, in another embodiment of the present invention, the controller marks the temporary data in the following manner: the method includes the steps of generating temporary data according to value-added services provided by storage equipment, for example, the storage equipment provides a data rollback function of the data, modifying the data, reserving original data before modification, wherein the original data is the temporary data, and marking the temporary data when the temporary data is generated.
In the above technical solution, before the buffer 13 is full, the temporary data is stored in the buffer 13, and only when the buffer 13 is full, the temporary data whose lifetime has not been completed is written into the storage disk 14 from the buffer 13, because the duration of the lifetime of the temporary data is short, and many temporary data whose lifetime has been completed when the buffer 13 is not full are completed, the storage device may not write the temporary data whose lifetime has been completed into the storage disk 14, thereby reducing the number of times the storage disk 14 writes data. On the other hand, since the above-described temporary data whose lifetime has ended are not written to the storage disk 14, the storage disk 14 does not need to perform an erase operation on these temporary data. It can be seen that, by adopting the above manner, the number of temporary data to be written and erased in the storage disk 14 is reduced, and the service life of the storage disk 14 can be further prolonged.
Optionally, in this embodiment of the present invention, the storage disk 14 includes an SSD141 and a non-SSD storage disk 142, and when the cache 13 is full, the controller 12 writes temporary data in the cache 13, of which the life cycle has not yet ended, into the non-SSD storage disk 142. The non-SSD storage disk 142 is used to store temporary data, thereby reducing the number of times of writing and erasing the SSD141 and increasing the lifetime of the SSD 141.
Optionally, in this embodiment of the present invention, if the lifetime of the temporary data is finished when the cache 13 is not full, the controller 12 deletes the temporary data from the cache 13, thereby increasing the useful storage space of the cache 13.
Optionally, in the embodiment of the present invention, when the cache 13 is full, the controller 12 deletes the temporary data whose lifetime has been completed in batch from the cache 13, so as to reduce the load of the controller 12.
Optionally, in the embodiment of the present invention, when the storage device determines that the data is the temporary data, an identifier for representing that the data is the temporary data is added to the memory page for carrying the data.
Alternatively, in this embodiment of the present invention, the temporary data may be generated by a device external to the storage device and received by the interface 11 from the external device, for example, the temporary data is generated by a host to which the storage device is connected. The temporary data may also be generated by the controller 12 of the storage device, for example, the storage device may provide a data value-added service through the controller 12, and the temporary data may be generated during the execution of the data value-added service.
The interface 11 may be an interface supporting various communication protocols, such as an interface supporting Transmission Control Protocol (TCP).
The controller 12 may be a single processor or a combination of multiple processors. Specifically, the controller 12 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, such as: one or more microprocessors (digital signal processors, DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
The cache 13 may be an independent cache device, or may be an area partitioned from the cache device for caching data written in the storage disk 14, for example, the cache 13 may be an area in a memory of the storage device.
Fig. 2 is a schematic flowchart of a method for storing temporary data according to an embodiment of the present invention, where the method includes the following steps:
Specifically, the temporary data may be generated by the storage device itself, for example, the storage device is not only used for storing the received data, but also used for processing the received data to generate the temporary data, and the temporary data may be a backup of the received data, and the storage device provides a value-added service to the outside by generating the temporary data. In this case, the storage device may mark the temporary data as it is generated.
In another implementation manner, the storage device does not mark the temporary data when generating the temporary data, but before writing the data into the Cache, determines whether each data needing to be written into the Cache is the temporary data, and if so, marks the data. This applies both to the case where the temporary data is generated by the storage device and to the case where the temporary data is received for the storage device from another device (e.g., a host) to which it is connected.
The storage device may mark the data in a plurality of ways, for example, the storage device may add an identifier indicating that the data is temporary data on a memory page carrying the data; for another example, the storage device may store a temporary data table in the cache, where the table stores the identifiers of all temporary data; for another example, the storage device may add attribute information indicating that the data is temporary data at a start position or an end position of the data.
And step 203, writing the marked temporary data into a storage disk of the storage device when the Cache is full and the life cycle of the marked temporary data is not finished yet.
In the technical scheme, the storage device writes the temporary data with the unfinished life cycle into the storage disk from the cache only when the cache is full, and the life cycle of the temporary data is short, so that the life cycle of a lot of temporary data is finished when the cache is not full, the storage device does not need to write the temporary data with the finished life cycle into the storage disk, and the data writing times of the storage disk are reduced. On the other hand, since the temporary data whose lifetime has ended are not written to the disk as described above, the disk does not need to perform an erase operation on the temporary data. Therefore, after the mode is adopted, the number of temporary data needing to be written and erased in the storage disc is reduced, and the service life of the storage disc can be further prolonged.
Optionally, in the embodiment of the present invention, the storage device includes an SSD and a non-SSD storage disk, and referring to fig. 3, when step 203 is implemented, the following steps are included:
step 2031: and when the Cache is full and the life cycle of the marked data is not ended, the storage device writes the marked data into a non-SSD storage disk.
In particular, the non-SSD storage disk may be implemented in various ways, such as a mechanical hard disk, a Solid State Hybrid Drive (SSHD).
In the implementation mode, the non-SSD storage disk is used for bearing the storage task of the temporary data, so that the writing frequency and the erasing frequency of the SSD are reduced, and the service life of the SSD is prolonged.
Optionally, in the embodiment of the present invention, when the Cache is not full, the storage device stores the marked data in the Cache.
Optionally, in this embodiment of the present invention, with reference to fig. 3, the method for storing temporary data further includes the following steps:
and step 204, when the Cache is not full and the life cycle of the marked data is finished, the storage device deletes the marked data from the Cache.
Specifically, the storage device determines whether the lifetime of the marked data (i.e., the temporary data) is finished, including various implementations, for example, when the temporary data is data received by the storage device from an external device, the storage device may receive an indication from the external device instructing the storage device to delete the temporary data, and when receiving the indication, the storage device determines that the lifetime of the temporary data is finished. For another example, the storage device receives a message indicating that the lifetime of the temporary data is completed from the external device, and the storage device determines that the lifetime of the temporary data is completed based on the message. For another example, when the temporary data is generated by the storage device itself, the storage device may set a timer for the temporary data, and when the timer reaches a preset time length, the storage device determines that the lifetime of the temporary data is ended. For another example, when the temporary data is generated by the storage device itself, the storage device may determine that the lifetime of the temporary data is finished when the role played by the temporary data has been finished.
In the above technical solution, the storage device can delete the temporary data with the end of the life cycle in the cache before the cache is full, so that on one hand, the storage device does not need to write the part of data into the storage disk, thereby reducing the data writing frequency of the storage disk and prolonging the service life of the storage disk. On the other hand, the temporary data is deleted from the cache, so that the cache can cache more new data, and the data storage capacity of the cache is increased.
Optionally, in the embodiment of the present invention, the storage device deletes the temporary data whose lifetime has ended from the cache only when the cache is full. The implementation mode can reduce the burden of the storage device for deleting the data by deleting the temporary data in a centralized manner.
Optionally, in the embodiment of the present invention, when determining whether a certain data is temporary data, the storage device specifically determines whether the data is temporary data according to the attribute information of the data. For example, the storage device may determine whether the data is temporary data according to a program module that generates the data, for example, when the data is generated by a Replication Service Sub-System (RSS) of the storage device, the data is determined to be temporary data. For another example, the storage device may determine whether the data object belongs to temporary data according to the data object to which the data belongs, for example, when the data object to which the data belongs is an application entity corresponding to data backup, the data object is determined to be temporary data. For another example, when data is received from a device external to the storage device, the storage device may determine whether the data is temporary data according to information of an input/output (I/O) interface that receives the data. In this implementation manner, the temporary data can be determined efficiently, and then can be marked, so that the temporary data can be stored in the manner of the foregoing step 201 to step 204.
Optionally, in the embodiment of the present invention, the Storage device may be applied to a Storage Area Network (SAN) as a Storage node in the SAN. The Storage device may also be applied to other computer Storage systems such as Network Attached Storage (NAS), and the embodiments of the present invention are not necessarily described in an example.
Optionally, when the storage device is used in a SAN, the storage device may be used as a master storage device or a slave storage device, and the temporary data may be protective data generated during the process of synchronizing a file in the master storage device to the slave storage device. For example, after data On the primary storage device is modified by a user, the secondary storage device may synchronize the modification, and the secondary storage device may modify the data in a Copy On Write (COW) manner, specifically, the storage device may read old data, and store the old data in a cache, where the old data is temporary data. By adopting the method provided by the embodiment of the invention, the old data is stored in the cache and is not written into the SSD, and the old data is written into the non-SSD storage disk only when the cache is full.
In order to facilitate understanding of the method for storing temporary data provided by the embodiment of the present invention, the following is described with reference to an application example for storing temporary data shown in fig. 4, where a logic Unit Number (L logical Unit Number, L UN) module, a value added service module, and a marking module shown in fig. 4 are all function modules divided according to functions of a controller, and when the controller includes a plurality of control chips, the L UN module, the value added service module, and the marking module may be implemented by the same control chip or different control chips, respectively, and the application example for storing temporary data shown in fig. 4 includes the following steps:
in step 301, an interface of a storage device receives a write data request from an external device, where the write data request includes data requested to be written.
In step 302, the L UN module responds to the write data request, and applies for memory page resources for the data requested to be written.
In step 303, the L UN module determines that the data requested to be written needs to be processed by the value added service module, and sends the data to the value added service module.
And step 304, the value added service module processes the data requested to be written in to obtain the value added service data.
In step 305, the value added service module sends the value added service data and the data requested to be written to the marking module.
Step 306, the marking module determines that the value added service data is temporary data and marks the temporary data.
In step 307, the marking module returns L UN module the value added service data and the data requested to be written.
In step 308, the L UN module writes the value-added service data and the data requested to be written into the Cache.
In step 309, the cache writes the data requested to be written into the SSD storage disk.
And step 310, when the cache is full, the value-added service data is written into a non-SSD storage disk.
In the technical scheme, the storage device can mark the temporary data, and only when the cache is full, the temporary data with the unfinished life cycle is written into the storage disk from the cache. On the other hand, since the temporary data whose lifetime has ended are not written to the disk as described above, the disk does not need to perform an erase operation on the temporary data. Therefore, after the mode is adopted, the number of temporary data needing to be written and erased in the storage disc is reduced, and the service life of the storage disc can be further prolonged.
Fig. 5 is a schematic structural diagram of a storage device 400 according to an embodiment of the present invention, where the storage device 400 includes:
a marking module 401, configured to mark temporary data that needs to be written into the Cache of the storage device;
a first writing module 402, configured to write the marked temporary data into the Cache;
a second writing module 403, configured to write the temporary data from the Cache into a storage disk of the storage device when the Cache is full and a life cycle of the marked temporary data is not yet ended.
Optionally, in this embodiment of the present invention, the storage device includes a solid state disk SSD and a non-SSD storage disk, and the second writing module is configured to: and when the Cache is full and the marked life cycle of the temporary data is not ended, writing the temporary data into the non-SSD storage disk.
Optionally, in this embodiment of the present invention, the storage device 400 further includes:
a deleting module 404, configured to delete the temporary data from the Cache when the Cache is not full and a lifetime of the temporary data is finished.
Optionally, in this embodiment of the present invention, the storage device 400 further includes:
a determining module 405, configured to determine temporary data from the data that needs to be written into the Cache according to attribute information of the data that needs to be written into the Cache before the marking module marks the temporary data that needs to be written into the Cache.
Optionally, in this embodiment of the present invention, the marking module 401 is configured to: marking the temporary data when the storage device generates the temporary data.
Optionally, in this embodiment of the present invention, the marking module 401 is configured to: and adding an identifier for representing that the data is temporary data on a memory page for bearing the data.
The implementation manner of each module of the storage device 400 may refer to the implementation manner of each step in step 201 to step 204, and is not repeated here.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
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, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (12)
1. A method of storing temporary data, comprising:
the method comprises the steps that a storage device marks temporary data needing to be written into a Cache of the storage device, wherein the temporary data are data which need to be stored and have temporary protection;
the storage device writes the marked temporary data into the Cache;
and when the Cache is full and the life cycle of the marked temporary data is not ended, the storage equipment writes the temporary data into a storage disk of the storage equipment from the Cache.
2. The method of claim 1, wherein the writing, by the storage device, the temporary data from the Cache to a storage disk of the storage device comprises:
and the storage equipment writes the temporary data from the Cache into a non-Solid State Disk (SSD) storage disk of the storage equipment.
3. The method of claim 1 or 2, further comprising:
and the storage equipment deletes the temporary data from the Cache when the Cache is not full and the life cycle of the temporary data is finished.
4. The method according to claim 1 or 2, before the storage device marks temporary data that needs to be written into the Cache, further comprising:
and the storage equipment determines the temporary data from the data needing to be written into the Cache according to the attribute information of the data needing to be written into the Cache.
5. The method according to claim 1 or 2, wherein the storage device marks temporary data to be written into the Cache, and the method comprises:
the storage device marks the temporary data when generating the temporary data.
6. The method of claim 1 or 2, wherein the storage device marks the temporary data, comprising:
and the storage equipment adds an identifier for representing that the data is the temporary data on a memory page for bearing the temporary data.
7. A storage device, comprising:
the marking module is used for marking temporary data of the Cache needing to be written into the storage equipment;
the first writing module is used for writing the marked temporary data into the Cache, wherein the temporary data is data which needs to be stored and has temporary protection;
and the second writing module is used for writing the temporary data into a storage disk of the storage device from the Cache when the Cache is full and the life cycle of the marked temporary data is not ended.
8. The storage device of claim 7, wherein the second write module is configured to: and writing the temporary data into a non-SSD storage disk of the storage device.
9. The storage device according to claim 7 or 8, further comprising:
and the deleting module is used for deleting the temporary data from the Cache when the Cache is not full and the life cycle of the temporary data is finished.
10. The storage device according to claim 7 or 8, further comprising:
and the judging module is used for determining the temporary data from the data needing to be written into the Cache according to the attribute information of the data needing to be written into the Cache before the marking module marks the temporary data needing to be written into the Cache.
11. The storage device of claim 7 or 8, wherein the tagging module is to: marking the temporary data when the storage device generates the temporary data.
12. The storage device of claim 7 or 8, wherein the tagging module is to: and adding an identifier for representing that the data is the temporary data on the memory page for bearing the temporary data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610931333.5A CN106569744B (en) | 2016-10-31 | 2016-10-31 | Method for storing temporary data and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610931333.5A CN106569744B (en) | 2016-10-31 | 2016-10-31 | Method for storing temporary data and storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106569744A CN106569744A (en) | 2017-04-19 |
CN106569744B true CN106569744B (en) | 2020-07-14 |
Family
ID=58533457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610931333.5A Active CN106569744B (en) | 2016-10-31 | 2016-10-31 | Method for storing temporary data and storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106569744B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109558073A (en) * | 2018-10-25 | 2019-04-02 | 深圳点猫科技有限公司 | A kind of disk based on educational system extends the method and electronic equipment in service life |
CN114168225B (en) * | 2021-12-08 | 2024-05-14 | 深圳忆联信息系统有限公司 | Method, device, computer equipment and storage medium for updating solid state disk mapping table in delayed mode |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1882906A (en) * | 2003-09-30 | 2006-12-20 | 维瑞泰斯操作公司 | System and method for maintaining temporal data in data storage |
CN102890620A (en) * | 2011-07-18 | 2013-01-23 | 苹果公司 | Non-volatile temporary data handling |
CN105183397A (en) * | 2015-09-22 | 2015-12-23 | Tcl移动通信科技(宁波)有限公司 | EMMC read-write control method and system |
-
2016
- 2016-10-31 CN CN201610931333.5A patent/CN106569744B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1882906A (en) * | 2003-09-30 | 2006-12-20 | 维瑞泰斯操作公司 | System and method for maintaining temporal data in data storage |
CN102890620A (en) * | 2011-07-18 | 2013-01-23 | 苹果公司 | Non-volatile temporary data handling |
CN105183397A (en) * | 2015-09-22 | 2015-12-23 | Tcl移动通信科技(宁波)有限公司 | EMMC read-write control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106569744A (en) | 2017-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110427284B (en) | Data processing method, distributed system, computer system, and medium | |
US9460098B2 (en) | Virtual machine snapshot backup based on multilayer De-duplication | |
CN110968253B (en) | Data storage method, device and system | |
CN109995813B (en) | Partition expansion method, data storage method and device | |
RU2479013C2 (en) | Method of optimising solid-state drive and optimiser | |
CN106201659B (en) | A kind of method and host of live migration of virtual machine | |
US20200012598A1 (en) | Garbage Collection Method for Storage Medium, Storage Medium, and Program Product | |
EP3206128A1 (en) | Data storage method, data storage apparatus, and storage device | |
EP2315126A1 (en) | Garbage collection program, garbage collection method, and garbage collection system | |
CN109144428B (en) | A garbage collection method, device and medium applied to solid state hard disk | |
CN101968755A (en) | Application load change adaptive snapshot generating method | |
US9996459B2 (en) | Reclaiming of sequential storage medium | |
US10795579B2 (en) | Methods, apparatuses, system and computer program products for reclaiming storage units | |
CN107391050A (en) | A kind of data migration method, system, device and computer-readable recording medium | |
CN101751478A (en) | File backup method and system | |
CN105376269B (en) | Virtual machine storage system and its implementation and device | |
CN111158858A (en) | Cloning method and device of virtual machine and computer readable storage medium | |
CN106569744B (en) | Method for storing temporary data and storage device | |
CN104917788A (en) | Data storage method and apparatus | |
US20170269868A1 (en) | Information processing apparatus, storage system, computer-readable recording medium, and information processing method | |
CN107329699B (en) | A method and system for erasure rewriting | |
CN113806145A (en) | Backup recovery method and device of OpenStack virtualization platform based on Ceph storage | |
CN112445412B (en) | Data storage method and device | |
CN109254870B (en) | Data backup method and device | |
CN111708489A (en) | A method and device for improving service quality of hard disk |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220908 Address after: No. 1899 Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan 610041 Patentee after: Chengdu Huawei Technologies Co.,Ltd. Address before: 611731 Qingshui River District, Chengdu hi tech Zone, Sichuan, China Patentee before: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd. |
|
TR01 | Transfer of patent right |