CN106569744A - Method and storage equipment for storing temporary data - Google Patents
Method and storage equipment for storing temporary data Download PDFInfo
- Publication number
- CN106569744A CN106569744A CN201610931333.5A CN201610931333A CN106569744A CN 106569744 A CN106569744 A CN 106569744A CN 201610931333 A CN201610931333 A CN 201610931333A CN 106569744 A CN106569744 A CN 106569744A
- Authority
- CN
- China
- Prior art keywords
- data
- storage device
- ephemeral data
- cache
- write
- 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
Links
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention provides a method and storage equipment for storing temporary data, wherein the method and the storage equipment are used for prolonging service life of a storage disk of storage equipment. The method for storing the temporary data comprises the following steps of marking the temporary data which are to be written into a cache of the storage equipment by the storage equipment; writing the marked temporary data into the cache by the storage equipment; and on the condition that all space of the cache is occupied and the survival period of the marked temporary data is not finished, writing the temporary data into the storage disk of the storage equipment by the storage equipment.
Description
Technical field
The application is related to technical field of data storage, the method and storage device of more particularly to a kind of storage ephemeral data.
Background technology
Solid state hard disc (Solid State Drive, SSD) has that read or write speed is fast, low in energy consumption, noise is little and shockproof anti-
The advantages of falling, is widely used.But, the flash memory of SSD will be unable to be continuing with after erasable through certain number of times, cause
The service life of SSD is shorter.
In prior art, the life-span of SSD is generally improved using write equilibrium algorithm, specifically, SSD is writing every time data
When, new flash area is write data into, allow all flash areas to share write operation equally, it is to avoid the write time to part flash area
Number is too many.
But, for there is mass data to need the scene of write, above-mentioned write equilibrium algorithm is to improving SSD service lifes
Effect is limited.
The content of the invention
The embodiment of the present invention provides a kind of method and storage device of storage ephemeral data, for improving depositing for storage device
The service life of storage disk.
In a first aspect, the embodiment of the present invention provides a kind of method of storage ephemeral data, the method comprises the steps:It is first
First, the ephemeral data of caching (Cache) of the storage device to needing to write the storage device is marked, wherein, it is so-called interim
Data be to need to preserve data with provisional protection data, such as data backup.After being marked to ephemeral data,
Storage device is just written into Cache;Then, storage device is immediately by it from the storage dish of Cache write storage devices,
But Cache be filled with and by the life cycle of the ephemeral data not yet at the end of, storage device is just written into the storage
The storage dish of equipment.
In this implementation, storage device only when caching is filled with just by life cycle still unclosed ephemeral data from
Caching write storage dish, because the duration of the life cycle of ephemeral data is shorter, many ephemeral datas are given birth to when not being filled with
Cycle of deposit terminates so that storage device can write storage dish without the ephemeral data for being over these life cycles, subtract
The number of times that storage dish writes data is lacked.On the other hand, due to writing the ephemeral data being over life cycle without above-mentioned
Enter storage dish, storage dish carries out erasing operation also without to these ephemeral datas.It can be seen that, after aforesaid way, storage dish
The quantity of the ephemeral data that need to be write and need to wipe is reduced, and then can extend the service life of storage dish.
In a kind of optional implementation, storage device includes solid-state hard disk SSD and non-SSD storage dishes, in Cache
Be filled with and ephemeral data life cycle not yet at the end of, storage device specifically writes ephemeral data write storage dish
Non- SSD storage dishes, reduce the write number of times and erasing times of SSD, improve the life-span of SSD.
In a kind of optional implementation, it is not filled with and at the end of the life cycle of ephemeral data in Cache, storage sets
It is standby that the ephemeral data is deleted from Cache.In this implementation, storage equipment can be before caching be filled with, in deleting caching
The ephemeral data that terminates life cycle, on the one hand, so that storage device, by this partial data write storage dish, is reduced without the need for again
The write data times of storage dish, extend its life-span.On the other hand, ephemeral data is removed from the cache so that caching can be with
The more new data of caching, increase the ability of the data storage of caching.
In a kind of optional implementation, storage device writes as needed the attribute information of the data of the Cache,
Determine the ephemeral data from the data for needing and writing the Cache.
In a kind of optional implementation, the storage device is when the ephemeral data is generated to the ephemeral data
It is marked.
In a kind of optional implementation, the storage device is added on being used to carry the memory pages of the data
For characterizing the mark that the data are ephemeral data.
Second aspect, the present invention provides a kind of storage device, and the storage device is used to perform above-mentioned first aspect or first
Method in any possible realization of aspect.Specifically, the equipment is included for performing above-mentioned first aspect or first aspect
Any possible realization in method module.
Second aspect, the embodiment of the present invention provides a kind of storage device, and the storage device is used to perform above-mentioned first aspect
Or the method in any possible realization of first aspect.Specifically, the storage device include interface, controller, caching and
Storage dish.Wherein, the interface is used for the data for receiving write data requests and request write;Caching need to write storage for caching
The data of disk;Storage dish is used to from caching receive the data that need to be stored.Controller is used for by interface, caching and storage dish reality
Method in any possible realization of existing above-mentioned first aspect or first aspect.
Fourth aspect, embodiments provides a kind of computer-readable medium, for storing computer program, the meter
Calculation machine program is included for the instruction of the method in any possible realization for performing first aspect or first aspect.
The embodiment of the present invention can also be further combined to provide on the basis of the realization that above-mentioned each side are provided
More realizations.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to making needed for embodiment description
Accompanying drawing is briefly introduced.
Fig. 1 is the structural representation of storage device provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for storage ephemeral data provided in an embodiment of the present invention;
Fig. 3 is the refinement schematic flow sheet of the method for storage ephemeral data provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of the application example of storage ephemeral data provided in an embodiment of the present invention;
Fig. 5 is the structural representation of storage device provided in an embodiment of the present invention 400.
Specific embodiment
In field of data storage, in order to ensure the reliability of data, when storing to normal data, it will usually generate
For the protection data of normal data, the such as Backup Data of the normal data, these protection data have provisional, life cycle
It is shorter, therefore the ephemeral data that is otherwise known as.For example, data backup of device A when by Data Migration to equipment B to migrating,
Avoid in data migration process because link failure causes loss of data, once data are successfully migrated to equipment B, device A
Backup Data will be deleted.In practical situation, for many scenes ephemeral data, the such as duplication of file system, file can be produced
The shearing of system, file system between devices synchronous, etc., embodiment of the present invention here differs an illustration.
In prior art, storage device is identical to the storage mode of above-mentioned ephemeral data and the storage mode of normal data,
First then ephemeral data, is write into SSD by ephemeral data write caching (Cache) from Cache.But, due to the nonce
According to life cycle it is short, at the end of its life cycle, storage device again wipes it from SSD, it is seen then that for ephemeral data
Write operation must cause SSD using wasting, the life-span for causing SSD reduces.In addition in actual motion, above-mentioned ephemeral data
Enormous amount, if using storage mode of the prior art, SSD will be caused continually to write shorter interim life cycle
Data, and continually at the end of ephemeral data life cycle the ephemeral data is wiped, the service life for causing SSD falls sharply.
For the problems referred to above, the embodiment of the present invention provides a kind of method of storage ephemeral data, extenuates ephemeral data to depositing
The impact of the storage dish service life of storage equipment.Technical solution of the present invention is done in detail below by accompanying drawing and specific embodiment
Explanation, it should be understood that the specific features in the embodiment of the present invention and embodiment be to technical solution of the present invention specifically
It is bright, rather than the skill to the restriction of technical solution of the present invention, in the case where not conflicting, in the embodiment of the present invention and embodiment
Art feature can be mutually combined.
Fig. 1 is the schematic diagram of storage device provided in an embodiment of the present invention, and the storage device includes interface 11, controller
12nd, caching 13 and storage dish 14.
Wherein, the interface 11 is used for the data for receiving write data requests and request write;Controller 12 is used for into line number
According to management, for example, controller 12 determines need where to write data into storage dish 14, and when should write data
Enter storage dish 14;Caching 13 is used for caching need to write the data of storage dish 14, and generally, controller 12 is writing data into caching 13
Afterwards, to upper layer application returned data write successfully report, then, data are being write into storage dish 14 from caching 13.
In order to extend the life-span of storage dish 14, in a kind of embodiment of the present invention, controller 12 is additionally operable to:Data are being write
Before entering caching 13, judge whether the data are ephemeral data, if so, then the data are marked, then will be labeled
The data write caching 13.When the caching 13 is not yet filled with, controller 12 is not postponed the data for being marked as ephemeral data
13 write storage dishes 14 are deposited, only when caching 13 is filled with, still unclosed data life cycle in data that just will be labeled
Storage dish 14 is write from caching 13.
Interchangeable, in another embodiment of the invention, controller is to the mark mode of ephemeral data:According to depositing
The value-added service that storage equipment is provided generates ephemeral data, and for example, storage device provides the data-backoff function of data, to data
Modify, retain the former data before modification, the former data are ephemeral data, and interim to this when the ephemeral data is generated
Data are marked.
In above-mentioned technical proposal, before caching 13 is filled with, ephemeral data is stored among caching 13, only in caching
13 when being filled with, and just still unclosed ephemeral data life cycle is write into storage dishes 14 from caching 13, due to the life of ephemeral data
The duration of cycle of deposit is shorter, many ephemeral datas cache 13 be not filled with when life cycle terminate so that storage device can not
With the ephemeral data write storage dish 14 for being over these life cycles, the number of times that storage dish 14 writes data is reduced.
On the other hand, due to the ephemeral data being over life cycle is write into storage dish 14 without above-mentioned, storage dish 14 is also not required to
Erasing operation is carried out to these ephemeral datas.It can be seen that, after aforesaid way, storage dish 14 need to write and facing of need to wiping
When data quantity reduce, and then the service life of storage dish 14 can be extended.
Optionally, in the embodiment of the present invention, storage dish 14 includes SSD141 and non-SSD storage dishes 142, and controller 12 exists
When caching 13 is filled with, the still unclosed ephemeral data of life cycle in caching 13 is write into non-SSD storage dishes 142.By by non-
SSD storage dishes 142 undertake the store tasks of ephemeral data, reduce the write number of times and erasing times of SSD141, improve
The life-span of SSD141.
Optionally, in the embodiment of the present invention, if the life cycle of ephemeral data terminates when caching 13 is not filled with, control
Device 12 deletes the ephemeral data from caching 13, and then increases the useful memory space of caching 13.
Optionally, in the embodiment of the present invention, controller 12 is deleted batch and is deleted when caching 13 is filled with, just from caching 13
The ephemeral data for having terminated life cycle, and then mitigate the burden of controller 12.
Optionally, in the embodiment of the present invention, storage device is being used to carry the number when it is ephemeral data to judge data
According to memory pages on add for characterize the data be ephemeral data mark.
Optionally, in the embodiment of the present invention, ephemeral data can be produced by the equipment outside storage device, by interface 11
Receive from external equipment, for example, the ephemeral data is produced by the main frame that storage device is connected.Ephemeral data can also be by storing
Produced by the controller 12 of equipment, for example, storage device can provide dats services with increment by controller 12, perform data
Ephemeral data is produced during value-added service.
Above-mentioned interface 11 can be the interface for supporting various communication protocols, such as support transport control protocol view (Transmission
Control Protocol, TCP) interface.
Controller noted above 12 can be a processor, or the general designation of multiple processors.Specifically, the controller
12 can be central processing unit (central processing unit, CPU), or specific integrated circuit
(application specific intergrated circuit, ASIC), or be arranged to implement enforcement of the present invention
One or more integrated circuits of example, for example:One or more microprocessors (digital singnal processor,
DSP), or, one or more field programmable gate array (field programmable gate array, FPGA).
Above-mentioned caching 13 can be the use marked off in independent a caching device, or memory device of postponing
In the region of the data of caching write storage dish 14, such as caching 13 can be a region in the internal memory of storage device.
Fig. 2 is the schematic flow sheet of storage ephemeral data method provided in an embodiment of the present invention, and the method includes following step
Suddenly:
Step 201, storage device is marked to the ephemeral data for needing the Cache of write storage device.
Specifically, the ephemeral data can be what storage device itself was generated, and such as storage device is applied not only to storage reception
Data, can also to receive data process, generate ephemeral data, the ephemeral data can be receive data it is standby
Part, storage device is provided out value-added service by generating the ephemeral data.In this case, storage device can generated
The ephemeral data is marked during the ephemeral data.
In another kind of implementation, storage device is not that the ephemeral data is marked when ephemeral data is generated,
But before Cache is write data into, need the data for writing Cache to be judged for each, judge that whether it be
Ephemeral data, is if so, then marked.This mode is applied to the situation that ephemeral data is generated by storage device,
It is that storage device receives the situation for obtaining from from the other equipment (such as main frame) of connection suitable for ephemeral data.
Storage device can be marked using various ways to the data, and for example, storage device can carry the number
According to memory pages on addition show the data be ephemeral data mark;Again for example, storage device can be preserved in the buffer
One temporary data table, preserves the mark of all ephemeral datas in the form;Again for example, storage device can be in the data
Original position or end position addition show the attribute information that the data are ephemeral data.
Labeled ephemeral data is write Cache by step 202, storage device.
Step 203, the ephemeral data that Cache is filled with and is labeled life cycle not yet at the end of, will be labeled
The storage dish of ephemeral data write storage device.
In above-mentioned technical proposal, storage device is only when caching is filled with just by still unclosed ephemeral data life cycle
From caching write storage dish, because the duration of the life cycle of ephemeral data is shorter, many ephemeral datas are not when being filled with
Life cycle terminates so that storage device can write storage dish without the ephemeral data for being over these life cycles,
Reduce the number of times that storage dish writes data.On the other hand, due to without the above-mentioned ephemeral data for being over life cycle
Write storage dish, storage dish carries out erasing operation also without to these ephemeral datas.It can be seen that, after aforesaid way, storage
The quantity of the ephemeral data that disk need to write and need to wipe is reduced, and then can extend the service life of storage dish.
Optionally, in the embodiment of the present invention, storage device includes SSD and non-SSD storage dishes, with reference to Fig. 3, step 203
During enforcement, comprise the steps:
Step 2031:The data that Cache is filled with and is labeled life cycle not yet at the end of, storage device will be marked
The data of note write non-SSD storage dishes.
Specifically, non-SSD storage dishes can have various implementations, such as mechanical hard disk, solid-state hybrid hard disk (Solid
State Hybrid Drive, SSHD).
In this implementation, by the store tasks that ephemeral data is undertaken by non-SSD storage dishes, the write of SSD is reduced
Number of times and erasing times, improve the life-span of SSD.
Optionally, in the embodiment of the present invention, storage device is stored in labeled data when Cache is not filled with
In Cache.
Optionally, in the embodiment of the present invention, with continued reference to Fig. 3, the method for storing ephemeral data also comprises the steps:
Step 204, when Cache is not filled with and at the end of the life cycle of labeled data, storage device is from Cache
It is middle to delete labeled data.
Specifically, storage device determines whether the life cycle of labeled data (that is, ephemeral data) terminates, including many
Implementation is planted, for example, when the ephemeral data is the data that storage device is received from external equipment, storage device can be from this
External equipment is received and indicates that storage device deletes the instruction of the ephemeral data, storage device when the instruction is received, it is determined that this faces
When data life cycle terminate.Again for example, storage device receives the life cycle for showing the ephemeral data from the external equipment
The message of end, storage device determines that the life cycle of the ephemeral data terminates according to the message.Again for example, in the ephemeral data
When being generated by storage device oneself, storage device can arrange a timer for the ephemeral data, reach in the timing of the timer
During to preset duration, storage device determines that the life cycle of the ephemeral data terminates.Again for example, set by storage in the ephemeral data
During standby oneself generation, storage device can determine the life of the ephemeral data when the ephemeral data role has finished
Cycle of deposit terminates.
In above-mentioned technical proposal, storage device can delete what the life cycle in caching terminated before caching is filled with
Ephemeral data, on the one hand, so that storage device, by this partial data write storage dish, reduces the write data of storage dish without the need for again
Number of times, extends its life-span.On the other hand, ephemeral data is removed from the cache so that caching can cache more new numbers
According to the ability of the data storage of increase caching.
Optionally, in the embodiment of the present invention, storage device is removed from the cache batch when caching is filled with, just and deletes existence
The ephemeral data that cycle has terminated.This implementation carries out the deletion of ephemeral data by concentrating, and can mitigate storage device and delete
Except the burden of data.
Optionally, in the embodiment of the present invention, storage device when whether judge a certain data is ephemeral data, with specific reference to
The attribute information of the data is judging whether the data are ephemeral data.For example, storage device can be according to generating the data
Program module judging whether it is ephemeral data, such as, and data by storage device copy services subsystem
When (Replication Service Sub-System, RSS) is generated, ephemeral data is determined that it is.Again for example, storage device can
Ephemeral data is determined whether it is with the data object belonged to according to data, such as, is in the data object belonging to data
During the application entity of corresponding data backup, ephemeral data is determined that it is.Again for example, it is the equipment from outside storage device in data
When place receives, storage device can be come according to the information of input/output (input/output, the I/O) interface for receiving the data
Judge whether the data are ephemeral data.In this implementation, ephemeral data can be efficiently determined, and then can be to it
Labelling, is easy to store it to by the way of step 204 using abovementioned steps 201.
Optionally, in the embodiment of the present invention, storage device can apply to storage area network (Storage Area
Network, SAN), as the memory node in SAN.Storage device can also be applied to network attached storage (Network
Attached Storage, NAS) etc. among other computer memory systems, the embodiment of the present invention differs an illustration.
Optionally, when storage device is applied among SAN, storage device can set as main storage device or from storage
Standby, ephemeral data can be file synchronization among by main storage device to produced protection during the storage device
The data of property.For example, after the data on main storage device are modifiable by the user, from storage device can the synchronous modification, from depositing
Storage equipment can adopt the mode of Copy on write (Copy On Write, COW) to modify data, specifically, storage device
Old data can be read, in saving it in caching, the old data are ephemeral data.Using side provided in an embodiment of the present invention
Method, the old data are stored among caching, and are not written into SSD, only when caching is filled with, are just write the old data
Non- SSD storage dishes.
Method for the ease of understanding storage ephemeral data provided in an embodiment of the present invention, with reference to depositing shown in Fig. 4
The application example of storage ephemeral data is illustrated.LUN (Logical Unit Number, LUN) mould shown in Fig. 4
The functional module that block, value-added service module, mark module are marked off all in accordance with the function of controller.Include in controller multiple
During control chip, above-mentioned LUN modules, value-added service module and mark module can be realized by same control chip, it is also possible to
Realized by different control chips respectively.The application example of the storage ephemeral data shown in Fig. 4 comprises the steps:
Step 301, the interface of storage device receives write data requests from external equipment, and the write data requests are write including request
The data for entering.
Step 302, LUN modules respond the write data requests, are the data application memory pages resource of request write.
Step 303, LUN modules judge that the data of the request write need value-added service resume module, send it to
Value-added service module.
Step 304, value-added service module is processed the data of request write, obtains value-added service data.
Step 305, value-added service module is by value-added service data and the data is activation of request write to mark module.
Step 306, mark module determines that value-added service data are ephemeral data, is marked.
The data of value-added service data and request write are returned LUN modules by step 307, mark module.
The data write of value-added service data and request write is cached Cache by step 308, LUN modules.
Step 309, caches the data write SSD storage dishes of request write.
Step 310, is buffered in when itself being filled with and for value-added service data to write non-SSD storage dishes.
In above-mentioned technical proposal, storage device can be marked to ephemeral data, and only when caching is filled with
By life cycle still unclosed ephemeral data from caching write storage dish, due to ephemeral data life cycle duration compared with
Short, many ephemeral datas terminate the life cycle when not being filled with so that storage device can be without by these life cycles
The ephemeral data write storage dish being over, reduces the number of times that storage dish writes data.On the other hand, due to not above-mentioned
The ephemeral data being over life cycle is write into storage dish, storage dish carries out erasing behaviour also without to these ephemeral datas
Make.It can be seen that, after aforesaid way, the quantity of the ephemeral data that storage dish need to write and need to wipe is reduced, and then can be prolonged
The service life of long storage dish.
Fig. 5 is the structural representation of storage device provided in an embodiment of the present invention 400, and storage device 400 includes:
Mark module 401, for being marked to the ephemeral data of the Cache for needing to write the storage device;
First writing module 402, for the labeled ephemeral data to be write into the Cache;
Second writing module 403, for the life cycle of the ephemeral data that is filled with and is labeled in the Cache still
At the end of not, the ephemeral data is write into the storage dish of the storage device from the Cache.
Optionally, in the embodiment of the present invention, the storage device includes solid-state hard disk SSD and non-SSD storage dishes, second
Writing module is used for:The ephemeral data that the Cache is filled with and is labeled life cycle not yet at the end of, will be described
Ephemeral data writes the non-SSD storage dishes.
Optionally, in the embodiment of the present invention, storage device 400 also includes:
Removing module 404, for not being filled with and at the end of the life cycle of the ephemeral data in the Cache, from institute
State and delete in Cache the ephemeral data.
Optionally, in the embodiment of the present invention, storage device 400 also includes:
Judge module 405, for being marked it to the ephemeral data for needing to write the Cache in the mark module
Before, the attribute information of the data of the Cache is write as needed, determine from the data for needing and write the Cache
The ephemeral data.
Optionally, in the embodiment of the present invention, the mark module 401 is used for:Generate in the storage device described interim
The ephemeral data is marked during data.
Optionally, in the embodiment of the present invention, the mark module 401 is used for:It is being used to carry the page of the data
Add on face for characterizing the mark that the data are ephemeral data.
The implementation of each module of above-mentioned storage device 400 may be referred to the reality of step 201 each step into step 204
Existing mode, here not repeats.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware
Apply the form of example.And, the present invention can be adopted and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program
Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram
The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided
The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.
Claims (12)
1. it is a kind of storage ephemeral data method, it is characterised in that include:
The ephemeral data of caching Cache of the storage device to needing to write the storage device is marked;
The labeled ephemeral data is write the Cache by the storage device;
The ephemeral data that the Cache is filled with and is labeled life cycle not yet at the end of, the storage device will
The ephemeral data writes the storage dish of the storage device from the Cache.
2. method according to claim 1, it is characterised in that the storage device is by the ephemeral data from described
Cache writes the storage dish of the storage device, including:
The ephemeral data is write the storage device non-solid hard disk SSD storages of the storage device from the Cache
Disk.
3. method according to claim 1 and 2, it is characterised in that also include:
The storage device is not filled with and at the end of the life cycle of the ephemeral data in the Cache, from the Cache
Delete the ephemeral data.
4. the method according to any one of claims 1 to 3, it is characterised in that in the storage device to needing to write institute
State Cache ephemeral data be marked before, also include:
The storage device writes as needed the attribute information of the data of the Cache, needs to write the Cache from described
Data in determine the ephemeral data.
5. the method according to any one of claims 1 to 3, it is characterised in that the storage device is described to needing write
The ephemeral data of Cache is marked, including:
The storage device is marked when the ephemeral data is generated to the ephemeral data.
6. the method according to any one of claim 1 to 5, it is characterised in that the storage device is to the ephemeral data
It is marked, including:
The storage device for carry add on the memory pages of ephemeral data for characterize data for ephemeral data mark
Know.
7. a kind of storage device, it is characterised in that include:
Mark module, for being marked to the ephemeral data of the Cache for needing to write the storage device;
First writing module, for the labeled ephemeral data to be write into the Cache;
Second writing module, the life cycle of the ephemeral data for being filled with and being labeled in the Cache not yet terminates
When, the ephemeral data is write into the storage dish of the storage device from the Cache.
8. storage device according to claim 7, it is characterised in that the second writing module is used for:By the ephemeral data
The non-SSD storage dishes of storage device are stated described in write.
9. the storage device according to claim 7 or 8, it is characterised in that also include:
Removing module, for not being filled with and at the end of the life cycle of the ephemeral data in the Cache, from the Cache
It is middle to delete the ephemeral data.
10. the storage device according to any one of claim 7 to 9, it is characterised in that also include:
Judge module, in the mark module to before needing the ephemeral data for writing the Cache to be marked, according to
The attribute information of the data for needing to write the Cache, determines described interim from the data for needing and writing the Cache
Data.
11. storage devices according to any one of claim 7 to 10, it is characterised in that the mark module is used for:Institute
State when storage device generates the ephemeral data and the ephemeral data is marked.
12. storage devices according to any one of claim 7 to 11, it is characterised in that the mark module is used for:With
Add the mark for ephemeral data for characterize data on the memory pages for carrying the ephemeral 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 true CN106569744A (en) | 2017-04-19 |
CN106569744B 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) |
Cited By (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 |
CN114168225A (en) * | 2021-12-08 | 2022-03-11 | 深圳忆联信息系统有限公司 | Method and device for delaying updating of solid state disk mapping table, computer equipment and storage medium |
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 |
Cited By (3)
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 |
CN114168225A (en) * | 2021-12-08 | 2022-03-11 | 深圳忆联信息系统有限公司 | Method and device for delaying updating of solid state disk mapping table, computer equipment and storage medium |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN106569744B (en) | 2020-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11243701B2 (en) | Data write method and solid-state drive array | |
EP3230868B1 (en) | Multiple transaction logs in a distributed storage system | |
JP6259532B2 (en) | Namespace management in distributed storage systems | |
US10564880B2 (en) | Data deduplication method and apparatus | |
CN106201659B (en) | A kind of method and host of live migration of virtual machine | |
JP6343438B2 (en) | Computer system and data management method for computer system | |
US8782335B2 (en) | Latency reduction associated with a response to a request in a storage system | |
CN103064797B (en) | Data processing method and virtual machine management platform | |
US10303374B2 (en) | Data check method and storage system | |
JP2017515212A (en) | Scalable file storage service | |
WO2019001521A1 (en) | Data storage method, storage device, client and system | |
WO2019000950A1 (en) | Fragment management method and fragment management apparatus | |
CN106776147B (en) | Differential data backup method and differential data backup device | |
US20160170646A1 (en) | Implementing enhanced performance flash memory devices | |
US8572338B1 (en) | Systems and methods for creating space-saving snapshots | |
JP2022552804A (en) | Garbage collection in data storage systems | |
WO2019090493A1 (en) | Memory block recovery method and device | |
CN111026510A (en) | Cross-storage thermal migration method for virtual machine in cloud environment | |
JP5893028B2 (en) | System and method for efficient sequential logging on a storage device that supports caching | |
WO2017113861A1 (en) | Data access method and device | |
CN106569744A (en) | Method and storage equipment for storing temporary data | |
US11775194B2 (en) | Data storage method and apparatus in distributed storage system, and computer program product | |
JP6582721B2 (en) | Control device, storage system, and control program | |
CN112965783A (en) | System and method for using storage snapshot backup virtual machine | |
CN105068760A (en) | Data storage method, data storage apparatus and storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
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 |