CN109408399B - Calculation power estimation method, device, equipment and storage medium - Google Patents

Calculation power estimation method, device, equipment and storage medium Download PDF

Info

Publication number
CN109408399B
CN109408399B CN201811531970.9A CN201811531970A CN109408399B CN 109408399 B CN109408399 B CN 109408399B CN 201811531970 A CN201811531970 A CN 201811531970A CN 109408399 B CN109408399 B CN 109408399B
Authority
CN
China
Prior art keywords
target
pressing machine
calculation
task
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811531970.9A
Other languages
Chinese (zh)
Other versions
CN109408399A (en
Inventor
付得龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Bingte Technology Co ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811531970.9A priority Critical patent/CN109408399B/en
Publication of CN109408399A publication Critical patent/CN109408399A/en
Application granted granted Critical
Publication of CN109408399B publication Critical patent/CN109408399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a calculation power estimation method, a calculation power estimation device, calculation power estimation equipment and a storage medium, wherein the method comprises the following steps: acquiring target configuration information and resource consumption information of a target pressing machine; determining a no-load force calculation value corresponding to the target pressing machine according to the reference force calculation value, the reference configuration information and the target configuration information of the reference pressing machine; and determining a consumption force value corresponding to the target pressing machine according to the resource consumption information and the no-load force value. Through the technical scheme of the embodiment of the invention, the resource size of the presser can be uniformly measured so as to carry out reasonable resource scheduling.

Description

Calculation force estimation method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of testing, in particular to a calculation power estimation method, a calculation power estimation device, calculation power estimation equipment and a storage medium.
Background
The performance test is to simulate various normal and abnormal load conditions through an automatic test tool to test various performance indexes of the system. Both load tests and pressure tests belong to the performance tests, and both can be performed in combination. The performance of the system under various working loads is determined through load tests, and the aim is to test the change of various performance indexes of the system when the load is gradually increased. Stress testing is a test used to obtain the maximum level of service that a system can provide.
In an open source pressure measurement platform, such as an Ngrinder, a meter, etc., a control center needs to issue a pressure measurement task to a plurality of pressure applying machines for testing. Generally, the configuration of each pressure applicator is different, so that each pressure applicator has different resources and resource consumption capability, and the resources required for each pressure measurement task are different, thereby easily causing the conditions of low resource utilization rate or resource overload of the pressure applicator when performing pressure measurement. To avoid this, reasonable resource scheduling is required. However, when resource scheduling is performed, the resource size of each press machine needs to be measured and compared with the resource size required by the pressure measurement task. Since the resource size of the press machine cannot be intuitively compared and measured by using the configuration information of the press machine, a method for uniformly measuring the resource size of the press machine is urgently needed.
Disclosure of Invention
The embodiment of the invention provides a calculation power estimation method, a calculation power estimation device, calculation power estimation equipment and a storage medium, which are used for uniformly measuring the resource size of a pressure applying machine and facilitating reasonable resource scheduling.
In a first aspect, an embodiment of the present invention provides a calculation power estimation method, including:
acquiring target configuration information and resource consumption information of a target pressing machine;
determining a no-load force calculation value corresponding to the target pressing machine according to a reference force calculation value of a reference pressing machine, reference configuration information and the target configuration information;
and determining a consumption force calculation value corresponding to the target pressing machine according to the resource consumption information and the no-load force calculation value.
In a second aspect, an embodiment of the present invention further provides a computing power estimating apparatus, including:
the target pressing machine information acquisition module is used for acquiring target configuration information and resource consumption information of the target pressing machine;
the no-load calculation force value determining module is used for determining a no-load calculation force value corresponding to the target pressing machine according to the reference calculation force value of the reference pressing machine, the reference configuration information and the target configuration information;
and the consumption calculation force value determining module is used for determining the consumption calculation force value corresponding to the target pressing machine according to the resource consumption information and the no-load calculation force value.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a computational power estimation method as provided by any embodiment of the invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the calculation power estimation method provided in any embodiment of the present invention.
The embodiment of the invention performs normalization processing on each target pressing machine needing to estimate the calculation force by setting the reference configuration information and the reference calculation force value of one reference pressing machine, and determines the no-load calculation force value and the consumption calculation force value corresponding to each pressing machine, thereby uniformly measuring and comparing the resource size of each pressing machine by using the calculation force value mode, so as to perform reasonable resource scheduling, improve the resource utilization rate of the pressing machines and avoid the overload condition.
Drawings
FIG. 1 is a flow chart of a calculation power estimation method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a computing power estimation method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a computational power estimating apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings, not all of them.
Example one
Fig. 1 is a flowchart of a calculation force estimation method according to an embodiment of the present invention, which is applicable to a situation of estimating a calculation capability of a pressure applying machine, and especially applicable to a scenario of calculating a resource size of each pressure applying machine during resource scheduling in a performance pressure measurement platform. The method may be performed by a computational power estimation apparatus, which may be implemented by software and/or hardware, integrated in a device that can perform resource scheduling. The method specifically comprises the following steps:
and S110, acquiring target configuration information and resource consumption information of the target pressing machine.
The pressure applying machine is a machine capable of generating pressure measuring flow during system performance test, and may be a virtual machine or a physical machine, such as a server, a computer, a mobile phone, and the like. The target press is any press that requires an estimation of the calculated force. The target configuration information may refer to hardware configuration information of the target pressing machine, such as the core number and dominant frequency of a Central Processing Unit (CPU), the size of a memory, the access speed of a hard disk, and the like. Resource consumption information may refer to information of resources consumed by the target pressure applicator in performing one or more tasks. The resource consumption information may include, but is not limited to, CPU usage, memory usage, average load information, and the like.
Illustratively, S110 may include: when the target pressing machine is idle, acquiring target configuration information and resource consumption information of the target pressing machine through a system information collecting and reporting near interface according to a first preset frequency; and when the target pressing machine runs a task, acquiring target configuration information and resource consumption information of the target pressing machine through a Sigar interface according to a second preset frequency.
Wherein, the Sigar is a main data collecting component of hyper HQ, is compatible with a plurality of platforms, such as windows series platforms, linux series platforms, AIX series platforms, and the like, and can be used for collecting target configuration information and resource consumption information of a target press. The Sigar interface is an extremely convenient interface for collecting information from the applicator. The first preset frequency and the second preset frequency are both acquisition frequencies for acquiring information of the target pressing machine. The first predetermined frequency in this embodiment is greater than the second predetermined frequency.
Specifically, the present embodiment may acquire target configuration information and resource consumption information of the target press machine through the Sigar interface according to the current state of the target press machine. Exemplarily, if the target pressing machine is in an idle state, that is, when no pressure measurement task exists, information of the target pressing machine can be acquired every 5 s; if the target press is in a busy state, namely, when the pressure measurement task is running, the information of the target press can be collected once every 200 ms. When the target pressing machine runs a task, the resource consumption information of the target pressing machine changes rapidly, so that the acquisition time interval needs to be shortened to monitor the resource consumption condition of the current target pressing machine. In the performance pressure measurement platform, a long connection is established between the control center and each pressure applying machine, the acquired target configuration information and resource consumption information can be reported to the control center, and the control center can store the information into a redis storage system after receiving the target configuration information and the resource consumption information, so that a cluster of the control center can share the resource information of the pressure applying machines, and therefore resource scheduling can be carried out more conveniently.
And S120, determining a no-load force calculation value corresponding to the target pressing machine according to the reference force calculation value, the reference configuration information and the target configuration information of the reference pressing machine.
Wherein the reference press is a fixed press selected for uniform force criteria. The reference configuration information refers to the hardware configuration information of the selected reference pressing machine. The reference force value may be one preset based on the reference configuration information of the reference press. For example, a 2100MHz 4-core press may be selected as the reference press, and the reference force value of the reference press may be set to 100. The calculation force value in this embodiment is used to reflect the calculation capability of the current press, that is, to measure the size of the current press resource. The no-load calculation value refers to the maximum calculation capacity of the target pressing machine when the pressing task is not operated. If the no-load calculation force value of the target pressing machine is larger, the calculation capability of the target pressing machine is larger, and the number of the resources is larger. The reference force calculation value in this embodiment refers to a no-load force calculation value corresponding to the reference pressing machine.
Specifically, in this embodiment, the reference configuration information of the reference pressing machine may be compared with the target configuration information of the target pressing machine, and the no-load calculation force value corresponding to the target pressing machine may be determined according to the comparison result and the reference calculation force value of the reference pressing machine, so that the no-load resource of each pressing machine may be normalized. According to the embodiment, the size of the no-load resource of each pressure applying machine can be measured and compared more conveniently, more conveniently and more intuitively according to the no-load calculation value corresponding to each pressure applying machine, so that the overload condition of the pressure applying machine can be avoided by distributing the task with the calculation value smaller than the no-load calculation value when the resource scheduling is carried out on the target pressure applying machine.
And S130, determining a consumption force calculation value corresponding to the target pressing machine according to the resource consumption information and the no-load force calculation value.
The consumption calculation force value refers to a calculation force value consumed by the target pressing machine when the pressing task is operated.
Specifically, when the resource consumption information is the resource usage rate, the product of the resource usage rate of the target press and the empty load calculation force value may be determined as the consumption calculation force value of the target press. In the pressure measurement process of the performance pressure measurement platform, the parameter which has the greatest influence on the resource of the pressure applicator is the CPU utilization rate, so that the resource consumption condition of the pressure applicator can be represented by the CPU utilization rate. For example, if the CPU utilization of a certain target press machine T1 is 50% and the idle load calculation value is 200, the consumption calculation value corresponding to the target press machine T1 is 100. By calculating the consumption calculation force value of the press machine, the resource consumption condition of each press machine can be monitored more conveniently. The embodiment can also determine the residual force value corresponding to the target pressing machine according to the no-load force value and the consumption force value corresponding to the target pressing machine, so that a task matched with the residual force value can be distributed to the target pressing machine during resource scheduling, the resource utilization rate of the pressing machine is improved, and the overload condition is avoided.
According to the technical scheme of the embodiment, each target pressing machine needing to estimate the calculated force is subjected to normalization processing by setting the reference configuration information and the reference calculation force value of one reference pressing machine, and the no-load calculation force value and the consumption calculation force value corresponding to each pressing machine are determined, so that the resource size of each pressing machine can be uniformly measured and compared in a calculation force value mode, reasonable resource scheduling is facilitated, the resource utilization rate of the pressing machines is improved, and the overload condition is avoided.
On the basis of the above technical solution, S120 may include: determining a performance ratio between the target pressing machine and the reference pressing machine according to the reference configuration information and the target configuration information of the reference pressing machine; and determining a no-load force calculation value corresponding to the target pressing machine according to the reference force calculation value and the performance ratio of the reference pressing machine.
Specifically, the present embodiment may quantize the reference configuration information and the target configuration information, and determine a ratio between the quantized target configuration information and the quantized reference configuration information as a performance ratio between the target pressing machine and the participating pressing machine. And determining the product of the reference force calculation value of the reference press and the performance ratio as the corresponding no-load force calculation value of the target press.
In the pressure measurement process of the performance pressure measurement platform, the configuration information which has the greatest influence on the resource of the pressure applicator is the core number and the dominant frequency of the CPU, and other configuration information can be ignored, so that the configuration quantization can be performed based on the core number and the dominant frequency. For example, determining the performance ratio between the target press and the reference press according to the reference configuration information and the target configuration information of the reference press may include: determining a reference performance value corresponding to the reference pressing machine according to the reference core number and the reference main frequency of the reference pressing machine; determining a target performance value corresponding to the target pressing machine according to the target core number and the target main frequency of the target pressing machine; determining a ratio of the target performance value to the reference performance value as a performance ratio between the target press and the reference press.
Specifically, the present embodiment may determine a product of the reference core number of the reference pressing machine and the reference dominant frequency as a reference performance value corresponding to the reference pressing machine, and determine a product of the target core number of the target pressing machine and the target dominant frequency as a target performance value corresponding to the target pressing machine. For example, if the reference presser is 2100MHz per core and the target presser is 4200MHz per core for 8 cores, the reference performance value corresponding to the reference presser is 8400, the target performance value corresponding to the target presser is 33600, and the performance ratio between the target presser and the reference presser is 33600/8400=4, so that the performance ratio between each presser and the reference presser can be determined more conveniently for normalization processing based on the same manner.
Example two
Fig. 2 is a flowchart of a calculation force estimation method according to a second embodiment of the present invention, and in this embodiment, based on the above embodiment, a consumption calculation force value corresponding to an associated press machine associated with a target task is calculated according to a calculation manner of the consumption calculation force value of the press machine, so as to estimate a task calculation force value corresponding to the target task, where explanations of the same or corresponding terms as those in the above embodiment are not repeated herein.
Referring to fig. 2, the calculation power estimating method provided in this embodiment includes the following steps:
s210, when the task state of the target task is the running state, determining a related press machine related to the target task.
Specifically, when the task state of the target task is the running state, it indicates that the control center allocates the thread of the target task to the specified one or more pressure machines, and at this time, the specified pressure machine may be determined as an associated pressure machine, that is, the pressure machine associated with the running script of the target task is determined as an associated pressure machine. The number of the associated press machines in this embodiment may be one or more. When there are multiple associated presses, the associated presses may form a cluster of presses corresponding to the target task, and each associated press in the cluster of presses may load and execute the task thread of the assigned target task simultaneously.
The present embodiment may determine the consumption force value corresponding to the associated pressing machine based on the manner of determining the consumption force value corresponding to the target pressing machine in the above embodiments. Specifically, the consumption calculation force value corresponding to the associated press machine may be calculated by performing the following steps S220-S240. When there are a plurality of associated press machines, the consumption calculation force value corresponding to each associated press machine may be calculated by repeatedly performing steps S220-S240.
S220, collecting relevant configuration information and resource consumption information of the relevant press machines.
The related configuration information refers to the hardware configuration information of the related pressure applying machine. The resource consumption information refers to information of resources currently consumed by the associated press machine, such as CPU utilization rate.
And S230, determining a no-load force calculation value corresponding to the associated pressing machine according to the reference force calculation value, the reference configuration information and the associated configuration information of the reference pressing machine.
S240, determining the consumption force value corresponding to the associated pressure applicator according to the resource consumption information and the no-load force value corresponding to the associated pressure applicator.
It should be noted that, when calculating the task force value corresponding to the target task, it is necessary to assume that the consumption force values corresponding to the associated pressure applying machines are all consumed by the target task, and ignore the consumption situations of other processes such as the operating system.
And S250, determining a task force value corresponding to the target task according to the consumption force value corresponding to the associated pressure applying machine, the loading thread number and the target thread number of the target task.
The loading thread number refers to the number of threads in a target task currently loaded by the associated press. The number of loaded threads in this embodiment may also be obtained through a Sigar interface. The target thread number of the target task refers to the final concurrent thread number corresponding to the target task in the task pressure measurement scene. Illustratively, the task pressure measurement scenario is generally a gradient pressure application model, for example, the initial concurrent thread number is 10, 10 threads are added every 100 seconds, until the initial concurrent thread number is 1000 threads, the pressure application is stabilized for 1 hour, which is a pressure measurement scenario, and the target thread number corresponding to the target task in the pressure measurement scenario is 1000. When creating the target task, the target thread count may be set according to user requirements and actual conditions. The task force value can be used for measuring the size of the resource required by executing the target task, so that the capacity of the target task for consuming the resource can be reflected.
For example, the task force value corresponding to the target task may be determined according to the following formula:
Figure BDA0001905872730000091
wherein S is a task force calculation value corresponding to the target task; t is m Is the target thread number of the target task; n is the number of associated press machines; c i Is the consumption calculation force value corresponding to the ith associated pressure applicator; t is a unit of i Is the loading thread number corresponding to the ith associated pressure applicator.
Specifically, an average force value corresponding to each task thread in the target task is determined according to the consumption force value corresponding to each associated press and the number of loaded threads corresponding to each associated press, and then the product of the average force value and the number of the target threads can be determined as the task force value corresponding to the target task. By calculating the task force calculation value corresponding to the target task, the pressure applicator resource required to be consumed for executing the target task can be determined, so that the task can be reasonably scheduled, and the problems of overload of the pressure applicator or low resource utilization rate are avoided.
For example, if the target thread number of the target task is 100, the target thread number is allocated to two associated pressure applying machines, each associated pressure applying machine currently loads 20 threads, and the corresponding consumption calculation force values are 150 and 250, respectively, then the task calculation force value corresponding to the target task is:
Figure BDA0001905872730000101
according to the technical scheme of the embodiment, the consumption calculation force value corresponding to the associated press machine associated with the target task is calculated, and the task calculation force value corresponding to the target task is estimated according to the consumption calculation force value, the loading thread number and the target thread number, so that the press machine resources required to be consumed for executing the target task can be determined, the task can be reasonably scheduled, and the problems of overload of the press machine or low resource utilization rate are avoided.
The following is an embodiment of the calculation power estimating apparatus provided in the embodiment of the present invention, which belongs to the same inventive concept as the calculation power estimating method of each of the above embodiments, and details that are not described in detail in the embodiment of the calculation power estimating apparatus may refer to the embodiment of the calculation power estimating method described above.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a calculation power estimating apparatus according to a third embodiment of the present invention, which is applicable to estimating the calculation power of a press machine, and the apparatus specifically includes: a target press information acquisition module 310, a no-load calculation force value determination module 320, and a consumption calculation force value determination module 330.
The information acquisition module 310 of the target press machine is used for acquiring target configuration information and resource consumption information of the target press machine; the no-load force calculation value determining module 320 is configured to determine a no-load force calculation value corresponding to the target pressing machine according to the reference force calculation value, the reference configuration information, and the target configuration information of the reference pressing machine; and the consumption calculation force value determining module 330 is configured to determine a consumption calculation force value corresponding to the target pressure applicator according to the resource consumption information and the no-load calculation force value.
According to the technical scheme of the embodiment, the reference configuration information and the reference calculation value of one reference press machine are set, each target press machine needing to estimate the calculation force is subjected to normalization processing, and the no-load calculation value and the consumption calculation value corresponding to each press machine are determined, so that the resource size of each press machine can be uniformly measured and compared in a calculation value mode, reasonable resource scheduling is facilitated, the resource utilization rate of the press machine is improved, and the overload condition is avoided.
Optionally, the target press information collecting module 310 is specifically configured to:
when the target pressing machine is idle, acquiring target configuration information and resource consumption information of the target pressing machine through a system information collection and report near interface according to a first preset frequency;
when the target pressing machine runs a task, acquiring target configuration information and resource consumption information of the target pressing machine through a Sigar interface according to a second preset frequency;
the first preset frequency is greater than the second preset frequency.
Optionally, the no-load calculation force value determination module 320 includes:
the performance ratio determining unit is used for determining the performance ratio between the target pressing machine and the reference pressing machine according to the reference configuration information and the target configuration information of the reference pressing machine;
and the no-load calculation force value determining unit is used for determining a no-load calculation force value corresponding to the target pressing machine according to the reference calculation force value and the performance ratio of the reference pressing machine.
Optionally, the performance ratio determining unit is specifically configured to:
determining a reference performance value corresponding to the reference pressing machine according to the reference core number and the reference main frequency of the reference pressing machine;
determining a target performance value corresponding to the target pressing machine according to the target core number and the target main frequency of the target pressing machine;
determining a ratio of the target performance value to the reference performance value as a performance ratio between the target press and the reference press.
Optionally, the apparatus further comprises:
the related pressure applying machine determining module is used for determining a related pressure applying machine related to the target task when the task state of the target task is the running state;
the task force calculation value determining module is used for determining a task force calculation value corresponding to the target task according to the consumption force value, the loading thread number and the target thread number of the target task corresponding to the associated pressure applying machine;
accordingly, consumption calculation force value determination module 330 is configured to determine a corresponding consumption calculation force value for the associated pressure applicator.
Optionally, the task force value corresponding to the target task is determined according to the following formula:
Figure BDA0001905872730000121
wherein S is a task force calculation value corresponding to the target task; t is m Is the target thread number of the target task; n is the number of associated press machines; c i Is the consumption calculation force value corresponding to the ith associated pressure applicator; t is i Is the loading thread number corresponding to the ith associated pressure applicator.
Optionally, the resource consumption information includes central processor CPU usage.
The calculation power estimation device provided by the embodiment of the invention can execute the calculation power estimation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the calculation power estimation method.
It should be noted that, in the embodiment of the computing power estimating apparatus, the included units and modules are merely divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. Referring to fig. 4, the apparatus includes:
one or more processors 410;
a memory 420 for storing one or more programs;
when executed by the one or more programs 410, cause the one or more processors 410 to implement a method of computing power estimation as provided in any of the embodiments above, the method comprising:
acquiring target configuration information and resource consumption information of a target press;
determining a no-load force calculation value corresponding to the target pressing machine according to the reference force calculation value, the reference configuration information and the target configuration information of the reference pressing machine;
and determining a consumption force value corresponding to the target pressing machine according to the resource consumption information and the no-load force value.
In FIG. 4, a processor 410 is illustrated as an example; the processor 410 and the memory 420 in the device may be connected by a bus or other means, as exemplified by the bus connection in fig. 4.
The memory 420, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the calculation force estimation method in the embodiments of the present invention (e.g., the target press information collection module 310, the no-load calculation force value determination module 320, and the consumption calculation force value determination module 330 in the calculation force estimation apparatus). The processor 410 executes software programs, instructions and modules stored in the memory 420 to perform various functional applications of the device and data processing, i.e., to implement the above-described algorithm estimation method.
The memory 420 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The apparatus proposed in this embodiment is the same as the calculation power estimation method proposed in the above embodiment, and the technical details that are not described in detail in this embodiment can be referred to in the above embodiment, and this embodiment has the same beneficial effects as performing the calculation power estimation method.
EXAMPLE five
This fifth embodiment provides a computer-readable storage medium, on which a computer program is stored, the program, when executed by a processor, implementing a computational power estimation method as provided in any of the embodiments of the present invention, the method comprising:
acquiring target configuration information and resource consumption information of a target pressing machine;
determining a no-load force calculation value corresponding to the target pressing machine according to the reference force calculation value, the reference configuration information and the target configuration information of the reference pressing machine;
and determining a consumption force calculation value corresponding to the target pressure applicator according to the resource consumption information and the no-load force calculation value.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general purpose computing device, they can be centralized in a single computing device or distributed over a network of multiple computing devices, and they can alternatively be implemented by program code executable by a computing device, so that they can be stored in a storage device and executed by a computing device, or they can be separately fabricated into various integrated circuit modules, or multiple modules or steps thereof can be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A method of computing power estimation, comprising:
when a target pressing machine is idle, acquiring target configuration information and resource consumption information of the target pressing machine through a system information collection and report near interface according to a first preset frequency; when the target pressing machine runs a task, acquiring target configuration information and resource consumption information of the target pressing machine through a near interface according to a second preset frequency; wherein the first preset frequency is greater than the second preset frequency;
determining a performance ratio between a target pressing machine and a reference pressing machine according to reference configuration information of the reference pressing machine and the target configuration information; determining a no-load calculation force value corresponding to the target pressing machine according to the reference calculation force value of the reference pressing machine and the performance ratio, wherein the no-load calculation force value refers to the calculation capacity of the target pressing machine when the pressing task is not operated, and the reference calculation force value refers to the calculation capacity of the reference pressing machine when the pressing task is not operated;
and determining a consumption force calculation value corresponding to the target pressing machine according to the resource consumption information and the no-load force calculation value.
2. The method of claim 1, wherein determining the performance ratio between the target press and the reference press from the reference configuration information of the reference press and the target configuration information comprises:
determining a reference performance value corresponding to a reference pressing machine according to the reference core number and the reference main frequency of the reference pressing machine;
determining a target performance value corresponding to the target pressing machine according to the target core number and the target main frequency of the target pressing machine;
determining a ratio of the target performance value to the reference performance value as a performance ratio between the target press and the reference press.
3. The method of claim 1, further comprising:
when the task state of a target task is an operating state, determining a related pressure applying machine related to the target task;
and determining a task force value corresponding to the target task according to the consumption force value corresponding to the associated press machine, the loading thread number and the target thread number of the target task.
4. The method of claim 3, wherein the task force value corresponding to the target task is determined according to the following formula:
Figure FDA0003904410410000021
wherein S is a task force calculation value corresponding to the target task; t is m Is the target thread number of the target task; n is the number of the associated press machines; c i Is the consumption calculation force value corresponding to the ith associated pressure applicator; t is i Is the loading thread number corresponding to the ith associated pressure applicator.
5. The method of claim 1, wherein the resource consumption information comprises central processor CPU usage.
6. A computational power estimation device, comprising:
the target pressing machine information acquisition module is used for acquiring target configuration information and resource consumption information of the target pressing machine through a system information collection and report near interface according to a first preset frequency when the target pressing machine is idle; when the target pressing machine runs a task, acquiring target configuration information and resource consumption information of the target pressing machine through a Sigar interface according to a second preset frequency; wherein the first preset frequency is greater than the second preset frequency;
the performance ratio determining unit is used for determining the performance ratio between the target pressing machine and the reference pressing machine according to the reference configuration information and the target configuration information of the reference pressing machine; the no-load force calculation value determining unit is used for determining a no-load force calculation value corresponding to the target pressing machine according to a reference force calculation value and a performance ratio of the reference pressing machine, wherein the no-load force calculation value refers to the calculation capacity of the target pressing machine when the pressing task is not operated, and the reference force calculation value refers to the calculation capacity of the reference pressing machine when the pressing task is not operated;
and the consumption calculation force value determining module is used for determining the consumption calculation force value corresponding to the target pressing machine according to the resource consumption information and the no-load calculation force value.
7. An computational power estimation device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the computational power estimation method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the computational power estimation method according to any one of claims 1 to 5.
CN201811531970.9A 2018-12-14 2018-12-14 Calculation power estimation method, device, equipment and storage medium Active CN109408399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811531970.9A CN109408399B (en) 2018-12-14 2018-12-14 Calculation power estimation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811531970.9A CN109408399B (en) 2018-12-14 2018-12-14 Calculation power estimation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109408399A CN109408399A (en) 2019-03-01
CN109408399B true CN109408399B (en) 2023-02-14

Family

ID=65459212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811531970.9A Active CN109408399B (en) 2018-12-14 2018-12-14 Calculation power estimation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109408399B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865644B (en) * 2019-12-04 2023-04-07 北京小桔科技有限公司 Recommendation method and device of computing resources, electronic equipment and storage medium
CN113840317A (en) * 2020-06-08 2021-12-24 中国移动通信有限公司研究院 Calculation capacity reporting method, calculation capacity obtaining method, calculation capacity network element and calculation capacity sensing control network element
CN112465359B (en) * 2020-12-01 2024-03-15 中国联合网络通信集团有限公司 Calculation force calling method and device
CN113296905B (en) * 2021-03-30 2023-12-26 阿里巴巴新加坡控股有限公司 Scheduling method, scheduling device, electronic equipment, storage medium and software product
CN114062891A (en) * 2021-10-11 2022-02-18 深圳市德斯戈智能科技有限公司 Calculation force testing device based on AI chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423176A (en) * 2017-06-30 2017-12-01 郑州云海信息技术有限公司 A kind of method of testing of internal memory, control terminal, server and system
CN107992401A (en) * 2017-11-29 2018-05-04 平安科技(深圳)有限公司 Performance test evaluation method, device, terminal device and storage medium
CN108108289A (en) * 2018-01-11 2018-06-01 郑州云海信息技术有限公司 A kind of cluster resource statistical method, system, device and readable storage system
CN108874550A (en) * 2018-07-18 2018-11-23 郑州云海信息技术有限公司 A kind of method, apparatus, storage medium and computer equipment adjusting thread pool

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8903993B2 (en) * 2012-06-01 2014-12-02 International Business Machines Corporation Performance analysis using anonymous aggregated data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423176A (en) * 2017-06-30 2017-12-01 郑州云海信息技术有限公司 A kind of method of testing of internal memory, control terminal, server and system
CN107992401A (en) * 2017-11-29 2018-05-04 平安科技(深圳)有限公司 Performance test evaluation method, device, terminal device and storage medium
CN108108289A (en) * 2018-01-11 2018-06-01 郑州云海信息技术有限公司 A kind of cluster resource statistical method, system, device and readable storage system
CN108874550A (en) * 2018-07-18 2018-11-23 郑州云海信息技术有限公司 A kind of method, apparatus, storage medium and computer equipment adjusting thread pool

Also Published As

Publication number Publication date
CN109408399A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109408399B (en) Calculation power estimation method, device, equipment and storage medium
CN107992401B (en) Performance test evaluation method and device, terminal equipment and storage medium
CN109857633B (en) Task computing power estimation method and device and storage medium
US20160224392A1 (en) Load balancing using improved component capacity estimation
CN106959894B (en) Resource allocation method and device
CN109684228A (en) A kind of performance test methods, device, system and storage medium
US8572621B2 (en) Selection of server for relocation of application program based on largest number of algorithms with identical output using selected server resource criteria
US20140372810A1 (en) Apparatus and method for monitoring performance of cores based on multi-core processor
CN109981744B (en) Data distribution method and device, storage medium and electronic equipment
US9098350B2 (en) Adaptive auto-pipelining for stream processing applications
CN104410543A (en) An automatic testing method and system based on cloud resource
CN109871328B (en) Software testing method and device
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN111858031B (en) Cluster distributed resource scheduling method, device, equipment and storage medium
US20140317172A1 (en) Workload placement in a computer system
US10402232B2 (en) Method and system for deterministic multicore execution
CN104702664B (en) Method and system for controlling task server
CN109815102B (en) Test data statistical method, device and storage medium
CN109992408B (en) Resource allocation method, device, electronic equipment and storage medium
EP3652895B1 (en) Method and apparatus for monitoring performance of virtualized network functions
CN114461385A (en) Thread pool scheduling method, device and equipment and readable storage medium
CN112749062A (en) Server program monitoring method and device, computer equipment and storage medium
CN109656796B (en) Task selection method and device
CN110018906B (en) Scheduling method, server and scheduling system
CN111240844A (en) Resource scheduling method, equipment and storage medium

Legal Events

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

Effective date of registration: 20240202

Address after: Room 101-1, Building 2, No. 95, Daguan Middle Road, Tianhe District, Guangzhou, Guangdong 510000 (office only)

Patentee after: Guangzhou Zhongtian Technology Consulting Co.,Ltd.

Country or region after: China

Address before: 430070 room 007, A301, third floor, building B1, software industry phase 4.1, No. 1, Software Park East Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province (Wuhan area of free trade zone)

Patentee before: WUHAN DOUYU YULE NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240410

Address after: Room 271, 2nd Floor, Building 16-2, Building 16, Hanzhuangzixili, Fengtai District, Beijing 100070

Patentee after: BEIJING JINGTU HONGTAI TECHNOLOGY CO.,LTD.

Country or region after: China

Address before: Room 101-1, Building 2, No. 95, Daguan Middle Road, Tianhe District, Guangzhou, Guangdong 510000 (office only)

Patentee before: Guangzhou Zhongtian Technology Consulting Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right

Effective date of registration: 20240423

Address after: Room 501-1, Building 1, No. 6 Longzhou Road, Cangqian Street, Yuhang District, Hangzhou City, Zhejiang Province, 311100

Patentee after: HANGZHOU BINGTE TECHNOLOGY CO.,LTD.

Country or region after: China

Address before: Room 271, 2nd Floor, Building 16-2, Building 16, Hanzhuangzixili, Fengtai District, Beijing 100070

Patentee before: BEIJING JINGTU HONGTAI TECHNOLOGY CO.,LTD.

Country or region before: China