[go: up one dir, main page]

CN112486683B - Processor control method, control device, and computer-readable storage medium - Google Patents

Processor control method, control device, and computer-readable storage medium Download PDF

Info

Publication number
CN112486683B
CN112486683B CN202011368269.7A CN202011368269A CN112486683B CN 112486683 B CN112486683 B CN 112486683B CN 202011368269 A CN202011368269 A CN 202011368269A CN 112486683 B CN112486683 B CN 112486683B
Authority
CN
China
Prior art keywords
processor
intensity value
determining
predicted
operating parameter
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
CN202011368269.7A
Other languages
Chinese (zh)
Other versions
CN112486683A (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.)
University of Science and Technology of China USTC
Original Assignee
University of Science and Technology of China USTC
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 University of Science and Technology of China USTC filed Critical University of Science and Technology of China USTC
Priority to CN202011368269.7A priority Critical patent/CN112486683B/en
Publication of CN112486683A publication Critical patent/CN112486683A/en
Application granted granted Critical
Publication of CN112486683B publication Critical patent/CN112486683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • 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
    • 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)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)
  • Feedback Control In General (AREA)

Abstract

本申请公开了一种处理器控制方法、控制设备以及计算机可读存储介质,方法包括:确定分布式存储集群中至少一处理器当前时刻的预测强度值;根据所述预测强度值确定所述处理器的运行参数;根据所述处理器的运行情况调整所述运行参数,控制所述处理器按照调整后的运行参数运行,以降低所述处理器执行任务时消耗的能耗。解决了当前根据能耗模型计算的结果控制集群运行时,无法满足处理器执行任务时实际运行需求的技术问题,达到了降低所述处理器执行任务时消耗的能耗。

Figure 202011368269

The present application discloses a processor control method, a control device, and a computer-readable storage medium. The method includes: determining the predicted strength value of at least one processor in the distributed storage cluster at the current moment; determining the processing according to the predicted strength value the operating parameters of the processor; adjust the operating parameters according to the operating conditions of the processor, and control the processor to operate according to the adjusted operating parameters, so as to reduce the energy consumption consumed by the processor when performing tasks. The present invention solves the technical problem that the actual running requirements of the processors when executing tasks cannot be met when controlling the operation of the cluster based on the results calculated by the energy consumption model, and achieves the reduction of the energy consumption consumed by the processors when executing tasks.

Figure 202011368269

Description

处理器控制方法、控制设备以及计算机可读存储介质Processor control method, control device, and computer-readable storage medium

技术领域technical field

本申请涉及计算机技术领域,尤其涉及一种处理器控制方法、控制设备以及计算机可读存储介质。The present application relates to the field of computer technology, and in particular to a processor control method, a control device, and a computer-readable storage medium.

背景技术Background technique

随着互联网的快速发展,随之产生的大量数据呈现指数增长的形式。其中,分布式文件系统可用于存储和处理大量的数据,其中最为代表性的为HDFS,HDFS能够实现可靠地存储大数据量的文件并以高带宽流传输数据。With the rapid development of the Internet, a large amount of data is generated exponentially. Among them, the distributed file system can be used to store and process a large amount of data, the most representative of which is HDFS, which can reliably store large data files and stream data with high bandwidth.

现有技术中在降低HDFS能耗的方法,主要有:第一,改变CPU利用率和频率,建立相应的能耗模型如建立计算机功率和CPU利用率以及频率之间的关系,根据不同的任务需求对系统能耗进行调整;第二,建立预测模型,预测控制根据控制目标设计系统的性能优化指标,使得未来预测时域内性能指标取得最优;第三,通过GreenHDFS,GreenHDFS在逻辑上将数据中心中的服务器组织在多个动态预配置的热区和冷区中,每个区域都有独特的性能,成本和功率特性,每个区域均由最适合该区域中数据类别的电源和数据放置策略管理,避免在冷区中启动服务器,并在其服务器分配决策中最大限度地利用现有已启动服务器,以最大程度地节省能源。In prior art, the method for reducing HDFS energy consumption mainly contains: the first, change CPU utilization rate and frequency, establish corresponding energy consumption model such as establishing the relation between computer power and CPU utilization rate and frequency, according to different tasks The energy consumption of the system needs to be adjusted; second, a predictive model is established, and predictive control designs system performance optimization indicators based on control objectives, so that the performance indicators in the future prediction time domain can be optimized; third, through GreenHDFS, GreenHDFS logically converts data Servers in the center are organized in multiple dynamically provisioned hot and cold zones, each with unique performance, cost, and power characteristics, and each zone is placed by power and data best suited to the class of data in that zone Policy management that avoids starting servers in cold zones and maximizes the use of existing powered-on servers in its server allocation decisions to maximize energy savings.

目前主流的CPU有一部分是不能调控频率的,大多数都可以开关核心,但很少有以开关CPU核心降低降低HDFS工作过程中能耗的研究。且采用降低HDFS能耗的方法大多是通过建立能耗模型的方式进行,忽视了工程实现方面的研究。而对于处于工作状态的大型集群而言,通过建立能耗模型的直接调控是不现实的,实施调控的抗干扰能力弱,根据能耗模型计算的结果控制集群运行时,无法满足的实际需求。At present, some mainstream CPUs cannot adjust the frequency, and most of them can switch cores, but there are few studies on switching CPU cores to reduce energy consumption during HDFS work. And most of the methods to reduce HDFS energy consumption are carried out by establishing energy consumption models, ignoring the research on engineering implementation. For large-scale clusters in the working state, it is unrealistic to directly regulate by establishing an energy consumption model, and the anti-interference ability of the implementation of regulation is weak, and the actual demand cannot be met when the cluster is controlled according to the calculation results of the energy consumption model.

发明内容Contents of the invention

本申请实施例通过提供一种处理器控制方法、控制设备以及计算机可读存储介质,旨在解决当前根据能耗模型计算的结果控制集群运行时,无法满足处理器执行任务时实际运行需求的问题。The embodiments of the present application provide a processor control method, a control device, and a computer-readable storage medium, aiming to solve the problem that the actual operation requirements of the processor when executing tasks cannot be met when controlling the operation of the cluster based on the results calculated by the energy consumption model. .

为实现上述目的,本申请一方面提供一种处理器控制方法,包括:To achieve the above object, the present application provides a processor control method on the one hand, including:

确定分布式存储集群中至少一处理器当前时刻的预测强度值;determining the predicted intensity value of at least one processor in the distributed storage cluster at the current moment;

根据所述预测强度值确定所述处理器的运行参数;determining an operating parameter of the processor based on the predicted intensity value;

根据所述处理器的运行情况调整所述运行参数,控制所述处理器按照调整后的运行参数运行,以降低所述处理器执行任务时消耗的能耗。The operating parameters are adjusted according to the operating conditions of the processor, and the processor is controlled to operate according to the adjusted operating parameters, so as to reduce energy consumption when the processor executes tasks.

可选地,所述根据所述处理器的运行情况调整所述运行参数的步骤,包括:Optionally, the step of adjusting the operating parameters according to the operating conditions of the processor includes:

获取处理器在第一预设时长内的实际强度值;Acquiring the actual intensity value of the processor within the first preset duration;

确定所述实际强度值对应的最大运行参数;determining the maximum operating parameter corresponding to the actual intensity value;

当所述处理器在第一预设时长内按照所述最大参数运行时,统计所述处理器按照所述最大运行参数运行的时间阈值;When the processor operates according to the maximum parameter within the first preset time period, counting the time threshold for the processor to operate according to the maximum operating parameter;

当所述时间阈值大于第一预设时间阈值时,控制所述处理器增大当前运行参数。When the time threshold is greater than a first preset time threshold, the processor is controlled to increase the current operating parameter.

可选地,所述获取处理器在第一预设时长内的实际强度值的步骤之后,包括:Optionally, after the step of obtaining the actual intensity value of the processor within the first preset duration, the method includes:

确定所述实际强度值对应的最小运行参数;determining the minimum operating parameter corresponding to the actual intensity value;

当所述处理器在第一预设时长内按照所述最小参数运行时,统计所述处理器按照所述最小运行参数运行的时间阈值;When the processor operates according to the minimum parameter within the first preset time period, counting the time threshold for the processor to operate according to the minimum operation parameter;

当所述时间阈值大于第二预设时间阈值时,控制所述处理器降低当前运行参数。When the time threshold is greater than a second preset time threshold, the processor is controlled to reduce the current operating parameter.

可选地,所述确定分布式存储集群中至少一处理器当前时刻的预测强度值的步骤,包括:Optionally, the step of determining the current prediction strength value of at least one processor in the distributed storage cluster includes:

获取处理器当前的系统时间;Get the current system time of the processor;

确定与所述系统时间对应的历史强度值作为当前时刻的预测强度值。Determine the historical intensity value corresponding to the system time as the predicted intensity value at the current moment.

可选地,所述确定分布式存储集群中至少一处理器当前时刻的预测强度值的步骤,包括:Optionally, the step of determining the current prediction strength value of at least one processor in the distributed storage cluster includes:

获取所述处理器在第一预设时长的每一所述历史强度值;acquiring each of the historical intensity values of the processor in a first preset time period;

将所述历史强度值建立数据模型,通过数据模型得到所述预测强度值。A data model is established for the historical intensity value, and the predicted intensity value is obtained through the data model.

可选地,所述获取所述处理器每一运行时间段的所述实际强度值的步骤,包括:Optionally, the step of obtaining the actual intensity value of the processor for each running time period includes:

获取在所述运行时间段内处理器读取数据以及写入数据的次数;Obtain the number of times the processor reads data and writes data during the running time period;

根据所述读取数据以及写入数据的次数确定所述实际强度值。The actual intensity value is determined according to the times of reading data and writing data.

可选地,所述根据所述预测强度值确定所述处理器的运行参数的步骤,包括:Optionally, the step of determining the operating parameters of the processor according to the predicted intensity value includes:

确定所述预测强度值对应的波段函数;determining a band function corresponding to the predicted intensity value;

确定所述波段函数对应的运行参数为所述处理器的运行参数。The operating parameter corresponding to the band function is determined as the operating parameter of the processor.

可选地,所述确定所述预测强度值对应的波段函数的步骤,包括:Optionally, the step of determining the band function corresponding to the predicted intensity value includes:

将所述预测强度值与历史强度值进行比对,确认比对一致的历史强度值对对应的波段函数为所述预测强度值的波段函数。Comparing the predicted intensity value with the historical intensity value, and confirming that the band function corresponding to the historical intensity value pair that is consistent with the comparison is the band function of the predicted intensity value.

此外,为实现上述目的,本申请另一方面还提供一种处理器控制系统,控制系统包括处理器、存储器以及存储在存储器上并可在处理器上运行的处理器控制程序,处理器控制程序被处理器执行时实现如上处理器控制的方法的步骤。In addition, in order to achieve the above object, another aspect of the present application provides a processor control system, the control system includes a processor, a memory, and a processor control program stored in the memory and operable on the processor, the processor control program When executed by the processor, the steps of the above method controlled by the processor are realized.

此外,为实现上述目的,本申请另一方面还提供一种计算机可读存储介质,计算机可读存储介质上存储有处理器控制程序,处理器控制程序被处理器执行时实现如上处理器控制的方法的步骤。In addition, in order to achieve the above object, another aspect of the present application also provides a computer-readable storage medium, on which a processor control program is stored, and when the processor control program is executed by the processor, the above processor-controlled method steps.

在本申请中通过确定分布式存储集群中至少一处理器当前时刻的预测强度值,继而根据所述预测强度值确定所述处理器的运行参数,获取处理器的运行情况,根据所述处理器的运行情况调整所述运行参数,控制所述处理器按照调整后的运行参数运行,以降低所述处理器执行任务时消耗的能耗,同时能够根据处理器的实际运行情况调整运行参数,也避免了由于根据预测强度值得到的运行参数小于处理器当前时刻执行任务所需的运行参数,导致处理卡顿的问题。In this application, by determining the predicted intensity value of at least one processor in the distributed storage cluster at the current moment, and then determining the operating parameters of the processor according to the predicted intensity value, the operating conditions of the processor are obtained, and according to the processor Adjust the operating parameters according to the operating conditions of the processor, control the processor to operate according to the adjusted operating parameters, so as to reduce the energy consumption of the processor when performing tasks, and at the same time adjust the operating parameters according to the actual operating conditions of the processor, and also It avoids the problem of stuck processing due to the fact that the operating parameter obtained according to the predicted intensity value is smaller than the operating parameter required by the processor to execute the task at the current moment.

附图说明Description of drawings

图1为本申请实施例方案涉及的硬件运行环境的终端结构示意图;FIG. 1 is a schematic diagram of the terminal structure of the hardware operating environment involved in the solution of the embodiment of the present application;

图2为本申请处理器控制方法一实施例的流程示意图;FIG. 2 is a schematic flowchart of an embodiment of a processor control method of the present application;

图3为本申请处理器控制方法又一实施例的流程示意图。FIG. 3 is a schematic flowchart of another embodiment of a processor control method of the present application.

本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.

本申请实施例的主要解决方案是:确定分布式存储集群中至少一处理器当前时刻的预测强度值;根据所述预测强度值确定所述处理器的运行参数;根据所述处理器的运行情况调整所述运行参数,控制所述处理器按照调整后的运行参数运行,以降低所述处理器执行任务时消耗的能耗。The main solution of the embodiment of the present application is to: determine the predicted strength value of at least one processor in the distributed storage cluster at the current moment; determine the operating parameters of the processor according to the predicted strength value; The operating parameters are adjusted, and the processor is controlled to run according to the adjusted operating parameters, so as to reduce the energy consumption when the processor executes tasks.

由于现有技术中在调节分布式存储集群所产生的能耗是通过建立预测模型,控制分布式存储集群中的每一处理器在执行各阶段任务时,按照预测的运行参数运行。但是通过预测的方式得到的运行参数来控制处理器运行时并没有考虑到处理器在实际运行过程中的实际强度值和预测强度值存在差异,导致处理器在按照预测模型得到的运行参数运行时,出现运行参数设置过大或者过小的问题,导致处理器在运行时存在无法满足数据运行需求或者在运行参数设置过大时导致浪费功耗。In the prior art, the energy consumption generated by the distributed storage cluster is adjusted by establishing a predictive model to control each processor in the distributed storage cluster to operate according to the predicted operating parameters when performing tasks at various stages. However, when the operating parameters obtained by prediction are used to control the operation of the processor, the difference between the actual intensity value and the predicted intensity value of the processor in the actual operation process is not taken into account, resulting in the processor running according to the operating parameters obtained by the prediction model. , there is a problem that the operating parameters are set too large or too small, resulting in the processor being unable to meet the data operation requirements during operation or causing waste of power consumption when the operating parameters are set too large.

如图1所示,图1为本申请实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in the solution of the embodiment of the present application.

如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the terminal may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

可选地,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、遥控器、音频电路、WiFi模块、检测器等等。当然,终端还可配置陀螺仪、气压计、湿度计、温度传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, a remote controller, an audio circuit, a WiFi module, a detector, and the like. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a temperature sensor, which will not be repeated here.

本领域技术人员可以理解,图1中示出的终端结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal device, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.

如图1所示,作为一种计算机可读存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及处理器控制程序。As shown in FIG. 1 , the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a processor control program.

在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的处理器控制程序,并执行以下操作:In the terminal shown in Figure 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client; and the processor 1001 can be used to call the processor control program stored in memory 1005, and perform the following operations:

确定分布式存储集群中至少一处理器当前时刻的预测强度值;determining the predicted intensity value of at least one processor in the distributed storage cluster at the current moment;

根据所述预测强度值确定所述处理器的运行参数;determining an operating parameter of the processor based on the predicted intensity value;

根据所述处理器的运行情况调整所述运行参数,控制所述处理器按照调整后的运行参数运行,以降低所述处理器执行任务时消耗的能耗。The operating parameters are adjusted according to the operating conditions of the processor, and the processor is controlled to operate according to the adjusted operating parameters, so as to reduce energy consumption when the processor executes tasks.

参考图2,图2为本申请处理器控制方法一实施例的流程示意图。Referring to FIG. 2 , FIG. 2 is a schematic flowchart of an embodiment of a processor control method of the present application.

本申请实施例提供了处理器控制方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The embodiment of the present application provides an embodiment of the processor control method. It should be noted that although the logic sequence is shown in the flowchart, in some cases, the sequence shown or described steps.

处理器控制方法包括:Processor control methods include:

步骤S10,确定分布式存储集群中至少一处理器当前时刻的预测强度值;Step S10, determining the predicted strength value of at least one processor in the distributed storage cluster at the current moment;

分布式存储集群即为通过多个存储服务器构建网络拓扑,形成存储服务器集群,在存储服务器集群中通过相关算法可供数据的读取、写入等操作,即通过多台处理器分担在处理数据时,解决存在大量数据需要进行分析处理时导致存储负荷过重的问题。A distributed storage cluster is to build a network topology through multiple storage servers to form a storage server cluster. In the storage server cluster, relevant algorithms can be used for data reading and writing operations, that is, multiple processors share the processing data. When there is a large amount of data that needs to be analyzed and processed, it solves the problem of excessive storage load.

在实际运用中,服务器集群中的各处理相互独立、处理不同的数据。由此,可通过计算在不同时刻不同的处理器的强度值,进而对分布式存储集群中包含的处理器的运行参数进行管理,使各处理器的运行满足当前所需执行的任务需求。In practical application, each processing in the server cluster is independent of each other and processes different data. Therefore, by calculating the strength values of different processors at different times, the operating parameters of the processors included in the distributed storage cluster can be managed, so that the operation of each processor can meet the current task requirements.

在本实施例中预测强度值即为处理器在当前时刻预测得到的强度值。具体地,在本实施例中,预测强度值的获取方法可根据获取每一处理器的历史强度值得到。In this embodiment, the predicted intensity value is the intensity value predicted by the processor at the current moment. Specifically, in this embodiment, the method for obtaining the predicted strength value may be obtained by obtaining the historical strength value of each processor.

所述确定分布式存储集群中至少一处理器当前时刻的预测强度值的步骤,包括:The step of determining the predicted intensity value of at least one processor in the distributed storage cluster at the current moment includes:

步骤S11,获取处理器当前的系统时间;Step S11, obtaining the current system time of the processor;

步骤S12,确定与所述系统时间对应的历史强度值作为当前时刻的预测强度值。Step S12, determining the historical intensity value corresponding to the system time as the predicted intensity value at the current moment.

所述历史强度值为处理器在执行任务时实际运行的强度值。在本实施例中,通过获取不同时刻处理器实际运行的强度值作为历史强度值,并记载获取处理器执行任务时每一强度值的时间段,通过分析系统时间属于记载的时间段中的具体时间段,进而得到该时间段的历史强度作为当前时刻的预测强度。The historical intensity value is an actual running intensity value of the processor when executing a task. In this embodiment, by obtaining the intensity values of the actual operation of the processor at different times as the historical intensity values, and recording the time period for obtaining each intensity value when the processor executes tasks, by analyzing the specific time period in which the system time belongs to the recorded time period time period, and then obtain the historical strength of this time period as the predicted strength at the current moment.

可选的,在本实施例中还可以预设的时间范围划分为多个时间段,获取处理器在每一时间中实际运行的历史强度值,进而在获取处理器当前时刻的预测强度值时,确定当前时刻的系统时间所处的时间段,进而得到该时段的历史强度值,将所述历史强度值作为预测强度值。具体的,以时间为周期(24h),将24小时平均分成不同的时间段(每一小时设置一个时间段),进而得到不同时间段中每一处理器实际运行的强度值(历史强度值)。在第二天时,同样地将24小时划分为与前一天每一时间段的时长相等的时间段。获取处理器当前的预测强度值时,通过获取当前的系统时间,确定当前系统时间所处的时间段,进一步地确定将该时间段所对应的强度值为当前时刻的预测强度值。Optionally, in this embodiment, the preset time range can also be divided into multiple time periods, and the historical strength value of the actual operation of the processor at each time is obtained, and then when the predicted strength value of the processor at the current moment is obtained , determine the time period of the system time at the current moment, and then obtain the historical intensity value of this period, and use the historical intensity value as the predicted intensity value. Specifically, take time as the cycle (24h), divide 24 hours into different time periods on average (set a time period for each hour), and then obtain the actual running intensity value (historical intensity value) of each processor in different time periods . On the second day, the 24 hours are likewise divided into time periods equal to the length of each time period on the previous day. When obtaining the current predicted strength value of the processor, the time period in which the current system time is determined is determined by obtaining the current system time, and the strength value corresponding to the time period is further determined to be the predicted strength value at the current moment.

在本实施例中,通过获取处理器在实际运行过程中的系统时间,确定系统时间所处的时间段,进而得到系统在所述时间段的历史强度值,确定所述历史强度值为当前系统时间的预测强度值,确定当前时刻所属时间段对应的历史强度值作为处理器的预测强度值,提高了预测强度值的准确性。In this embodiment, by obtaining the system time during the actual operation of the processor, the time period of the system time is determined, and then the historical intensity value of the system in the time period is obtained, and the historical intensity value of the current system is determined to be For the predicted strength value of time, the historical strength value corresponding to the time period to which the current moment belongs is determined as the predicted strength value of the processor, which improves the accuracy of the predicted strength value.

所述确定分布式存储集群中至少一处理器当前时刻的预测强度值的步骤,包括:The step of determining the predicted intensity value of at least one processor in the distributed storage cluster at the current moment includes:

步骤S111,获取所述处理器在第一预设时长的每一所述历史强度值;Step S111, obtaining each of the historical intensity values of the processor in the first preset time period;

步骤S112,根据所述历史强度值建立数据模型得到所述预测强度值。Step S112, establishing a data model according to the historical intensity value to obtain the predicted intensity value.

在本实施例中,可将所述第一预设时长设置成一周,即,获取上一周每一处理器的历史强度值作为获取下一周预测强度值的数据,所述第一预设时长的设置可依据使用处理器进行数据处理的情况而定,具体地,还可将所述第一预设时长设置成一个月。其中,在第一预设时长的历史强度值可包含多个,具体地,每间隔一小时周期性地获取不同时间段的历史强度值,将所述历史强度值与时间段映射存储。例如00:00-01:00,周一到周日的历史强度值分别为x1,x2,x3……x7,分别获取一周中168个时间段对应的历史强度值,以历史强度值、以及各时间段为自变量,带入数据模型(SARIMA模型)进行数据分析,进而得到未来24小时各个时间段对应的预测强度值。In this embodiment, the first preset duration can be set to one week, that is, the historical strength value of each processor in the previous week is obtained as the data for obtaining the predicted strength value of the next week, and the first preset duration The setting may be determined according to the situation of using the processor for data processing, specifically, the first preset duration may also be set to one month. Wherein, the historical intensity values in the first preset time period may include multiple ones, specifically, the historical intensity values of different time periods are acquired periodically at intervals of one hour, and the historical intensity values and time periods are mapped and stored. For example, from 00:00 to 01:00, the historical intensity values from Monday to Sunday are x1, x2, x3...x7 respectively, and the historical intensity values corresponding to 168 time periods in a week are respectively obtained, and the historical intensity values and each time The segment is an independent variable, which is brought into the data model (SARIMA model) for data analysis, and then the predicted intensity values corresponding to each time segment in the next 24 hours are obtained.

所述获取所述处理器在第一预设时长的每一所述历史强度值的步骤,包括:The step of acquiring each of the historical intensity values of the processor in the first preset time period includes:

步骤S1111,获取在所述在所述第一预设时长的每一时间段内处理器读取数据以及写入数据的次数;Step S1111, obtaining the number of times the processor reads data and writes data within each time period of the first preset time period;

步骤S1112,根据所述读取数据以及写入数据的次数确定所述历史强度值。Step S1112, determining the historical intensity value according to the times of reading data and writing data.

在datanode上分析存储日志,可采用在第一预设时长的每一时间段内采集读写次数的方式,设采样时间为,读的次数为ai,写的次数为bi,设历史强度值为Di,则

Figure BDA0002804612080000071
To analyze and store logs on the datanode, you can use the method of collecting the number of reads and writes in each time period of the first preset duration. Let the sampling time be, the number of reads is a i , the number of writes is b i , and the history intensity is set is D i , then
Figure BDA0002804612080000071

其中θi和γi为不同处理器读取数据以及写入数据时对应的系数,例如,处理器1对应的读取数据的系数为θ1,写入数据的系数为γ1,它们将读写次数转化为表示处理器每一时间段内的处理任务时的历史强度值为Di。继而根据多个历史强度值以及对应的每一时间段确定预测强度值。在本实施例中通过获取第一预设时长多个时间段中处理器执行任务时的历史强度值,进而确定处理器当前时刻的预测强度值,通过数据分析的手段根据历史强度值确定预测当前时刻的预测强度值,提高了获取当前时刻的预测强度值的准确性。Among them, θ i and γ i are the corresponding coefficients when different processors read and write data. For example, the coefficient of reading data corresponding to processor 1 is θ 1 , and the coefficient of writing data is γ 1 . They will read The number of writes is converted into a historical intensity value D i representing the processor's processing tasks in each time period. A predicted intensity value is then determined based on the plurality of historical intensity values and each corresponding time period. In this embodiment, by obtaining the historical strength value of the processor in multiple time periods of the first preset duration, and then determining the predicted strength value of the processor at the current moment, the predicted current strength value is determined according to the historical strength value by means of data analysis. The predicted strength value at the moment improves the accuracy of obtaining the predicted strength value at the current moment.

步骤S20,根据所述预测强度值确定所述处理器的运行参数;Step S20, determining the operating parameters of the processor according to the predicted intensity value;

所述处理器的运行参数为处理器在执行当前时刻的任务的核心数以及运行频率。The operating parameters of the processor are the number of cores and the operating frequency of the processor executing the task at the current moment.

具体的,在本申请中处理器的运行频率包括powersave、performance两个档位,处理器的核心数为1至8个,不同档位的运行频率以及核心数组合执行任务时,处理器的功率存在差异,其强度值也存差异。在本申请中,利用处理器的强度值对应的功率不同,以及处理器在以不同的运行频率和核心数进行组合执行任务时的功率差异,建立强度值与运行频率和核心数之间的对应关系,进而通过获取与预测参数值一致的强度值所对应的运行频率和核心数之间的对应关系,即可实现通过预测强度值确定处理器当前时刻的运行参数。Specifically, in this application, the operating frequency of the processor includes two gears of powersave and performance. The number of cores of the processor is 1 to 8. When the operating frequency of different gears and the number of cores are combined to perform tasks, the power of the processor There are differences, and their intensity values also vary. In this application, using the different power corresponding to the intensity value of the processor, and the power difference when the processor performs tasks in combination with different operating frequencies and core numbers, the correspondence between the intensity value and the operating frequency and the number of cores is established Then, by obtaining the corresponding relationship between the operating frequency and the number of cores corresponding to the intensity value consistent with the predicted parameter value, the operating parameters of the processor at the current moment can be determined through the predicted intensity value.

步骤S30,根据所述处理器的运行情况调整所述运行参数,控制所述处理器按照调整后的运行参数运行,以降低所述处理器执行任务时消耗的能耗。Step S30 , adjusting the operating parameters according to the operating conditions of the processor, and controlling the processor to operate according to the adjusted operating parameters, so as to reduce the energy consumed by the processor when performing tasks.

可以理解的是,在实际使用的过程中,由于执行的任务强度与根据历史参数预测得到的预测强度存在差异,则可以根据当前处理器的运行情况调整所述运行参数,控制处理器按照调整后的运行参数运行,以使处理器的运行参数与当前时刻执行任务所需的运行参数匹配。It can be understood that, in the process of actual use, since there is a difference between the intensity of the executed task and the predicted intensity predicted according to the historical parameters, the operating parameters can be adjusted according to the operating conditions of the current processor, and the control processor can be controlled according to the adjusted run with the operating parameters of the processor, so that the operating parameters of the processor match the operating parameters required to execute the task at the current moment.

在本申请中通过确定分布式存储集群中至少一处理器当前时刻的预测强度值,继而根据所述预测强度值确定所述处理器的运行参数,获取处理器的运行情况,根据所述处理器的运行情况调整所述运行参数,控制所述处理器按照调整后的运行参数运行,以降低所述处理器执行任务时消耗的能耗,同时能够根据处理器的实际运行情况调整运行参数,也避免了由于根据预测强度值得到的运行参数小于处理器当前时刻执行任务所需的运行参数,导致处理卡顿的问题。In this application, by determining the predicted intensity value of at least one processor in the distributed storage cluster at the current moment, and then determining the operating parameters of the processor according to the predicted intensity value, the operating conditions of the processor are obtained, and according to the processor Adjust the operating parameters according to the operating conditions of the processor, control the processor to operate according to the adjusted operating parameters, so as to reduce the energy consumption of the processor when performing tasks, and at the same time adjust the operating parameters according to the actual operating conditions of the processor, and also It avoids the problem of stuck processing due to the fact that the operating parameter obtained according to the predicted intensity value is smaller than the operating parameter required by the processor to execute the task at the current moment.

基于上一实施例,提出本申请的另一实施例。所述根据所述处理器的运行情况调整所述运行参数的步骤,包括:Based on the above embodiment, another embodiment of the present application is proposed. The step of adjusting the operating parameters according to the operating conditions of the processor includes:

步骤S41,获取处理器在第一预设时长内的实际强度值;Step S41, acquiring the actual intensity value of the processor within the first preset duration;

步骤S42,确定所述实际强度值对应的最大运行参数;Step S42, determining the maximum operating parameter corresponding to the actual intensity value;

步骤S43,当所述处理器在第一预设时长内按照所述最大参数运行时,统计所述处理器按照所述最大运行参数运行的时间阈值;Step S43, when the processor operates according to the maximum parameter within the first preset time period, counting the time threshold for the processor to operate according to the maximum operating parameter;

步骤S44,当所述时间阈值大于第一预设时间阈值时,控制所述处理器增大当前运行参数。Step S44, when the time threshold is greater than a first preset time threshold, control the processor to increase the current operating parameter.

实际强度值的获取可以通过安装的量测设备—智能电表得到。具体的,智能电表可与处理器建立有线连接,不同的连接接口代表连接的处理器不同。在获取实际强度值时,通过设计与处理器所对应的脚本程序得到智能电表中的反馈的实际强度值。所述第一预设时长为当前处理器在执行任务过程中,从开始统计的系统时间至当前时刻的系统时间的时长,在当前时刻为12:00时,开始统计的系统时间为11:00时,则代表第一预设时长为1小时。统计在这一小时当中处理器的实际强度值,进一步地根据实际强度值确定处理器的最大运行参数,当处理器按照最大运行参数运行的时长大于第一预设时间阈值(30分钟)时,确认处理器根据预测强度值得到的运行参数小于处理器在执行任务时的运行参数,则增大所述运行参数,例如从核心数为4,运行频率的档位为powersave,调整为核心数为5,运行频率为powersave。以此,实现在处理器按照调整后的运行参数运行时,其能流畅地执行处理任务。The actual intensity value can be obtained through the installed measuring equipment—smart meter. Specifically, the smart meter can establish a wired connection with the processor, and different connection interfaces represent different connected processors. When obtaining the actual intensity value, the actual intensity value fed back in the smart meter is obtained by designing a script program corresponding to the processor. The first preset duration is the duration from the system time when the current processor starts counting to the system time at the current moment when the current processor is executing the task. When the current time is 12:00, the system time when the counting starts is 11:00 , it means that the first preset duration is 1 hour. Count the actual intensity value of the processor during this hour, and further determine the maximum operating parameter of the processor according to the actual intensity value. When the processor runs according to the maximum operating parameter for a period longer than the first preset time threshold (30 minutes), Confirm that the operating parameters obtained by the processor according to the predicted intensity value are smaller than the operating parameters of the processor when executing tasks, then increase the operating parameters, for example, if the number of cores is 4, the gear of the operating frequency is powersave, and the number of cores is adjusted to 5. The operating frequency is powersave. In this way, when the processor runs according to the adjusted operating parameters, it can smoothly execute processing tasks.

所述获取处理器在第一预设时长内的实际强度值的步骤之后,包括:After the step of obtaining the actual intensity value of the processor within the first preset duration, it includes:

步骤S45,确定所述实际强度值对应的最小运行参数;Step S45, determining the minimum operating parameter corresponding to the actual intensity value;

步骤S46,当所述处理器在第一预设时长内按照所述最小参数运行时,统计所述处理器按照所述最小运行参数运行的时间阈值;Step S46, when the processor operates according to the minimum parameter within the first preset time period, counting the time threshold for the processor to operate according to the minimum operation parameter;

步骤S47,当所述时间阈值大于第二预设时间阈值时,控制所述处理器降低当前运行参数。Step S47, when the time threshold is greater than a second preset time threshold, control the processor to reduce the current operating parameter.

进一步地,所述第一预设时长为一小时,则统计在这一小时当中处理器的实际强度值,根据实际强度值确定处理器的最小运行参数,当处理器按照最小运行参数运行的时长大于第二预设时间阈值(20分钟)时,确认处理器根据预测强度值得到的运行参数大于处理器在执行任务时的运行参数,则降低所述运行参数,例如从核心数为4,运行频率的档位为power save,调整为核心数为3,运行频率为powersave。以此实现降低处理器在执行任务时的能耗。Further, if the first preset duration is one hour, the actual intensity value of the processor during this hour is counted, and the minimum operating parameter of the processor is determined according to the actual intensity value. When the processor operates according to the minimum operating parameter When it is greater than the second preset time threshold (20 minutes), confirm that the operating parameter obtained by the processor according to the predicted intensity value is greater than the operating parameter of the processor when executing the task, then reduce the operating parameter, for example, from the number of cores to 4, run The gear of the frequency is power save, the number of cores is adjusted to 3, and the operating frequency is power save. In this way, the energy consumption of the processor when performing tasks is reduced.

参照图3,图3为本申请又一实施例。所述根据所述预测强度值确定所述处理器的运行参数的步骤,包括:Referring to FIG. 3 , FIG. 3 is another embodiment of the present application. The step of determining the operating parameters of the processor according to the predicted intensity value includes:

步骤S21,确定所述预测强度值对应的波段函数;Step S21, determining the band function corresponding to the predicted intensity value;

步骤S22,确定所述波段函数对应的运行参数为所述处理器的运行参数。Step S22, determining the operating parameter corresponding to the band function as the operating parameter of the processor.

所述波段函数为历史强度值与处理器的功率之间对应的分段函数,可以理解的是在实际应用中,处理器的强度值与功率之间是多对一的关系,则所述历史强度值与处理器的运行参数也为多对一的关系。在本实施例中通过将所述预测强度值对应的波段函数,确定所述波段函数对应的运行参数为所述处理器的运行参数。The band function is a piecewise function corresponding between the historical intensity value and the power of the processor. It can be understood that in practical applications, there is a many-to-one relationship between the intensity value and the power of the processor, and the historical There is also a many-to-one relationship between the intensity value and the operating parameters of the processor. In this embodiment, by using the band function corresponding to the predicted intensity value, the operating parameter corresponding to the band function is determined as the operating parameter of the processor.

所述确定所述预测强度值对应的波段函数的步骤,包括:The step of determining the band function corresponding to the predicted intensity value includes:

步骤S23,将所述预测强度值与历史强度值进行比对,确认比对一致的历史强度值对对应的波段函数为所述预测强度值的波段函数。Step S23, comparing the predicted intensity value with the historical intensity value, and confirming that the band function corresponding to the historical intensity value pair that is consistent with the comparison is the band function of the predicted intensity value.

可以理解的是,在本实施例中,得到的波段函数时根据历史强度值确定的,所以在获取预测强度的波段函数时,需将预测强度值与历史强度值进行比对,从而得到与预测强度值匹配的波段函数,进而根据波段函数的值确定处理器的运行功率,得到处理器执行任务时所需要的启动的核心数以及运行频率,提高了处理器在执行处理任务时的对运行参数控制的准确性,降低了能源损耗。It can be understood that in this embodiment, the obtained band function is determined according to the historical intensity value, so when obtaining the predicted intensity band function, it is necessary to compare the predicted intensity value with the historical intensity value, so as to obtain the predicted intensity value. The band function matching the intensity value, and then determine the operating power of the processor according to the value of the band function, and obtain the number of cores and operating frequency required for the processor to perform tasks, which improves the operating parameters of the processor when performing processing tasks The accuracy of control reduces energy consumption.

此外,本申请还提供一种处理器控制设备,所述处理器控制设备包括处理器、存储器以及存储在所述存储器上并可在所述处理器上运行的处理器控制程序,所述处理器控制程序被所述处理器执行时实现如上任一项处理器控制方法的步骤。In addition, the present application also provides a processor control device, the processor control device includes a processor, a memory, and a processor control program stored in the memory and operable on the processor, the processor When the control program is executed by the processor, the steps of any one of the above processor control methods are implemented.

此外,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有处理器控制程序,所述处理器控制程序被处理器执行时实现如上任一项处理器控制方法的步骤。In addition, the present application also provides a computer-readable storage medium, where a processor control program is stored on the computer-readable storage medium, and when the processor control program is executed by the processor, any one of the above processor control methods can be implemented. step.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本申请可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that, in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

尽管已描述了本申请的可选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括可选实施例以及落入本申请范围的所有变更和修改。While alternative embodiments of the present application have been described, additional changes and modifications to these embodiments may be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be interpreted to cover alternative embodiments and all changes and modifications that fall within the scope of the application.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (6)

1.一种处理器控制方法,其特征在于,所述处理器控制方法包括:1. A processor control method, characterized in that, the processor control method comprises: 确定分布式存储集群中至少一处理器当前时刻的预测强度值;determining the predicted intensity value of at least one processor in the distributed storage cluster at the current moment; 所述确定分布式存储集群中至少一处理器当前时刻的预测强度值的步骤,包括:The step of determining the predicted intensity value of at least one processor in the distributed storage cluster at the current moment includes: 获取处理器当前的系统时间;Get the current system time of the processor; 确定与所述系统时间对应的历史强度值作为当前时刻的预测强度值;determining the historical intensity value corresponding to the system time as the predicted intensity value at the current moment; 根据所述预测强度值确定所述处理器的运行参数,所述运行参数为处理器在执行当前时刻的任务的核心数以及运行频率;Determine the operating parameters of the processor according to the predicted intensity value, the operating parameters are the number of cores and the operating frequency of the processor executing the task at the current moment; 获取处理器在第一预设时长内的实际强度值;Acquiring the actual intensity value of the processor within the first preset duration; 所述获取所述处理器每一运行时间段的所述实际强度值的步骤,包括:The step of obtaining the actual intensity value of the processor for each running time period includes: 获取在所述运行时间段内处理器读取数据以及写入数据的次数;Obtain the number of times the processor reads data and writes data during the running time period; 根据所述读取数据以及写入数据的次数确定所述实际强度值;determining the actual intensity value according to the number of times of reading data and writing data; 确定所述实际强度值对应的最小运行参数;determining the minimum operating parameter corresponding to the actual intensity value; 当所述处理器在第一预设时长内按照所述最小运行参数运行时,统计所述处理器按照所述最小运行参数运行的时间阈值;When the processor operates according to the minimum operating parameter within the first preset time period, counting the time threshold for the processor operating according to the minimum operating parameter; 当所述时间阈值大于第二预设时间阈值时,控制所述处理器降低当前运行参数;When the time threshold is greater than a second preset time threshold, controlling the processor to reduce a current operating parameter; 确定所述实际强度值对应的最大运行参数;determining the maximum operating parameter corresponding to the actual intensity value; 当所述处理器在第一预设时长内按照所述最大运行参数运行时,统计所述处理器按照所述最大运行参数运行的时间阈值;When the processor operates according to the maximum operating parameter within the first preset time period, counting the time threshold for the processor operating according to the maximum operating parameter; 当所述时间阈值大于第一预设时间阈值时,控制所述处理器增大当前运行参数;When the time threshold is greater than a first preset time threshold, controlling the processor to increase the current operating parameter; 控制所述处理器按照调整后的运行参数运行,以降低所述处理器执行任务时消耗的能耗。The processor is controlled to run according to the adjusted operating parameters, so as to reduce the energy consumed by the processor when performing tasks. 2.如权利要求1所述的处理器控制方法,其特征在于,所述确定分布式存储集群中至少一处理器当前时刻的预测强度值的步骤,包括:2. The processor control method according to claim 1, wherein the step of determining the predicted strength value of at least one processor in the distributed storage cluster at the current moment comprises: 获取所述处理器在第一预设时长的每一所述历史强度值;acquiring each of the historical intensity values of the processor in a first preset time period; 将所述历史强度值建立数据模型,通过数据模型得到所述预测强度值。A data model is established for the historical intensity value, and the predicted intensity value is obtained through the data model. 3.如权利要求1所述的处理器控制方法,其特征在于,所述根据所述预测强度值确定所述处理器的运行参数的步骤,包括:3. The processor control method according to claim 1, wherein the step of determining the operating parameters of the processor according to the predicted intensity value comprises: 确定所述预测强度值对应的波段函数;determining a band function corresponding to the predicted intensity value; 确定所述波段函数对应的运行参数为所述处理器的运行参数。The operating parameter corresponding to the band function is determined as the operating parameter of the processor. 4.如权利要求3所述的处理器控制方法,其特征在于,所述确定所述预测强度值对应的波段函数的步骤,包括:4. The processor control method according to claim 3, wherein the step of determining the band function corresponding to the predicted intensity value comprises: 将所述预测强度值与所述历史强度值进行比对,确认比对一致的历史强度值对对应的波段函数为所述预测强度值的波段函数。Comparing the predicted intensity value with the historical intensity value, and confirming that the band function corresponding to the historical intensity value pair that is consistent with the comparison is the band function of the predicted intensity value. 5.一种处理器控制设备,其特征在于,所述处理器控制设备包括处理器、存储器以及存储在所述存储器上并可在所述处理器上运行的处理器控制程序,所述处理器控制程序被所述处理器执行时实现如权利要求1-4任一项处理器控制方法的步骤。5. A processor control device, characterized in that the processor control device comprises a processor, a memory, and a processor control program stored on the memory and operable on the processor, the processor When the control program is executed by the processor, the steps of the processor control method according to any one of claims 1-4 are implemented. 6.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有处理器控制程序,所述处理器控制程序被处理器执行时实现如权利要求1至4中任一项处理器控制方法的步骤。6. A computer-readable storage medium, characterized in that a processor control program is stored on the computer-readable storage medium, and when the processor control program is executed by a processor, any one of claims 1 to 4 is implemented. Steps in the item handler control method.
CN202011368269.7A 2020-11-27 2020-11-27 Processor control method, control device, and computer-readable storage medium Active CN112486683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011368269.7A CN112486683B (en) 2020-11-27 2020-11-27 Processor control method, control device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011368269.7A CN112486683B (en) 2020-11-27 2020-11-27 Processor control method, control device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN112486683A CN112486683A (en) 2021-03-12
CN112486683B true CN112486683B (en) 2023-05-19

Family

ID=74937113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011368269.7A Active CN112486683B (en) 2020-11-27 2020-11-27 Processor control method, control device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112486683B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238648B (en) * 2021-05-11 2023-05-09 成都海光集成电路设计有限公司 Power consumption adjusting method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646670A (en) * 2013-12-05 2014-03-19 华为技术有限公司 Method and device for evaluating performances of storage system
CN104808770A (en) * 2015-04-23 2015-07-29 南京大学 Data center energy consumption management method and system based on dynamic frequency modulation
CN107122036A (en) * 2017-04-18 2017-09-01 青岛海信移动通信技术股份有限公司 CPU frequency adjusting method and device
CN107515663A (en) * 2016-06-15 2017-12-26 北京京东尚科信息技术有限公司 The method and apparatus for adjusting central processor core running frequency
CN108200473A (en) * 2018-02-01 2018-06-22 深圳创维-Rgb电子有限公司 Cpu power control method, intelligent TV set and storage medium
CN108845659A (en) * 2018-01-30 2018-11-20 武汉大学 A kind of embeded processor real-time task distribution method that power consumption is preferential
CN110308782A (en) * 2018-03-22 2019-10-08 阿里巴巴集团控股有限公司 Power consumption prediction, control method, equipment and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8190939B2 (en) * 2009-06-26 2012-05-29 Microsoft Corporation Reducing power consumption of computing devices by forecasting computing performance needs
US20170206111A1 (en) * 2016-01-15 2017-07-20 Qualcomm Innovation Center, Inc. Managing processing capacity provided to threads based upon load prediction
US10303482B2 (en) * 2017-03-07 2019-05-28 Red Hat, Inc. Dynamic processor frequency selection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646670A (en) * 2013-12-05 2014-03-19 华为技术有限公司 Method and device for evaluating performances of storage system
CN104808770A (en) * 2015-04-23 2015-07-29 南京大学 Data center energy consumption management method and system based on dynamic frequency modulation
CN107515663A (en) * 2016-06-15 2017-12-26 北京京东尚科信息技术有限公司 The method and apparatus for adjusting central processor core running frequency
CN107122036A (en) * 2017-04-18 2017-09-01 青岛海信移动通信技术股份有限公司 CPU frequency adjusting method and device
CN108845659A (en) * 2018-01-30 2018-11-20 武汉大学 A kind of embeded processor real-time task distribution method that power consumption is preferential
CN108200473A (en) * 2018-02-01 2018-06-22 深圳创维-Rgb电子有限公司 Cpu power control method, intelligent TV set and storage medium
CN110308782A (en) * 2018-03-22 2019-10-08 阿里巴巴集团控股有限公司 Power consumption prediction, control method, equipment and computer readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Linear combinations of dvfs-enabled processor frequencies to modify the energy-aware scheduling algorithms;N.B.Rizvandi等;《2010 10th IEEE/ACM International Conference on Cluster,Cloud and Grid Computing》;388-397 *
云计算环境下基于预测算法的负载均衡机制研究;彭洁;《中国优秀硕士学位论文全文数据库 信息科技辑》(第03期);I139-357 *
基于BP神经网络的处理器节能技术研究;郭兵等;《工程科学与技术》;第50卷(第01期);107-112 *
异构Spark集群下自适应任务调度策略;杨志伟等;《计算机工程》;第42卷(第01期);31-35+40 *

Also Published As

Publication number Publication date
CN112486683A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN107515663B (en) Method and device for adjusting running frequency of central processing unit kernel
EP3748470A1 (en) Resource scheduling method and terminal device
CN104516475A (en) Method and apparatus for managing global chip power on multicore system on chip
CN108459905B (en) Resource pool capacity planning method and server
CN110795238B (en) Load calculation method, device, storage medium and electronic equipment
US20120254822A1 (en) Processing optimization load adjustment
US20180101404A1 (en) Resource and latency estimation-based scheduling
Berekmeri et al. Feedback autonomic provisioning for guaranteeing performance in mapreduce systems
CN116827950A (en) Cloud resource processing method, device, equipment and storage medium
KR101770736B1 (en) Method for reducing power consumption of system software using query scheduling of application and apparatus for reducing power consumption using said method
CN111752710A (en) Data center PUE dynamic optimization method, system, device and readable storage medium
CN112907064A (en) Electric quantity prediction method and device based on self-adaptive window, storage medium and terminal
CN112486683B (en) Processor control method, control device, and computer-readable storage medium
Xu et al. Tetris: Proactive container scheduling for long-term load balancing in shared clusters
CN114021733B (en) Model training optimization method, device, computer equipment and storage medium
CN110888733B (en) Cluster resource use condition processing method and device and electronic equipment
KR102389217B1 (en) Power management system through power pattern analysis based on real-time power consumption monitoring
Ding et al. A dynamic interval auto-scaling optimization method based on informer time series prediction
CN114741187A (en) Resource scheduling method, system, electronic device and medium
US10503548B2 (en) Resource and latency estimation-based scheduling in a distributed computing environment
Li et al. Toward optimal operator parallelism for stream processing topology with limited buffers
CN118071069A (en) Energy data analysis method and system based on environment real-time data
CN103685541A (en) Device, system and method for dynamically controlling running speed of IaaS (infrastructure as a service) cloud system
CN114565160A (en) Method and device for controlling energy consumption of data center based on PUE value
CN110298742B (en) Data processing method and device

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: 20250327

Address after: 230000 No. 800 Wangjiang West Road, Hefei, Anhui Province

Patentee after: INSTITUTE OF ADVANCED TECHNOLOGY University OF SCIENCE AND TECHNOLOGY OF CHINA

Country or region after: China

Patentee after: University of Science and Technology of China

Address before: 230000 no.5089 Wangjiang West Road, hi tech Zone, Hefei City, Anhui Province

Patentee before: INSTITUTE OF ADVANCED TECHNOLOGY University OF SCIENCE AND TECHNOLOGY OF CHINA

Country or region before: China