A kind of data migration method and device

文档序号:1755023 发布日期:2019-11-29 浏览:2次 中文

阅读说明:本技术 一种数据迁移方法及装置 (A kind of data migration method and device ) 是由 苏楠 于 2019-08-16 设计创作,主要内容包括:本发明提供一种数据迁移方法及装置,通过动态随机存取存储器DRAM将数据写入固态驱动器SSD,若在固态驱动器SSD中全部数据占用的存储容量大于或等于预设存储容量,将部分数据从固态驱动器SSD中迁移至硬盘驱动器HDD,在预设时间内,若被执行写操作的数据的次数大于预设写次数,则将数据迁移到非易失存储器NVM,或若被执行读操作的数据的次数大于预设读次数,则存储在固态驱动器SSD中的数据,不执行迁移操作。提高各个存储介质的利用率,解决了不能充分发挥各个存储介质的性能的问题。(The present invention provides a kind of data migration method and device, solid state drive SSD is write data by dynamic random access memory DRAM, if the memory capacity that total data occupies in solid state drive SSD is greater than or equal to default memory capacity, partial data is migrated from solid state drive SSD to hard disk drive HDD, within a preset time, if the number for being performed the data of write operation, which is greater than to preset, writes number, then by Data Migration to nonvolatile storage NVM, if or being performed the numbers of the data of read operation and being greater than and default read number, the data being then stored in solid state drive SSD, do not execute migration operation.The utilization rate for improving each storage medium solves the problems, such as that the performance of each storage medium cannot be given full play to.)

1. a kind of data migration method is suitable for storage system, the storage system includes solid state drive SSD, hard drive Device HDD, dynamic random access memory DRAM and nonvolatile storage NVM, which comprises

The solid state drive SSD is write data by the dynamic random access memory DRAM;

If the memory capacity that total data occupies in the solid state drive SSD is greater than or equal to default memory capacity, by portion Divided data is migrated from the solid state drive SSD to the hard disk drive HDD;

Within a preset time, if the number for being performed the data of write operation, which is greater than to preset, writes number, the Data Migration is arrived The nonvolatile storage NVM, if or be performed read operation data number be greater than it is default read number, be stored in described solid Data in state driver SSD, do not execute migration operation.

2. the method according to claim 1, wherein the method also includes:

If the number that data are performed write operation is less than the default number write number, and be performed read operation and is less than default reading time Number, then by the Data Migration to the hard disk drive HDD.

3. the method according to claim 1, wherein by the dynamic random access memory DRAM by data It is written after the solid state drive SSD, further includes:

Record the hot value of the data and the storage location of the data, wherein the hot value is that the data are performed The frequency of read operation and write operation, the data are performed read operation and the frequency of write operation is higher, and hot value is bigger.

4. the method according to claim 1, wherein if the number of the data for being performed write operation is greater than in advance It, then will be after the Data Migration to the nonvolatile storage NVM if writing number, further includes:

If the data being stored in the nonvolatile storage NVM are performed the number ratio of write operation within the current preset time The number that write operation is performed in previous preset time is few, then by the Data Migration to the solid state drive SSD.

5. according to the method described in claim 4, it is characterized in that, the method also includes:

If in the current preset time, the data being stored in the solid state drive SSD are performed the number ratio of read or write Lacking in previous preset time, then by the Data Migration to the hard disk drive HDD.

6. a kind of data migration device is suitable for storage system, the storage system includes solid state drive SSD, hard drive Device HDD, dynamic random access memory DRAM and nonvolatile storage NVM, described device include:

Writing module, for writing data into the solid state drive SSD by the dynamic random access memory DRAM;

First transferring module, if the memory capacity for total data to occupy in the solid state drive SSD is greater than or equal to Default memory capacity, partial data is migrated from the solid state drive SSD to the hard disk drive HDD;

Second transferring module is used within a preset time, if the number for being performed the data of write operation, which is greater than to preset, writes number, By the Data Migration to the nonvolatile storage NVM, if or being performed the number of data of read operation and being greater than default read time Number, the then data being stored in the solid state drive SSD do not execute migration operation.

7. device according to claim 6, which is characterized in that described device further include:

Third transferring module writes number if being less than to preset for the number that data are performed write operation, and is performed read operation Number is less than default reading number, then by the Data Migration to the hard disk drive HDD.

8. device according to claim 6, which is characterized in that described device further include:

Logging modle, for recording the hot value of the data and the storage location of the data, wherein the hot value is institute The frequency that data are performed read operation and write operation is stated, the data are performed read operation and the frequency of write operation is higher, Hot value is bigger.

9. device according to claim 6, which is characterized in that described device further include:

4th transferring module, if within the current preset time, the data being stored in the nonvolatile storage NVM to be held The number of row write operation is fewer than the number for being performed write operation in previous preset time, then by the Data Migration to the solid-state Driver SSD.

10. device according to claim 6, which is characterized in that described device further include:

5th transferring module, if the data being stored in the solid state drive SSD are performed reading in the current preset time Or the number of write operation is than few in previous preset time, then by the Data Migration to the hard disk drive HDD.

Technical field

The invention belongs to technical field of memory, are specially related to a kind of data migration method and device.

Background technique

With the progress of science and technology, the arrival in data information epoch, information content was fast-developing in recent years, such as: it is each Each industry of row is all in mad generation data, and acquisition, excavation and the integration of mass data, endlessly mass data advances letter Cease the epoch of explosion.Therefore, it is necessary to the bigger storage medium of capacity and advanced memory technologies, to solve the problems, such as instantly.Example Such as: in the method for conventional store, increasing cache memory.

But memory storage and external memory memory frequently exchange data, so that the memory storage and external memory storage The reduced service life of device can reduce the speed of exchange data in the later period, and frequently replacement memory can generate biggish hold Pin.

Summary of the invention

In view of this, the purpose of the present invention is to provide a kind of data migration method and device, for improving each storage The utilization rate of medium solves the problems, such as that the performance of each storage medium cannot be given full play to.Technical solution is as follows:

The present invention provides a kind of data migration method, is suitable for storage system, the storage system includes solid state drive SSD, hard disk drive HDD, dynamic random access memory DRAM and nonvolatile storage NVM, which comprises

The solid state drive SSD is write data by the dynamic random access memory DRAM;

If the memory capacity that total data occupies in the solid state drive SSD is greater than or equal to default memory capacity, Partial data is migrated from the solid state drive SSD to the hard disk drive HDD;

Within a preset time, if the number for being performed the data of write operation, which is greater than to preset, writes number, the data are moved Move on to the nonvolatile storage NVM, if or be performed read operation data number be greater than it is default read number, be stored in institute The data in solid state drive SSD are stated, migration operation is not executed.

Preferably, the method also includes:

If the number that data are performed write operation is less than the default number write number, and be performed read operation and is less than default read Number, then by the Data Migration to the hard disk drive HDD.

Preferably, after writing data into the solid state drive SSD by the dynamic random access memory DRAM, Further include:

Record the hot value of the data and the storage location of the data, wherein the hot value is the data quilt The frequency of read operation and write operation is executed, the data are performed read operation and the frequency of write operation is higher, and hot value is got over Greatly.

Preferably, if the number of the data for being performed write operation, which is greater than to preset, writes number, by the Data Migration To after the nonvolatile storage NVM, further includes:

If the data being stored in the nonvolatile storage NVM are performed time of write operation within the current preset time Number is fewer than being performed the number of write operation in previous preset time, then by the Data Migration to the solid state drive SSD.

Preferably, the method also includes:

If in the current preset time, the data being stored in the solid state drive SSD are performed time of read or write Number is than few in previous preset time, then by the Data Migration to the hard disk drive HDD.

The present invention also provides a kind of data migration devices, are suitable for storage system, and the storage system includes solid-state driving Device SSD, hard disk drive HDD, dynamic random access memory DRAM and nonvolatile storage NVM, described device include:

Writing module, for writing data into the solid state drive by the dynamic random access memory DRAM SSD;

First transferring module, if in the solid state drive SSD total data occupy memory capacity be greater than or Equal to default memory capacity, partial data is migrated from the solid state drive SSD to the hard disk drive HDD;

Second transferring module, within a preset time, if the number for being performed the data of write operation is greater than default write time Number, then by the Data Migration to the nonvolatile storage NVM, if or be performed read operation data number be greater than preset Number is read, then the data being stored in the solid state drive SSD do not execute migration operation.

Preferably, described device further include:

Third transferring module writes number if being less than to preset for the number that data are performed write operation, and is performed reading behaviour The number of work is less than default reading number, then by the Data Migration to the hard disk drive HDD.

Preferably, described device further include:

Logging modle, for recording the hot value of the data and the storage location of the data, wherein the hot value The frequency of read operation and write operation is performed for the data, the data are performed read operation and the frequency of write operation is got over Height, hot value are bigger.

Preferably, described device further include:

4th transferring module, if the data for being stored in the nonvolatile storage NVM within the current preset time The number for being performed write operation is fewer than the number for being performed write operation in previous preset time, then by the Data Migration described in Solid state drive SSD.

Preferably, described device further include:

5th transferring module, if the data being stored in the solid state drive SSD are held in the current preset time The number of row read or write is than few in previous preset time, then by the Data Migration to the hard disk drive HDD.

Compared with prior art, above-mentioned technical proposal provided by the invention has the advantages that

Solid state drive SSD is write data by dynamic random access memory DRAM, if in solid state drive SSD The memory capacity that total data occupies is greater than or equal to default memory capacity, and partial data is migrated from solid state drive SSD If the number for being performed the data of write operation, which is greater than to preset, writes number, it will be counted within a preset time to hard disk drive HDD According to moving to nonvolatile storage NVM, if or be performed read operation data number be greater than it is default read number, be stored in solid Data in state driver SSD, do not execute migration operation.The utilization rate for improving each storage medium, solving sufficiently to send out The problem of waving the performance of each storage medium.

Detailed description of the invention

In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.

Fig. 1 is a kind of flow chart of data migration method provided in an embodiment of the present invention;

Fig. 2 is the flow chart of another data migration method provided in an embodiment of the present invention;

Fig. 3 is the flow chart of another data migration method provided in an embodiment of the present invention;

Fig. 4 is the flow chart of another data migration method provided in an embodiment of the present invention;

Fig. 5 is the flow chart of still another data migration method provided in an embodiment of the present invention;

Fig. 6 is a kind of structural schematic diagram of data migration device provided in an embodiment of the present invention.

Specific embodiment

The present invention provides a kind of data migration method and devices to solve for improving the utilization rate of each storage medium The problem of cannot giving full play to the performance of each storage medium.

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.

As shown in Figure 1, showing a kind of flow chart of data migration method provided in an embodiment of the present invention, this method includes Following steps:

S101: solid state drive SSD is write data by dynamic random access memory DRAM.

In S101, DRAM (Dynamic RandomAccess Memory, dynamic random access memory), the most often The Installed System Memory seen.Data can only be saved the very short time by DRAM.In order to save data, DRAM is stored using capacitor, so (refresh) must be refreshed once every a period of time, if storage unit is not refreshed, the information of storage will lose.Example Such as: when computer is shut down, power supply disconnection will lose data.

Solid state drive (Solid State Disk or Solid State Drive, SSD), is commonly called as solid state hard disk, solid-state Hard disk is manufactured hard disk with solid-state electronic storage chip array.SSD by control unit and storage unit (FLASH chip, Dram chip) composition.Complete phase of the solid state hard disk in the specification and definition, function and application method of interface with common hard disc Together, also completely consistent with common hard disc in product shape and size.It is widely used in military, vehicle-mounted, industry control, video prison The numerous areas such as control, network monitoring, the network terminal, electric power, medical treatment, aviation, navigation equipment.

During executing S101, when data are performed write operation, system writes data into SSD by DRAM In.The data in system are saved in hard disk, are stored.

Such as: in a computer, storage system can divide memory and external memory, and hard disk is exactly external memory, and all data all store On hard disk.When computer calculates data, the data in hard disk are read in memory by central processor CPU order, are supplied to well certainly Oneself calculates in processing, then obtains result and is sent to memory, is write data in hard disk again by memory.It should be noted that hard Disk is that mechanical magnetic storage read or write speed is too slow, cannot match CPU processing data speed, and memory is electric storage, it can be matched CPU is equivalent to a transfer, and memory reads in the data in hard disk in advance, resupplies CPU use.

It should be noted that include but is not limited to be write data by DRAM to solid state drive SSD, it can be according to reality Situation selects hard disk, stores to data.

S102: whether the memory capacity for judging that total data occupies in solid state drive SSD is greater than or equal to default storage Capacity, if so, S103 is executed, if it is not, executing S104.

During executing S102, system monitors always the storage state of solid state drive SSD, which refers to Be data in the SSD, the memory capacity of occupancy.In order to protect solid state drive SSD, reduce solid state drive SSD's Service wear, therefore a default memory capacity is set, it is solid when monitoring for monitoring the storage state of solid state drive SSD The used memory capacity of state driver SSD is greater than or equal to default memory capacity, then executes corresponding operation, alleviates solid-state and drives The storage pressure of dynamic device SSD.

Such as: the memory capacity of solid state drive SSD is 100GB, when solid state drive SSD is used to the appearance of storing data When amount reaches 70GB, then it cannot be used to storing data, need to migrate out partial data.

It should be noted that being used to monitor the default memory capacity of solid state drive SSD, can be set according to the actual situation It is fixed, it is not discussed here.

S103: partial data is migrated from solid state drive SSD to hard disk drive HDD.

In S103, HDD (Hard Disk Drive, hard disk drive), is most basic computer memory.Such as: electricity The disk partition such as brain disk C disk, D disk belong to hard disk drive.At present the general common disk size of hard disk be 80G, 128G, 160G, 256G, 320G, 500G, 750G, 1TB and 2TB etc..Hard disk can be divided into 3.5 cun, 2.5 cun, 1.8 cun by volume size Deng;5400rpm/7200rpm/10000rpm etc. can be divided by revolution;PATA, SATA, SCSI etc. can be divided by interface.PATA, SATA is generally desktop grade application, and capacity is big, and price is relatively low, suitable for home use;And SCSI is generally server, work station etc. High-end applications, capacity is relatively small, and price is more expensive, but better performances, and stability is also higher.

During executing S103, because the memory capacity of solid state drive SSD is limited, if total appearance of write-in data Amount reaches the default memory capacity of solid state drive SSD, then needing to move to the partial data in solid state drive SSD In hard disk drive HDD, until the capacity that the data in solid state drive SSD occupy is less than default memory capacity.

Such as: if solid state drive SSD storage capacity is 100GB, occupancy storage of the data in solid state drive SSD Capacity is greater than 70%, i.e. 70GB, then needs to move to partial data in hard disk drive HDD, can such as move the data of 20GB It moves in hard disk drive HDD, so that the occupancy memory capacity of data is reduced to 50GB in solid state drive SSD, significantly Alleviate the storage pressure of solid state drive SSD.

It should be noted that can in order will according to reading and writing number less data is performed in solid state drive SSD These data are migrated from solid state drive SSD to hard disk drive HDD.

S104: migration operation is not executed.

During executing S104, if in solid state drive SSD data occupancy capacity, not up to default storage holds Amount, then not executing migration operation, continues to write data into solid state drive SSD.

S105: within a preset time, judge whether the number for the data for being performed write operation and read operation is greater than default write Number reads number with default, if the number for being performed the data of write operation, which is greater than to preset, writes number, S106 is executed, if being performed The number of read operation is greater than default reading number, then executes S104.

During executing S105, a preset time period is set, presets and writes number and default reading number.It is default at this In period, the write operation and read operation of each data are recorded, then judge whether the data for being performed write operation are big Number is write in default, if it does, illustrate that the data are commonly used, which need to be stored in a data are not easy to lose to deposit In reservoir.

S106: by Data Migration to nonvolatile storage NVM.

In S106, NVM (Non-volatile memory, nonvolatile storage) have it is non-volatile, by byte access, The high and low energy consumption of storage density, readwrite performance are close to DRAM, but read or write speed is asymmetric.After electric current is turned off, the data that are stored A kind of computer storage that will not be disappeared.

During executing S106, within a preset period of time, if the number that data are performed write operation is greater than default write Number, then by the Data Migration into nonvolatile storage NVM.

For example, within a hour, a kind of number that data are performed write operation is 8, and default number of writing is 6, then The data just need to migrate into nonvolatile storage NVM.

It should be noted that preset time and it is default write number and can be set according to the actual situation, no longer carry out here It repeats.

The data migration method according to disclosed in the embodiments of the present invention is it is found that pass through dynamic random access memory DRAM Solid state drive SSD is write data into, if the memory capacity that total data occupies in solid state drive SSD is greater than or equal in advance If memory capacity, partial data is migrated from solid state drive SSD to hard disk drive HDD, within a preset time, if by holding The number of the data of row write operation be greater than it is default writes number, then by Data Migration to nonvolatile storage NVM, if or being performed reading The number of the data of operation is greater than default reading number, then the data being stored in solid state drive SSD do not execute migration operation. The utilization rate for improving each storage medium solves the problems, such as that the performance of each storage medium cannot be given full play to.

Based on data migration method disclosed in the embodiments of the present invention, as shown in Fig. 2, being provided in an embodiment of the present invention The flow chart of another data migration method, specifically includes that

S201: solid state drive SSD is write data by dynamic random access memory DRAM.

S202: whether the memory capacity for judging that total data occupies in solid state drive SSD is greater than or equal to default storage Capacity, if so, S203 is executed, if it is not, executing S204.

S203: partial data is migrated from solid state drive SSD to hard disk drive HDD.

S204: migration operation is not executed.

The implementation principle of S201 to S204 is consistent with above-mentioned S101's to S104, is not discussed here.

S205: within a preset time, judge whether the number for the data for being performed write operation and read operation is greater than default write Number and default reading number, if the number that data are performed write operation, which is less than to preset, writes number, and are performed the number of read operation Less than default reading number, then S206 is executed.

S206: by Data Migration to hard disk drive HDD.

During executing S206, if within a preset time, the number that data are performed write operation is less than default write Number and the number for being performed read operation are less than default reading number, then migrate data into hard disk drive HDD from SDD.

Such as: within a hour, it is 3 times that data, which are performed write operation, and reading number is 0 time, and default number of writing is 8 Secondary, presetting and reading number is 1 time, which, which is performed, writes number and being performed and read that number is both less than default to be write number and default read time Number, so needing to migrate the data from SDD to hard disk drive HDD.

The data migration method according to disclosed in the embodiments of the present invention is it is found that pass through dynamic random access memory DRAM Solid state drive SSD is write data into, if the memory capacity that total data occupies in solid state drive SSD is greater than or equal in advance If memory capacity, partial data is migrated from solid state drive SSD to hard disk drive HDD, within a preset time, if by holding The number of the data of row write operation be greater than it is default writes number, then by Data Migration to nonvolatile storage NVM, if or being performed reading The number of the data of operation is greater than default reading number, then the data being stored in solid state drive SSD do not execute migration operation. The utilization rate for improving each storage medium solves the problems, such as that the performance of each storage medium cannot be given full play to.

Based on data migration method disclosed in the embodiments of the present invention, as shown in figure 3, being provided in an embodiment of the present invention Another flow chart of data migration method, method includes the following steps:

S301: solid state drive SSD is write data by dynamic random access memory DRAM.

The implementation principle of S301 is consistent with above-mentioned S101's, is not discussed here.

S302: the hot value of data and the storage location of data are recorded.

In S302, the hot value of data refers to that data are performed the frequency of read operation and write operation, i.e. data quilt The frequency for executing read operation and write operation is higher, and hot value is bigger.

Storage location refers to: which memory is the data being written into be stored in.

During executing S302, to the data of write-in solid state drive SSD, record and the storage of hot value are carried out The record of position can be apparent from the information of the various aspects of data by way of record.

It should be noted that because in embodiments of the present invention, there are multiple storage mediums, so needing to store these Medium is divided into level-one storage medium, secondary storage media.So in addition to recording above-mentioned data hot value and storage position It sets outer, it is also necessary to which which grade storage medium label has been stored in.

The data migration method according to disclosed in the embodiments of the present invention is it is found that pass through dynamic random access memory DRAM Solid state drive SSD is write data into, the hot value of data and the storage location of data is then recorded, number can be apparent from According to various aspects information.

Based on data migration method disclosed in the embodiments of the present invention, as shown in figure 4, being provided in an embodiment of the present invention Another flow chart of data migration method, method includes the following steps:

S401: judge that the data being stored in nonvolatile storage NVM in the current preset time are performed time of write operation Whether number is fewer than being performed the number of write operation in previous preset time, if so, S402 is executed, if it is not, executing S403.

S402: by Data Migration to solid state drive SSD.

S403: without migration operation.

The data migration method according to disclosed in the embodiments of the present invention is it is found that pass through dynamic random access memory DRAM Solid state drive SSD is write data into, if the memory capacity that total data occupies in solid state drive SSD is greater than or equal in advance If memory capacity, partial data is migrated from solid state drive SSD to hard disk drive HDD, within a preset time, if by holding The number of the data of row write operation be greater than it is default writes number, then by Data Migration to nonvolatile storage NVM, if or being performed reading The number of the data of operation is greater than default reading number, then the data being stored in solid state drive SSD do not execute migration operation. The utilization rate for improving each storage medium solves the problems, such as that the performance of each storage medium cannot be given full play to.

Based on data migration method disclosed in the embodiments of the present invention, as shown in figure 5, being provided in an embodiment of the present invention The flow chart of still another data migration method, method includes the following steps:

S501: judge that the data being stored in nonvolatile storage NVM in the current preset time are performed time of write operation Whether number is fewer than being performed the number of write operation in previous preset time, if so, S502 is executed, if it is not, executing S503.

S502: by Data Migration to solid state drive SSD.

S503: without migration operation.

The implementation principle of S501 to S503 is consistent with above-mentioned S401's to S402, is not discussed here.

S504: judge that the data being stored in solid state drive SSD in the current preset time are performed read or write Whether number is fewer than being performed the number of read operation or write operation in previous preset time, if so, S505 is executed, if it is not, executing S503。

S505: by Data Migration to hard disk drive HDD.

The data migration method according to disclosed in the embodiments of the present invention is it is found that pass through dynamic random access memory DRAM Solid state drive SSD is write data into, if the memory capacity that total data occupies in solid state drive SSD is greater than or equal in advance If memory capacity, partial data is migrated from solid state drive SSD to hard disk drive HDD, within a preset time, if by holding The number of the data of row write operation be greater than it is default writes number, then by Data Migration to nonvolatile storage NVM, if or being performed reading The number of the data of operation is greater than default reading number, then the data being stored in solid state drive SSD do not execute migration operation. The utilization rate for improving each storage medium solves the problems, such as that the performance of each storage medium cannot be given full play to.

Based on data migration method disclosed in the embodiments of the present invention, the embodiment of the present invention also discloses a kind of number accordingly According to moving apparatus, as shown in fig. 6, be a kind of structural schematic diagram of data migration device provided in an embodiment of the present invention, it is main to wrap It includes: writing module 60, the first transferring module 61 and the second transferring module 62.

Writing module 60, for writing data into solid state drive SSD by dynamic random access memory DRAM.

First transferring module 61, if the memory capacity for total data to occupy in solid state drive SSD is greater than or waits In default memory capacity, partial data is migrated from solid state drive SSD to hard disk drive HDD.

Second transferring module 62, within a preset time, being write if the number for being performed the data of write operation is greater than to preset Number, then by Data Migration to nonvolatile storage NVM, if or being performed the number of data of read operation and being greater than default read time Number, the then data being stored in solid state drive SSD do not execute migration operation.

The data migration device according to disclosed in the embodiments of the present invention is it is found that pass through dynamic random access memory DRAM Solid state drive SSD is write data into, if the memory capacity that total data occupies in solid state drive SSD is greater than or equal in advance If memory capacity, partial data is migrated from solid state drive SSD to hard disk drive HDD, within a preset time, if by holding The number of the data of row write operation be greater than it is default writes number, then by Data Migration to nonvolatile storage NVM, if or being performed reading The number of the data of operation is greater than default reading number, then the data being stored in solid state drive SSD do not execute migration operation. The utilization rate for improving each storage medium solves the problems, such as that the performance of each storage medium cannot be given full play to.

Based on data migration device disclosed in aforementioned present invention Installation practice, the data migration device further include: third Transferring module.

Third transferring module writes number if being less than to preset for the number that data are performed write operation, and is performed reading behaviour The number of work is less than default reading number, then by Data Migration to hard disk drive HDD.

Based on data migration device disclosed in aforementioned present invention Installation practice, the data migration device further include: record Module.

Logging modle, for recording the hot value of data and the storage location of data, wherein hot value is performed for data The frequency of read operation and write operation, i.e. data are performed read operation and the frequency of write operation is higher, and hot value is bigger.

The data migration device according to disclosed in the embodiments of the present invention is it is found that pass through dynamic random access memory DRAM Solid state drive SSD is write data into, the hot value of data and the storage location of data is then recorded, number can be apparent from According to various aspects information.

Based on data migration device disclosed in aforementioned present invention Installation practice, the data migration device further include: the 4th Transferring module.

4th transferring module, if within the current preset time, the data being stored in nonvolatile storage NVM to be held The number of row write operation is fewer than the number for being performed write operation in previous preset time, then by Data Migration to solid state drive SSD。

Based on data migration device disclosed in aforementioned present invention Installation practice, the data migration device further include: the 5th Transferring module.

5th transferring module, if the data being stored in solid state drive SSD are performed reading in the current preset time Or the number of write operation is than few in previous preset time, then by Data Migration to hard disk drive HDD.

The data migration device according to disclosed in the embodiments of the present invention is it is found that pass through dynamic random access memory DRAM Solid state drive SSD is write data into, if the memory capacity that total data occupies in solid state drive SSD is greater than or equal in advance If memory capacity, partial data is migrated from solid state drive SSD to hard disk drive HDD, within a preset time, if by holding The number of the data of row write operation be greater than it is default writes number, then by Data Migration to nonvolatile storage NVM, if or being performed reading The number of the data of operation is greater than default reading number, then the data being stored in solid state drive SSD do not execute migration operation. The utilization rate for improving each storage medium solves the problems, such as that the performance of each storage medium cannot be given full play to.

It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.

Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.

The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种SATA固态硬盘冷热数据分离的方法及其装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类