CN113721846B - Method, system, equipment and medium for optimizing mechanical hard disk input and output performance - Google Patents

Method, system, equipment and medium for optimizing mechanical hard disk input and output performance Download PDF

Info

Publication number
CN113721846B
CN113721846B CN202110873826.9A CN202110873826A CN113721846B CN 113721846 B CN113721846 B CN 113721846B CN 202110873826 A CN202110873826 A CN 202110873826A CN 113721846 B CN113721846 B CN 113721846B
Authority
CN
China
Prior art keywords
input
cache partition
output data
main
partition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110873826.9A
Other languages
Chinese (zh)
Other versions
CN113721846A (en
Inventor
侯红生
刘文志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110873826.9A priority Critical patent/CN113721846B/en
Publication of CN113721846A publication Critical patent/CN113721846A/en
Application granted granted Critical
Publication of CN113721846B publication Critical patent/CN113721846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • 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/068Hybrid storage device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a method, a system, equipment and a medium for optimizing the input and output performance of a mechanical hard disk, wherein the method comprises the following steps: creating a cache partition based on a solid state disk, creating an accelerated volume based on a mechanical hard disk, and establishing a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition; acquiring a plurality of storage devices connected with a main cache partition and an auxiliary cache partition, and taking the storage devices connected to the main cache partition as input/output optimal channel nodes; in response to receiving input and output data sent by a host side, judging whether the input and output data is hit by a cache partition; if the cache partition hits, judging whether the read input/output data or the write input/output data is obtained; if the data is the write input/output data, the write input/output data of the main and auxiliary cache partitions are invalidated, and the write input/output data of the main cache partition is updated. By the scheme of the invention, the IO performance of the mechanical hard disk is optimized, and the resources of a storage system are saved.

Description

Method, system, equipment and medium for optimizing mechanical hard disk input and output performance
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method, a system, an apparatus, and a medium for optimizing input/output performance of a mechanical hard disk.
Background
Due to the limitation of HDD (Hard Disk Drive) performance, when HDD reads small random IO (Input Output data), the Hard Disk response time is slow. Compared with the HDD, the SSD (Solid State Drive, solid state disk) has good read-write IO performance, the SSD can be used for accelerating the HDD, but the SSD (Solid State Drive, solid state disk) with better performance is expensive. The traditional method for accelerating the HDD volume by the volume established by the SSD adopts a mirror image mode, so that the accelerated read IO data on two nodes are identical, and great IO resources are needed to process the mirror image process.
Disclosure of Invention
In view of this, the invention provides a method, a system, a device and a medium for optimizing the input and output performance of a mechanical hard disk, wherein a mapping is established between a solid state disk and the mechanical hard disk, so that the read IO performance of the mechanical hard disk is accelerated, and the IO performance of the mechanical hard disk is optimized by enabling the IO hit by a main partition and an auxiliary partition to be different, so that the resources of a storage system are saved.
Based on the above object, an aspect of the embodiments of the present invention provides a method for optimizing input/output performance of a mechanical hard disk, which specifically includes the following steps:
creating a cache partition based on the solid state disk, creating an accelerated volume based on the mechanical hard disk, and establishing a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition;
acquiring a plurality of storage devices connected with the main cache partition and the auxiliary cache partition, and taking the storage devices connected to the main cache partition as input/output optimal channel nodes;
in response to receiving input and output data sent by a host side, judging whether the input and output data is hit by a cache partition;
if the input and output data is hit by the cache partition, judging whether the input and output data is read input and output data or write input and output data;
if the input/output data is the write input/output data, the current write input/output data of the auxiliary cache partition and the main cache partition is invalidated, and the write input/output data of the main cache partition is updated through the input/output optimal channel node.
In some embodiments, the method further comprises:
and if the input and output data is not hit by the cache partition, reading and writing the input and output data from the accelerated volume.
In some embodiments, the method further comprises:
writing the updated write input/output data of the main cache partition to the accelerated volume.
In some embodiments, updating write input output data of the main cache partition by the input output optimal channel node includes:
and responding to the completion of the current write input output data failure of the auxiliary cache partition and the main cache partition, and writing new write input output data into the main cache partition through the input output optimal channel node.
In some embodiments, the method further comprises: if the input/output data is the read input/output data, the data is read from the cache partition and returned to the host side.
In some embodiments, writing the updated write input output data of the primary cache partition to the accelerated volume includes:
writing the updated write input/output data of the main cache partition to a rear-end disk of the accelerated volume.
In another aspect of the embodiment of the present invention, there is also provided a system for optimizing input/output performance of a mechanical hard disk, including:
the system comprises a creation module, a storage module and a storage module, wherein the creation module is configured to create a cache partition based on a solid state disk and an accelerated volume based on a mechanical hard disk, and create a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition;
the acquisition module is configured to acquire a plurality of storage devices connected with the main cache partition and the auxiliary cache partition, and takes the storage devices connected to the main cache partition as input-output optimal channel nodes;
the first judging module is configured to respond to receiving input and output data sent by a host side and judge whether the input and output data is hit by a cache partition or not;
the second judging module is configured to judge whether the input and output data is read input and output data or write input and output data if the input and output data is hit by a cache partition;
and the invalidation module is configured to invalidate the current write input output data of the auxiliary cache partition and the main cache partition if the input output data is the write input output data, and update the write input output data of the main cache partition through the input output optimal channel node.
In some embodiments, the system further comprises a read-write module configured to read input-output data from the accelerated volume if the input-output data is not hit by the cache partition.
In some implementations, the system further includes a write module configured to:
writing the updated write input/output data of the main cache partition to the accelerated volume.
In some embodiments, updating write input output data of the main cache partition by the input output optimal channel node includes:
and responding to the completion of the current write input output data failure of the auxiliary cache partition and the main cache partition, and writing new write input output data into the main cache partition through the input output optimal channel node.
In some embodiments, the system further comprises a read module configured to read data from the cache partition and return to the host side if the input-output data is the read input-output data.
In some embodiments, writing the updated write input output data of the primary cache partition to the accelerated volume includes:
writing the updated write input/output data of the main cache partition to a rear-end disk of the accelerated volume.
In yet another aspect of the embodiment of the present invention, there is also provided a computer apparatus, including: at least one processor; and a memory storing a computer program executable on the processor, the computer program implementing the steps of the method when executed by the processor:
creating a cache partition based on the solid state disk, creating an accelerated volume based on the mechanical hard disk, and establishing a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition;
acquiring a plurality of storage devices connected with the main cache partition and the auxiliary cache partition, and taking the storage devices connected to the main cache partition as input/output optimal channel nodes;
in response to receiving input and output data sent by a host side, judging whether the input and output data is hit by a cache partition;
if the input and output data is hit by the cache partition, judging whether the input and output data is read input and output data or write input and output data;
if the input/output data is the write input/output data, the current write input/output data of the auxiliary cache partition and the main cache partition is invalidated, and the write input/output data of the main cache partition is updated through the input/output optimal channel node.
In some embodiments, the method further comprises:
and if the input and output data is not hit by the cache partition, reading and writing the input and output data from the accelerated volume.
In some embodiments, the method further comprises:
writing the updated write input/output data of the main cache partition to the accelerated volume.
In some embodiments, updating write input output data of the main cache partition by the input output optimal channel node includes:
and responding to the completion of the current write input output data failure of the auxiliary cache partition and the main cache partition, and writing new write input output data into the main cache partition through the input output optimal channel node.
In some embodiments, the method further comprises: if the input/output data is the read input/output data, the data is read from the cache partition and returned to the host side.
In some embodiments, writing the updated write input output data of the primary cache partition to the accelerated volume includes:
writing the updated write input/output data of the main cache partition to a rear-end disk of the accelerated volume.
In yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, performs the following method steps:
creating a cache partition based on the solid state disk, creating an accelerated volume based on the mechanical hard disk, and establishing a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition;
acquiring a plurality of storage devices connected with the main cache partition and the auxiliary cache partition, and taking the storage devices connected to the main cache partition as input/output optimal channel nodes;
in response to receiving input and output data sent by a host side, judging whether the input and output data is hit by a cache partition;
if the input and output data is hit by the cache partition, judging whether the input and output data is read input and output data or write input and output data;
if the input/output data is the write input/output data, the current write input/output data of the auxiliary cache partition and the main cache partition is invalidated, and the write input/output data of the main cache partition is updated through the input/output optimal channel node.
In some embodiments, the method further comprises:
and if the input and output data is not hit by the cache partition, reading and writing the input and output data from the accelerated volume.
In some embodiments, the method further comprises:
writing the updated write input/output data of the main cache partition to the accelerated volume.
In some embodiments, updating write input output data of the main cache partition by the input output optimal channel node includes:
and responding to the completion of the current write input output data failure of the auxiliary cache partition and the main cache partition, and writing new write input output data into the main cache partition through the input output optimal channel node.
In some embodiments, the method further comprises: if the input/output data is the read input/output data, the data is read from the cache partition and returned to the host side.
In some embodiments, writing the updated write input output data of the primary cache partition to the accelerated volume includes:
writing the updated write input/output data of the main cache partition to a rear-end disk of the accelerated volume.
The invention has the following beneficial technical effects: the mapping is established between the solid state disk and the mechanical hard disk, so that the read IO performance of the mechanical hard disk is accelerated, the main cache partition and the auxiliary cache partition are established through the solid state disk, the data hit by the cache is updated through the invalid IO of the auxiliary cache partition and the main cache partition, the IO hit by the main partition and the IO hit by the auxiliary partition are different, the IO performance of the mechanical hard disk is optimized, and the resources of a storage system are saved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of one embodiment of a method for optimizing mechanical hard disk input/output performance provided by the present invention;
FIG. 2 is a schematic diagram of an embodiment of a system for optimizing mechanical hard disk input/output performance according to the present invention;
FIG. 3 is a schematic diagram illustrating a computer device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an embodiment of a computer readable storage medium according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
Based on the above object, in a first aspect of the embodiments of the present invention, an embodiment of a method for optimizing input/output performance of a mechanical hard disk is provided. As shown in fig. 1, it includes the steps of:
a method for optimizing the input and output performance of a mechanical hard disk specifically comprises the following steps:
step S101, creating a cache partition based on a solid state disk and creating an accelerated volume based on a mechanical hard disk, and creating a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition;
step S103, a plurality of storage devices connected with the main cache partition and the auxiliary cache partition are obtained, and the storage devices connected to the main cache partition are used as input and output optimal channel nodes;
step S105, in response to receiving input and output data sent by a host, judging whether the input and output data is hit by a cache partition;
step S107, if the input/output data is hit by the cache partition, judging whether the input/output data is read input/output data or write input/output data;
and step 109, if the input/output data is the write input/output data, invalidating the current write input/output data of the auxiliary cache partition and the main cache partition, and updating the write input/output data of the main cache partition through the input/output optimal channel node.
By the scheme, mapping is established between the solid state disk and the mechanical hard disk, the read IO performance of the mechanical hard disk is accelerated, main and auxiliary cache partitions are established through the solid state disk, the data hit by the cache is updated in the main cache partition through invalidating the IO of the auxiliary cache partition, so that the IO hit by the main and auxiliary partitions can be different, the IO performance of the mechanical hard disk is optimized, and the resources of a storage system are saved.
In some embodiments, the method further comprises:
and if the input and output data is not hit by the cache partition, reading and writing the input and output data from the accelerated volume.
In some embodiments, the method further comprises:
writing the updated write input/output data of the main cache partition to the accelerated volume.
In some embodiments, updating write input output data of the main cache partition by the input output optimal channel node includes:
and responding to the completion of the current write input output data failure of the auxiliary cache partition and the main cache partition, and writing new write input output data into the main cache partition through the input output optimal channel node.
In some embodiments, the method further comprises: if the input/output data is the read input/output data, the data is read from the cache partition and returned to the host side.
In some embodiments, writing the updated write input output data of the primary cache partition to the accelerated volume includes:
writing the updated write input/output data of the main cache partition to a rear-end disk of the accelerated volume.
Embodiments of the present invention will be described below by way of specific examples.
And creating a cache partition by using the solid state disk, wherein the cache partition is divided into a main cache partition and an auxiliary cache partition, and creating an accelerated volume by using the mechanical hard disk. The cache partition is connected to a plurality of storage devices, for example, a dual-control storage device, where the dual-control storage device is connected to the cache partition, and designates a storage device connected to the main cache partition as an IO optimal channel node, and if the storage device is called a candidate, another storage device is connected to the auxiliary cache partition. The configuration management end of the server only stores node information of the main cache partition, the main cache partition and the auxiliary cache partition are distinguished only through the cache partition ID, configuration writing IO is only carried out from the perspective, when IO is processed, the cache partition is assumed to be accelerated by mapping due to multipath strategy, and the cache partition is assumed to hit a lot of IO after a period of time. The host end writes an IO, and the position where the IO is written to the back-end disk is inserted into the cache partition by the cache partition through a pre-reading algorithm. The IO hit by the primary and secondary cache partitions is exactly the same at this time. Now, as the IO is written, the data of the disk at the back end of the accelerated volume needs to be updated and the IO hit in the cache partition needs to be updated. At the moment, the auxiliary cache partition is informed of losing the hit IO, the main cache partition is also informed of losing the hit IO, and after the auxiliary cache partition is finished, the main cache partition is informed of the main cache partition, and the main cache partition writes the new write IO into the cache partition and writes the new write IO into the rear-end disk. Thus, the IO hit by the main cache partition and the secondary cache partition respectively connected with the two storage devices are different. When the read IO comes down, if the read IO is from the auxiliary cache partition connected with the opposite-end storage device, and the auxiliary cache partition does not have hit IO at the moment, the data is directly read from the rear-end disk of the accelerated volume, and then the data is fed back to the main sentence after being inserted into the cache partition; if the read is from the reference, the hit IO on the reference can be directly fed back to the host without reading from the back-end disk.
By the scheme, the IO reading performance of the mechanical hard disk is accelerated, the resources of a storage system are saved, and the IO performance of the HDD is optimized.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 2, an embodiment of the present invention further provides a system for optimizing input/output performance of a mechanical hard disk, including:
a creation module 110, the creation module 110 configured to create a cache partition based on a solid state disk and an accelerated volume based on a mechanical hard disk, and create a mapping between the cache partition and the accelerated volume, wherein the cache partition includes a main cache partition and an auxiliary cache partition;
the acquisition module 120 is configured to acquire a plurality of storage devices connected with the main cache partition and the auxiliary cache partition, and take the storage devices connected to the main cache partition as input-output optimal channel nodes;
a first judging module 130, where the first judging module 130 is configured to respond to receiving input/output data sent by a host side, and judge whether the input/output data is hit by a cache partition;
the second judging module 140 is configured to judge whether the input/output data is read input/output data or write input/output data if the input/output data is hit by a cache partition, by the second judging module 140;
and the invalidation module 150 is configured to invalidate the current write input output data of the auxiliary cache partition and the main cache partition if the input output data is the write input output data, and update the write input output data of the main cache partition through the input output optimal channel node.
In some embodiments, the system further comprises a read-write module configured to read input-output data from the accelerated volume if the input-output data is not hit by the cache partition.
In some implementations, the system further includes a write module configured to:
writing the updated write input/output data of the main cache partition to the accelerated volume.
In some embodiments, updating write input output data of the main cache partition by the input output optimal channel node includes:
and responding to the completion of the current write input output data failure of the auxiliary cache partition and the main cache partition, and writing new write input output data into the main cache partition through the input output optimal channel node.
In some embodiments, the system further comprises a read module configured to read data from the cache partition and return to the host side if the input-output data is the read input-output data.
In some embodiments, writing the updated write input output data of the primary cache partition to the accelerated volume includes:
writing the updated write input/output data of the main cache partition to a rear-end disk of the accelerated volume.
According to another aspect of the present invention, as shown in fig. 3, according to the same inventive concept, an embodiment of the present invention further provides a computer device 20, in which the computer device 20 includes a processor 210 and a memory 220, the memory 220 stores a computer program 221 executable on the processor, and the processor 210 executes the steps of the following method when executing the program:
creating a cache partition based on the solid state disk, creating an accelerated volume based on the mechanical hard disk, and establishing a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition;
acquiring a plurality of storage devices connected with the main cache partition and the auxiliary cache partition, and taking the storage devices connected to the main cache partition as input/output optimal channel nodes;
in response to receiving input and output data sent by a host side, judging whether the input and output data is hit by a cache partition;
if the input and output data is hit by the cache partition, judging whether the input and output data is read input and output data or write input and output data;
if the input/output data is the write input/output data, the current write input/output data of the auxiliary cache partition and the main cache partition is invalidated, and the write input/output data of the main cache partition is updated through the input/output optimal channel node.
In some embodiments, the method further comprises:
and if the input and output data is not hit by the cache partition, reading and writing the input and output data from the accelerated volume.
In some embodiments, the method further comprises:
writing the updated write input/output data of the main cache partition to the accelerated volume.
In some embodiments, updating write input output data of the main cache partition by the input output optimal channel node includes:
and responding to the completion of the current write input output data failure of the auxiliary cache partition and the main cache partition, and writing new write input output data into the main cache partition through the input output optimal channel node.
In some embodiments, the method further comprises: if the input/output data is the read input/output data, the data is read from the cache partition and returned to the host side.
In some embodiments, writing the updated write input output data of the primary cache partition to the accelerated volume includes:
writing the updated write input/output data of the main cache partition to a rear-end disk of the accelerated volume.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 4, an embodiment of the present invention further provides a computer-readable storage medium 30, the computer-readable storage medium 30 storing a computer program 310 which when executed by a processor performs the following method:
creating a cache partition based on the solid state disk, creating an accelerated volume based on the mechanical hard disk, and establishing a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition;
acquiring a plurality of storage devices connected with the main cache partition and the auxiliary cache partition, and taking the storage devices connected to the main cache partition as input/output optimal channel nodes;
in response to receiving input and output data sent by a host side, judging whether the input and output data is hit by a cache partition;
if the input and output data is hit by the cache partition, judging whether the input and output data is read input and output data or write input and output data;
if the input/output data is the write input/output data, the current write input/output data of the auxiliary cache partition and the main cache partition is invalidated, and the write input/output data of the main cache partition is updated through the input/output optimal channel node.
In some embodiments, the method further comprises:
and if the input and output data is not hit by the cache partition, reading and writing the input and output data from the accelerated volume.
In some embodiments, the method further comprises:
writing the updated write input/output data of the main cache partition to the accelerated volume.
In some embodiments, updating write input output data of the main cache partition by the input output optimal channel node includes:
and responding to the completion of the current write input output data failure of the auxiliary cache partition and the main cache partition, and writing new write input output data into the main cache partition through the input output optimal channel node.
In some embodiments, the method further comprises: if the input/output data is the read input/output data, the data is read from the cache partition and returned to the host side.
In some embodiments, writing the updated write input output data of the primary cache partition to the accelerated volume includes:
writing the updated write input/output data of the main cache partition to a rear-end disk of the accelerated volume.
Finally, it should be noted that, as will be appreciated by those skilled in the art, all or part of the procedures in implementing the methods of the embodiments described above may be implemented by a computer program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, and the program may include the procedures of the embodiments of the methods described above when executed. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (RAM), or the like. The computer program embodiments described above may achieve the same or similar effects as any of the method embodiments described above.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (9)

1. A method for optimizing mechanical hard disk input/output performance, comprising:
creating a cache partition based on the solid state disk, creating an accelerated volume based on the mechanical hard disk, and establishing a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition;
acquiring a plurality of storage devices connected with the main cache partition and the auxiliary cache partition, and taking the storage devices connected to the main cache partition as input/output optimal channel nodes;
in response to receiving input and output data sent by a host side, judging whether the input and output data is hit by a cache partition;
if the input and output data is hit by the cache partition, judging whether the input and output data is read input and output data or write input and output data;
if the input/output data is the write input/output data, invalidating the current write input/output data of the auxiliary cache partition and the main cache partition, and updating the write input/output data of the main cache partition through the input/output optimal channel node;
writing the updated write input/output data of the main cache partition to the accelerated volume.
2. The method as recited in claim 1, further comprising:
and if the input and output data is not hit by the cache partition, reading and writing the input and output data from the accelerated volume.
3. The method of claim 1, wherein updating write input output data of a main cache partition by the input output optimal channel node comprises:
and responding to the completion of the current write input output data failure of the auxiliary cache partition and the main cache partition, and writing new write input output data into the main cache partition through the input output optimal channel node.
4. The method as recited in claim 1, further comprising: if the input/output data is the read input/output data, the data is read from the cache partition and returned to the host side.
5. The method of claim 1, wherein writing the updated write input output data of the primary cache partition to the accelerated volume comprises:
writing the updated write input/output data of the main cache partition to a rear-end disk of the accelerated volume.
6. A system for optimizing mechanical hard disk input/output performance, comprising:
the system comprises a creation module, a storage module and a storage module, wherein the creation module is configured to create a cache partition based on a solid state disk and an accelerated volume based on a mechanical hard disk, and create a mapping between the cache partition and the accelerated volume, wherein the cache partition comprises a main cache partition and an auxiliary cache partition;
the acquisition module is configured to acquire a plurality of storage devices connected with the main cache partition and the auxiliary cache partition, and takes the storage devices connected to the main cache partition as input-output optimal channel nodes;
the first judging module is configured to respond to receiving input and output data sent by a host side and judge whether the input and output data is hit by a cache partition or not;
the second judging module is configured to judge whether the input and output data is read input and output data or write input and output data if the input and output data is hit by a cache partition;
and the invalidation module is configured to invalidate the current write input output data of the auxiliary cache partition and the main cache partition if the input output data is the write input output data, and update the write input output data of the main cache partition through the input output optimal channel node.
7. The system of claim 6, further comprising a read-write module configured to read input-output data from the accelerated volume if the input-output data is not hit by the cache partition.
8. A computer device, comprising:
at least one processor; and
a memory storing a computer program executable on the processor, wherein the processor performs the steps of the method of any one of claims 1-5 when the program is executed.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor performs the steps of the method according to any one of claims 1-5.
CN202110873826.9A 2021-07-30 2021-07-30 Method, system, equipment and medium for optimizing mechanical hard disk input and output performance Active CN113721846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110873826.9A CN113721846B (en) 2021-07-30 2021-07-30 Method, system, equipment and medium for optimizing mechanical hard disk input and output performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110873826.9A CN113721846B (en) 2021-07-30 2021-07-30 Method, system, equipment and medium for optimizing mechanical hard disk input and output performance

Publications (2)

Publication Number Publication Date
CN113721846A CN113721846A (en) 2021-11-30
CN113721846B true CN113721846B (en) 2023-08-25

Family

ID=78674551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110873826.9A Active CN113721846B (en) 2021-07-30 2021-07-30 Method, system, equipment and medium for optimizing mechanical hard disk input and output performance

Country Status (1)

Country Link
CN (1) CN113721846B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573669A (en) * 2015-12-11 2016-05-11 上海爱数信息技术股份有限公司 IO read speeding cache method and system of storage system
US9785360B1 (en) * 2015-06-29 2017-10-10 EMC IP Holding Company LLC Adaptive and dynamic mixed read/write input/output balancer
CN111240595A (en) * 2020-01-10 2020-06-05 苏州浪潮智能科技有限公司 Method, system, equipment and medium for optimizing storage cache

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9785360B1 (en) * 2015-06-29 2017-10-10 EMC IP Holding Company LLC Adaptive and dynamic mixed read/write input/output balancer
CN105573669A (en) * 2015-12-11 2016-05-11 上海爱数信息技术股份有限公司 IO read speeding cache method and system of storage system
CN111240595A (en) * 2020-01-10 2020-06-05 苏州浪潮智能科技有限公司 Method, system, equipment and medium for optimizing storage cache

Also Published As

Publication number Publication date
CN113721846A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN108234641B (en) Data reading and writing method and device based on distributed consistency protocol
CN108460045B (en) Snapshot processing method and distributed block storage system
US9836361B2 (en) Data replicating system, data replicating method, node device, management device and computer readable medium
CN104935654A (en) Caching method, write point client and read client in server cluster system
CN107025289B (en) A kind of method and relevant device of data processing
CN109710185A (en) Data processing method and device
CN113596010B (en) Data processing method, device, node equipment and computer storage medium
CN107291924B (en) Synchronous log replication control method and system for disaster recovery backup system
CN110740145A (en) Message consumption method, device, storage medium and electronic equipment
CN113608695A (en) Data processing method, system, device and medium
CN113721846B (en) Method, system, equipment and medium for optimizing mechanical hard disk input and output performance
CN112988880B (en) Data synchronization method, device, electronic equipment and computer storage medium
CN113467719A (en) Data writing method and device
CN110928890B (en) Data storage method and device, electronic equipment and computer readable storage medium
US20060136686A1 (en) Log shipping data replication with parallel log writing and log shipping at the primary site
CN115599711B (en) Cache data processing method, system, device, equipment and computer storage medium
KR101419428B1 (en) Apparatus for logging and recovering transactions in database installed in a mobile environment and method thereof
CN115934583A (en) Hierarchical caching method, device and system
CN115454958A (en) Data processing method, device, equipment, system and medium based on artificial intelligence
US11262834B1 (en) Data processing system and method for monitoring system properties
CN114546289B (en) Method, system, equipment and medium for reading data
CN106919487A (en) NVMe doorbells processing method and its device
CN117407321B (en) Read-write request processing method and related device for chip cache
CN117992257B (en) Parallel data acquisition and processing method for distributed database
CN111984551B (en) Cache consistency processing method, device, equipment and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant