Calculation power resource measurement method and device, equipment and storage medium
Through the deep enhanced algorithm large model, the computing power equipment is measured twice, combined with the business and network status, to solve the problem of different measurement factors of different types of computing power equipment, and achieve a more accurate unified measurement.
Patent Information
- Application Number
- CN202311743577.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2024-10-22
AI Technical Summary
Existing technology cannot uniformly and accurately measure computing power resources for different types of computing power equipment, resulting in different measurement factors, making it impossible to achieve unified measurement.
By pre-setting the computing power measurement attributes, the initial data and weight of each sub-computing power device are obtained, combined with the network status and business-related information during the business processing process, and using the deep enhanced algorithm large model to perform secondary measurement, taking into account business factors and network status. , to generate more accurate computing resource measurement results.
It realizes the unified measurement of different types of computing power equipment. The results obtained after the second measurement are more accurate and suitable for different types of sub-computing power equipment. It solves the difficulty of unified measurement caused by different measurement factors.
Smart Images

Figure CN118819801A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for measuring computing resources. Background Art
[0002] At present, there are many types of computing power devices, including: CPU, Graphics Processing Unit (GPU) and Neural Processor Unit (NPU). In addition to computing resources, computing power resources can also include other resources such as memory resources, storage resources and communication capabilities. For each type of computing power device, the factors that affect its computing power resource measurement are different. How to accurately measure the computing power resources of various types of computing power devices in a unified manner has become a problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus, device and storage medium for measuring computing power resources to solve the problem that the prior art cannot uniformly and accurately measure computing power resources for different types of computing power devices.
[0004] In a first aspect, an embodiment of the present application provides a method for measuring computing resources, including:
[0005] According to the preset computing power measurement attributes, obtain the initial computing power resource data of each sub-computing power device;
[0006] Obtaining a first computing resource measurement result according to a first device weight pre-set for each of the sub-computing devices and the initial computing resource data of each of the sub-computing devices;
[0007] Obtaining the computing resource weight of each of the sub-computing devices during business processing, as well as information related to the network status;
[0008] According to the initial computing power resource data of each of the sub-computing power devices, the computing power resource weight of each of the sub-computing power devices, network status-related information, business-related information and the first computing power resource measurement result, the second computing power resource measurement result is obtained through the deep reinforcement algorithm big model.
[0009] Optionally, in the process of acquiring the service processing, the computing resource weight of each of the sub-computing devices includes:
[0010] Obtain computing resource usage data of each of the sub-computing devices during business processing;
[0011] The computing power resource usage data is input into a pre-trained original device matching model to obtain the computing power resource weight of each of the sub-computing power devices, wherein the original device matching model is trained based on the device cache size, service processing delay, maximum processable service volume and service type.
[0012] Optionally, the computing power resource measurement method further includes:
[0013] Obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute, wherein the computing power device block is composed of sub-computing power devices of the same type, and the types of sub-computing power devices contained in any two computing power device blocks are different.
[0014] Optionally, the obtaining of the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute includes:
[0015] Obtaining the level classification information of each of the sub-computing power devices;
[0016] According to the level classification information of each of the sub-computing power devices and the computing power measurement attribute, obtain the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute, and the priority number is used to indicate the priority level of any two of the sub-computing power devices corresponding to the computing power measurement attribute;
[0017] Determine the priority ranking of each of the sub-computing power devices in the computing power device block according to the priority order of each of the sub-computing power devices corresponding to the computing power measurement attribute;
[0018] According to the priority number of each sub-computing power device corresponding to the computing power measurement attribute and the priority ranking of each sub-computing power device in the computing power device block, the second device weight of each sub-computing power device in the same computing power device block and the attribute weight of each sub-computing power device corresponding to the computing power measurement attribute are obtained.
[0019] Optionally, the computing power resource measurement method further includes:
[0020] Generate a computing power resource data information pool;
[0021] The computing resource data information pool includes any one or combination of the following:
[0022] The second computing power measurement result, the initial computing power resource data of the sub-computing power device, the number of the sub-computing power devices, network status related information and the business related information.
[0023] Optionally, the computing power resource measurement method further includes:
[0024] The first device weight is dynamically updated according to the service history weight.
[0025] Optionally, the computing power measurement attributes include: serial computing power, parallel computing power, computing power efficiency, storage capacity and network speed.
[0026] Optionally, the network status related information is a network indicator score value, and the network indicator score value is obtained according to network average delay, bandwidth utilization, network availability and jitter.
[0027] In a second aspect, an embodiment of the present application provides a computing resource measurement device, including:
[0028] The first module is used to obtain the initial computing power resource data of each sub-computing power device according to the preset computing power measurement attribute;
[0029] The second module is used to obtain the first computing resource measurement result according to the first device weight pre-set for each of the sub-computing devices and the initial computing resource data of each of the sub-computing devices;
[0030] The third module is used to obtain the computing resource weight of each sub-computing device and network status related information during business processing;
[0031] The fourth module is used to obtain the second computing power resource measurement result through the deep reinforcement algorithm big model according to the initial computing power resource data of each of the sub-computing power devices, the computing power resource weight of each of the sub-computing power devices, network status related information, business related information and the first computing power resource measurement result.
[0032] Optionally, the third module is also used to obtain the computing power resource usage data of each of the sub-computing power devices during business processing, input the computing power resource usage data into a pre-trained original device matching model, and obtain the computing power resource weight of each of the sub-computing power devices, wherein the original device matching model is trained based on the device cache size, business processing delay, maximum processable business volume and business type.
[0033] Optionally, the computing power resource measurement device further includes:
[0034] The fifth module is used to obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute, wherein the computing power device block is composed of sub-computing power devices of the same type, and the types of sub-computing power devices contained in any two computing power device blocks are different.
[0035] Optionally, the fifth module is also used to obtain the level division information of each of the sub-computing power devices; according to the level division information of each of the sub-computing power devices and the computing power measurement attribute, obtain the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute, and the priority number is used to indicate the priority level of any two of the sub-computing power devices corresponding to the computing power measurement attribute; according to the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute, determine the priority ranking of each of the sub-computing power devices in the computing power device block; according to the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute and the priority ranking of each of the sub-computing power devices in the computing power device block, obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute.
[0036] Optionally, the computing power resource measurement device further includes:
[0037] The sixth module is used to generate a computing power resource data information pool;
[0038] The computing resource data information pool includes any one or combination of the following:
[0039] The second computing power measurement result, the initial computing power resource data of the sub-computing power device, the number of the sub-computing power devices, network status related information and the business related information.
[0040] Optionally, the computing power resource measurement device further includes:
[0041] The seventh module is used to dynamically update the weight of the first device according to the business history weight.
[0042] Optionally, the computing power measurement attributes include: serial computing power, parallel computing power, computing power efficiency, storage capacity and network speed.
[0043] Optionally, the network status related information is a network indicator score value, and the network indicator score value is obtained according to network average delay, bandwidth utilization, network availability and jitter.
[0044] In a third aspect, an embodiment of the present application provides a computing resource measurement device, including: a processor and a transceiver;
[0045] The processor is used to obtain the initial computing power resource data of each sub-computing power device according to the preset computing power measurement attribute, obtain the first computing power resource measurement result according to the first device weight pre-set for each of the sub-computing power devices and the initial computing power resource data of each of the sub-computing power devices, obtain the computing power resource weight of each of the sub-computing power devices and network status related information during the business processing, and obtain the second computing power resource measurement result through the deep reinforcement algorithm big model according to the initial computing power resource data of each of the sub-computing power devices, the computing power resource weight of each of the sub-computing power devices, network status related information, business related information and the first computing power resource measurement result;
[0046] The transceiver is used to obtain the computing power measurement attribute and the first device weight.
[0047] Optionally, the processor is also used to obtain computing resource usage data of each of the sub-computing power devices during business processing, input the computing resource usage data into a pre-trained original device matching model, and obtain the computing resource weight of each of the sub-computing power devices, wherein the original device matching model is trained based on the device cache size, business processing delay, maximum processable business volume and business type.
[0048] Optionally, the processor is also used to obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute, wherein the computing power device block is composed of sub-computing power devices of the same type, and the types of sub-computing power devices contained in any two computing power device blocks are different.
[0049] Optionally, the processor is also used to obtain the level division information of each of the sub-computing power devices; obtain the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute according to the level division information of each of the sub-computing power devices and the computing power measurement attribute, and the priority number is used to indicate the priority level of any two of the sub-computing power devices corresponding to the computing power measurement attribute; determine the priority ranking of each of the sub-computing power devices in the computing power device block according to the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute and the priority ranking of each of the sub-computing power devices in the computing power device block, obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute.
[0050] Optionally, the processor is further used to generate a computing power resource data information pool;
[0051] The computing resource data information pool includes any one or combination of the following:
[0052] The second computing power measurement result, the initial computing power resource data of the sub-computing power device, the number of the sub-computing power devices, network status related information and the business related information.
[0053] Optionally, the processor is further configured to dynamically update the first device weight according to a historical service weight.
[0054] Optionally, the computing power measurement attributes include: serial computing power, parallel computing power, computing power efficiency, storage capacity and network speed.
[0055] Optionally, the network status related information is a network indicator score value, and the network indicator score value is obtained according to network average delay, bandwidth utilization, network availability and jitter.
[0056] In a fourth aspect, an embodiment of the present application provides a communication device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps in the method for measuring the computing power resources of the network described above.
[0057] In a fifth aspect, an embodiment of the present application provides a readable storage medium for storing a program, which, when executed by a processor, implements the steps in the above-mentioned method for measuring computing power resources.
[0058] In an embodiment of the present application, a computing power resource measurement attribute is pre-set. In the process of measuring the computing power resources of the sub-computing power devices, the computing power resource measurement attribute can be referred to to uniformly measure different types of sub-computing power devices, thereby solving the problem in the prior art that the measurement factors of computing power resource measurement of different types of computing power devices are different, resulting in the inability to uniformly measure computing power resources for different types of computing power devices. This embodiment performs a secondary measurement of the computing power resources, and in the process of the secondary measurement, the influence of business factors, network status factors, etc. on the computing power resource measurement results is considered, so that the second computing power resource measurement result obtained after the secondary measurement of this embodiment is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 This is one of the flow charts of the method for measuring computing resources provided in the embodiment of the present application;
[0060] Figure 2 yes Figure 1 The flowchart of step 103 in the method for measuring computing resources provided in the embodiment of the present application is shown;
[0061] Figure 3This is the second flowchart of the method for measuring computing resources provided in the embodiment of the present application;
[0062] Figure 4 yes Figure 3 The structural diagram of step 105 in the method for measuring computing resources provided in the embodiment of the present application is shown;
[0063] Figure 5 This is the third flowchart of the method for measuring computing power resources provided in the embodiment of the present application;
[0064] Figure 6 This is one of the structural schematic diagrams of the computing power resource measurement device provided in the embodiment of the present application;
[0065] Figure 7 This is the second structural diagram of the computing power resource measurement device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0066] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0067] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0069] See also Figure 1 , Figure 1 Flowchart of the method for measuring computing resources provided in the embodiment of the present application. Figure 1 As shown, the method for measuring computing resources provided in the embodiment of the present application may include the following steps:
[0070] Step 101: Obtain the initial computing power resource data of each sub-computing power device according to the preset computing power measurement attributes.
[0071] In this embodiment, the computing power measurement attribute may specifically include five dimensions, namely: serial computing power, parallel computing power, computing power efficiency, storage capacity and network speed. Of course, the above is only a specific example. In actual use, the computing power measurement attribute may also include other dimensions, which will not be described one by one here.
[0072] In this embodiment, the types and quantity of sub-computing power devices can be set according to actual conditions. This embodiment takes 6 types of sub-computing power devices, namely: CPU, GPU, NPU, Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), Application Specific Integrated Circuit (Application Specific Integrated Circuit, ASIC) and Digital Signal Processor (Digital Signal Processor, DSP) as examples for illustration. In actual use, the types of sub-computing power devices may also include: Tensor Processing Unit (TPU), Advanced RISC Machine (ARM) processor and fifth-generation (computer) reduced instruction set (Reduced Instruction Set Computer-V, RISC-V) processor, etc., and each case will not be described one by one here.
[0073] Step 102: Obtain a first computing power resource measurement result based on a first device weight pre-set for each sub-computing power device and initial computing power resource data of each sub-computing power device.
[0074] In this embodiment, the first device weight is obtained in advance based on experience, and the accuracy of the first device weight may not be high. In order to solve this problem, in this embodiment, a step of dynamically updating the first device weight according to the service history weight may be included, so that a more accurate first device weight can be obtained.
[0075] In this embodiment, the first device weight of each sub-computing power device may be different or partially the same, and the specific setting method can be obtained according to actual business needs.
[0076] Step 103: Obtain the computing resource weight of each sub-computing device during business processing, as well as information related to the network status.
[0077] In this embodiment, if Figure 2 As shown, the method of obtaining the computing resource weight of each sub-computing device in step 103 may include:
[0078] Step 201: Obtain computing resource usage data of each sub-computing device during business processing.
[0079] Step 202: Input the computing power resource usage data into the pre-trained original device matching model to obtain the computing power resource weight of each sub-computing power device, wherein the original device matching model is trained based on the device cache size, service processing delay, maximum processable service volume and service type.
[0080] In this embodiment, the network status related information can be represented by a network indicator score. The network indicator score is obtained based on the average network delay, bandwidth utilization, network availability and jitter. This embodiment represents the network status related information in the form of a network indicator score, which occupies a smaller amount of data and is more convenient for subsequent secondary measurement of computing resources.
[0081] Step 104: According to the initial computing power resource data of each sub-computing power device, the computing power resource weight of each sub-computing power device, network status related information, business related information and the first computing power resource measurement result, the second computing power resource measurement result is obtained through the deep reinforcement algorithm big model.
[0082] In this embodiment, the second computing power measurement result may include: computing power resource measurement results of sub-computing power devices, computing power resource measurement results of computing power device blocks, computing power resource measurement results of servers, and computing power resource measurement results of data centers. Among them, the computing power device block is composed of multiple sub-computing power devices of the same type, the server is composed of multiple computing power device blocks of different types, and the data center is composed of multiple servers.
[0083] Optionally, in this embodiment, after computing resources are subsequently allocated to the business, a remaining computing power monitoring board may be established to obtain the remaining computing power resources in real time.
[0084] In an embodiment of the present application, a computing power resource measurement attribute is pre-set. In the process of measuring the computing power resources of the sub-computing power devices, the computing power resource measurement attribute can be referred to to uniformly measure different types of sub-computing power devices, thereby solving the problem in the prior art that the measurement factors of computing power resource measurement of different types of computing power devices are different, resulting in the inability to uniformly measure computing power resources for different types of computing power devices. This embodiment performs a secondary measurement of the computing power resources, and in the process of the secondary measurement, the influence of business factors, network status factors, etc. on the computing power resource measurement results is considered, so that the second computing power resource measurement result obtained after the secondary measurement of this embodiment is more accurate.
[0085] See also Figure 3 , Figure 3 Flowchart of the method for measuring computing resources provided in the embodiment of the present application. Figure 3 As shown, the computing power resource measurement method provided in the embodiment of the present application is Figure 1 The same as shown, except that it also includes the following steps:
[0086] Step 105: Obtain the second device weight of each sub-computing power device in the same computing power device block, and the attribute weight of each sub-computing power device corresponding to the computing power measurement attribute, wherein the computing power device block is composed of sub-computing power devices of the same type, and the types of sub-computing power devices contained in any two computing power device blocks are different.
[0087] In this embodiment, if Figure 4 As shown, step 105 may include:
[0088] Step 401: Obtain the level classification information of each sub-computing power device.
[0089] In this embodiment, the level classification information of each sub-computing power device can be set in advance according to business and network requirements.
[0090] Step 402: According to the level classification information and computing power measurement attributes of each sub-computing power device, obtain the priority number of the computing power measurement attribute corresponding to each sub-computing power device. The priority number is used to indicate the priority level of the computing power measurement attributes corresponding to any two sub-computing power devices.
[0091] In this embodiment, the computing power measurement attribute includes 5 dimensions, so step 402 needs to obtain the priority numbers corresponding to the computing power measurement attributes of the 5 dimensions respectively. Exemplarily, the priority number can be obtained by dividing the total number of computing power measurement attributes (5) by twice the total number of computing power measurement attributes minus the number of different levels.
[0092] In this embodiment, the priority number can be conveniently used to determine whether subsequent business is allocated to a more suitable sub-computing power device. At the same time, the use of the priority number can simplify the original device data of each sub-computing power device, that is, the quality can be expressed by using smaller data, thereby reducing the computing pressure.
[0093] Step 403: Determine the priority ranking of each sub-computing power device in the computing power device block according to the priority number of the computing power measurement attribute corresponding to each sub-computing power device.
[0094] In this embodiment, step 403 can use the priority numbers obtained in step 402 to obtain positive and negative ideal solutions by screening the maximum and minimum values according to a certain computing power measurement attribute, wherein the positive and negative ideal solutions are used to determine the sub-computing power devices with the best processing effect and the worst processing effect under the same computing power measurement attribute; the positive and negative ideal solutions are used to compare and analyze with the remaining priority numbers and perform projection calculations to obtain corresponding positive and negative vectors, wherein the positive and negative vectors are used to represent the processing effects of other sub-computing power devices compared to the best and worst sub-computing power devices, also known as projection values; according to the projection value, the relative closeness is calculated according to the proportion of the projection of the current device in the positive and negative ideal solutions, and the priority ranking of each sub-computing power device in the computing power device block is determined.
[0095] Step 404: According to the priority number of each sub-computing power device corresponding to the computing power measurement attribute and the priority ranking of each sub-computing power device in the computing power device block, obtain the second device weight of each sub-computing power device in the same computing power device block, and the attribute weight of the computing power measurement attribute corresponding to each sub-computing power device.
[0096] This embodiment achieves Figure 1 On the basis of the beneficial effects brought about by the illustrated embodiment, the second device weight of each sub-computing power device in the same computing power device block and the attribute weight of each sub-computing power device corresponding to the computing power measurement attribute can be obtained, so that when computing power resources are allocated to subsequent businesses, more suitable computing power resources can be allocated.
[0097] See also Figure 5 , Figure 5 Flowchart of the method for measuring computing resources provided in the embodiment of the present application. Figure 5 As shown, the computing power resource measurement method provided in the embodiment of the present application is Figure 1 The same as shown, except that it also includes the following steps:
[0098] Step 106: Generate a computing power resource data information pool.
[0099] In this embodiment, the computing power resource data information pool includes any one or combination of the following:
[0100] The second computing power measurement result, the initial computing power resource data of the sub-computing power device, the number of sub-computing power devices, network status related information and business related information.
[0101] Of course, in actual use, the computing power resource data information pool may also include other information, and each case will not be described here one by one.
[0102] This embodiment achieves Figure 1 Based on the beneficial effects brought by the illustrated embodiment, a computing power resource data information pool can be generated, so that when computing power resources are subsequently allocated and measured for business, the required relevant information can be obtained by querying the computing power resource data information pool, thereby improving the efficiency of allocating and measuring computing power resources.
[0103] See also Figure 6 , Figure 6 600 is a schematic diagram of a computing resource measurement device according to an embodiment of the present application. The computing resource measurement device 600 may include:
[0104] The first module 601 is used to obtain the initial computing power resource data of each sub-computing power device according to the preset computing power measurement attribute;
[0105] The second module 602 is used to obtain a first computing resource measurement result according to a first device weight pre-set for each of the sub-computing devices and the initial computing resource data of each of the sub-computing devices;
[0106] The third module 603 is used to obtain the computing resource weight of each of the sub-computing devices and network status related information during the business processing;
[0107] The fourth module 604 is used to obtain the second computing power resource measurement result through the deep reinforcement algorithm big model according to the initial computing power resource data of each of the sub-computing power devices, the computing power resource weight of each of the sub-computing power devices, network status related information, business related information and the first computing power resource measurement result.
[0108] Optionally, the third module 603 is also used to obtain the computing power resource usage data of each of the sub-computing power devices during business processing, input the computing power resource usage data into a pre-trained original device matching model, and obtain the computing power resource weight of each of the sub-computing power devices, wherein the original device matching model is trained based on the device cache size, business processing delay, maximum processable business volume and business type.
[0109] Optionally, the computing power resource measurement device further includes:
[0110] The fifth module is used to obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute, wherein the computing power device block is composed of sub-computing power devices of the same type, and the types of sub-computing power devices contained in any two computing power device blocks are different.
[0111] Optionally, the fifth module is also used to obtain the level division information of each of the sub-computing power devices; according to the level division information of each of the sub-computing power devices and the computing power measurement attribute, obtain the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute, and the priority number is used to indicate the priority level of any two of the sub-computing power devices corresponding to the computing power measurement attribute; according to the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute, determine the priority ranking of each of the sub-computing power devices in the computing power device block; according to the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute and the priority ranking of each of the sub-computing power devices in the computing power device block, obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute.
[0112] Optionally, the computing power resource measurement device further includes:
[0113] The sixth module is used to generate a computing power resource data information pool;
[0114] The computing resource data information pool includes any one or combination of the following:
[0115] The second computing power measurement result, the initial computing power resource data of the sub-computing power device, the number of the sub-computing power devices, network status related information and the business related information.
[0116] Optionally, the computing power resource measurement device further includes:
[0117] The seventh module is used to dynamically update the weight of the first device according to the business history weight.
[0118] Optionally, the computing power measurement attributes include: serial computing power, parallel computing power, computing power efficiency, storage capacity and network speed.
[0119] Optionally, the network status related information is a network indicator score value, and the network indicator score value is obtained according to network average delay, bandwidth utilization, network availability and jitter.
[0120] The specific implementation of the computing resource measurement device described in this embodiment can be found in Figure 1-5 The method for measuring computing power resources provided in the present embodiment is described and will not be repeated here.
[0121] In an embodiment of the present application, a computing power resource measurement attribute is pre-set. In the process of measuring the computing power resources of the sub-computing power devices, the computing power resource measurement attribute can be referred to to uniformly measure different types of sub-computing power devices, thereby solving the problem in the prior art that the measurement factors of computing power resource measurement of different types of computing power devices are different, resulting in the inability to uniformly measure computing power resources for different types of computing power devices. This embodiment performs a secondary measurement of the computing power resources, and in the process of the secondary measurement, the influence of business factors, network status factors, etc. on the computing power resource measurement results is considered, so that the second computing power resource measurement result obtained after the secondary measurement of this embodiment is more accurate.
[0122] See also Figure 7 , Figure 7 It is a structural diagram of a computing resource measurement device provided in an embodiment of the present application, which may include: a processor 701 and a transceiver 702;
[0123] The processor 701 is used to obtain the initial computing power resource data of each sub-computing power device according to the preset computing power measurement attribute, obtain the first computing power resource measurement result according to the first device weight pre-set for each of the sub-computing power devices and the initial computing power resource data of each of the sub-computing power devices, obtain the computing power resource weight of each of the sub-computing power devices and network status related information during the business processing, and obtain the second computing power resource measurement result through the deep reinforcement algorithm big model according to the initial computing power resource data of each of the sub-computing power devices, the computing power resource weight of each of the sub-computing power devices, network status related information, business related information and the first computing power resource measurement result;
[0124] The transceiver 702 is used to obtain the computing power measurement attribute and the first device weight.
[0125] Optionally, the processor 701 is also used to obtain computing resource usage data of each of the sub-computing power devices during business processing, input the computing resource usage data into a pre-trained original device matching model, and obtain the computing resource weight of each of the sub-computing power devices, wherein the original device matching model is trained based on the device cache size, business processing delay, maximum processable business volume and business type.
[0126] Optionally, the processor 701 is also used to obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute, wherein the computing power device block is composed of sub-computing power devices of the same type, and the types of sub-computing power devices contained in any two computing power device blocks are different.
[0127] Optionally, the processor 701 is also used to obtain the level division information of each of the sub-computing power devices; according to the level division information of each of the sub-computing power devices and the computing power measurement attribute, obtain the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute, and the priority number is used to indicate the priority level of any two of the sub-computing power devices corresponding to the computing power measurement attribute; according to the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute, determine the priority ranking of each of the sub-computing power devices in the computing power device block; according to the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute and the priority ranking of each of the sub-computing power devices in the computing power device block, obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute.
[0128] Optionally, the processor 701 is further configured to generate a computing power resource data information pool;
[0129] The computing resource data information pool includes any one or combination of the following:
[0130] The second computing power measurement result, the initial computing power resource data of the sub-computing power device, the number of the sub-computing power devices, network status related information and the business related information.
[0131] Optionally, the processor 701 is further configured to dynamically update the first device weight according to a historical service weight.
[0132] Optionally, the computing power measurement attributes include: serial computing power, parallel computing power, computing power efficiency, storage capacity and network speed.
[0133] Optionally, the network status related information is a network indicator score value, and the network indicator score value is obtained according to network average delay, bandwidth utilization, network availability and jitter.
[0134] In an embodiment of the present application, a computing power resource measurement attribute is pre-set. In the process of measuring the computing power resources of the sub-computing power devices, the computing power resource measurement attribute can be referred to to uniformly measure different types of sub-computing power devices, thereby solving the problem in the prior art that the measurement factors of computing power resource measurement of different types of computing power devices are different, resulting in the inability to uniformly measure computing power resources for different types of computing power devices. This embodiment performs a secondary measurement of the computing power resources, and in the process of the secondary measurement, the influence of business factors, network status factors, etc. on the computing power resource measurement results is considered, so that the second computing power resource measurement result obtained after the secondary measurement of this embodiment is more accurate.
[0135] An embodiment of the present application also provides a communication device, including: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the steps in the above-mentioned method for measuring computing power resources when executing the program.
[0136] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0137] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform 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 (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0138] The embodiment of the present application also provides a readable storage medium, on which a program is stored, and when the program is executed by the processor, each process of the embodiment of the method for measuring computing resources described above is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.
[0139] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0140] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0141] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for measuring computing resources, characterized in that: include: According to the preset computing power measurement attributes, obtain the initial computing power resource data of each sub-computing power device; Obtaining a first computing resource measurement result according to a first device weight pre-set for each of the sub-computing devices and the initial computing resource data of each of the sub-computing devices; Obtaining the computing resource weight of each of the sub-computing devices during business processing, as well as information related to the network status; According to the initial computing power resource data of each of the sub-computing power devices, the computing power resource weight of each of the sub-computing power devices, network status-related information, business-related information and the first computing power resource measurement result, the second computing power resource measurement result is obtained through the deep reinforcement algorithm big model.
2. The method according to claim 1, characterized in that In the process of acquiring the service processing, the computing resource weight of each of the sub-computing devices includes: Obtain computing resource usage data of each of the sub-computing devices during business processing; The computing power resource usage data is input into a pre-trained original device matching model to obtain the computing power resource weight of each of the sub-computing power devices, wherein the original device matching model is trained based on the device cache size, service processing delay, maximum processable service volume and service type.
3. The method according to claim 1, characterized in that Also includes: Obtain the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute, wherein the computing power device block is composed of sub-computing power devices of the same type, and the types of sub-computing power devices contained in any two computing power device blocks are different.
4. The method according to claim 3, characterized in that The obtaining of the second device weight of each of the sub-computing power devices in the same computing power device block, and the attribute weight of each of the sub-computing power devices corresponding to the computing power measurement attribute includes: Obtaining the level classification information of each of the sub-computing power devices; According to the level classification information of each of the sub-computing power devices and the computing power measurement attribute, obtain the priority number of each of the sub-computing power devices corresponding to the computing power measurement attribute, and the priority number is used to indicate the priority level of any two of the sub-computing power devices corresponding to the computing power measurement attribute; Determine the priority ranking of each of the sub-computing power devices in the computing power device block according to the priority order of each of the sub-computing power devices corresponding to the computing power measurement attribute; According to the priority number of each sub-computing power device corresponding to the computing power measurement attribute and the priority ranking of each sub-computing power device in the computing power device block, the second device weight of each sub-computing power device in the same computing power device block and the attribute weight of each sub-computing power device corresponding to the computing power measurement attribute are obtained.
5. The method according to claim 1, characterized in that Also includes: Generate a computing power resource data information pool; The computing resource data information pool includes any one or combination of the following: The second computing power measurement result, the initial computing power resource data of the sub-computing power device, the number of the sub-computing power devices, network status related information and the business related information.
6. The method according to claim 1, characterized in that Also includes: The first device weight is dynamically updated according to the service history weight.
7. The method according to claim 1, characterized in that The computing power measurement attributes include: serial computing power, parallel computing power, computing power efficiency, storage capacity and network speed.
8. The method according to claim 1, characterized in that: The network status related information is a network indicator score value, and the network indicator score value is obtained according to the network average delay, bandwidth utilization, network availability and jitter.
9. A computing resource measurement device, characterized in that: include: The first module is used to obtain the initial computing power resource data of each sub-computing power device according to the preset computing power measurement attribute; The second module is used to obtain the first computing resource measurement result according to the first device weight pre-set for each of the sub-computing devices and the initial computing resource data of each of the sub-computing devices; The third module is used to obtain the computing resource weight of each sub-computing device and network status related information during business processing; The fourth module is used to obtain the second computing power resource measurement result through the deep reinforcement algorithm big model according to the initial computing power resource data of each of the sub-computing power devices, the computing power resource weight of each of the sub-computing power devices, network status related information, business related information and the first computing power resource measurement result.
10. A computing resource measurement device, comprising: A processor and a transceiver; characterized in that, The processor is used to obtain the initial computing power resource data of each sub-computing power device according to the preset computing power measurement attribute, obtain the first computing power resource measurement result according to the first device weight pre-set for each of the sub-computing power devices and the initial computing power resource data of each of the sub-computing power devices, obtain the computing power resource weight of each of the sub-computing power devices and network status related information during the business processing, and obtain the second computing power resource measurement result through the deep reinforcement algorithm big model according to the initial computing power resource data of each of the sub-computing power devices, the computing power resource weight of each of the sub-computing power devices, network status related information, business related information and the first computing power resource measurement result; The transceiver is used to obtain the computing power measurement attribute and the first device weight.
11. A communication device, comprising: A transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: The processor is used to read the program in the memory to implement the steps in the method for measuring computing power resources as described in any one of claims 1-8.
12. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps in the method for measuring computing resources as described in any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Trusted measurement method and device for large-scale distributed computing power of intelligent computing center cloud platform
CN121233442A
