WO2022062015A1 - Data storage device and stored data migration method - Google Patents

Data storage device and stored data migration method Download PDF

Info

Publication number
WO2022062015A1
WO2022062015A1 PCT/CN2020/123033 CN2020123033W WO2022062015A1 WO 2022062015 A1 WO2022062015 A1 WO 2022062015A1 CN 2020123033 W CN2020123033 W CN 2020123033W WO 2022062015 A1 WO2022062015 A1 WO 2022062015A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
storage area
layer
storage
magnetic recording
Prior art date
Application number
PCT/CN2020/123033
Other languages
French (fr)
Chinese (zh)
Inventor
王毅
杨淏
陈家贤
廖好
周池
毛睿
Original Assignee
深圳大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳大学 filed Critical 深圳大学
Publication of WO2022062015A1 publication Critical patent/WO2022062015A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0677Optical disk device, e.g. CD-ROM, DVD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Definitions

  • the present application relates to the technical field of storage data processing, and in particular, to a data storage device and a method for migrating stored data.
  • the technical problem to be solved by the present application is to overcome the defects in the prior art that the data storage and read-write overhead is high and the read-write efficiency needs to be improved, so as to provide a data storage device and a method for migrating stored data.
  • embodiments of the present application provide a data storage device, including: a volatile memory module and a shingled magnetic recording disk module located under the volatile memory module, wherein the shingled magnetic recording disk module includes multiple layers Storage area, each storage area is composed of several basic storage units. The storage space of the storage area located in the next layer is N times that of the storage area immediately above it. According to the total capacity of the shingled magnetic recording disk, the dynamic Adjust the size of each layer's storage area.
  • the number of layers in which the shingled magnetic recording disk module divides the storage area and the storage basic unit included in each layer can be adjusted.
  • the parameter ⁇ i represents the storage area size of the i-th layer after the change
  • the parameter ⁇ i represents the initial storage area size
  • the parameter ⁇ i represents the change of the constraints in the i-th layer storage area
  • the parameter ⁇ represents the data
  • the read-write ratio of , the parameter ⁇ represents the correction amount.
  • an embodiment of the present application provides a method for migrating stored data. Based on the data storage device described in the first aspect of the embodiment of the present application, the method includes the following steps:
  • the data storage device When the data storage device receives the query instruction, it first searches in the volatile memory module, and returns the result if found; otherwise, searches layer by layer starting from the first layer of storage area in the shingled magnetic recording disk module, and finally return result;
  • f i-1 is the access frequency of data on the i-1 layer storage area
  • is a constant parameter that controls the migration floating frequency
  • is the read-write ratio of the current workload.
  • the data access frequency satisfies the second preset condition expressed by the following formula
  • the data is directly migrated to the volatile memory module:
  • i>1, f i-1, max represents the maximum access frequency of data in the storage area of the i-1 layer, ⁇ is a constant parameter that controls the floating frequency of migration, and ⁇ is the read-write ratio of the current workload.
  • the embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the first aspect of the embodiments of the present application. Migration method of stored data.
  • an embodiment of the present application provides a computer device, including: a memory and a processor, the memory and the processor are connected in communication with each other, the memory stores computer instructions, and the processor executes the The computer instructions are executed, thereby executing the method for migrating stored data described in the first aspect of the embodiments of the present application.
  • the present application provides a data storage device and a method for migrating stored data.
  • the data storage device includes a volatile memory module and a shingled magnetic recording disk module located under the volatile memory module, wherein the shingled magnetic recording disk module Including multi-layer storage areas, each storage area is composed of several basic storage units, the storage space of the storage area located in the next layer is N times that of the storage area immediately above it, according to the shingled magnetic recording disk.
  • the total capacity dynamically adjusts the size of each storage area so that it automatically adapts to the optimal read and write state.
  • the storage data migration method provided by the present application performs a re-migration operation for hot data that is accessed frequently according to preset conditions, migrates it to a place where it is easier to find, speeds up the search, and can greatly improve the
  • the storage stability and reliability of the data can also speed up the speed of addition, deletion and modification.
  • FIG. 1 is a schematic structural diagram of a data storage device provided in an embodiment of the present application.
  • Fig. 2 is the working flow chart of reading data provided in the embodiment of this application;
  • FIG. 3 is a workflow diagram of query data provided by the embodiment of the present application.
  • FIG. 4 is a composition diagram of a specific example of a computer device provided by an embodiment of the present application.
  • An embodiment of the present application provides a data storage device, which is mainly used in a data storage system, such as a storage database system in personal business storage, data server, etc., as shown in FIG.
  • the shingled magnetic recording disk module below the flexible memory module, wherein the shingled magnetic recording disk module includes multiple storage areas, each storage area is composed of several basic storage units, and the storage space of the storage area located in the lower layer
  • the size of each storage area is dynamically adjusted according to the total capacity of the shingled magnetic recording disk to be N times the storage area of the layer immediately above it.
  • the difference between the volatile memory module and the shingled magnetic recording disk module is that the volatile memory module has a faster read and write speed than the shingled magnetic recording disk module, but data is easily lost when power is lost , Although the shingled magnetic recording disk module has a slower read and write speed, the stored data is not easy to lose, and the data is stored in layers inside, and the storage space in the lower layer is larger than the next layer.
  • the storage space of the volatile memory module and the shingled magnetic recording disk module can be the same or different, which is determined according to the user-defined settings, which is not limited here.
  • the shingled magnetic recording disk module is divided into 8 layers of storage areas, each layer of storage area is composed of several storage basic units, and the storage space of the storage area located in the next layer is the storage area immediately adjacent to the upper layer. 16 times the storage area, for example, the size of the first layer of storage area is t, the size of the second layer of storage area is 16t, the size of the third storage area is 16*16t, and so on.
  • the size of all the storage areas is accumulated to be the size of the entire shingled magnetic recording disk module.
  • the above number of layers and the size of each layer area are only examples and not limited thereto.
  • the number of layers of the storage area divided by the shingled magnetic recording disk module and the basic storage unit contained in each layer can be adjusted, and the design can be made according to the characteristics of the file size and the capacity of the shingled magnetic recording disk.
  • the size of each storage area is dynamically adjusted according to the total capacity of the magnetic recording disk. Specifically, the following formula is used to adjust the size of each storage area:
  • the parameter ⁇ i represents the storage area size of the i-th layer after the change
  • the parameter ⁇ i represents the initial storage area size
  • the parameter ⁇ i represents the change of the constraints in the i-th layer storage area
  • the parameter ⁇ represents the data read Write ratio
  • parameter ⁇ represents the correction amount.
  • the number of layers in the storage area divided by the shingled magnetic recording disk module and the basic storage unit included in each layer can be adjusted, and the specific characteristics such as file size and data type can be stored according to the needs or the storage needs of practical applications. , make reasonable adjustments.
  • the size of each storage area is dynamically adjusted according to the total capacity of the shingled magnetic recording disk, so that it can be automatically adjusted to an optimal read-write state, which can improve data processing efficiency.
  • An embodiment of the present application provides a method for migrating stored data, including the following steps:
  • Step S10 When a command to write, delete and modify data occurs, write to the volatile memory module first, and perform data migration when the data in the volatile memory module is greater than a preset threshold, and migrate the data to the volatile memory module.
  • a preset threshold In the storage area of the first layer in the shingled magnetic recording disk module adjacent to the volatile memory module, when the storage area of the first layer is full, the data is migrated down to the second layer of storage area. tier storage area, and so on.
  • the above preset thresholds are adapted according to actual application requirements.
  • Figure 2 shows the workflow of data writing as an example.
  • the deletion and modification commands are similar to the data writing process. The difference is that the deleted workflow needs to be written by marking.
  • the involved addition, deletion and modification commands include:
  • DELETE Key//Delete the data that is the key When deleting the data, the Value value is null (NULL, that is, does not exist).
  • NULL null
  • the Value value in the delete command is used as a marker to determine whether the data is really stored.
  • Step S20 when the data storage device receives the query instruction, it first searches in the volatile memory module, if found, returns the result; otherwise, starts from the first layer storage area in the shingled magnetic recording disk module layer by layer. Search, and finally return the result, and its workflow is shown in Figure 3.
  • Step S30 Acquire the data access frequency of each layer of storage areas in the shingled magnetic recording disk module, move up one layer when the access frequency meets the first preset condition, and directly migrate to the easy-to-use storage area if the access frequency meets the second preset condition. in the volatile memory module.
  • the access frequency of data is greater than a certain value, it indicates that it is relatively important hot data, and it is necessary to migrate the data to the upper layer to a storage layer that is easier to read to reduce processing overhead and improve reading efficiency.
  • f i-1 is the access frequency of data on the i-1 layer storage area
  • is a constant parameter that controls the migration floating frequency
  • is the read-write ratio of the current workload.
  • i>1, f i-1, max represents the maximum access frequency of data in the storage area of the i-1 layer, ⁇ is a constant parameter that controls the floating frequency of migration, and ⁇ is the read-write ratio of the current workload.
  • the re-migration operation is performed according to preset conditions such as the load read-write ratio, the constant parameter of the migration floating frequency, the maximum access frequency of the data in the upper-layer storage area, etc. Migrating it to a place where it is easier to find and speeding up the search can greatly improve the storage stability and reliability of the data, and at the same time, it can speed up the speed of additions, deletions, and changes.
  • FIG. 4 An embodiment of the present application provides a computer device.
  • the device may include a processor 51 and a memory 52, where the processor 51 and the memory 52 may be connected through a bus or in other ways.
  • FIG. 4 takes the connection through a bus as an example .
  • the processor 51 may be a central processing unit (Central Processing Unit, CPU).
  • the processor 51 can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • Other programmable logic devices discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips.
  • the memory 52 can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as corresponding program instructions/modules in the embodiments of the present application.
  • the processor 51 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 52 , ie, implements the stored data migration method in the above method embodiment 1.
  • the memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 51, and the like. Additionally, memory 52 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 52 may optionally include memory located remotely from processor 51 , which may be connected to processor 51 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, intranets, mobile communication networks, and combinations thereof.
  • One or more modules are stored in the memory 52, and when executed by the processor 51, execute the stored data migration method in Embodiment 1.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive) , abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memories.

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)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Digital Magnetic Recording (AREA)

Abstract

Disclosed in the present application are a data storage device and a stored data migration method. The data storage device comprises a volatile memory module and a shingled magnetic recording disk module located below the volatile memory module, wherein the shingled magnetic recording disk module comprises multiple layers of storage areas, each storage area consists of a plurality of basic storage units, the storage space of the storage area on the next layer is N times that of the storage area on the adjacent upper layer, and the size of each storage area is dynamically adjusted according to the total capacity of the shingled magnetic recording disk to automatically adapt to an optimal read and write state. The stored data migration method provided by the present application first analyzes and stores data, and re-migrates the frequently accessed hot data according to preset conditions to a place where the data can be found more easily, increasing search speed, improving the storage stability and reliability of data to a great extent, and also increasing the speed of adding, deleting, checking and modifying.

Description

一种数据存储装置及存储数据的迁移方法A data storage device and method for migrating stored data 技术领域technical field
本申请涉及存储数据处理技术领域,具体涉及一种数据存储装置及存储数据的迁移方法。The present application relates to the technical field of storage data processing, and in particular, to a data storage device and a method for migrating stored data.
背景技术Background technique
各种数据存储系统已广泛应用于数据管理生产系统中,用于处理大量的写操作。并且在固态硬盘和机械硬盘中有很高效的应用。现有的提高数据存储的优化的方法大都只是考虑了数据与硬件直接结合的方式,而没有从软件应用上来考虑问题,使得存储数据的读写开销较高,读写效率有待提高。Various data storage systems have been widely used in data management production systems to handle a large number of write operations. And it has very efficient applications in solid state drives and mechanical hard drives. Most of the existing optimization methods for improving data storage only consider the direct combination of data and hardware, but do not consider the problem from software application, which makes the read and write overhead of stored data high, and the read and write efficiency needs to be improved.
发明内容SUMMARY OF THE INVENTION
因此,本申请要解决的技术问题在于克服现有技术中数据存储读写开销较高,读写效率有待提高的缺陷,从而提供一种数据存储装置及存储数据的迁移方法。Therefore, the technical problem to be solved by the present application is to overcome the defects in the prior art that the data storage and read-write overhead is high and the read-write efficiency needs to be improved, so as to provide a data storage device and a method for migrating stored data.
为达到上述目的,本申请提供如下技术方案:To achieve the above purpose, the application provides the following technical solutions:
第一方面,本申请实施例提供一种数据存储装置,包括:易失性存储器模块和位于易失性存储器模块下层的叠瓦式磁记录盘模块,其中叠瓦式磁记录盘模块包括多层存储区域,每个存储区域由若干个储存基本单位的 组成,位于下一层的存储区域的存储空间为紧邻其上一层的存储区域的N倍,根据叠瓦式磁记录盘的总容量动态调整每层存储区域的大小。In a first aspect, embodiments of the present application provide a data storage device, including: a volatile memory module and a shingled magnetic recording disk module located under the volatile memory module, wherein the shingled magnetic recording disk module includes multiple layers Storage area, each storage area is composed of several basic storage units. The storage space of the storage area located in the next layer is N times that of the storage area immediately above it. According to the total capacity of the shingled magnetic recording disk, the dynamic Adjust the size of each layer's storage area.
在一实施例中,所述叠瓦式磁记录盘模块划分存储区域的层数和每层所包含的储存基本单位可调节。In one embodiment, the number of layers in which the shingled magnetic recording disk module divides the storage area and the storage basic unit included in each layer can be adjusted.
在一实施例中,采用以下公式来调整每个存储区域的大小:In one embodiment, the following formula is used to adjust the size of each storage area:
θ i=ρ i+η×δ i+η×Δ θ ii +η×δ i +η×Δ
其中,其中,参数θ i表示在更改后第i层存储区域大小,参数ρ i表示初始时的存储区域大小,参数δ i表示在第i层存储区域中约束条件的变化量,参数η表示数据的读写比,参数Δ表示修正量。 Among them, the parameter θ i represents the storage area size of the i-th layer after the change, the parameter ρ i represents the initial storage area size, the parameter δ i represents the change of the constraints in the i-th layer storage area, and the parameter η represents the data The read-write ratio of , the parameter Δ represents the correction amount.
第二方面,本申请实施例提供一种存储数据的迁移方法,基于本申请实施例第一方面所述的数据存储装置,包括如下步骤:In a second aspect, an embodiment of the present application provides a method for migrating stored data. Based on the data storage device described in the first aspect of the embodiment of the present application, the method includes the following steps:
当有数据写入、删除和修改的命令发生时,先写入到易失性存储器模块中,当易失性存储器模块中的数据大于预设阈值时进行数据迁移,将数据迁移到与易失性存储器模块相邻的叠瓦式磁记录盘模块中的第一层存储区域中,当第一层存储区域,当第一层存储区域存储满时,将数据向下迁移到第二层存储区域中,以此类推;When there is a command to write, delete and modify data, it will be written to the volatile memory module first. When the data in the volatile memory module is greater than the preset threshold, data migration will be performed, and the data will be migrated to the volatile memory module. In the storage area of the first layer in the adjacent shingled magnetic recording disk module of the flexible memory module, when the storage area of the first layer is full, the data will be migrated down to the storage area of the second layer. , and so on;
当数据存储装置收到查询指令时,首先在易失性存储器模块中查找,如果找到,则返回结果;否则,在叠瓦式磁记录盘模块中从第一层存储区域开始逐层查找,最后返回结果;When the data storage device receives the query instruction, it first searches in the volatile memory module, and returns the result if found; otherwise, searches layer by layer starting from the first layer of storage area in the shingled magnetic recording disk module, and finally return result;
获取叠瓦式磁记录盘模块中各层存储区域的数据访问频率,当访问频 率满足第一预设条件时向上迁移一层,如果访问频率满足第二预设条件时直接迁移到易失性存储器模块中。Obtain the data access frequency of each layer of storage area in the shingled magnetic recording disk module, when the access frequency satisfies the first preset condition, move up one layer, and directly migrate to the volatile memory if the access frequency satisfies the second preset condition in the module.
在一实施例中,当数据访问频率f i满足通过以下公式表示的第一预设条件时,将其移到上层: In one embodiment, when the data access frequency f i satisfies the first preset condition expressed by the following formula, it is moved to the upper layer:
Figure PCTCN2020123033-appb-000001
Figure PCTCN2020123033-appb-000001
其中,i>1,f i-1是第i-1层存储区域上数据的访问频率,γ是控制迁移浮动频率的常数参数,η是当前工作负载的读写比。 Among them, i>1, f i-1 is the access frequency of data on the i-1 layer storage area, γ is a constant parameter that controls the migration floating frequency, and η is the read-write ratio of the current workload.
在一实施例中,当数据访问频率满足通过以下公式表示的第二预设条件时,将数据直接迁移到易失性存储器模块中:In one embodiment, when the data access frequency satisfies the second preset condition expressed by the following formula, the data is directly migrated to the volatile memory module:
Figure PCTCN2020123033-appb-000002
Figure PCTCN2020123033-appb-000002
其中,i>1,f i-1,max表示第i-1层存储区域中数据的最大访问频率,γ是控制迁移浮动频率的常数参数,η是当前工作负载的读写比。 Among them, i>1, f i-1, max represents the maximum access frequency of data in the storage area of the i-1 layer, γ is a constant parameter that controls the floating frequency of migration, and η is the read-write ratio of the current workload.
第三方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使所述计算机执行本申请实施例第一方面所述的存储数据的迁移方法。In a third aspect, the embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the first aspect of the embodiments of the present application. Migration method of stored data.
第四方面,本申请实施例提供一种计算机设备,包括:存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器存储有计算机指令,所述处理器通过执行所述计算机指令,从而执行本申请实施例第 一方面所述的存储数据的迁移方法。In a fourth aspect, an embodiment of the present application provides a computer device, including: a memory and a processor, the memory and the processor are connected in communication with each other, the memory stores computer instructions, and the processor executes the The computer instructions are executed, thereby executing the method for migrating stored data described in the first aspect of the embodiments of the present application.
本申请技术方案,具有如下优点:The technical solution of the present application has the following advantages:
本申请提供的一种数据存储装置及存储数据的迁移方法,数据存储装置包括易失性存储器模块和位于易失性存储器模块下层的叠瓦式磁记录盘模块,其中叠瓦式磁记录盘模块包括多层存储区域,每个存储区域由若干个储存基本单位的组成,位于下一层的存储区域的存储空间为紧邻其上一层的存储区域的N倍,根据叠瓦式磁记录盘的总容量动态调整每个存储区域的大小,使其自动适应调整为最优的读写状态。本申请提供的存储数据迁移方法,对于被访问频率较高的热数据根据预设条件进行重新迁移操作,将其迁移到更容易被找到的地方,加快查找的速度,能够在很大程度上提高数据的存储稳定性和可靠性,同时能够加快增删查改的速度。The present application provides a data storage device and a method for migrating stored data. The data storage device includes a volatile memory module and a shingled magnetic recording disk module located under the volatile memory module, wherein the shingled magnetic recording disk module Including multi-layer storage areas, each storage area is composed of several basic storage units, the storage space of the storage area located in the next layer is N times that of the storage area immediately above it, according to the shingled magnetic recording disk. The total capacity dynamically adjusts the size of each storage area so that it automatically adapts to the optimal read and write state. The storage data migration method provided by the present application performs a re-migration operation for hot data that is accessed frequently according to preset conditions, migrates it to a place where it is easier to find, speeds up the search, and can greatly improve the The storage stability and reliability of the data can also speed up the speed of addition, deletion and modification.
附图说明Description of drawings
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the specific embodiments or the prior art will be briefly introduced below. The drawings are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本申请实施例中提供的数据存储装置的结构示意图;FIG. 1 is a schematic structural diagram of a data storage device provided in an embodiment of the present application;
图2为本申请实施例中提供的读取数据的工作流程图;Fig. 2 is the working flow chart of reading data provided in the embodiment of this application;
图3为本申请实施例提供的查询数据的工作流程图;FIG. 3 is a workflow diagram of query data provided by the embodiment of the present application;
图4为本申请实施例提供的计算机设备一个具体示例的组成图。FIG. 4 is a composition diagram of a specific example of a computer device provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
此外,下面所描述的本申请不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as there is no conflict with each other.
实施例1Example 1
本申请实施例提供一种数据存储装置,主要应用在数据存储系统中,例如个人商务存储、数据服务器等方面的存储数据库系统,如图1所示,包括:易失性存储器模块和位于易失性存储器模块下层的叠瓦式磁记录盘模块,其中叠瓦式磁记录盘模块包括多层存储区域,每个存储区域由若干个储存基本单位的组成,位于下一层的存储区域的存储空间为紧邻其上一层的存储区域的N倍,根据叠瓦式磁记录盘的总容量动态调整每个存储区域的大小。An embodiment of the present application provides a data storage device, which is mainly used in a data storage system, such as a storage database system in personal business storage, data server, etc., as shown in FIG. The shingled magnetic recording disk module below the flexible memory module, wherein the shingled magnetic recording disk module includes multiple storage areas, each storage area is composed of several basic storage units, and the storage space of the storage area located in the lower layer The size of each storage area is dynamically adjusted according to the total capacity of the shingled magnetic recording disk to be N times the storage area of the layer immediately above it.
在本申请实施例中,易失性存储器模块和叠瓦式磁记录盘模块的区别在于,易失性存储器模块比叠瓦式磁记录盘模块的读写速度更快,但是失电数据易丢失,叠瓦式磁记录盘模块虽然读写速度较慢,但是存储数据不易丢失,且其内部将数据分层存储,位于下层的存储空间大于下一层。易失性存储器模块和叠瓦式磁记录盘模块的存储空间可以一样,也可以不一 样,根据实际用户的自定义设置确定,在此不作限制。In the embodiment of the present application, the difference between the volatile memory module and the shingled magnetic recording disk module is that the volatile memory module has a faster read and write speed than the shingled magnetic recording disk module, but data is easily lost when power is lost , Although the shingled magnetic recording disk module has a slower read and write speed, the stored data is not easy to lose, and the data is stored in layers inside, and the storage space in the lower layer is larger than the next layer. The storage space of the volatile memory module and the shingled magnetic recording disk module can be the same or different, which is determined according to the user-defined settings, which is not limited here.
在一具体实施例中,叠瓦式磁记录盘模块分为8层存储区域,每层存储区域由若干个储存基本单位组成,位于下一层的存储区域的存储空间为紧邻其上一层的存储区域的16倍,例如第一层存储区域的大小是t,第二层存储区域的大小是16t,第三个存储区域的大小是16*16t,以此类推。将所有的储存区域的大小累积即是整个叠瓦式磁记录盘模块大小,以上层数和每层区域的大小仅为举例说明,不以此为限。In a specific embodiment, the shingled magnetic recording disk module is divided into 8 layers of storage areas, each layer of storage area is composed of several storage basic units, and the storage space of the storage area located in the next layer is the storage area immediately adjacent to the upper layer. 16 times the storage area, for example, the size of the first layer of storage area is t, the size of the second layer of storage area is 16t, the size of the third storage area is 16*16t, and so on. The size of all the storage areas is accumulated to be the size of the entire shingled magnetic recording disk module. The above number of layers and the size of each layer area are only examples and not limited thereto.
在本申请实施例中叠瓦式磁记录盘模块划分存储区域的层数和每层所包含的储存基本单位可调节,可以根据文件大小特点和叠瓦式磁记录盘容量进行设计,根据叠瓦式磁记录盘的总容量动态调整每个存储区域的大小,具体地,采用以下公式来调整每个存储区域的大小:In the embodiment of the present application, the number of layers of the storage area divided by the shingled magnetic recording disk module and the basic storage unit contained in each layer can be adjusted, and the design can be made according to the characteristics of the file size and the capacity of the shingled magnetic recording disk. The size of each storage area is dynamically adjusted according to the total capacity of the magnetic recording disk. Specifically, the following formula is used to adjust the size of each storage area:
θ i=ρ i+η×δ i+η×Δ θ ii +η×δ i +η×Δ
其中,参数θ i表示在更改后第i层存储区域大小,参数ρ i表示初始时的存储区域大小,参数δ i表示在第i层存储区域中约束条件的变化量,参数η表示数据的读写比,参数Δ表示修正量。需要说明的是,上述公式中的参数根据实际应用需要,或者根据实验经验值进行确定,在此不作限制。 Among them, the parameter θ i represents the storage area size of the i-th layer after the change, the parameter ρ i represents the initial storage area size, the parameter δ i represents the change of the constraints in the i-th layer storage area, and the parameter η represents the data read Write ratio, parameter Δ represents the correction amount. It should be noted that the parameters in the above formula are determined according to actual application requirements or according to experimental experience values, and are not limited herein.
本申请实施例中,叠瓦式磁记录盘模块划分存储区域的层数和每层所包含的储存基本单位可调节,具体的可根据需要存储文件大小、数据类型等特点或者实际应用的存储需要,做合理调节。In the embodiment of the present application, the number of layers in the storage area divided by the shingled magnetic recording disk module and the basic storage unit included in each layer can be adjusted, and the specific characteristics such as file size and data type can be stored according to the needs or the storage needs of practical applications. , make reasonable adjustments.
本申请实施例提供的数据存储装置,根据叠瓦式磁记录盘的总容量动 态调整每个存储区域的大小,使其自动适应调整为最优的读写状态,可以提高数据的处理效率。In the data storage device provided by the embodiment of the present application, the size of each storage area is dynamically adjusted according to the total capacity of the shingled magnetic recording disk, so that it can be automatically adjusted to an optimal read-write state, which can improve data processing efficiency.
实施例2Example 2
本申请实施例提供一种存储数据的迁移方法,包括如下步骤:An embodiment of the present application provides a method for migrating stored data, including the following steps:
步骤S10:当有数据写入、删除和修改的命令发生时,先写入到易失性存储器模块中,当易失性存储器模块中的数据大于预设阈值时进行数据迁移,将数据迁移到与易失性存储器模块相邻的叠瓦式磁记录盘模块中的第一层存储区域中,当第一层存储区域,当第一层存储区域存储满时,将数据向下迁移到第二层存储区域中,以此类推。上述预设阈值根据实际应用需求做适应设置。Step S10: When a command to write, delete and modify data occurs, write to the volatile memory module first, and perform data migration when the data in the volatile memory module is greater than a preset threshold, and migrate the data to the volatile memory module. In the storage area of the first layer in the shingled magnetic recording disk module adjacent to the volatile memory module, when the storage area of the first layer is full, the data is migrated down to the second layer of storage area. tier storage area, and so on. The above preset thresholds are adapted according to actual application requirements.
如图2所示的为数据写入为例的工作流程,删除和修改的命令和数据写入的流程类似,不同的是删除的工作流程中需要通过打标记的方式进行写入。在本申请实施例中,涉及的增删改命令包括:Figure 2 shows the workflow of data writing as an example. The deletion and modification commands are similar to the data writing process. The difference is that the deleted workflow needs to be written by marking. In the embodiment of the present application, the involved addition, deletion and modification commands include:
INSERT Key Value//插入KV对;INSERT Key Value//Insert KV pair;
UPDATE Key Value//更新KV对;UPDATE Key Value//Update KV pair;
READ Key//读取为Key的数据;READ Key//Data read as Key;
DELETE Key//删除为Key的数据,删除数据时,Value值为空值(NULL,即不存在),通过删除命令中Value值作为标记,来判断该数据是否真正被存储。DELETE Key//Delete the data that is the key. When deleting the data, the Value value is null (NULL, that is, does not exist). The Value value in the delete command is used as a marker to determine whether the data is really stored.
步骤S20:当数据存储装置收到查询指令时,首先在易失性存储器模块中查找,如果找到,则返回结果;否则,在叠瓦式磁记录盘模块中从第一层存储区域开始逐层查找,最后返回结果,其工作流程如图3所示。Step S20: when the data storage device receives the query instruction, it first searches in the volatile memory module, if found, returns the result; otherwise, starts from the first layer storage area in the shingled magnetic recording disk module layer by layer. Search, and finally return the result, and its workflow is shown in Figure 3.
步骤S30:获取叠瓦式磁记录盘模块中各层存储区域的数据访问频率,当访问频率满足第一预设条件时向上迁移一层,如果访问频率满足第二预设条件时直接迁移到易失性存储器模块中。当数据的访问频率大于一定值的时候,说明其是比较重要的热数据,需要通过往上层迁移的方式将数据放到更容易读取的存储层,来减小处理开销,提高读取效率。Step S30: Acquire the data access frequency of each layer of storage areas in the shingled magnetic recording disk module, move up one layer when the access frequency meets the first preset condition, and directly migrate to the easy-to-use storage area if the access frequency meets the second preset condition. in the volatile memory module. When the access frequency of data is greater than a certain value, it indicates that it is relatively important hot data, and it is necessary to migrate the data to the upper layer to a storage layer that is easier to read to reduce processing overhead and improve reading efficiency.
本申请实施例,当数据访问频率f i满足通过以下公式表示的第一预设条件时,将其移到上层: In this embodiment of the present application, when the data access frequency f i satisfies the first preset condition expressed by the following formula, it is moved to the upper layer:
Figure PCTCN2020123033-appb-000003
Figure PCTCN2020123033-appb-000003
其中,i>1,f i-1是第i-1层存储区域上数据的访问频率,γ是控制迁移浮动频率的常数参数,η是当前工作负载的读写比。 Among them, i>1, f i-1 is the access frequency of data on the i-1 layer storage area, γ is a constant parameter that controls the migration floating frequency, and η is the read-write ratio of the current workload.
本申请实施例,当数据访问频率满足通过以下公式表示的第二预设条件时,将数据直接迁移到易失性存储器模块中:In this embodiment of the present application, when the data access frequency satisfies the second preset condition expressed by the following formula, the data is directly migrated to the volatile memory module:
Figure PCTCN2020123033-appb-000004
Figure PCTCN2020123033-appb-000004
其中,i>1,f i-1,max表示第i-1层存储区域中数据的最大访问频率,γ是控制迁移浮动频率的常数参数,η是当前工作负载的读写比。 Among them, i>1, f i-1, max represents the maximum access frequency of data in the storage area of the i-1 layer, γ is a constant parameter that controls the floating frequency of migration, and η is the read-write ratio of the current workload.
本申请提供的存储数据迁移方法,对于被访问频率较高的热数据,根据负载读写比、迁移浮动频率的常数参数、上层存储区域中数据的最大访问频率等预设条件进行重新迁移操作,将其迁移到更容易被找到的地方,加快查找的速度,能够在很大程度上提高数据的存储稳定性和可靠性,同时能够加快增删查改的速度。In the storage data migration method provided by the present application, for hot data with high access frequency, the re-migration operation is performed according to preset conditions such as the load read-write ratio, the constant parameter of the migration floating frequency, the maximum access frequency of the data in the upper-layer storage area, etc. Migrating it to a place where it is easier to find and speeding up the search can greatly improve the storage stability and reliability of the data, and at the same time, it can speed up the speed of additions, deletions, and changes.
实施例3Example 3
本申请实施例提供一种计算机设备,如图4所示,该设备可以包括处理器51和存储器52,其中处理器51和存储器52可以通过总线或者其他方式连接,图4以通过总线连接为例。An embodiment of the present application provides a computer device. As shown in FIG. 4 , the device may include a processor 51 and a memory 52, where the processor 51 and the memory 52 may be connected through a bus or in other ways. FIG. 4 takes the connection through a bus as an example .
处理器51可以为中央处理器(Central Processing Unit,CPU)。处理器51还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。The processor 51 may be a central processing unit (Central Processing Unit, CPU). The processor 51 can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips.
存储器52作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本申请实施例中的对应的程序指令/模块。处理器51通过运行存储在存储器52中的非暂态软件程序、指令以及模块,从而执行处理器的各种功能应用以及数据处理,即实现上述方法实施例1中的存储数据迁移方法。As a non-transitory computer-readable storage medium, the memory 52 can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as corresponding program instructions/modules in the embodiments of the present application. The processor 51 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 52 , ie, implements the stored data migration method in the above method embodiment 1.
存储器52可以包括存储程序区和存储数据区,其中,存储程序区可存 储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器51所创建的数据等。此外,存储器52可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器52可选包括相对于处理器51远程设置的存储器,这些远程存储器可以通过网络连接至处理器51。上述网络的实例包括但不限于互联网、企业内部网、企业内网、移动通信网及其组合。The memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 51, and the like. Additionally, memory 52 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 52 may optionally include memory located remotely from processor 51 , which may be connected to processor 51 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, intranets, mobile communication networks, and combinations thereof.
一个或者多个模块存储在存储器52中,当被处理器51执行时,执行实施例1中的存储数据迁移方法。One or more modules are stored in the memory 52, and when executed by the processor 51, execute the stored data migration method in Embodiment 1.
上述计算机设备具体细节可以对应参阅实施例1中对应的相关描述和效果进行理解,此处不再赘述。The specific details of the above computer equipment can be understood by referring to the corresponding related descriptions and effects in Embodiment 1, and details are not repeated here.
本领域技术人员可以理解,实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(Random Access Memory,RAM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,缩写:HDD)或固态硬盘(Solid-State Drive,SSD)等;存储介质还可以包括上述种类的存储器的组合。Those skilled in the art can understand that the realization of all or part of the processes in the methods of the above embodiments is a program that can be completed by instructing relevant hardware through a computer program and can be stored in a computer-readable storage medium. When the program is executed , which may include the processes of the above-mentioned method embodiments. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive) , abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memories.
显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可 以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引申出的显而易见的变化或变动仍处于本发明创造的保护范围之中。Obviously, the above-mentioned embodiments are only examples for clear description, and are not intended to limit the implementation manner. For those of ordinary skill in the art, on the basis of the above description, other different forms of changes or modifications can also be made. There is no need and cannot be exhaustive of all implementations here. However, the obvious changes or changes derived from this are still within the protection scope of the present invention.

Claims (8)

  1. 一种数据存储装置,其特征在于,包括:易失性存储器模块和位于易失性存储器模块下层的叠瓦式磁记录盘模块,其中叠瓦式磁记录盘模块包括多层存储区域,每个存储区域由若干个储存基本单位的组成,位于下一层的存储区域的存储空间为紧邻其上一层的存储区域的N倍,根据叠瓦式磁记录盘的总容量动态调整每层存储区域的大小。A data storage device, characterized by comprising: a volatile memory module and a shingled magnetic recording disk module located at a lower layer of the volatile memory module, wherein the shingled magnetic recording disk module includes a multi-layer storage area, each The storage area is composed of several basic storage units. The storage space of the storage area located in the next layer is N times that of the storage area immediately above it. The storage area of each layer is dynamically adjusted according to the total capacity of the shingled magnetic recording disk. the size of.
  2. 根据权利要求1所述的数据存储装置,其特征在于,所述叠瓦式磁记录盘模块划分存储区域的层数和每层所包含的储存基本单位可调节。The data storage device according to claim 1, wherein the number of layers for dividing the storage area by the shingled magnetic recording disk module and the storage basic unit included in each layer are adjustable.
  3. 根据权利要求1所述的数据存储装置,其特征在于,采用以下公式来调整每个存储区域的大小:The data storage device according to claim 1, wherein the following formula is used to adjust the size of each storage area:
    θ i=ρ i+η×δ i+η×Δ θ ii +η×δ i +η×Δ
    其中,参数θ i表示在更改后第i层存储区域大小,参数ρ i表示初始时的存储区域大小,参数δ i表示在第i层存储区域中约束条件的变化量,参数η表示数据的读写比,参数Δ表示修正量。 Among them, the parameter θ i represents the storage area size of the i-th layer after the change, the parameter ρ i represents the initial storage area size, the parameter δ i represents the change of the constraints in the i-th layer storage area, and the parameter η represents the data read Write ratio, parameter Δ represents the correction amount.
  4. 一种存储数据的迁移方法,其特征在于,基于权利求1-3任一所述的数据存储装置,包括如下步骤:A method for migrating stored data, characterized in that, based on the data storage device according to any one of claims 1-3, comprising the following steps:
    当有数据写入、删除和修改的命令发生时,先写入到易失性存储器模块中,当易失性存储器模块中的数据大于预设阈值时进行数据迁移,将数据迁移到与易失性存储器模块相邻的叠瓦式磁记录盘模块中的第一层存储区域中,当第一层存储区域,当第一层存储区域存储满时,将数据向下迁 移到第二层存储区域中,以此类推;When there is a command to write, delete and modify data, it will be written to the volatile memory module first. When the data in the volatile memory module is greater than the preset threshold, data migration will be performed, and the data will be migrated to the volatile memory module. In the storage area of the first layer in the adjacent shingled magnetic recording disk module of the flexible memory module, when the storage area of the first layer is full, the data will be migrated down to the storage area of the second layer. , and so on;
    当数据存储装置收到查询指令时,首先在易失性存储器模块中查找,如果找到,则返回结果;否则,在叠瓦式磁记录盘模块中从第一层存储区域开始逐层查找,最后返回结果;When the data storage device receives the query instruction, it first searches in the volatile memory module, and returns the result if found; otherwise, searches layer by layer starting from the first layer of storage area in the shingled magnetic recording disk module, and finally return result;
    获取叠瓦式磁记录盘模块中各层存储区域的数据访问频率,当访问频率满足第一预设条件时向上迁移一层,如果访问频率满足第二预设条件时直接迁移到易失性存储器模块中。Obtain the data access frequency of each layer of storage area in the shingled magnetic recording disk module, when the access frequency satisfies the first preset condition, move up one layer, and directly migrate to the volatile memory if the access frequency satisfies the second preset condition in the module.
  5. 根据权利要求4所述的存储数据的迁移方法,其特征在于,当数据访问频率f i满足通过以下公式表示的第一预设条件时,将其移到上层: The method for migrating stored data according to claim 4, wherein when the data access frequency f i satisfies the first preset condition expressed by the following formula, it is moved to the upper layer:
    Figure PCTCN2020123033-appb-100001
    Figure PCTCN2020123033-appb-100001
    其中,i>1,f i-1是第i-1层存储区域上数据的访问频率,γ是控制迁移浮动频率的常数参数,η是当前工作负载的读写比。 Among them, i>1, f i-1 is the access frequency of data on the i-1 layer storage area, γ is a constant parameter that controls the migration floating frequency, and η is the read-write ratio of the current workload.
  6. 根据权利要求4所述的存储数据的迁移方法,其特征在于,当数据访问频率满足通过以下公式表示的第二预设条件时,将数据直接迁移到易失性存储器模块中:The method for migrating stored data according to claim 4, wherein when the data access frequency satisfies the second preset condition expressed by the following formula, the data is directly migrated to the volatile memory module:
    Figure PCTCN2020123033-appb-100002
    Figure PCTCN2020123033-appb-100002
    其中,i>1,f i-1,max表示第i-1层存储区域中数据的最大访问频率,γ是控制迁移浮动频率的常数参数,η是当前工作负载的读写比。 Among them, i>1, f i-1, max represents the maximum access frequency of data in the storage area of the i-1 layer, γ is a constant parameter that controls the floating frequency of migration, and η is the read-write ratio of the current workload.
  7. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使所述计算机执行如权利要求4-6任一项所述的存储数据的迁移方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the data storage process according to any one of claims 4-6. Migration method.
  8. 一种计算机设备,其特征在于,包括:存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器存储有计算机指令,所述处理器通过执行所述计算机指令,从而执行如权利要求4-6任一项所述的存储数据的迁移方法。A computer device, characterized in that it comprises: a memory and a processor, wherein the memory and the processor are connected in communication with each other, the memory stores computer instructions, and the processor executes the computer instructions, thereby The method for migrating stored data according to any one of claims 4-6 is performed.
PCT/CN2020/123033 2020-09-28 2020-10-23 Data storage device and stored data migration method WO2022062015A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011042087.0 2020-09-28
CN202011042087.0A CN112214169B (en) 2020-09-28 2020-09-28 Data storage device and stored data migration method

Publications (1)

Publication Number Publication Date
WO2022062015A1 true WO2022062015A1 (en) 2022-03-31

Family

ID=74052230

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/123033 WO2022062015A1 (en) 2020-09-28 2020-10-23 Data storage device and stored data migration method

Country Status (2)

Country Link
CN (1) CN112214169B (en)
WO (1) WO2022062015A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115712389A (en) * 2022-10-28 2023-02-24 哈尔滨工业大学(深圳) Scheduling method and device between data storage media and electronic equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114415956A (en) * 2022-01-17 2022-04-29 国网新疆电力有限公司信息通信公司 Classified storage device for electronic information technology data processing and storage method thereof
CN114518849B (en) * 2022-02-18 2023-01-10 深圳大学 Data storage method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635162A (en) * 2008-07-25 2010-01-27 三星电子株式会社 Stacked memory module and system
US20160148636A1 (en) * 2014-11-24 2016-05-26 Seagate Technology Llc Laser power optimization for heat assisted interlaced magnetic recording
CN106293506A (en) * 2015-06-24 2017-01-04 株式会社东芝 Disc memory device and data processing method
CN111651127A (en) * 2020-06-10 2020-09-11 杭州海康威视数字技术股份有限公司 Monitoring data storage method and device based on shingled magnetic recording disk

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101498673B1 (en) * 2007-08-14 2015-03-09 삼성전자주식회사 Solid state drive, data storing method thereof, and computing system including the same
US20140281194A1 (en) * 2013-03-15 2014-09-18 Seagate Technology Llc Dynamically-sizeable granule storage
US9454991B2 (en) * 2013-10-21 2016-09-27 Marvell World Trade Ltd. Caching systems and methods for hard disk drives and hybrid drives
CN104503924B (en) * 2014-12-16 2018-02-13 华为技术有限公司 Region allocation method and device in a kind of Bedding storage system
US9153290B1 (en) * 2015-01-22 2015-10-06 HGST Netherlands B.V. Intra-zone wear leveling for heat-assisted magnetic recording—shingled magnetic recording (HAMR-SMR) type storage devices
CN106569732B (en) * 2015-10-12 2021-04-20 中兴通讯股份有限公司 Data migration method and device
CN107315533A (en) * 2016-04-26 2017-11-03 杭州海康威视数字技术股份有限公司 A kind of date storage method and device
CN106201353A (en) * 2016-07-12 2016-12-07 曹蕊 A kind of data transfer apparatus for key assignments storage system and method
CN109582222B (en) * 2018-10-31 2020-11-24 华中科技大学 Method for cleaning persistent cache in host sensing tile recording disk
CN109710184B (en) * 2018-12-19 2022-02-18 中国人民解放军国防科技大学 Hierarchical hybrid storage method and system for tile record disk perception
US11450348B2 (en) * 2019-01-31 2022-09-20 Marvell Asia Pte, Ltd. Health management for magnetic storage media
CN111399762B (en) * 2019-11-27 2021-06-18 杭州海康威视系统技术有限公司 Data storage method, device and storage system
CN111400204B (en) * 2020-02-29 2022-07-22 苏州浪潮智能科技有限公司 Solid-state disk caching method, system and related equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635162A (en) * 2008-07-25 2010-01-27 三星电子株式会社 Stacked memory module and system
US20160148636A1 (en) * 2014-11-24 2016-05-26 Seagate Technology Llc Laser power optimization for heat assisted interlaced magnetic recording
CN106293506A (en) * 2015-06-24 2017-01-04 株式会社东芝 Disc memory device and data processing method
CN111651127A (en) * 2020-06-10 2020-09-11 杭州海康威视数字技术股份有限公司 Monitoring data storage method and device based on shingled magnetic recording disk

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115712389A (en) * 2022-10-28 2023-02-24 哈尔滨工业大学(深圳) Scheduling method and device between data storage media and electronic equipment

Also Published As

Publication number Publication date
CN112214169B (en) 2021-08-10
CN112214169A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
WO2022062015A1 (en) Data storage device and stored data migration method
US10671290B2 (en) Control of storage of data in a hybrid storage system
CN103513938B (en) A kind of RAID RAID system expansion method and device
WO2020038186A1 (en) Data migration method and apparatus, and storage device
US9635123B2 (en) Computer system, and arrangement of data control method
US20220215002A1 (en) Image File Management Method, Apparatus, and System, Computer Device, and Storage Medium
US9785547B2 (en) Data management apparatus and method
JP2021501389A (en) Data hierarchy storage and hierarchy search method and device
WO2017113888A1 (en) Device and method for data writing
WO2015007155A1 (en) Data storage method and apparatus
US11868651B2 (en) Key-value KV storage method and apparatus, and storage device
US10642817B2 (en) Index table update method, and device
WO2016107390A1 (en) Method and device for managing magnetic disk file
JP2016066220A (en) Storage, storage control method and storage control program
CN112463730A (en) Method, system and medium for hierarchical optimization of storage of massive small files
US9696919B1 (en) Source/copy reference tracking with block pointer sets
WO2022141561A1 (en) Data storage method and apparatus oriented to blockchain user node
CN113326262B (en) Data processing method, device, equipment and medium based on key value database
CN112711564B (en) Merging processing method and related equipment
US10248673B2 (en) Allocating free space in a database
US20230063305A1 (en) Metadata storage method and device
CN107341227A (en) Document handling method, server and computer-readable recording medium
CN110895520B (en) File migration method, related device and equipment
CN116069263B (en) File system optimization method, device, server, equipment and storage medium
US12056054B2 (en) Dynamic growth of data caches using background processes for hash bucket growth

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20954861

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/07/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20954861

Country of ref document: EP

Kind code of ref document: A1