CN115469817A - Method and device for improving quality of service (QoS) of disk, computer equipment and storage medium - Google Patents

Method and device for improving quality of service (QoS) of disk, computer equipment and storage medium Download PDF

Info

Publication number
CN115469817A
CN115469817A CN202211365344.3A CN202211365344A CN115469817A CN 115469817 A CN115469817 A CN 115469817A CN 202211365344 A CN202211365344 A CN 202211365344A CN 115469817 A CN115469817 A CN 115469817A
Authority
CN
China
Prior art keywords
disk
qos
request
interval
improving
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.)
Pending
Application number
CN202211365344.3A
Other languages
Chinese (zh)
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.)
Guangdong Eflycloud Computing Co Ltd
Original Assignee
Guangdong Eflycloud Computing 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 Guangdong Eflycloud Computing Co Ltd filed Critical Guangdong Eflycloud Computing Co Ltd
Priority to CN202211365344.3A priority Critical patent/CN115469817A/en
Publication of CN115469817A publication Critical patent/CN115469817A/en
Pending legal-status Critical Current

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/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/0653Monitoring storage devices or systems
    • 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
    • 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

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)

Abstract

The application belongs to the technical field of disks, and particularly relates to a method, a device, computer equipment and a storage medium for improving the QoS of a disk, wherein the method comprises the steps of creating a behavior feature identification interval in the disk; collecting and analyzing a disk IO request of a disk controller in the behavior characteristic identification interval; and judging whether the QoS of the disk needs to be adjusted or not according to the result of the collection and analysis of the disk IO request of the disk controller, and if so, adjusting the QoS of the disk. And a behavior feature identification interval is added to collect the disk IO request, so that the behavior of an upper layer is identified, and proper disk QoS (quality of service) reasonable scheduling is performed according to different behaviors.

Description

Method and device for improving quality of service (QoS) of disk, computer equipment and storage medium
Technical Field
The present application relates to the field of disk technologies, and in particular, to a method and an apparatus for improving QoS of a disk, a computer device, and a storage medium.
Background
QoS (Quality of Service) refers to a network that can provide better Service capability for specified network communication by using various basic technologies, and is a security mechanism of the network, which is a technology for solving the problems of network delay and congestion. QoS guarantees are important for capacity-limited networks, especially for streaming multimedia applications such as VoIP and IPTV, which often require fixed transmission rates and are sensitive to delay.
The disk QoS generally refers to the limitations of the read/write IOPS (IO Per Second, number of IO) and BPS (Byte Per Second, data amount read/write Per Second) indexes of the disk, such as the number of IOPS requests for a certain disk limitation, the number of BPS for read/write bandwidth, and the like. Currently, the QoS of a disk can only set a specific fixed value for the entire disk. In an actual usage scenario, the QoS of the disk needs to be scheduled more flexibly, for example, when the operating system is started, a large amount of boot data needs to be loaded, and a high-configuration disk reading operation is performed in a short time, and at this time, the IOPS and the BPS to be read should be properly increased to increase the starting speed, and when the starting loading is completed, the IOPS and the BPS are properly decreased to balance resources, and the like.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a computer device, and a storage medium for improving QoS of a disk, so as to solve the problem that QoS of a disk in the prior art can only set a specific fixed value for a whole disk and cannot be flexibly scheduled.
In order to solve the above technical problem, the present application provides a method for improving QoS of a disk, which adopts the following technical scheme, including the following steps:
creating a behavior feature identification interval in a magnetic disk;
collecting and analyzing a disk IO request of a disk controller in the behavior characteristic identification interval;
and judging whether the QoS of the disk needs to be adjusted or not according to the result of the collection and analysis of the disk IO request of the disk controller, and if so, adjusting the QoS of the disk.
Further, the step of creating a behavior feature identification interval in the disk specifically includes:
establishing the initial and end positions of the disk offset of the feature identification interval;
and creating an execution rule from the beginning to the end of the disk offset of the read-write behavior characteristic identification interval, and allocating a numerical interval of increasing or decreasing the QoS (quality of service) allowance of the disk.
Further, the step of collecting and analyzing the disk IO request of the disk controller in the behavior feature identification interval specifically includes:
acquiring a disk read-write request, judging a request interval of disk read-write, and acquiring a disk offset starting position and an end position through the request interval of disk read-write.
Further, the step of judging whether the QoS of the disk needs to be adjusted according to the result of the collection and analysis of the disk IO request to the disk controller, and if so, the step of adjusting the QoS of the disk specifically includes:
and judging whether the disk deviation starting position and the disk deviation ending position appear in the created behavior characteristic identification interval or not according to the disk deviation starting position and the disk deviation ending position, and if yes, determining that the QoS of the disk needs to be adjusted.
Further, after the step of determining whether the QoS of the disk needs to be adjusted, if so, adjusting the QoS of the disk further includes:
and adjusting the QoS of the disk according to the read-write data volume per second or the IO frequency per second.
Further, the step of judging whether the QoS of the disk needs to be adjusted according to the result of the collection and analysis of the disk IO request to the disk controller, and if so, the step of adjusting the QoS of the disk further includes:
and adjusting the QoS of the disk according to the read-write data volume per second and the IO frequency per second.
In order to solve the above technical problem, the present application further provides a device for improving QoS of a disk, which adopts the following technical scheme, including:
the creating module is used for creating a behavior feature identification interval in a disk;
the processing module is used for collecting and analyzing the disk IO request of the disk controller in the behavior characteristic identification interval;
and the adjusting module is used for judging whether the QoS of the disk needs to be adjusted or not, and if so, adjusting the QoS of the disk.
Further, the creating module includes:
the position module is used for creating the initial and end positions of the disk offset of the feature identification interval;
and the rule module is used for creating an execution rule from the beginning to the end of the disk offset of the read-write characteristic identification interval and distributing a numerical value interval which is allowed to be increased or decreased by the QoS of the disk.
In order to solve the above technical problem, the present application further provides a computer device, which adopts the following technical solution, and includes a memory and a processor, where the memory stores computer readable instructions, and the processor executes the computer readable instructions to implement the steps of the method for improving QoS of a disk.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, which adopts the following technical solution, where the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions, when executed by a processor, implement the steps of the method for improving QoS of a disk.
Compared with the prior art, the application mainly has the following beneficial effects: and a behavior characteristic identification interval is added to collect disk IO requests, so that the behavior of an upper layer is identified, and proper disk QoS (quality of service) reasonable scheduling is performed according to different behaviors.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flowchart of an embodiment of a method for improving QoS of a disk according to the present application;
FIG. 3 is a schematic structural diagram of an embodiment of an apparatus for improving QoS of a disk according to the present application;
FIG. 4 is a block diagram of one embodiment of a computer device of the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium of communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may use the first terminal device 101, the second terminal device 102, the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like, may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server that provides various services, such as a background server that provides support for pages displayed on the first terminal apparatus 101, the second terminal apparatus 102, and the third terminal apparatus 103.
It should be noted that, the method for improving the QoS of the disk provided in the embodiment of the present application is generally executed by a server/terminal device, and accordingly, the apparatus for improving the QoS of the disk is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
Example one
With continued reference to fig. 2, a flowchart of an embodiment of the method for improving QoS of a disk of the present application is shown. The method for improving the QoS of the disk comprises the following steps:
step S201, creating a behavior feature identification interval in the disk.
In this embodiment, an electronic device (e.g., the server/terminal device shown in fig. 1) executing the method for improving the QoS of the disk may receive a request for improving the QoS of the disk through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G/5G connection, a WiFi connection, a bluetooth connection, a wimax x connection, a Zigbee connection, an UWB (ultra wideband) connection, and other wireless connection means now known or developed in the future.
The magnetic disk is used as a storage medium of program codes, and daily commands and execution codes corresponding to application programs are stored on the magnetic disk. For example, the binary code of the program corresponding to the system power on/off command is stored in a certain section of the disk. Thus, commands that correspond to a need for optimization can be identified and optimized. That is, the behavior feature recognition interval may be created in the disk. It is possible to find whether the disk shift start position and end position occur within the created characteristic behavior recognition interval. For example, the system power-on/power-off command is stored in the [1000, 2000] interval of the disk, and as long as the system disk requests to read the [1000, 2000] interval, it can be inferred that the system is going to be powered off, so that the optimization can be performed in advance.
In specific implementation, step S201 may further include the steps of:
creating characteristic identification input disk deviation starting and ending positions;
and creating an execution strategy for identifying the starting position and the ending position of the offset of the input disk by the read-write characteristics, and allocating a numerical value interval allowing the increase or decrease of the QoS of the disk.
And creating characteristic identification input disk offset starting and ending positions, wherein the purpose is to trigger execution of a corresponding strategy when the upper layer reads and writes the content of the input disk offset starting and ending position interval, and skipping in the interval.
Step S202, collecting and analyzing the disk IO request of the disk controller in the behavior feature identification interval.
In this embodiment, the step of collecting and analyzing the disk IO request of the disk controller in the behavior feature identification interval specifically includes: acquiring a disk read-write request, judging a request interval of disk read-write, and acquiring a disk offset starting position and an end position through the request interval of disk read-write.
When a disk read or write request exists, a read or write request interval is inevitably generated, and the interval can obtain two values, namely a disk offset starting position and an ending position; the read-write request interval is used for judging the behavior characteristic identification created above. And if the read-write request interval is in the behavior characteristic identification interval created before, the disk IO request is considered to need to be subjected to QoS adjustment.
Step S203, according to the result of the collection and analysis of the disk IO request of the disk controller, determining whether the QoS of the disk needs to be adjusted, and if so, adjusting the QoS of the disk.
In this embodiment, it is determined whether the disk offset start position and the disk offset end position occur within the created behavior feature identification interval according to the disk offset start position and the disk offset end position, and if so, it is determined that the disk read-write request needs to be QoS-adjusted. That is, if the disk offset starting position and the disk offset ending position belong to the behavior feature identification interval, the behavior feature identification interval includes the secondary disk IO request, and the secondary disk IO request is considered to belong to the disk IO request that needs to be adjusted. In some optional implementations of this embodiment, after step 203, the electronic device may further perform the following steps:
and adjusting the read-write QoS of the disk according to the read-write data volume per second and/or the IO frequency per second.
The disk read-write QoS adjustment mainly comprises 2 dimensions: 1 is IOPS; and 2 is BPS. IOPS is the number of requests per second, and emphasizes the number of requests allowed per unit time; the BPS is the size of data volume per second, and emphasizes the capacity of the request allowed per unit time; the adjustment can be made for the IOPS, BPS individually or both, and the user needs can be seen. If the system is just started, the QoS needs to be improved to increase the startup speed. The operating system needs to load various modules during booting, when the behavior feature identification interval is loaded, the corresponding interface is triggered to be called, the interface can be called only once, namely called during loading, and the behavior action of starting can be identified through the method. When the behavior feature identification interval is loaded, it can be judged that the current stage is the boot stage. The behavior feature recognition interval may be set to be loaded only once at system boot. The identification of interval loading can be identified by global variables as behavior features. And initializing the loaded identifier of the behavior feature recognition interval as false, and setting the identifier as true after loading. When the behavior feature identification interval is loaded for the first time, the QoS value of the disk can be properly increased within a certain time range, for example, the QoS value is temporarily increased for 1 minute, and the original value is restored after 1 minute, so that the boot loading time is shortened.
If the application scenario of this embodiment is two, the system is shut down, and QoS needs to be improved to speed up the current data landing and speed up the shutdown. When the system is shut down, a shutdown signal is triggered, the shutdown signal corresponds to a disk IO request, for example, a disk loads a binary system of a shutdown command to a memory to execute shutdown operation, a behavior characteristic identification interval learns information of a partition, a sector and the like of the disk where the shutdown command is located, once the shutdown command is found to be loaded, the QoS of the disk can be improved in the next time, and write data can be dropped as soon as possible to accelerate shutdown speed and reduce data loss.
Like the application scenario three of the present embodiment, massive file indexes. When a disk partition or directory stores a large number of files, a long loading time is required to open the partition or directory, because the number of files is large, and the metadata information of all the files needs to be traversed on the disk. The behavior characteristic identification interval can temporarily improve the QoS of the disk to enable the file metadata to be loaded and completed as soon as possible when the current file quantity value of the partition or the directory is detected, and the metadata information of the partition or the directory for loading the massive files is found to be applied to the upper layer, so that the opening speed is improved. File systems typically divide data into 2 categories, 1 category being metadata; 1 is to store actual data. The actual data refers to specific data content needing to be stored, and the metadata describes how the actual data is stored and where the actual data is stored. Therefore, before actual data needs to be read and written, metadata must be read first, and usually, the file system stores the metadata and the actual data in different sections separately. Therefore, when the module finds the loaded metadata, it can judge the described actual data amount, thereby easily recognizing the specific actual data amount.
The disk is a carrier for storing binary contents of the program, and the execution instruction needs to read binary data corresponding to the instruction from the disk to load the binary data into the memory and then inform the CPU to execute the instruction. Because a plurality of operating system programs are stored in different sections of the disk, the scheme provides a method for identifying the behavior characteristics based on section judgment. If the shutdown command is stored in the interval [100,1000] of the disk, when the module detects that the interval of the disk is read, the module considers that the shutdown command needs to be operated, and therefore shutdown behavior is deduced; then, the QoS policy of the disk can be optimized for the shutdown behavior, because the shutdown needs to refresh the cache content to the disk, the QoS control value can be released and increased, so that the data is refreshed to the disk at a faster speed, thereby accelerating the shutdown process.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a computer readable storage medium, and when executed, the processes of the embodiments of the methods described above can be included. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Example two
With further reference to fig. 3, as an implementation of the method shown in fig. 2, the present application provides an embodiment of an apparatus for improving QoS of a disk, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 3, the apparatus 400 for improving QoS of a disk according to this embodiment includes: a creation module 401, a processing module 402, and an adjustment module 403. Wherein:
a creating module 401, configured to create a behavior feature identification interval in a disk;
a processing module 402, configured to collect and analyze a disk IO request of a disk controller in the behavior feature identification interval;
an adjusting module 403, configured to determine whether to adjust the QoS of the disk, and if so, adjust the QoS of the disk.
In this embodiment, the behavior feature identification interval includes:
the position module is used for creating characteristic identification input disk offset starting and ending positions;
and the strategy module is used for creating an execution strategy for identifying the starting position to the ending position of the disk offset by the read-write characteristics and allocating a numerical value interval which allows the increase or decrease of the QoS of the disk.
By implementing the embodiment, the behavior feature identification interval is added to collect the disk IO request, so that the behavior of the upper layer is identified, and the appropriate disk QoS reasonable scheduling is performed according to different behaviors.
EXAMPLE III
In order to solve the technical problem, the embodiment of the application further provides computer equipment. Referring to fig. 4, fig. 4 is a block diagram of a basic structure of a computer device according to the embodiment.
The computer device 6 comprises a memory 61, a processor 62, a network interface 63 communicatively connected to each other via a system bus. It is noted that only the computer device 6 having the component memory 61, the processor 62 and the network interface 63 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 61 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 6. Of course, the memory 61 may also comprise both an internal storage unit of the computer device 6 and an external storage device thereof. In this embodiment, the memory 61 is generally used for storing an operating system installed in the computer device 6 and various application software, such as computer readable instructions of a method for improving QoS of a disk. Further, the memory 61 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 62 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 62 is typically arranged to control the overall operation of the computer device 6. In this embodiment, the processor 62 is configured to execute the computer readable instructions stored in the memory 61 or process data, for example, execute the computer readable instructions of the method for improving the QoS of the disk.
The network interface 63 may comprise a wireless network interface or a wired network interface, and the network interface 63 is typically used for establishing a communication connection between the computer device 6 and other electronic devices.
By implementing the embodiment, the behavior feature identification interval is added to collect the disk IO request, so that the behavior of the upper layer is identified, and the appropriate disk QoS reasonable scheduling is performed according to different behaviors.
Example four
The present application further provides another embodiment, which is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, which can be executed by at least one processor, to cause the at least one processor to execute the steps of the method for improving QoS of a disk as described above.
By implementing the embodiment, the behavior feature identification interval is added to collect the disk IO request, so that the behavior of the upper layer is identified, and the appropriate disk QoS reasonable scheduling is performed according to different behaviors.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It should be understood that the above-described embodiments are merely exemplary of some, and not all, embodiments of the present application, and that the drawings illustrate preferred embodiments of the present application without limiting the scope of the claims appended hereto. This application is capable of embodiments in many different forms and the embodiments are provided so that this disclosure will be thorough and complete. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields, and all the equivalent structures are within the protection scope of the present application.

Claims (10)

1. A method for improving the QoS of a disk is characterized by comprising the following steps:
creating a behavior feature identification interval in a magnetic disk;
collecting and analyzing a disk IO request of a disk controller in the behavior characteristic identification interval;
and judging whether the QoS of the disk needs to be adjusted or not according to the result of the collection and analysis of the disk IO request of the disk controller, and if so, adjusting the QoS of the disk.
2. The method for improving the QoS of the disk according to claim 1, wherein the step of creating the behavior feature identification interval in the disk specifically includes:
establishing the initial and end positions of the disk offset of the feature identification interval;
and creating an execution rule from the beginning to the end of the disk offset of the read-write characteristic identification interval, and allocating a numerical value interval of the increase or decrease of the QoS (quality of service) permission of the disk.
3. The method for improving QoS of a disk according to claim 2, wherein the step of collecting and analyzing the disk IO request of the disk controller in the behavior feature identification interval specifically includes:
acquiring a disk read-write request, judging a request interval of disk read-write, and acquiring a disk offset starting position and an end position through the request interval of disk read-write.
4. The method for improving QoS of a disk according to claim 3, wherein the step of determining whether the QoS of the disk needs to be adjusted according to the result of the collection and analysis of the disk IO request to the disk controller, and if so, the step of adjusting the QoS of the disk specifically includes:
and judging whether the disk deviation starting position and the disk deviation ending position appear in the created behavior characteristic identification interval or not according to the disk deviation starting position and the disk deviation ending position, and if so, determining that the QoS of the disk needs to be adjusted.
5. The method for improving QoS of a disk according to any one of claims 1 to 4, wherein after the step of determining whether the QoS of the disk needs to be adjusted, and if so, adjusting the QoS of the disk further includes:
and adjusting the QoS of the disk according to the read-write data volume per second or the IO frequency per second.
6. The method according to any one of claims 1 to 4, wherein the step of determining whether the QoS of the disk needs to be adjusted according to the result of the collection and analysis of the disk IO request to the disk controller, and if so, the step of adjusting the QoS of the disk further includes:
and adjusting the QoS of the disk according to the read-write data volume per second and the IO frequency per second.
7. An apparatus for improving QoS of a disk, comprising:
the creating module is used for creating a behavior feature identification interval in a disk;
the processing module is used for collecting and analyzing a disk IO request of the disk controller in the behavior characteristic identification interval;
and the adjusting module is used for judging whether the QoS of the disk needs to be adjusted or not according to the result of the collection and analysis of the disk IO request of the disk controller, and if so, adjusting the QoS of the disk.
8. The apparatus for improving QoS of a disk according to claim 7, wherein the creating module includes:
the position module is used for creating the initial and end positions of the disk offset of the feature identification interval;
and the rule module is used for creating an execution rule from the beginning to the end of the disk offset of the read-write behavior characteristic identification interval and distributing a numerical value interval which allows the increase or decrease of the QoS of the disk.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions, the processor when executing the computer readable instructions implementing the steps of the method for improving QoS for a disk according to any one of claims 1 to 6.
10. A computer readable storage medium, wherein the computer readable instructions are stored on the computer readable storage medium, and when executed by a processor, the computer readable instructions implement the steps of the method for improving QoS of a disk according to any one of claims 1 to 6.
CN202211365344.3A 2022-11-03 2022-11-03 Method and device for improving quality of service (QoS) of disk, computer equipment and storage medium Pending CN115469817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211365344.3A CN115469817A (en) 2022-11-03 2022-11-03 Method and device for improving quality of service (QoS) of disk, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211365344.3A CN115469817A (en) 2022-11-03 2022-11-03 Method and device for improving quality of service (QoS) of disk, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115469817A true CN115469817A (en) 2022-12-13

Family

ID=84338277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211365344.3A Pending CN115469817A (en) 2022-11-03 2022-11-03 Method and device for improving quality of service (QoS) of disk, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115469817A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103404102A (en) * 2012-12-31 2013-11-20 华为技术有限公司 Bearing creating method, device and system
WO2014101197A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 A method and terminal for scheduling storage resource
US20140258609A1 (en) * 2011-11-21 2014-09-11 Huawei Technologies Co., Ltd. Quality of service control method for storage system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258609A1 (en) * 2011-11-21 2014-09-11 Huawei Technologies Co., Ltd. Quality of service control method for storage system
CN103404102A (en) * 2012-12-31 2013-11-20 华为技术有限公司 Bearing creating method, device and system
WO2014101197A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 A method and terminal for scheduling storage resource

Similar Documents

Publication Publication Date Title
CN105335099A (en) Memory cleaning method and terminal
CN112765271A (en) Block chain transaction index storage method and device, computer equipment and medium
CN114096953A (en) Memory management method and device, electronic equipment and computer readable medium
CN109684573B (en) Target picture display method and device, storage medium and electronic equipment
CN111666497A (en) Application program loading method and device, electronic equipment and readable storage medium
CN113127050B (en) Application resource packaging process monitoring method, device, equipment and medium
CN111782304A (en) Logic control method and device for paging loading data, computer equipment and medium
CN112199442A (en) Distributed batch file downloading method and device, computer equipment and storage medium
CN111813517B (en) Task queue allocation method and device, computer equipment and medium
CN113254445A (en) Real-time data storage method and device, computer equipment and storage medium
CN106657182B (en) Cloud file processing method and device
CN103294742A (en) Apparatus and method for determining duplication of content in portable terminal
CN113179188A (en) Service degradation dynamic realization method and device, computer equipment and storage medium
CN114490089A (en) Cloud computing resource automatic adjusting method and device, computer equipment and storage medium
CN115455058A (en) Cache data processing method and device, computer equipment and storage medium
CN112363814A (en) Task scheduling method and device, computer equipment and storage medium
CN113297267A (en) Data caching and task processing method, device, equipment and storage medium
CN112463799A (en) Data extraction method, device, equipment and storage medium
CN112380088A (en) Test method and device and electronic equipment
CN111475388A (en) Data push test method and device, computer equipment and storage medium
CN103838575A (en) Plug-in type page customization implementation method based on EXTJS frame
CN113254106B (en) Task execution method and device based on Flink, computer equipment and storage medium
CN115469817A (en) Method and device for improving quality of service (QoS) of disk, computer equipment and storage medium
CN112052077A (en) Method, device, equipment and medium for software task management
CN110069493B (en) Data processing method, device, computer equipment and storage 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20221213

RJ01 Rejection of invention patent application after publication