CN109408399A - A kind of calculation power estimation method, device, equipment and storage medium - Google Patents

A kind of calculation power estimation method, device, equipment and storage medium Download PDF

Info

Publication number
CN109408399A
CN109408399A CN201811531970.9A CN201811531970A CN109408399A CN 109408399 A CN109408399 A CN 109408399A CN 201811531970 A CN201811531970 A CN 201811531970A CN 109408399 A CN109408399 A CN 109408399A
Authority
CN
China
Prior art keywords
pressing machine
target
force value
configuration information
information
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.)
Granted
Application number
CN201811531970.9A
Other languages
Chinese (zh)
Other versions
CN109408399B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Control Of Presses (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a kind of calculation power estimation method, device, equipment and storage mediums, this method comprises: the target configuration information and resource consumption information of acquisition target pressing machine;Force value, reference configuration information and target configuration information are calculated according to the reference of reference pressing machine, determines the corresponding unloaded calculation force value of target pressing machine;According to resource consumption information and unloaded calculation force value, determine that force value is calculated in the corresponding consumption of target pressing machine.Technical solution through the embodiment of the present invention, can be with the resource size of unified metric pressing machine, to carry out reasonably scheduling of resource.

Description

A kind of calculation power estimation method, device, equipment and storage medium
Technical field
The present embodiments relate to the field of test technology more particularly to a kind of calculation power estimation method, device, equipment and storages Medium.
Background technique
Performance test is to simulate a variety of normal and abnormal load conditions by the testing tool of automation come to system Performance indexes is tested.Load testing and pressure test belong to performance test, and the two can be in conjunction with progress.By negative Carry the performance that test determines the system under various workloads, it is therefore an objective to which test is when load gradually increases, system properties The situation of change of index.Pressure test is the test for obtaining the maximum service rank that system is capable of providing.
It presses and is surveyed in platform in open source, such as Ngrinder, Jmeter, control centre need pressure surveying mission dispatching to multiple It is tested on pressing machine.In general, the configuration of each pressing machine is different, so that resource and consumption money that each pressing machine has The ability in source is also different, and the resource that each pressure surveys required by task is also different, to easily lead to and apply when carrying out pressure survey The case where press resource utilization is low or resource overload.In order to avoid such case, need to carry out reasonably scheduling of resource.So And when carrying out scheduling of resource, need the resource size for surveying required by task to the resource size and pressure of each pressing machine to measure With compare.Since the configuration information using pressing machine intuitively can not compare and measure the resource size of pressing machine, at present It is badly in need of a kind of method of resource size that can be used for unified metric pressing machine.
Summary of the invention
The embodiment of the invention provides a kind of calculation power estimation method, device, equipment and storage mediums, are pressed with unified metric The resource size of machine is convenient for reasonably scheduling of resource.
In a first aspect, the embodiment of the invention provides a kind of calculation power estimation methods, comprising:
Acquire the target configuration information and resource consumption information of target pressing machine;
Calculate force value, reference configuration information and the target configuration information according to the reference of reference pressing machine, determine described in The corresponding unloaded calculation force value of target pressing machine;
According to the resource consumption information and the unloaded calculation force value, determine that power is calculated in the corresponding consumption of the target pressing machine Value.
Second aspect, the embodiment of the invention also provides a kind of calculation power estimation devices, comprising:
Target pressing machine information acquisition module, for acquiring the target configuration information and resource consumption letter of target pressing machine Breath;
Force value determining module is calculated in zero load, for calculating force value, reference configuration information and institute according to the reference of reference pressing machine Target configuration information is stated, determines the corresponding unloaded calculation force value of the target pressing machine;
Force value determining module is calculated in consumption, described in determining according to the resource consumption information and the unloaded calculation force value Force value is calculated in the corresponding consumption of target pressing machine.
The third aspect, the embodiment of the invention also provides a kind of equipment, the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes such as calculation power estimation method provided by any embodiment of the invention.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes such as calculation power estimation method provided by any embodiment of the invention when the program is executed by processor.
The embodiment of the present invention calculates force value with reference to the reference configuration information of pressing machine and reference by setting one, to each need Estimate that the target pressing machine for calculating power is normalized, determines that the corresponding unloaded calculation force value of each pressing machine and consumption calculate power Value, so as to by calculate force value in the way of come unified metric and compare the resource size of each pressing machine, to carry out rationally Ground scheduling of resource, the case where improving the resource utilization of pressing machine and avoid the occurrence of overload.
Detailed description of the invention
Fig. 1 is a kind of flow chart for calculation power estimation method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart for calculating power estimation method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for calculation power estimation device that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for equipment that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for calculation power estimation method that the embodiment of the present invention one provides, and the present embodiment is applicable to estimate The case where counting the computing capability of pressing machine is pressed particularly for performance and is surveyed in platform when carrying out scheduling of resource, calculates every The scene of a pressing machine resource size.This method can be executed by calculation power estimation device, which can be by software and/or hard The mode of part realizes that be integrated in can carry out in the equipment of scheduling of resource.This method specifically includes the following steps:
S110, the target configuration information and resource consumption information for acquiring target pressing machine.
Wherein, pressing machine refers to the machine that can produce pressure measurement of discharge in system performance testing, can be virtual machine, It is also possible to physical machine, such as server, computer and mobile phone etc..Target pressing machine, which refers to, needs to estimate that any one for calculating power is applied Press.Target configuration information can be the hardware configuration information of feeling the pulse with the finger-tip mark pressing machine, such as central processing unit (Central Processing Unit, CPU) core number and dominant frequency, memory size, harddisk access speed etc..Resource consumption information can be Feeling the pulse with the finger-tip mark pressing machine executes consumed resource information when one or more tasks.Resource consumption information can include but is not limited to CPU usage, memory usage and average loading information etc..
Illustratively, S110 may include: that Sigar is collected and reported by system information when the target pressing machine free time Interface acquires the target configuration information and resource consumption information of target pressing machine according to the first predeterminated frequency;When target pressing machine is transported When row task, the target configuration information and resource consumption of target pressing machine are acquired according to the second predeterminated frequency by Sigar interface Information.
Wherein, Sigar is the main data collecting assembly of Hyperic HQ, compatible majority platform, such as windows system Column platform, linux series platform and AIX series platform etc., can be used for collecting target pressing machine target configuration information and Resource consumption information.Sigar interface is the extremely convenient interface used for being used to collect pressure machine information.First default frequency Rate and the second predeterminated frequency each mean the frequency acquisition of acquisition target pressure machine information.The first predeterminated frequency in the present embodiment is big In the second predeterminated frequency.
Specifically, the present embodiment can be applied according to the current state of target pressing machine by Sigar interface to acquire target The target configuration information and resource consumption information of press.Illustratively, if target pressing machine is in idle condition, i.e., there is no pressures It, can be every the information of a 5s target pressing machine of acquisition when survey task;If target pressing machine is in a busy state, that is, transporting It, can be every the information of a 200ms target pressing machine of acquisition when row pressure survey task.When target pressing machine runs task, mesh The resource consumption information variation for marking pressing machine is very fast, to need to reduce acquisition time interval, to monitor current goal pressing machine Resource consumption situation.It presses and is surveyed in platform in performance, a long connection can be established between control centre and each pressing machine, it can be with The target configuration information and resource consumption information of acquisition are reported into control centre, and control centre is receiving target configuration After information and resource consumption information, these information can be stored into redis storage system, so that control centre's cluster can be with The resource information of shared pressing machine, so as to quickly and conveniently carry out scheduling of resource.
S120, force value, reference configuration information and target configuration information are calculated according to the reference of reference pressing machine, determines target The corresponding unloaded calculation force value of pressing machine.
It wherein, is the fixed pressing machine chosen to uniformly calculate power standard with reference to pressing machine.Reference configuration letter Breath refers to the hardware configuration information of the reference pressing machine of selection.It can be the reference configuration according to reference pressing machine with reference to force value is calculated The pre-set calculation force value of information.Illustratively, the pressing machine of the every core 2100MHz of 4 cores can be chosen as reference Pressing machine, the reference for referring to pressing machine calculate force value and can be set to 100.Calculation force value in the present embodiment is currently applied for reflecting The computing capability of press measures the size of current pressing machine resource.Zero load calculates force value and refers to that target pressing machine is applied in not running When pressure task, the max calculation ability that has.If the unloaded force value of calculating of target pressing machine is bigger, show target pressing machine Computing capability is bigger, and the resource having is also more.Reference in the present embodiment is calculated force value and is referred to reference to the corresponding zero load of pressing machine Calculate force value.
Specifically, the reference configuration information of reference pressing machine and the target of target pressing machine can be matched confidence by the present embodiment Breath is compared, and the corresponding unloaded calculation of target pressing machine can be determined by calculating force value according to comparison result and reference with reference to pressing machine Force value is normalized so as to the unloaded resource to each pressing machine.The present embodiment can each be applied by basis Press it is corresponding it is unloaded calculate force value, can the more convenient unloaded resource size for intuitively measuring and comparing each pressing machine, with Just when carrying out scheduling of resource to target pressing machine, force value can be calculated by distribution and is less than the side that the task of force value is calculated in the zero load Formula, to avoid the occurrence of the case where pressing machine overloads.
S130, force value is calculated according to resource consumption information and zero load, determines that force value is calculated in the corresponding consumption of target pressing machine.
Wherein, consumption calculation force value refers to target pressing machine consumed calculation force value when running pressure task.
It specifically, can be by the resource utilization of target pressing machine and sky when resource consumption information is resource utilization The product for carrying calculation force value is determined as the consumption calculation force value of target pressing machine.During performance presses the pressure for surveying platform to survey, to pressure The maximum parameter of machine real estate impact is CPU usage, so as to indicate the resource consumption feelings of pressing machine with CPU usage Condition.Illustratively, if the CPU usage of some target pressing machine T1 is 50%, it is 200 that force value is calculated in zero load, then target pressing machine It is 100 that force value is calculated in the corresponding consumption of T1.Force value is calculated in consumption by calculating pressing machine, can quickly and conveniently monitor each pressure The resource consumption situation of machine.The present embodiment can also be determined according to corresponding unloaded force value and the consumption calculation force value calculated of target pressing machine The corresponding remaining calculation force value of target pressing machine, to can be distributed to target pressing machine in scheduling of resource and calculate power with the residue The task that value matches, thus the case where improving the resource utilization of pressing machine and avoiding the occurrence of overload.
The technical solution of the present embodiment calculates force value with reference to the reference configuration information of pressing machine and reference by setting one, Need to estimate that the target pressing machine for calculating power is normalized to each, determine each pressing machine it is corresponding it is unloaded calculate force value and Force value is calculated in consumption, so as to by calculate force value in the way of come unified metric and compare the resource size of each pressing machine, so as to Reasonably scheduling of resource is carried out, the case where improving the resource utilization of pressing machine and avoid the occurrence of overload.
Based on the above technical solution, S120 may include: the reference configuration information and mesh according to reference pressing machine Configuration information is marked, determines target pressing machine and with reference to the performance ratio between pressing machine;Power is calculated according to the reference of reference pressing machine Value and performance ratio determine the corresponding unloaded calculation force value of target pressing machine.
Specifically, the present embodiment can quantify reference configuration information and target configuration information, by the mesh after quantization The ratio between reference configuration information after mark configuration information and quantization is determined as target pressing machine and participates between pressing machine Performance ratio.It is corresponding that product between the reference calculation force value and performance ratio of reference pressing machine can be determined as target pressing machine Unloaded calculate force value.
It is CPU core calculation to the maximum configuration information of pressing machine real estate impact during performance presses the pressure for surveying platform to survey And dominant frequency, other configurations information can be ignored, so that the present embodiment can carry out configuration quantization based on core number and dominant frequency.Example Property, according to the reference configuration information and target configuration information of reference pressing machine, determine target pressing machine and with reference to pressing machine it Between performance ratio, may include: to be determined corresponding with reference to pressing machine according to the reference core number of reference pressing machine and with reference to dominant frequency Reference performance value;According to the target core number and target dominant frequency of target pressing machine, the corresponding Objective of target pressing machine is determined It can value;The ratio of target capabilities value and reference performance value is determined as target pressing machine and with reference to the performance ratio between pressing machine Value.
Specifically, the reference core number of reference pressing machine and the product with reference to dominant frequency can be determined as referring to by the present embodiment The product of the target core number of target pressing machine and target dominant frequency is determined as target pressure by the corresponding reference performance value of pressing machine The corresponding target capabilities value of machine.Illustratively, if being the every core 2100MHz of 4 cores with reference to pressing machine, target pressing machine is the every core of 8 cores 4200MHz is then 8400 with reference to the corresponding reference performance value of pressing machine, and the corresponding target capabilities value of target pressing machine is 33600, Performance ratio between target pressing machine and reference pressing machine is 33600/8400=4, to be based on identical mode, Ke Yigeng Add the performance ratio easily determined between each pressing machine and reference pressing machine, to be normalized.
Embodiment two
Fig. 2 is a kind of flow chart for calculating power estimation method provided by Embodiment 2 of the present invention, and the present embodiment is in above-mentioned implementation On the basis of example, association pressing machine pair associated with goal task is calculated according to the calculation that force value is calculated in the consumption of pressing machine Force value is calculated in the consumption answered, to estimate that the corresponding task of goal task calculates force value, wherein same as the previously described embodiments or corresponding Details are not described herein for the explanation of term.
Referring to fig. 2, calculation power estimation method provided in this embodiment the following steps are included:
S210, when the task status of goal task is operating status, it is determining with the associated association pressing machine of goal task.
Specifically, when the task status of goal task is operating status, show thread of the control centre by goal task Distribution, i.e., will be on specified one or more pressing machines, being determined as specified pressing machine being associated with pressing machine at this time The associated pressing machine of the Run Script of goal task is determined as being associated with pressing machine.The quantity of association pressing machine in the present embodiment It can be one or more.When there are multiple association pressing machines, these association pressing machines may be constructed one and goal task Corresponding pressing machine cluster, each association pressing machine in pressing machine cluster can load and execute simultaneously the goal task of distribution Mission thread.
The present embodiment can determine that the mode of force value is calculated in the corresponding consumption of target pressing machine based on the above embodiment, to determine It is associated with the corresponding consumption of pressing machine and calculates force value.Specifically, association pressure can be calculated by executing following steps S220-S240 Force value is calculated in the corresponding consumption of machine.It, can be by way of repeating step S220-S240 when there are multiple association pressing machines Force value is calculated to calculate the corresponding consumption of each association pressing machine.
The associated configuration information and resource consumption information of S220, acquisition association pressing machine.
Wherein, associated configuration information refers to the hardware configuration information of association pressing machine.Resource consumption information refers to that association is applied Resource information that press currently consumes, such as CPU usage etc..
S230, force value, reference configuration information and associated configuration information are calculated according to the reference of reference pressing machine, determines association The corresponding unloaded calculation force value of pressing machine.
S240, force value is calculated according to the corresponding resource consumption information of association pressing machine and zero load, determines that association pressing machine is corresponding Consumption calculate force value.
It should be noted that when the corresponding task of calculating goal task calculates force value, it is necessary to assume that association pressing machine is corresponding Consumption calculate force value be to be consumed by goal task, ignore the Expenditure Levels of other processes such as operating system.
S250, the score number of passes calculated force value according to the corresponding consumption of association pressing machine, load Thread Count and goal task, Determine that the corresponding task of goal task calculates force value.
Wherein, load Thread Count refers to the quantity for the thread being associated in the goal task that pressing machine currently loads.This implementation Load Thread Count in example can also be obtained by Sigar interface.The score number of passes of goal task, which refers to press in task, surveys field The corresponding final concurrent thread number of goal task in scape.Illustratively, it is usually a gradient pressure model that task pressure, which surveys scene, For example initial concurrent thread number is 10, and every 10 threads of increase in 100 seconds, when increasing to 1000 thread, it is small to stablize pressure 1 When, this surveys scene for a pressure, and it is 1000 which, which surveys the corresponding score number of passes of goal task under scene,.In creation goal task When, score number of passes can be set according to user demand and actual conditions.Task, which calculates force value, can be used for measuring performance objective The resource size that required by task is wanted, so as to reflect the ability of goal task consumption resource.
Illustratively, it can determine that the corresponding task of goal task calculates force value according to the following formula:
Wherein, S is that the corresponding task of goal task calculates force value;TmIt is the score number of passes of goal task;N is association pressure The number of machine;CiIt is that force value is calculated in the corresponding consumption of i-th of association pressing machine;TiIt is the corresponding load thread of i-th of association pressing machine Number.
Specifically, force value and the corresponding load of each association pressing machine are calculated according to the corresponding consumption of each association pressing machine Thread Count determines the corresponding averagely calculation force value of each mission thread in goal task, then will can averagely calculate force value and target The product of Thread Count is determined as the corresponding task of goal task and calculates force value.Force value is calculated by calculating the corresponding task of goal task, It can determine that the pressing machine resource consumed required for executing the goal task avoids the occurrence of to carry out rational management to task The problem that pressing machine overloads or resource utilization is low.
Illustratively, if the score number of passes of goal task is 100, in distribution to two association pressing machines, each association Pressing machine is currently loaded with 20 threads, and it is respectively 150 and 250 that force value is calculated in corresponding consumption, then the goal task is corresponding Task calculates force value are as follows:
The technical solution of the present embodiment calculates power by calculating consumption corresponding with the associated association pressing machine of goal task Value, and force value, load Thread Count and score number of passes are calculated to estimate that the corresponding task of goal task calculates force value according to consumption, thus It can determine that the pressing machine resource consumed required for executing the goal task avoids so as to carry out rational management to task There is the problem that pressing machine overloads or resource utilization is low.
It is the embodiment provided in an embodiment of the present invention for calculating power estimation device, the calculation of the device and the various embodiments described above below Power estimation method belongs to the same inventive concept, the detail content of not detailed description in the embodiment for calculating power estimation device, can With the embodiment with reference to above-mentioned calculation power estimation method.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for calculation power estimation device that the embodiment of the present invention three provides, and the present embodiment is applicable In estimate the computing capability of pressing machine the case where, which is specifically included: target pressing machine information acquisition module 310 unloaded is calculated Force value determining module 330 is calculated in force value determining module 320 and consumption.
Wherein, target pressing machine information acquisition module 310, for acquiring the target configuration information and resource of target pressing machine Consumption information;Zero load calculate force value determining module 320, for according to reference of reference pressing machine calculation force value, reference configuration information with And target configuration information, determine the corresponding unloaded calculation force value of target pressing machine;Force value determining module 330 is calculated in consumption, is used for basis Resource consumption information and unloaded calculation force value, determine that force value is calculated in the corresponding consumption of target pressing machine.
The technical solution of the present embodiment calculates force value with reference to the reference configuration information of pressing machine and reference by setting one, Need to estimate that the target pressing machine for calculating power is normalized to each, determine each pressing machine it is corresponding it is unloaded calculate force value and Force value is calculated in consumption, so as to by calculate force value in the way of come unified metric and compare the resource size of each pressing machine, so as to Reasonably scheduling of resource is carried out, the case where improving the resource utilization of pressing machine and avoid the occurrence of overload.
Optionally, target pressing machine information acquisition module 310, is specifically used for:
When the target pressing machine free time, collect and report that Sigar interface is adopted according to the first predeterminated frequency by system information Collect the target configuration information and resource consumption information of target pressing machine;
When target pressing machine runs task, target pressing machine is acquired according to the second predeterminated frequency by Sigar interface Target configuration information and resource consumption information;
Wherein, the first predeterminated frequency is greater than the second predeterminated frequency.
It is optionally, unloaded to calculate force value determining module 320, comprising:
Performance ratio determination unit is determined for the reference configuration information and target configuration information according to reference pressing machine Performance ratio between target pressing machine and reference pressing machine;
Force value determination unit is calculated in zero load, for calculating force value and performance ratio according to the reference of reference pressing machine, determines target The corresponding unloaded calculation force value of pressing machine.
Optionally, performance ratio determination unit, is specifically used for:
According to the reference core number of reference pressing machine and dominant frequency is referred to, determines and refers to the corresponding reference performance value of pressing machine;
According to the target core number and target dominant frequency of target pressing machine, the corresponding target capabilities value of target pressing machine is determined;
The ratio of target capabilities value and reference performance value is determined as target pressing machine and with reference to the performance between pressing machine Ratio.
Optionally, the device further include:
It is associated with pressing machine determining module, it is determining to appoint with target when for the task status in goal task being operating status It is engaged in associated association pressing machine;
Task calculates force value determining module, for calculating force value, load Thread Count and mesh according to the corresponding consumption of association pressing machine The score number of passes of mark task determines that the corresponding task of goal task calculates force value;
Correspondingly, consumption calculates force value determining module 330 for determining that force value is calculated in the corresponding consumption of association pressing machine.
Optionally, determine that the corresponding task of goal task calculates force value according to the following formula:
Wherein, S is that the corresponding task of goal task calculates force value;TmIt is the score number of passes of goal task;N is association pressure The number of machine;CiIt is that force value is calculated in the corresponding consumption of i-th of association pressing machine;TiIt is the corresponding load thread of i-th of association pressing machine Number.
Optionally, resource consumption information includes central processor CPU utilization rate.
Calculation power estimation device provided by the embodiment of the present invention can be performed calculation power provided by any embodiment of the invention and estimate Meter method has execution and calculates the corresponding functional module of power estimation method and beneficial effect.
It is worth noting that, included each unit and module are only pressed in the embodiment of above-mentioned calculation power estimation device It is divided, but is not limited to the above division according to function logic, as long as corresponding functions can be realized;In addition, The specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Example IV
Fig. 4 is a kind of structural schematic diagram for equipment that the embodiment of the present invention four provides.Referring to fig. 4, which includes:
One or more processors 410;
Memory 420, for storing one or more programs;
When one or more programs are executed by one or more processors 410, so that one or more processors 410 are realized Power estimation method is calculated as provided by above-mentioned any embodiment, this method comprises:
Acquire the target configuration information and resource consumption information of target pressing machine;
Force value, reference configuration information and target configuration information are calculated according to the reference of reference pressing machine, determines that target presses The corresponding unloaded calculation force value of machine;
According to resource consumption information and unloaded calculation force value, determine that force value is calculated in the corresponding consumption of target pressing machine.
In Fig. 4 by taking a processor 410 as an example;Processor 410 and memory 420 in equipment can by bus or its He connects mode, in Fig. 4 for being connected by bus.
Memory 420 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, if the corresponding program instruction/module of calculation power estimation method in the embodiment of the present invention is (for example, calculate power estimation dress Target pressing machine information acquisition module 310, unloaded calculation force value determining module 320 and consumption in setting calculate force value determining module 330).Software program, instruction and the module that processor 410 is stored in memory 420 by operation, thereby executing equipment Above-mentioned calculation power estimation method is realized in various function application and data processing.
Memory 420 mainly includes storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to equipment.This Outside, memory 420 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 420 can be into one Step includes the memory remotely located relative to processor 410, these remote memories can pass through network connection to equipment.On The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
The calculation power estimation method that the equipment and above-described embodiment that the present embodiment proposes propose belongs to same inventive concept, does not exist The technical detail of detailed description can be found in above-described embodiment in the present embodiment, and the present embodiment has execution and calculates power estimation method Identical beneficial effect.
Embodiment five
The present embodiment five provides a kind of computer readable storage medium, is stored thereon with computer program, which is located It manages and realizes such as calculation power estimation method provided by any embodiment of the invention when device executes, this method comprises:
Acquire the target configuration information and resource consumption information of target pressing machine;
Force value, reference configuration information and target configuration information are calculated according to the reference of reference pressing machine, determines that target presses The corresponding unloaded calculation force value of machine;
According to resource consumption information and unloaded calculation force value, determine that force value is calculated in the corresponding consumption of target pressing machine.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium can be for example but not limited to: electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or Any above combination of person.The more specific example (non exhaustive list) of computer readable storage medium includes: with one Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer readable storage medium can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including but not limited to: Wirelessly, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language, such as Java, Smalltalk, C++, also Including conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete It executes, partly executed on the user computer on the user computer entirely, being executed as an independent software package, part Part executes on the remote computer or executes on a remote computer or server completely on the user computer.It is relating to And in the situation of remote computer, remote computer can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to subscriber computer, or, it may be connected to outer computer (such as led to using ISP Cross internet connection).
Will be appreciated by those skilled in the art that each module of the above invention or each step can use general meter Device is calculated to realize, they can be concentrated on single computing device, or be distributed in network constituted by multiple computing devices On, optionally, they can be realized with the program code that computer installation can be performed, so as to be stored in storage It is performed by computing device in device, perhaps they are fabricated to each integrated circuit modules or will be more in them A module or step are fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and The combination of software.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of calculation power estimation method characterized by comprising
Acquire the target configuration information and resource consumption information of target pressing machine;
Force value, reference configuration information and the target configuration information are calculated according to the reference of reference pressing machine, determines the target The corresponding unloaded calculation force value of pressing machine;
According to the resource consumption information and the unloaded calculation force value, determine that force value is calculated in the corresponding consumption of the target pressing machine.
2. the method according to claim 1, wherein the target configuration information and money of the acquisition target pressing machine Source consumption information, comprising:
When the target pressing machine free time, collect and report that Sigar interface is adopted according to the first predeterminated frequency by system information Collect the target configuration information and resource consumption information of the target pressing machine;
When the target pressing machine runs task, the target is acquired according to the second predeterminated frequency by Sigar interface and is pressed The target configuration information and resource consumption information of machine;
Wherein, first predeterminated frequency is greater than second predeterminated frequency.
3. the method according to claim 1, wherein calculating force value, reference configuration according to the reference of reference pressing machine Information and the target configuration information determine the corresponding unloaded calculation force value of the target pressing machine, comprising:
According to the reference configuration information of reference pressing machine and the target configuration information, the target pressing machine and the ginseng are determined Examine the performance ratio between pressing machine;
Force value and the performance ratio are calculated according to the reference with reference to pressing machine, determines the corresponding zero load of the target pressing machine Calculate force value.
4. according to the method described in claim 3, it is characterized in that, the reference configuration information and institute according to reference pressing machine Target configuration information is stated, determines the target pressing machine and the performance ratio with reference between pressing machine, comprising:
According to the reference core number of reference pressing machine and dominant frequency is referred to, is determined described with reference to the corresponding reference performance value of pressing machine;
According to the target core number and target dominant frequency of the target pressing machine, the corresponding target capabilities of the target pressing machine are determined Value;
The ratio of the target capabilities value and the reference performance value is determined as the target pressing machine and the reference presses Performance ratio between machine.
5. the method according to claim 1, wherein further include:
When the task status of goal task is operating status, the determining and associated association pressing machine of the goal task;
The score number of passes of force value, load Thread Count and the goal task is calculated according to the corresponding consumption of the association pressing machine, Determine that the corresponding task of the goal task calculates force value.
6. according to the method described in claim 5, it is characterized in that, determining the goal task corresponding according to the following formula Force value is calculated in business:
Wherein, S is that the corresponding task of the goal task calculates force value;TmIt is the score number of passes of the goal task;N is described It is associated with the number of pressing machine;CiIt is that force value is calculated in the corresponding consumption of i-th of association pressing machine;TiIt is that i-th of association pressing machine is corresponding Load Thread Count.
7. the method according to claim 1, wherein the resource consumption information includes that central processor CPU makes With rate.
8. a kind of calculation power estimation device characterized by comprising
Target pressing machine information acquisition module, for acquiring the target configuration information and resource consumption information of target pressing machine;
Force value determining module is calculated in zero load, for calculating force value, reference configuration information and the mesh according to the reference of reference pressing machine Configuration information is marked, determines the corresponding unloaded calculation force value of the target pressing machine;
Force value determining module is calculated in consumption, for determining the target according to the resource consumption information and the unloaded calculation force value Force value is calculated in the corresponding consumption of pressing machine.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now calculation power estimation method as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The calculation power estimation method as described in any in claim 1-7 is realized when execution.
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 true CN109408399A (en) 2019-03-01
CN109408399B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865644A (en) * 2019-12-04 2020-10-30 北京小桔科技有限公司 Recommendation method and device of computing resources, electronic equipment and storage medium
CN112465359A (en) * 2020-12-01 2021-03-09 中国联合网络通信集团有限公司 Calculation power calling method and device
CN113296905A (en) * 2021-03-30 2021-08-24 阿里巴巴新加坡控股有限公司 Scheduling method, scheduling device, electronic equipment, storage medium and software product
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
CN114062891A (en) * 2021-10-11 2022-02-18 深圳市德斯戈智能科技有限公司 Calculation force testing device based on AI chip

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130326051A1 (en) * 2012-06-01 2013-12-05 International Business Machines Corporation Performance analysis using anonymous aggregated data
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130326051A1 (en) * 2012-06-01 2013-12-05 International Business Machines Corporation Performance analysis using anonymous aggregated data
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865644A (en) * 2019-12-04 2020-10-30 北京小桔科技有限公司 Recommendation method and device of computing resources, electronic equipment and storage medium
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
CN112465359A (en) * 2020-12-01 2021-03-09 中国联合网络通信集团有限公司 Calculation power calling method and device
CN112465359B (en) * 2020-12-01 2024-03-15 中国联合网络通信集团有限公司 Calculation force calling method and device
CN113296905A (en) * 2021-03-30 2021-08-24 阿里巴巴新加坡控股有限公司 Scheduling method, scheduling device, electronic equipment, storage medium and software product
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

Also Published As

Publication number Publication date
CN109408399B (en) 2023-02-14

Similar Documents

Publication Publication Date Title
CN109408399A (en) A kind of calculation power estimation method, device, equipment and storage medium
US10819603B2 (en) Performance evaluation method, apparatus for performance evaluation, and non-transitory computer-readable storage medium for storing program
WO2019104854A1 (en) Performance test and evaluation method and apparatus, terminal device, and storage medium
CN109684228A (en) A kind of performance test methods, device, system and storage medium
US20160224392A1 (en) Load balancing using improved component capacity estimation
US20170108906A1 (en) Single Fuel Gauge for Multiple Energy Storage Devices
US20140372810A1 (en) Apparatus and method for monitoring performance of cores based on multi-core processor
CN108664367B (en) Power consumption control method and device based on processor
CN112068957B (en) Resource allocation method, device, computer equipment and storage medium
CN109857633A (en) A kind of task calculates power estimation method, device and storage medium
CN103649938A (en) Managing workloads in a multiprocessing computer system
US20100106436A1 (en) Power consumption calculation facility
CN108961080A (en) Insurance business distributed approach, device, storage medium and terminal
US20120174231A1 (en) Assessing System Performance Impact of Security Attacks
CN115269108A (en) Data processing method, device and equipment
CN115080373A (en) Performance detection method, device, equipment and medium of power distribution terminal operating system
US20150355698A1 (en) System and method for determining power loads
US9983911B2 (en) Analysis controller, analysis control method and computer-readable medium
US9092508B1 (en) Overseeing data storage equipment power usage via local collection of power consumption data and remote evaluation and reporting of performance
CN109829014A (en) The method and device that test data obtains
CN109738694A (en) A kind of chip power-consumption prediction technique, device, electronic equipment and storage medium
KR102379026B1 (en) Electronic device and method for calculating power comsumption for processing unit thereof
CN109344025A (en) Cpu performance is from monitoring method and server
CN105188071A (en) Method, device and system for testing terminal power consumption
CN114598705B (en) Message load balancing method, device, equipment and 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
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