A method and system for improving storage service performance of vehicle-mounted terminal equipment

By assigning multiple tag values ​​to IO requests of terminal devices and performing time sorting and scheduling processing, the problem of insufficient storage service performance of terminal devices in the Internet of Vehicles is solved, efficient sharing of bandwidth and resources is achieved, and storage service performance is improved.

CN114528093BActive Publication Date: 2024-10-15ZHIXIE HUITONG (BEIJING) TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210018641.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-08
Publication Date
2024-10-15
Estimated Expiration
2042-01-08

AI Technical Summary

Technical Problem

In the field of Internet of Vehicles, when multiple terminal devices upload data to cloud storage at the same time, the bandwidth of distributed storage cannot be effectively allocated, resulting in the storage service performance of each terminal device not being guaranteed.

Method used

By assigning the reservation time tag value (R), upper limit time tag value (L), weight time tag value (P) and bandwidth tag value (B) to each terminal device's IO request, and determining the IO request based on these tag values Based on the scheduling conditions, time-ordered scheduling processing is performed to ensure that each terminal device can efficiently use storage services within its defined bandwidth share and resource limits.

Benefits of technology

Under the premise of ensuring that each terminal device enjoys the minimum amount of resources and bandwidth, resources are effectively shared to ensure that the storage services of multiple terminal devices can use the defined bandwidth share, improving the storage service performance of each terminal device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114528093B_ABST
    Figure CN114528093B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method for improving the performance of storage services for vehicle-mounted terminal devices, including: determining the label values ​​of IO requests received from multiple terminal devices, the label value of each IO request including an R label value, an L label value, a P label value and a B label value; determining whether the IO requests of each terminal device meet the scheduling conditions according to the label values ​​corresponding to each IO request, and sending the IO requests that meet the scheduling conditions to a queue of pending IO requests, including IO requests that meet the preset IOPS limit and meet the preset bandwidth limit; scheduling and processing all IO requests in the queue of pending IO requests based on time sorting. The embodiment of the present invention also discloses a system for improving the performance of storage services for vehicle-mounted terminal devices. The present invention can ensure that the storage services on multiple terminal devices can use the defined bandwidth share and do not exceed the defined resource limit, thereby improving the performance of the storage services for each terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle networking technology, and in particular to a method and system for improving storage service performance of vehicle-mounted terminal equipment. Background Art

[0002] In the field of Internet of Vehicles, when uploading edge data of terminal devices to cloud storage, multiple terminal devices upload data to the cloud at the same time. At the same time, each terminal device needs to independently respond to query retrieval from the in-vehicle and cloud distributed storage service systems to verify data consistency. In the prior art, multiple terminal devices can allocate shared IOPS (minimum resource quota) between different terminal devices, but cannot effectively allocate the bandwidth of distributed storage between different terminals, so that the performance of each terminal device storage service cannot be guaranteed. Summary of the invention

[0003] To solve the above problems, the purpose of the present invention is to provide a method and system for improving the performance of storage services of vehicle-mounted terminal devices, which can ensure that the storage services on multiple terminal devices can use the bandwidth shares defined for them and do not exceed the resource limits defined for them, thereby improving the performance of the storage services of each terminal device.

[0004] An embodiment of the present invention provides a method for improving storage service performance of a vehicle-mounted terminal device, the method comprising:

[0005] Determine the label values ​​of the received IO requests of the multiple terminal devices, wherein the label value of the IO request of each terminal device includes an R label value, an L label value, a P label value and a B label value, the R label value represents a reserved time label value, the L label value represents an upper limit time label value, the W label value represents a weighted time label value, and the B label value represents a bandwidth label value;

[0006] According to the tag value corresponding to each IO request, determine whether the IO request of each terminal device meets the scheduling condition, and send the IO request that meets the scheduling condition to the queue of pending IO requests, wherein the scheduling condition includes that the IO request meets the preset IOPS limit and meets the preset bandwidth limit;

[0007] All IO requests in the pending IO request queue are scheduled and processed based on time sorting.

[0008] As a further improvement of the present invention, the step of determining the label values ​​of the received IO requests of the plurality of terminal devices includes:

[0009] The calculation formula for the R tag value of the IO request of each terminal device is:

[0010]

[0011] The calculation formula for the L tag value of the IO request of each terminal device is:

[0012]

[0013] The calculation formula for the P tag value of the IO request of each terminal device is:

[0014] P i r =max{P i r-1 +δ i / w i ,t}

[0015] The calculation formula for the B tag value of the IO request of each terminal device is:

[0016]

[0017] In the formula, i represents the serial number of the current terminal device, P i r and They represent the R label value, L label value, P label value, and B label value of the rth IO request of the i-th terminal device, respectively.

[0018] P i r-1 and They represent the R label value, L label value, P label value, and B label value of the r-1th IO request of the i-th terminal device, respectively.

[0019] δ i It indicates the number of IO requests sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0020] ρ i It indicates the number of IO requests in the reservation phase sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0021] r i Indicates the minimum number of IO requests reserved for the i-th terminal device, l i represents the upper limit of the number of IO requests reserved for the i-th terminal device, w i represents the weight of the i-th terminal device, bi represents the bandwidth of the i-th terminal device, t represents the current time,

[0022] length represents the byte size of the rth IO request sent by the i-th terminal device to the current target storage server in the cloud distributed storage system,

[0023] It represents the byte size of IO requests sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the time period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0024] As a further improvement of the present invention, the scheduling process for all IO requests in the pending IO request queue according to the label value corresponding to each IO request includes:

[0025] At the current time, if the target storage server does not meet the minimum number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirements of the IO request, resources are allocated preferentially to the IO request of the current terminal device;

[0026] At the current time, if the target storage server has not reached the upper limit of the number of IO requests reserved for the current terminal device or the resources of the target storage server do not meet the bandwidth requirement of the IO request, no resources will be allocated to the IO request of the current terminal device;

[0027] At the current time, if the target storage server reaches the minimum number of IO requests reserved for the current terminal device and has not reached the upper limit number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirements of the IO request, then the weight represented by the P tag value of the IO request of the current terminal is used to allocate resources to the IO request of the current terminal device.

[0028] An embodiment of the present invention further provides a system for improving the storage service performance of a vehicle-mounted terminal device, the system comprising:

[0029] a label value determination module, configured to determine label values ​​of received IO requests of multiple terminal devices, wherein the label value of the IO request of each terminal device includes an R label value, an L label value, a P label value, and a B label value, wherein the R label value indicates a reserved time label value, the L label value indicates an upper limit time label value, the W label value indicates a weighted time label value, and the B label value indicates a bandwidth label value;

[0030] A queue determination module is used to determine whether the IO request of each terminal device meets the scheduling conditions, and send the IO request that meets the scheduling conditions to the pending IO request queue, wherein the scheduling conditions include that the IO request meets the preset IOPS limit and meets the preset bandwidth limit;

[0031] The scheduling module is used to schedule all IO requests in the pending IO request queue according to the label value corresponding to each IO request.

[0032] As a further improvement of the present invention, the label value determination module includes:

[0033] The calculation formula for the R tag value of the IO request of each terminal device is:

[0034]

[0035] The calculation formula for the L tag value of the IO request of each terminal device is:

[0036]

[0037] The calculation formula for the P tag value of the IO request of each terminal device is:

[0038] P i r =max{P i r-1 +δ i / w i ,t}

[0039] The calculation formula for the B tag value of the IO request of each terminal device is:

[0040]

[0041] In the formula, i represents the serial number of the current terminal device, P i r and They represent the R label value, L label value, P label value, and B label value of the rth IO request of the i-th terminal device, respectively.

[0042] P i r-1 and They represent the R label value, L label value, P label value, and B label value of the r-1th IO request of the i-th terminal device, respectively.

[0043] δ iIt indicates the number of IO requests sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0044] ρ i It indicates the number of IO requests in the reservation phase sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0045] r i Indicates the minimum number of IO requests reserved for the i-th terminal device, l i represents the upper limit of the number of IO requests reserved for the i-th terminal device, w i represents the weight of the i-th terminal device, b i represents the bandwidth of the i-th terminal device, t represents the current time,

[0046] length represents the byte size of the rth IO request sent by the i-th terminal device to the current target storage server in the cloud distributed storage system,

[0047] It represents the byte size of IO requests sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the time period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0048] As a further improvement of the present invention, the scheduling module includes:

[0049] At the current time, if the target storage server does not meet the minimum number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirements of the IO request, resources are allocated preferentially to the IO request of the current terminal device;

[0050] At the current time, if the target storage server has not reached the upper limit of the number of IO requests reserved for the current terminal device or the resources of the target storage server do not meet the bandwidth requirements of the IO request, no resources will be allocated to the IO request of the current terminal device;

[0051] At the current time, if the target storage server reaches the minimum number of IO requests reserved for the current terminal device and has not reached the upper limit number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirements of the IO request, then the weight represented by the P tag value of the IO request of the current terminal is used to allocate resources to the IO request of the current terminal device.

[0052] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the described method.

[0053] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is executed by a processor to implement the method described.

[0054] The beneficial effects of the present invention are:

[0055] On the premise of ensuring that each terminal device can enjoy the minimum amount of resources (IOPS) and bandwidth, resources are effectively shared among different terminal devices according to the priority set for each terminal device. This can ensure that the storage services on multiple terminal devices can use the bandwidth share defined for them and do not exceed the resource limits defined for them, thereby improving the performance of the storage services on each terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.

[0057] Figure 1 The present invention is a flowchart of a method for improving the storage service performance of an in-vehicle terminal device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0060] In addition, in the description of the present invention, the terms used are only for illustrative purposes and are not intended to limit the scope of the present invention. The terms "include" and / or "comprise" are used to specify the existence of the elements, steps, operations and / or components, but do not exclude the existence or addition of one or more other elements, steps, operations and / or components. The terms "first", "second" and the like may be used to describe various elements, do not represent the order, and do not limit these elements. In addition, in the description of the present invention, unless otherwise specified, the meaning of "multiple" is two and more than two. These terms are only used to distinguish one element from another element. In conjunction with the following drawings, these and / or other aspects become apparent, and it is easier for a person of ordinary skill in the art to understand the description of the embodiments of the present invention. The accompanying drawings are used to describe the embodiments of the present invention for illustrative purposes only. Those skilled in the art will easily recognize from the following description that, without departing from the principles of the present invention, alternative embodiments of the structures and methods shown in the present invention can be adopted.

[0061] A method for improving the storage service performance of a vehicle terminal device according to an embodiment of the present invention is as follows: Figure 1 As shown, the method includes:

[0062] Determine the label values ​​of the received IO requests of the multiple terminal devices, wherein the label value of the IO request of each terminal device includes an R label value, an L label value, a P label value and a B label value, the R label value represents a reserved time label value, the L label value represents an upper limit time label value, the W label value represents a weighted time label value, and the B label value represents a bandwidth label value;

[0063] According to the tag value corresponding to each IO request, determine whether the IO request of each terminal device meets the scheduling condition, and send the IO request that meets the scheduling condition to the queue of pending IO requests, wherein the scheduling condition includes that the IO request meets the preset IOPS limit and meets the preset bandwidth limit;

[0064] All IO requests in the pending IO request queue are scheduled and processed based on time sorting.

[0065] In the field of Internet of Vehicles, in the process of uploading edge data of terminal devices to cloud storage, there will be multiple terminal devices uploading data to the cloud at the same time, and each terminal device serves as a storage service. At the same time, each terminal device needs to independently respond to query retrieval to verify data consistency from the distributed storage service system in the car and the cloud. In the related technology, although the sharing of IOPS between multiple storage services can be guaranteed, the bandwidth of distributed storage shared between multiple storage services cannot be guaranteed. Only providing shared IOPS between storage services cannot ensure the performance of each storage service.

[0066] Among them, each terminal device is defined as:

[0067] The maximum resource limit that the terminal device can use as a storage service;

[0068] The minimum amount of resources that the terminal device needs to guarantee as a storage service;

[0069] If there are remaining resources, how to allocate the remaining resources among different terminal devices, namely storage services.

[0070] The method of the present invention can be applied to the IoT scenario where massive terminal edge data is uploaded to a cloud distributed storage system. As a distributed scheduling algorithm based on time tags, the traditional dmclock algorithm only limits the three time tags of reservation, upper limit and weight to implement the scheduling process. The method of the present invention adds the bandwidth tag to implement the IO request scheduling process, and implements the scheduling allocation of IO requests through the four tags of reservation, upper limit, weight and bandwidth.

[0071] Since multiple terminal devices share the IOPS and bandwidth of the distributed storage system, and different terminal devices have different priorities, the method described in the present invention adds a bandwidth tag, configures the bandwidth for each storage service, and the scheduler can decide whether to respond to each IO request based on the current state of the system and the tag on each IO request. That is, in addition to checking whether the current IO request meets the IOPS limit, the scheduler will also check whether the current IO request meets the bandwidth limit. It will respond to the current IO request only if both limits are met. Under the premise of ensuring the minimum amount of resources (IOPS) and bandwidth that each terminal device can enjoy, the method described in the present invention effectively shares resources among different terminal devices according to the priority set for each terminal device, and can ensure that the storage services on multiple terminal devices can use the bandwidth share defined for them and do not exceed the resource limit defined for them, thereby improving the performance of the storage services of each terminal device.

[0072] In an optional implementation manner, determining the label values ​​of the received IO requests of the multiple terminal devices includes:

[0073] The calculation formula for the R tag value of the IO request of each terminal device is:

[0074]

[0075] The calculation formula for the L tag value of the IO request of each terminal device is:

[0076]

[0077] The calculation formula for the P tag value of the IO request of each terminal device is:

[0078] P i r =max{P i r-1 +δ i / w i ,t}

[0079] The calculation formula for the B tag value of the IO request of each terminal device is:

[0080]

[0081] In the formula, i represents the serial number of the current terminal device, P i r and They represent the R label value, L label value, P label value, and B label value of the rth IO request of the i-th terminal device, respectively.

[0082] P i r-1 and They represent the R label value, L label value, P label value, and B label value of the r-1th IO request of the i-th terminal device, respectively.

[0083] δ i It indicates the number of IO requests sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0084] ρ i It indicates the number of IO requests in the reservation phase sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0085] r iIndicates the minimum number of IO requests reserved for the i-th terminal device, l i represents the upper limit of the number of IO requests reserved for the i-th terminal device, w i represents the weight of the i-th terminal device, b i represents the bandwidth of the i-th terminal device, t represents the current time,

[0086] length represents the byte size of the rth IO request sent by the i-th terminal device to the current target storage server in the cloud distributed storage system,

[0087] It represents the byte size of IO requests sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the time period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0088] In an optional implementation manner, the scheduling and processing of all IO requests in the pending IO request queue according to a label value corresponding to each IO request includes:

[0089] At the current time, if the target storage server does not meet the minimum number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirement of the IO request (i.e., the B tag value), then the IO request of the current terminal device is given priority in allocating resources;

[0090] At the current time, if the target storage server has not reached the upper limit of the number of IO requests reserved for the current terminal device or the resources of the target storage server do not meet the bandwidth requirement of the IO request (i.e., the B tag value), no resources will be allocated to the IO request of the current terminal device;

[0091] At the current time, if the target storage server reaches the minimum number of IO requests reserved for the current terminal device and has not reached the upper limit number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirement of the request (B tag value), then the weight represented by the P tag value of the IO request of the current terminal is used to allocate resources to the IO request of the current terminal device.

[0092] Before adding the B tag, the response judgment logic for IO requests is:

[0093] At the current time, if the target storage server does not meet the minimum number of IO requests reserved for the current terminal device, resources are allocated preferentially to the IO requests of the current terminal device;

[0094] At the current time, if the target storage server has not reached the upper limit of the number of IO requests reserved for the current terminal device, no resources will be allocated to the IO request of the current terminal device;

[0095] At the current time, if the target storage server reaches the minimum number of IO requests reserved for the current terminal device and has not reached the upper limit of the IO requests reserved for the current terminal device, then the weight represented by the P tag value of the IO request of the current terminal is used to allocate resources to the IO request of the current terminal device.

[0096] The distributed storage system includes multiple storage servers. When the target storage server receives an IO request, it assigns four independent labels to each IO request, namely, R label, L label, P label and B label. Among them, R label and L label are both time-related labels. R label determines the time when the IO request should be processed based on the reserved value, L label determines the time when the IO request should be processed based on the upper limit value, P label determines the time when the IO request should be processed based on the weight value, and B label determines the time when the IO request should be processed based on the bandwidth value.

[0097] The distributed storage system sorts IO requests according to the four label values ​​and processes them in order. The scheduler decides whether to respond to each IO request according to the current state of the distributed storage system and the label of each IO request, thereby controlling the IOPS that each storage service can use. IOPS represents the number of user IO requests that can be responded to per unit time. At the same time, the bandwidth of each storage service is controlled, and the bandwidth determines the data transmission rate in the system per unit time, thereby controlling the bandwidth of each storage service to improve the storage service performance. In the queue of pending IO requests, each IO request has a processing order based on time sorting, and the IO requests in the request queue are processed according to the scheduling order.

[0098] A system for improving storage service performance of an in-vehicle terminal device according to an embodiment of the present invention includes:

[0099] a label value determination module, configured to determine label values ​​of received IO requests of multiple terminal devices, wherein the label value of the IO request of each terminal device includes an R label value, an L label value, a P label value, and a B label value, wherein the R label value indicates a reserved time label value, the L label value indicates an upper limit time label value, the W label value indicates a weighted time label value, and the B label value indicates a bandwidth label value;

[0100] A queue determination module is used to determine whether the IO request of each terminal device meets the scheduling conditions, and send the IO request that meets the scheduling conditions to the pending IO request queue, wherein the scheduling conditions include that the IO request meets the preset IOPS limit and meets the preset bandwidth limit;

[0101] The scheduling module is used to schedule all IO requests in the pending IO request queue according to the label value corresponding to each IO request.

[0102] In an optional implementation, the label value determination module includes:

[0103] The calculation formula for the R tag value of the IO request of each terminal device is:

[0104]

[0105] The calculation formula for the L tag value of the IO request of each terminal device is:

[0106]

[0107] The calculation formula for the P tag value of the IO request of each terminal device is:

[0108] P i r =max{P i r-1 +δ i / w i ,t}

[0109] The calculation formula for the B tag value of the IO request of each terminal device is:

[0110]

[0111] In the formula, i represents the serial number of the current terminal device, P i r and They represent the R label value, L label value, P label value, and B label value of the rth IO request of the i-th terminal device, respectively.

[0112] P i r-1 and They represent the R label value, L label value, P label value, and B label value of the r-1th IO request of the i-th terminal device, respectively.

[0113] δ i represents the number of IO requests sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system, ρ iIt indicates the number of IO requests in the reservation phase sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0114] r i Indicates the minimum number of IO requests reserved for the i-th terminal device, l i represents the upper limit of the number of IO requests reserved for the i-th terminal device, w i represents the weight of the i-th terminal device, b i represents the bandwidth of the i-th terminal device, t represents the current time,

[0115] length represents the byte size of the rth IO request sent by the i-th terminal device to the current target storage server in the cloud distributed storage system,

[0116] It represents the byte size of IO requests sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system during the time period from the i-th terminal device sending the r-1th IO request to the r-th IO request to the current target storage server in the cloud distributed storage system.

[0117] In an optional implementation manner, the scheduling module includes:

[0118] At the current time, if the target storage server does not meet the minimum number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirement (B tag value) of the IO request, then the IO request of the current terminal device is allocated resources first;

[0119] At the current time, if the target storage server has not reached the upper limit of the number of IO requests reserved for the current terminal device or the resources of the target storage server meet the bandwidth requirement (B tag value) of the IO request, no resources will be allocated to the IO request of the current terminal device;

[0120] At the current time, if the target storage server reaches the minimum number of IO requests reserved for the current terminal device and has not reached the upper limit number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirement (B tag value) of the IO request, then the weight represented by the P tag value of the IO request of the current terminal is used to allocate resources to the IO request of the current terminal device.

[0121] The present disclosure also relates to an electronic device, including a server, a terminal, etc. The electronic device includes: at least one processor; a memory connected to the at least one processor; and a communication component connected to the storage medium, wherein the communication component receives and sends data under the control of the processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to implement the method in the above embodiment.

[0122] In an optional embodiment, the memory is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The processor executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory, that is, implementing the method.

[0123] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store a list of options, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to an external device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0124] One or more modules are stored in the memory, and when executed by one or more processors, the method in any of the above method embodiments is executed.

[0125] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0126] The present disclosure also relates to a computer-readable storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.

[0127] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0128] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0129] In addition, it will be understood by those skilled in the art that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

[0130] It will be appreciated by those skilled in the art that, although the present invention has been described with reference to exemplary embodiments, various changes may be made and equivalents may be substituted for its elements without departing from the scope of the present invention. In addition, many modifications may be made to adapt specific circumstances or materials to the teachings of the present invention without departing from the essential scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed, but the present invention will include all embodiments falling within the scope of the appended claims.

Claims

1. A method for improving the storage service performance of a vehicle-mounted terminal device, characterized in that: The method comprises: Determine the label values ​​of the received IO requests of the multiple terminal devices, wherein the label value of the IO request of each terminal device includes an R label value, an L label value, a P label value and a B label value, wherein the R label value represents a reserved time label value, the L label value represents an upper limit time label value, the P label value represents a weighted time label value, and the B label value represents a bandwidth label value, wherein the calculation formula of the R label value of the IO request of each terminal device is: The calculation formula for the L tag value of the IO request of each terminal device is: The calculation formula for the P tag value of the IO request of each terminal device is: The calculation formula for the B tag value of the IO request of each terminal device is: In the formula, i Indicates the serial number of the current terminal device. , , and Respectively represent i The first terminal device r The R tag value, L tag value, P tag value, and B tag value of each IO request. , , and Respectively represent i The first terminal device r - The R tag value, L tag value, P tag value and B tag value of an IO request, Indicates i The terminal device sends the first r -1 IO request to r During the time period of IO requests, i The number of IO requests sent and completed by a terminal device to other storage servers in the cloud distributed storage system, Indicates i The terminal device sends the first r -1 IO request to r The number of IO requests in the reservation phase sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system within the time period of the IO request, Indicates that it is reserved for i The minimum number of IO requests for a terminal device, Indicates that it is reserved for i The upper limit of the number of IO requests for a terminal device, Indicates i The weight of the terminal device, Indicates i The bandwidth of the terminal device t Indicates the current time. length Indicates i The terminal device sends the first r The size in bytes of an IO request, Indicates i The terminal device sends the first r -1 IO request to r During the time period of IO requests, i The byte size of the IO request sent and completed by a terminal device to other storage servers in the cloud distributed storage system; According to the tag value corresponding to each IO request, determine whether the IO request of each terminal device meets the scheduling condition, and send the IO request that meets the scheduling condition to the queue of pending IO requests, wherein the scheduling condition includes that the IO request meets the preset IOPS limit and meets the preset bandwidth limit; All IO requests in the pending IO request queue are scheduled based on time order, including: At the current time, if the target storage server does not meet the minimum number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirements of the IO request, resources are allocated preferentially to the IO request of the current terminal device; At the current time, if the target storage server has not reached the upper limit of the number of IO requests reserved for the current terminal device or the resources of the target storage server do not meet the bandwidth requirement of the IO request, no resources will be allocated to the IO request of the current terminal device; At the current time, if the target storage server reaches the minimum number of IO requests reserved for the current terminal device and has not reached the upper limit number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirements of the IO request, then the weight represented by the P tag value of the IO request of the current terminal is used to allocate resources to the IO request of the current terminal device.

2. A system for improving the storage service performance of a vehicle-mounted terminal device, characterized in that: The system comprises: The label value determination module is used to determine the label values ​​of the received IO requests of multiple terminal devices, wherein the label value of the IO request of each terminal device includes an R label value, an L label value, a P label value and a B label value, wherein the R label value represents a reserved time label value, the L label value represents an upper limit time label value, the P label value represents a weighted time label value, and the B label value represents a bandwidth label value, wherein: the calculation formula of the R label value of the IO request of each terminal device is: The calculation formula for the L tag value of the IO request of each terminal device is: The calculation formula for the P tag value of the IO request of each terminal device is: The calculation formula for the B tag value of the IO request of each terminal device is: In the formula, i Indicates the serial number of the current terminal device. , , and Respectively represent i The first terminal device r The R tag value, L tag value, P tag value, and B tag value of each IO request. , , and Respectively represent i The first terminal device r - The R tag value, L tag value, P tag value and B tag value of an IO request, Indicates i The terminal device sends the first r -1 IO request to r During the time period of IO requests, i The number of IO requests sent and completed by a terminal device to other storage servers in the cloud distributed storage system, Indicates i The terminal device sends the first r -1 IO request to r The number of IO requests in the reservation phase sent and completed by the i-th terminal device to other storage servers in the cloud distributed storage system within the time period of the IO request, Indicates that it is reserved for i The minimum number of IO requests for a terminal device, Indicates that it is reserved for i The upper limit of the number of IO requests for a terminal device, Indicates i The weight of the terminal device, Indicates i The bandwidth of the terminal device t Indicates the current time. length Indicates i The terminal device sends the first r The size in bytes of an IO request, Indicates i The terminal device sends the first r -1 IO request to r During the time period of IO requests, i The byte size of the IO request sent and completed by a terminal device to other storage servers in the cloud distributed storage system; A queue determination module is used to determine whether the IO request of each terminal device meets the scheduling conditions according to the label value corresponding to each IO request, and send the IO request that meets the scheduling conditions to the queue of pending IO requests, wherein the scheduling conditions include that the IO request meets the preset IOPS limit and meets the preset bandwidth limit; The scheduling module is used to schedule all IO requests in the pending IO request queue based on time sorting, including: At the current time, if the target storage server does not meet the minimum number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirements of the IO request, resources are allocated preferentially to the IO request of the current terminal device; At the current time, if the target storage server has not reached the upper limit of the number of IO requests reserved for the current terminal device or the resources of the target storage server do not meet the bandwidth requirement of the IO request, no resources will be allocated to the IO request of the current terminal device; At the current time, if the target storage server reaches the minimum number of IO requests reserved for the current terminal device and has not reached the upper limit number of IO requests reserved for the current terminal device, and the resources of the target storage server meet the bandwidth requirements of the IO request, then the weight represented by the P tag value of the IO request of the current terminal is used to allocate resources to the IO request of the current terminal device.

3. An electronic device comprising a memory and a processor, characterized in that: The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method as claimed in claim 1.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the method as claimed in claim 1.

Citation Information

Patent Citations

  • Storage system QoS (quality of service) control method and device

    CN107133100A

  • IO request processing method and device

    CN108153494A

  • IO request scheduling method and device

    CN113132266A

  • Resource scheduling methods, device and system, and central server

    US20200348977A1