Movatterモバイル変換


[0]ホーム

URL:


CN110286961A - Process suspension method based on physical host processor and related equipment - Google Patents

Process suspension method based on physical host processor and related equipment
Download PDF

Info

Publication number
CN110286961A
CN110286961ACN201910569779.1ACN201910569779ACN110286961ACN 110286961 ACN110286961 ACN 110286961ACN 201910569779 ACN201910569779 ACN 201910569779ACN 110286961 ACN110286961 ACN 110286961A
Authority
CN
China
Prior art keywords
cpu usage
business
physical host
target
processor
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.)
Pending
Application number
CN201910569779.1A
Other languages
Chinese (zh)
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.)
Shenzhen Onething Technologies Co Ltd
Original Assignee
Shenzhen Onething Technologies 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 Shenzhen Onething Technologies Co LtdfiledCriticalShenzhen Onething Technologies Co Ltd
Priority to CN201910569779.1ApriorityCriticalpatent/CN110286961A/en
Publication of CN110286961ApublicationCriticalpatent/CN110286961A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

一种基于物理主机处理器的进程挂起方法,所述方法包括:获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;从所述超标进程中确定目标进程,并将所述目标进程挂起。本发明还提供一种基于物理主机处理器的进程挂起装置、物理主机以及存储介质。本发明能提高业务优先级高的业务进程的运行性能。

A method for suspending a process based on a physical host processor, the method comprising: obtaining the total CPU usage of the processor of the physical host and the CPU usage of each business process on the physical host; if the total CPU usage Greater than the preset total CPU usage threshold, for each of the business processes, according to the preset weight corresponding to the business process and the CPU usage, determine the CPU usage index of the business process; if the CPU The utilization rate index is greater than the preset index threshold corresponding to the business process, and the business process is determined to be an over-standard process; a target process is determined from the over-standard processes, and the target process is suspended. The invention also provides a process suspending device based on a physical host processor, a physical host and a storage medium. The invention can improve the operation performance of the service process with high service priority.

Description

Translated fromChinese
基于物理主机处理器的进程挂起方法及相关设备Process suspension method based on physical host processor and related equipment

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种基于物理主机处理器的进程挂起方法及相关设备。The invention relates to the field of computer technology, in particular to a process suspension method based on a physical host processor and related equipment.

背景技术Background technique

通常,物理主机上运行着多个处理业务的程序(即有多个业务进程),然而CPU资源是有限的,每个业务进程都会根据需要来占用CPU且每个业务进程都无法知道其他业务进程的CPU占用,会造成多个业务进程同时抢占CPU资源的情况出现,从而导致业务优先级高的业务进程被业务优先级低的业务进程抢占了CPU资源,使得业务优先级高的业务进程运行性能低下,甚至无法运行。Usually, there are multiple business-processing programs (that is, multiple business processes) running on the physical host, but CPU resources are limited, and each business process will occupy the CPU as needed, and each business process cannot know other business processes The CPU occupation of multiple business processes will cause multiple business processes to seize CPU resources at the same time. As a result, business processes with high business priorities will be seized by business processes with low business priorities. Low and not even able to run.

可见,如何提高业务优先级高的业务进程的运行性能是一个亟需解决的技术问题。It can be seen that how to improve the operating performance of business processes with high business priority is a technical problem that needs to be solved urgently.

发明内容Contents of the invention

鉴于以上内容,有必要提供一种基于物理主机处理器的进程挂起方法及相关设备,能够提高业务优先级高的业务进程的运行性能。In view of the above, it is necessary to provide a method for suspending a process based on a physical host processor and related equipment, which can improve the running performance of a business process with high business priority.

本发明的第一方面提供一种基于物理主机处理器的进程挂起方法,所述方法包括:A first aspect of the present invention provides a method for suspending a process based on a physical host processor, the method comprising:

获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;Obtain the total processor CPU usage of the physical host and the CPU usage of each business process on the physical host;

若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;If the total CPU usage is greater than the preset total CPU usage threshold, for each of the business processes, determine the CPU usage of the business process according to the preset weight corresponding to the business process and the CPU usage rate index;

若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;If the CPU usage index is greater than the preset index threshold corresponding to the business process, determine that the business process is an exceeding process;

从所述超标进程中确定目标进程,并将所述目标进程挂起。Determine a target process from the overrunning processes, and suspend the target process.

在一种可能的实现方式中,所述针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标之后,所述方法还包括:In a possible implementation manner, for each of the business processes, after determining the CPU usage index of the business process according to the preset weight corresponding to the business process and the CPU usage, the Methods also include:

获取所述业务进程的标识;Obtain the identifier of the business process;

根据所述业务进程的标识、所述CPU使用率以及所述CPU使用率指标,在使用预先训练好的进程挂起模型判断所述业务进程需要被挂起时,将所述业务进程挂起。According to the identifier of the service process, the CPU usage rate and the CPU usage rate index, when it is judged that the service process needs to be suspended by using a pre-trained process suspension model, the service process is suspended.

在一种可能的实现方式中,所述确定所述业务进程为超标进程之后,所述方法还包括:In a possible implementation manner, after determining that the business process is an exceeding process, the method further includes:

根据所述超标进程,生成警告信息;Generate a warning message according to the exceeding standard process;

输出所述警告信息;output the warning message;

所述从所述超标进程中确定目标进程包括:The determining the target process from the exceeding standard process includes:

接收进程/线程挂起指令;Receive process/thread suspension instructions;

将所述进程/线程挂起指令所指示的进程/线程确定为目标进程。Determine the process/thread indicated by the process/thread suspension instruction as the target process.

在一种可能的实现方式中,所述将所述目标进程挂起之后,所述方法还包括:In a possible implementation manner, after the target process is suspended, the method further includes:

根据被挂起的所述进程/线程的第一信息,生成学习样本;generating a learning sample according to the first information of the suspended process/thread;

使用所述学习样本进行训练,对所述进程挂起模型进行优化。The learning samples are used for training, and the process suspension model is optimized.

在一种可能的实现方式中,所述从所述超标进程中确定目标进程包括:In a possible implementation manner, the determining the target process from the exceeding process includes:

从所述超标进程中,确定CPU使用率指标最小的进程为目标进程;From the process exceeding the standard, determine that the process with the smallest CPU usage index is the target process;

所述方法还包括:The method also includes:

判断所述目标进程包括的线程的运行属性是否为并发执行;Judging whether the running attribute of the thread included in the target process is concurrent execution;

所述将所述目标进程挂起包括:Said suspending said target process includes:

若所述目标进程包括的线程的运行属性为并发执行,将所述目标进程包括的任一个线程挂起;或If the running attribute of the threads included in the target process is concurrent execution, suspending any thread included in the target process; or

若所述目标进程包括的线程的运行属性不为并发执行,将所述目标进程挂起。If the running attribute of the threads included in the target process is not concurrent execution, suspend the target process.

在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:

获取当前时间;Get the current time;

将所述当前时间输入至预先训练好的进程挂起模型,获得预警信息;Inputting the current time into a pre-trained process suspension model to obtain early warning information;

若所述预警信息不为空值,输出所述预警信息。If the warning information is not a null value, output the warning information.

在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:

每隔预设的时间间隔,获取物理主机的CPU总使用率以及所述物理主机上每个业务进程的第二信息;Obtaining the total CPU utilization rate of the physical host and the second information of each business process on the physical host every preset time interval;

根据所述CPU总使用率以及所述每个业务进程的第二信息,更新所述物理主机上的虚拟表格,其中,所述虚拟表格用于存储所述CPU总使用率以及所述每个业务进程的第二信息。Update the virtual table on the physical host according to the total CPU usage and the second information of each service process, where the virtual table is used to store the total CPU usage and each service process The second information of the process.

本发明的第二方面提供一种基于物理主机处理器的进程挂起装置,所述装置包括:A second aspect of the present invention provides a process suspension device based on a physical host processor, the device comprising:

获取模块,用于获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;An acquisition module, configured to acquire the total processor CPU usage of the physical host and the CPU usage of each business process on the physical host;

确定模块,用于若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;A determining module, configured to determine, for each of the business processes, according to the preset weight corresponding to the business process and the CPU usage rate, if the total CPU usage rate is greater than a preset total CPU usage rate threshold The CPU usage indicator of the business process;

所述确定模块,还用于若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;The determination module is further configured to determine that the business process is an exceeding process if the CPU usage index is greater than the preset index threshold corresponding to the business process;

所述确定模块,还用于从所述超标进程中确定目标进程;The determining module is further configured to determine a target process from the exceeding process;

挂起模块,用于所述将目标进程挂起。The suspend module is used for suspending the target process.

本发明的第三方面提供一种物理主机,所述物理主机包括处理器和存储器,所述处理器用于执行所述存储器中存储的计算机程序时实现所述的基于物理主机处理器的进程挂起方法。The third aspect of the present invention provides a physical host, the physical host includes a processor and a memory, and the processor is used to implement the process suspension based on the physical host processor when executing the computer program stored in the memory method.

本发明的第四方面提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述的基于物理主机处理器的进程挂起方法。A fourth aspect of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the process suspension based on the physical host processor is implemented method.

由以上技术方案,本发明中,可以获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;从所述超标进程中确定目标进程,并将所述目标进程挂起。本发明中,通过监控CPU的总使用率,当CPU的总使用率大于预设的阈值时,表明当前物理主机的CPU可能被多个业务进程抢占,可以根据各个业务进程的权重以及对CPU的占用即CPU使用率,计算各个业务进程的CPU使用率指标,再从超标的业务进程(超标进程)中选择CPU使用率指标最小的进程挂起,即将业务优先级较低的业务进程所占用的CPU资源释放出来,让业务优先级高的业务进程可以使用这些被释放出来的CPU资源,可以提高业务优先级高的业务进程的运行性能。From the above technical solutions, in the present invention, the total CPU usage rate of the processor of the physical host and the CPU usage rate of each business process on the physical host can be obtained; if the total CPU usage rate is greater than the preset total CPU usage rate Threshold, for each of the business processes, according to the preset weight corresponding to the business process and the CPU usage, determine the CPU usage index of the business process; if the CPU usage index is greater than the business process According to the preset index threshold value, it is determined that the business process is an over-standard process; a target process is determined from the over-standard process, and the target process is suspended. In the present invention, by monitoring the total usage rate of the CPU, when the total usage rate of the CPU is greater than the preset threshold, it indicates that the CPU of the current physical host may be preempted by multiple business processes, and the weight of each business process and the CPU Occupancy is the CPU usage rate, calculate the CPU usage rate index of each business process, and then select the process with the smallest CPU usage rate index from the over-standard business processes (over-standard processes) to suspend, that is, the business process occupied by the business process with a lower priority CPU resources are released, so that business processes with high business priority can use these released CPU resources, which can improve the running performance of business processes with high business priority.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings on the premise of not paying creative efforts.

图1是本发明公开的一种基于物理主机处理器的进程挂起方法的较佳实施例的流程图。FIG. 1 is a flow chart of a preferred embodiment of a process suspension method based on a physical host processor disclosed in the present invention.

图2是本发明公开的一种没有采用基于物理主机处理器的进程挂起方法的效果预测图。FIG. 2 is an effect prediction diagram of a process suspension method not based on a physical host processor disclosed in the present invention.

图3是本发明实现基于物理主机处理器的进程挂起方法的效果预测图。Fig. 3 is an effect prediction diagram of implementing the process suspension method based on the physical host processor in the present invention.

图4是本发明公开的一种基于物理主机处理器的进程挂起装置的较佳实施例的功能模块图。Fig. 4 is a functional module diagram of a preferred embodiment of a device for suspending a process based on a physical host processor disclosed in the present invention.

图5是本发明实现基于物理主机处理器的进程挂起方法的较佳实施例的物理主机的结构示意图。FIG. 5 is a schematic structural diagram of a physical host in a preferred embodiment of the present invention implementing a process suspension method based on a physical host processor.

具体实施方式Detailed ways

为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施例对本发明进行详细描述。需要说明的是,在不冲突的情况下,本发明的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present invention, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

本发明实施例的基于物理主机处理器的进程挂起方法应用在物理主机中,也可以应用在物理主机和通过网络与所述物理主机进行连接的服务器所构成的硬件环境中,由服务器和物理主机共同执行。网络包括但不限于:广域网、城域网或局域网。The process suspension method based on the processor of the physical host in the embodiment of the present invention is applied in the physical host, and can also be applied in the hardware environment composed of the physical host and the server connected to the physical host through the network. host co-execution. Networks include, but are not limited to: Wide Area Networks, Metropolitan Area Networks, or Local Area Networks.

其中,服务器可以是指能对网络中其它设备(如电子设备)提供服务的计算机系统。如果一个个人电脑能够对外提供文件传输协议(File Transfer Protocol,简称FTP)服务,也可以叫服务器。从狭义范围上讲,服务器专指某些高性能计算机,能通过网络,对外提供服务,其相对于普通的个人电脑来说,稳定性、安全性、性能等方面都要求更高,因此在CPU、芯片组、内存、磁盘系统、网络等硬件和普通的个人电脑有所不同。Wherein, the server may refer to a computer system capable of providing services to other devices (such as electronic devices) in the network. If a personal computer can provide a file transfer protocol (File Transfer Protocol, referred to as FTP) service, it can also be called a server. In a narrow sense, a server specifically refers to certain high-performance computers that can provide external services through the network. Compared with ordinary personal computers, it has higher requirements for stability, security, and performance. , chipset, memory, disk system, network and other hardware are different from ordinary personal computers.

所述物理主机包括一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路(ASIC)、可编程门阵列(FPGA)、数字处理器(DSP)、嵌入式设备等。The physical host includes an electronic device that can automatically perform numerical calculations and/or information processing according to preset or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), programmable gates Arrays (FPGA), digital processors (DSP), embedded devices, etc.

本发明中,可以在物理主机中安装一个SDK(Software Development Kit,软件开发工具包),外部程序只需要导入SDK(集成SDK模块),就可以调用SDK中写好的方法来实现计算CPU使用率指标、挂起进程、获取该程序对应的进程的CPU使用率以及收集数据并生成给模型训练用的学习样本等。In the present invention, an SDK (Software Development Kit, software development kit) can be installed in the physical host, and the external program only needs to import the SDK (integrated SDK module), and the method written in the SDK can be called to realize the calculation of CPU usage Indicators, suspending the process, obtaining the CPU usage of the process corresponding to the program, collecting data and generating learning samples for model training, etc.

本发明中,可以在物理主机中安装一个Agent(代理),可以获取没有集成SDK的程序对应的进程的CPU使用率,可以对数据进行管理,并提供外部接口给其它程序查询其管理的数据。In the present invention, an Agent (agent) can be installed in the physical host, can obtain the CPU utilization rate of the process corresponding to the program that does not integrate the SDK, can manage the data, and provide an external interface for other programs to query the managed data.

请参见图1,图1是本发明公开的一种基于物理主机处理器的进程挂起方法的较佳实施例的流程图。其中,根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。Please refer to FIG. 1 . FIG. 1 is a flowchart of a preferred embodiment of a process suspension method based on a physical host processor disclosed in the present invention. Wherein, according to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.

S11、物理主机获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率。S11. The physical host acquires the total processor CPU usage of the physical host and the CPU usage of each service process on the physical host.

其中,处理器(CPU,Central Processing Unit)是一块超大规模的集成电路,是一台计算机的运算核心(Core)和控制核心(Control Unit)。它的功能主要是解释计算机指令以及处理计算机软件中的数据。Among them, the processor (CPU, Central Processing Unit) is a very large-scale integrated circuit, which is the computing core (Core) and control core (Control Unit) of a computer. Its function is mainly to interpret computer instructions and process data in computer software.

其中,进程是指是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是程序的基本执行实体。Among them, a process refers to a running activity of a program in a computer on a certain data set, and is the basic unit for resource allocation and scheduling by the system, and the basic execution entity of the program.

本发明实施例中,可以通过top命令获取Linux系统中的CPU总使用率,可以通过导出/proc/pid(进程id)/status文件的统计信息来获取到每个业务进程的CPU使用率。In the embodiment of the present invention, the total CPU utilization rate in the Linux system can be obtained by the top command, and the CPU utilization rate of each business process can be obtained by exporting the statistical information of the /proc/pid (process id)/status file.

作为一种可选的实施方式,所述方法还包括:As an optional implementation, the method also includes:

每隔预设的时间间隔,获取物理主机的CPU总使用率以及所述物理主机上每个业务进程的第二信息;Obtaining the total CPU utilization rate of the physical host and the second information of each business process on the physical host every preset time interval;

根据所述CPU总使用率以及所述每个业务进程的第二信息,更新所述物理主机上的虚拟表格,其中,所述虚拟表格用于存储所述CPU总使用率以及所述每个业务进程的第二信息。Update the virtual table on the physical host according to the total CPU usage and the second information of each service process, where the virtual table is used to store the total CPU usage and each service process The second information of the process.

其中,所述第二信息包括但不限于进程id、进程名称、业务名称、进程状态以及CPU使用率。Wherein, the second information includes but not limited to process id, process name, business name, process status and CPU usage.

其中,所述虚拟表格是指一种数据结构,可以用来保存数据。Wherein, the virtual table refers to a data structure that can be used to store data.

在该可选的实施方式中,可以每隔设的时间间隔去获取物理主机的CPU总使用率以及获取物理主机上每个业务进程的第二信息;使用Agent管理所述CPU总使用率以及所述第二信息,可以建立虚拟表格保存所述CPU总使用率以及所述第二信息或对所述虚拟表格的保存数据进行更新,并提供外部接口给其它程序查询。部署在各个业务程序上的SDK可以向Agent请求获取这些数据。In this optional implementation manner, the total CPU utilization rate of the physical host and the second information of each business process on the physical host can be obtained at intervals set at intervals; the Agent is used to manage the total CPU utilization rate and the total utilization rate of the physical host. For the second information, a virtual table can be created to save the total CPU usage and the second information or update the stored data in the virtual table, and provide an external interface for other programs to query. The SDK deployed on each business program can request these data from the Agent.

S12、若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,物理主机根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标。S12. If the total CPU usage rate is greater than the preset total CPU usage rate threshold, for each of the business processes, the physical host determines the business process according to the preset weight corresponding to the business process and the CPU usage rate Process CPU usage metrics.

其中,所述权重是指某一因素或指标相对于某一事物的重要程度。Wherein, the weight refers to the importance of a certain factor or index relative to a certain thing.

其中,所述CPU使用率指标是与业务进程的权重相关联的一个指标,用于衡量业务进程当前的CPU占用情况。Wherein, the CPU usage index is an index associated with the weight of the business process, and is used to measure the current CPU usage of the business process.

本发明实施例中,可以预先设置物理主机的CPU总使用率阈值,物理主机的总CPU使用率大于所述CPU总使用率阈值时,确定当前的物理主机处于超负载状态,即当前物理主机剩余的CPU资源不足,所有的业务进程几乎不能分配到新的CPU资源,一旦有CPU资源释放出来,各个业务进程会根据需要抢占CPU资源,可能导致业务业务优先级低的业务进程抢占了业务优先级高的业务进程的CPU资源,使得业务优先级高的业务进程的运行性能低下甚至无法运行。因此需要对这些业务进程进行管理,以提高业务优先级高的业务进程的运行性能。可以根据业务进程的重要程度(业务优先级),预先给每个业务进程设置权重,业务优先级高的业务进程的权重的值比较大。将业务进程的权重乘以所述业务进程自身在物理主机上的CPU使用率,计算结果为所述业务进程的CPU使用率指标。比如,物理主机上当前只有A和B两个业务进程,A的权重为0.9、CPU使用率为50%,B的权重为0.1、CPU使用率为10%,那么A的CPU使用率指标为45%,B的CPU使用率指标为1%。In the embodiment of the present invention, the total CPU usage threshold of the physical host can be preset. When the total CPU usage of the physical host is greater than the total CPU usage threshold, it is determined that the current physical host is in an overloaded state, that is, the current physical host has remaining CPU resources are insufficient, and all business processes can hardly be allocated new CPU resources. Once CPU resources are released, each business process will preempt CPU resources as needed, which may cause business processes with low business priority to preempt business priority. The high CPU resources of business processes make the running performance of business processes with high business priority low or even unable to run. Therefore, it is necessary to manage these business processes so as to improve the operation performance of the business processes with high business priority. A weight may be set in advance for each business process according to the importance of the business process (business priority), and a business process with a higher business priority has a higher weight value. The weight of the business process is multiplied by the CPU usage of the business process itself on the physical host, and the calculation result is the CPU usage index of the business process. For example, there are currently only two business processes A and B on the physical host, and the weight of A is 0.9, and the CPU usage is 50%, and the weight of B is 0.1, and the CPU usage is 10%, so the CPU usage index of A is 45. %, B's CPU usage indicator is 1%.

作为一种可选的实施方式,步骤S12之后,所述方法还包括:As an optional implementation manner, after step S12, the method further includes:

获取所述业务进程的标识;Obtain the identifier of the business process;

根据所述业务进程的标识、所述CPU使用率以及所述CPU使用率指标,在使用预先训练好的进程挂起模型判断所述业务进程需要被挂起时,将所述业务进程挂起。According to the identifier of the service process, the CPU usage rate and the CPU usage rate index, when it is judged that the service process needs to be suspended by using a pre-trained process suspension model, the service process is suspended.

其中,所述标识包括业务名称以及业务进程名称。Wherein, the identifier includes a business name and a business process name.

在该可选的实施方式中,可以将所述业务进程的标识、所述CPU使用率以及所述CPU使用率指标输入至预先训练好的进程挂起模型中,当所述进程挂起模型判断所述业务进程需要被挂起时,会输出挂起所述业务进程的指令给所述业务进程对应的SDK,所述SDK接收到挂起所述业务进程的指令后,将所述业务进程挂起。因为所述进程挂起模型是可以不断根据新的样本来学习优化,其判断业务进程是否需要被挂起比程序根据代码中设置的指标阈值等判断条件来判断业务进程是否需要被挂起更加准确,而且可以直接输出针对业务进程的挂起指令,不需要SDK向Agent请求发送挂起指令,降低了Agent的性能损耗。In this optional implementation, the identifier of the business process, the CPU usage rate, and the CPU usage rate indicator may be input into a pre-trained process suspension model, and when the process suspension model judges When the service process needs to be suspended, it will output an instruction to suspend the service process to the SDK corresponding to the service process, and the SDK will suspend the service process after receiving the instruction to suspend the service process. rise. Because the process suspension model can continuously learn and optimize based on new samples, it is more accurate to judge whether the business process needs to be suspended than the program judges whether the business process needs to be suspended according to the judgment conditions such as the indicator threshold set in the code , and can directly output the suspension command for the business process, without requiring the SDK to send the suspension command to the Agent request, reducing the performance loss of the Agent.

S13、若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,物理主机确定所述业务进程为超标进程。S13. If the CPU usage index is greater than a preset index threshold corresponding to the service process, the physical host determines that the service process is an exceeding process.

本发明实施例中,可以预先设置每个业务进程的指标阈值。每个业务进程的指标阈值为所述业务进程允许的CPU最大占用的指标值。若所述业务进程的CPU使用率指标大于所述业务进程对应的预设指标阈值,表明所述业务进程的CPU占用超过了所述业务进程所允许的CPU最大占用,即该业务进程抢占了其它业务进程的CPU资源。确定所述业务进程为超标进程。In the embodiment of the present invention, the index threshold of each business process may be preset. The index threshold of each business process is the index value of the maximum CPU usage allowed by the business process. If the CPU usage index of the business process is greater than the preset index threshold corresponding to the business process, it indicates that the CPU usage of the business process exceeds the maximum CPU usage allowed by the business process, that is, the business process preempts other CPU resources of the business process. It is determined that the business process is an exceeding standard process.

作为一种可选的实施方式,所述确定所述业务进程为超标进程之后,所述方法还包括:As an optional implementation manner, after determining that the business process is an exceeding process, the method further includes:

根据所述超标进程,生成警告信息;Generate a warning message according to the exceeding standard process;

输出所述警告信息;output the warning message;

所述从所述超标进程中确定目标进程包括:The determining the target process from the exceeding standard process includes:

接收进程/线程挂起指令;Receive process/thread suspension instructions;

将所述进程/线程挂起指令所指示的进程/线程确定为目标进程。Determine the process/thread indicated by the process/thread suspension instruction as the target process.

其中,所述警告信息可以包括但不限于业务进程的名称以及建议挂起分数。Wherein, the warning information may include but not limited to the name of the business process and the suggested suspension score.

其中,所述线程是指操作系统能够进行运算调度的最小单位。它被包含在进程之中,是进程中的实际运作单位。Wherein, the thread refers to the smallest unit that the operating system can perform operation scheduling. It is included in the process and is the actual operating unit in the process.

在该可选的实施方式中,在确定所述业务进程为超标进程之后,SDK可以生成关于所述超标进程的警告信息,例如,生成的警告信息可以为:当前物理主机的CPU处于超负载的状态,超标进程为test1,建议挂起分数为60分(满分100分)。其中,建议挂起分数高,表示该超标进程的CPU使用率比较高或该超标进程的业务优先级比较低,建议挂起分数可以根据预设的计算规则得出,进程的CPU使用率越高、权重越低,其建议挂起分数越高。如何计算建议挂起分数,本发明对此不做具体限定。所述警告信息会输出至物理主机的界面上,提示用户当前物理主机处于超负载的状态,显示超标进程以及超标进程的建议挂起分数。用户可以参考建议挂起分数来决定挂起的进程,根据用户输入的进程/线程挂起指令,将所述挂起指令指示的进程/线程挂起。即由用户手动输入指令挂起进程或挂起某个进程包括的线程。In this optional implementation, after determining that the business process is an exceeding process, the SDK may generate warning information about the exceeding process. For example, the generated warning information may be: the CPU of the current physical host is overloaded. Status, the exceeding process is test1, and the suggested pending score is 60 points (out of 100 points). Among them, a high recommended suspension score indicates that the CPU usage of the exceeding process is relatively high or the business priority of the exceeding process is relatively low. The recommended suspension score can be obtained according to the preset calculation rules, and the higher the CPU usage of the process , the lower the weight, the higher the suggested pending score. How to calculate the suggestion suspension score is not specifically limited in the present invention. The warning information will be output to the interface of the physical host, prompting the user that the current physical host is in an overloaded state, and displaying the exceeding process and the suggested suspension score of the exceeding process. The user may refer to the suggested suspension score to determine the suspended process, and suspend the process/thread indicated by the suspension instruction according to the process/thread suspension instruction input by the user. That is, the user manually inputs an instruction to suspend the process or suspend the threads included in a certain process.

作为一种可选的实施方式,所述将所述目标进程挂起之后,所述方法还包括:As an optional implementation manner, after the target process is suspended, the method further includes:

根据被挂起的所述进程/线程的第一信息,生成学习样本;generating a learning sample according to the first information of the suspended process/thread;

使用所述学习样本进行训练,对所述进程挂起模型进行优化。The learning samples are used for training, and the process suspension model is optimized.

其中,所述第一信息包括但不限于所述进程的名称、业务名称、所述进程的CPU使用率,所述进程/线程被挂起的时间点,所述进程被挂起的具体情况(整个进程被挂起或进程包括的线程被挂起),如果只是挂起进程的线程,会记录被挂起的线程的数量。Wherein, the first information includes but is not limited to the name of the process, the name of the business, the CPU usage rate of the process, the time point when the process/thread is suspended, and the specific situation of the process being suspended ( The entire process is suspended or the threads included in the process are suspended), if only the threads of the process are suspended, the number of suspended threads will be recorded.

在该可选的实施方式中,可以根据所述第一信息,生成学习样本。SDK的学习模块可以使用所述学习样本进行训练,调整所述进程挂起模型对业务进程挂起的条件(各种数据)范围,提高所述进程挂起模型判断业务进程是否需要挂起的准确性,从而实现对所述进程挂起模型的优化。In this optional implementation manner, a learning sample may be generated according to the first information. The learning module of the SDK can use the learning samples for training, adjust the range of conditions (various data) that the process suspension model can suspend the business process, and improve the accuracy of the process suspension model in judging whether the business process needs to be suspended. performance, thereby achieving optimization of the process hang model.

S14、物理主机从所述超标进程中确定目标进程,并将所述目标进程挂起。S14. The physical host determines a target process from the overrunning processes, and suspends the target process.

本发明实施例中,SDK可以执行从Agent发送过来的挂起指令,将目标进程挂起。In the embodiment of the present invention, the SDK can execute the suspend command sent from the Agent to suspend the target process.

请一并参见图2和图3,图2是本发明公开的一种没有采用基于物理主机处理器的进程挂起方法的效果预测图;图3是本发明实现基于物理主机处理器的进程挂起方法的效果预测图;如图2所示,无论所述物理主机剩余的CPU资源多或少,业务优先级低的业务进程占用的CPU资源不变,即随着所述物理主机剩余的CPU资源越来越少,业务优先级高的业务进程可获得的CPU资源也越来越少,可能导致业务优先级高的业务进程因为不能获得足够的CPU资源而运行性能低下甚至无法运行。当使用了本发明实现的基于物理主机处理器的进程挂起方法后,如图3所述,当物理主机剩余的CPU资源变少时,会将业务优先级低的业务进程挂起,释放业务优先级低的业务进程所占用的CPU资源,使得业务优先级高的业务进程可以获得这部分被释放的CPU资源,从而提高了业务优先级高的业务进程的运行性能。Please refer to Fig. 2 and Fig. 3 together. Fig. 2 is an effect prediction diagram of a process suspension method based on a physical host processor not used in the present invention; Fig. 3 is a process suspension method based on a physical host processor in the present invention. The effect prediction diagram of the starting method; as shown in Figure 2, regardless of whether the remaining CPU resources of the physical host are more or less, the CPU resources occupied by the business processes with low service priority remain unchanged, that is, as the remaining CPU resources of the physical host Resources are getting less and less, and the CPU resources available to high-priority business processes are also getting less and less, which may lead to low performance or even failure of high-priority business processes because they cannot obtain enough CPU resources. After using the process suspension method based on the physical host processor implemented by the present invention, as shown in Figure 3, when the remaining CPU resources of the physical host become less, the service process with low service priority will be suspended, and the service priority will be released. The CPU resources occupied by low-level business processes can be used to enable high-priority business processes to obtain this part of the released CPU resources, thereby improving the operating performance of high-priority business processes.

具体的,所述从所述超标进程中确定目标进程包括:Specifically, the determining the target process from the over-standard process includes:

从所述超标进程中,确定CPU使用率指标最小的进程为目标进程;From the process exceeding the standard, determine that the process with the smallest CPU usage index is the target process;

所述方法还包括:The method also includes:

判断所述目标进程包括的线程的运行属性是否为并发执行;Judging whether the running attribute of the thread included in the target process is concurrent execution;

所述将所述目标进程挂起包括:Said suspending said target process includes:

若所述目标进程包括的线程的运行属性为并发执行,将所述目标进程包括的任一个线程挂起;或If the running attribute of the threads included in the target process is concurrent execution, suspending any thread included in the target process; or

若所述目标进程包括的线程的运行属性不为并发执行,将所述目标进程挂起。If the running attribute of the threads included in the target process is not concurrent execution, suspend the target process.

在该可选的实施方式中,可以从超标进程中,确定CPU使用率指标最小的进程为目标进程,CPU使用率指标跟权重相关,CPU使用率指标最小的进程一般为业务优先级最低的进程,即所述目标进程的业务优先度比较低,可能是最低的。可以所述目标进程挂起,释放所述目标进程占用的CPU资源,给其它业务进程使用,确保业务优先级高的业务进程可以获得足够的CPU资源,可以提高业务优先级高的业务进程的运行性能。在对所述目标进程挂起之前,可以判断所述目标进程包括的线程的运行属性是否为并发执行,若所述目标进程包括的线程的运行属性为并发执行,将所述目标进程包括的任一个线程挂起,比如:若某个进程是用来发送一段数据,该进程包括的线程都是用来发送这段数据的一部分,做的是同一件事情,那么该进程包括的线程的运行属性为并发执行,可以将该进程包括的任一个线程挂起,该进程可以继续工作,但该进程占用的CPU资源少了,可以让该进程继续工作的同时减轻系统负载。可选的,若所述目标进程包括的线程的运行属性不为并发执行,将所述目标进程挂起。In this optional implementation, the process with the smallest CPU usage index can be determined as the target process from the exceeding process, the CPU usage index is related to the weight, and the process with the smallest CPU usage index is generally the process with the lowest business priority , that is, the service priority of the target process is relatively low, possibly the lowest. The target process can be suspended, and the CPU resources occupied by the target process can be released for use by other business processes to ensure that the business processes with high business priority can obtain sufficient CPU resources, which can improve the operation of the business process with high business priority performance. Before the target process is suspended, it can be judged whether the running attribute of the thread included in the target process is concurrent execution, if the running attribute of the thread included in the target process is concurrent execution, any A thread is suspended, for example: if a process is used to send a piece of data, and the threads included in the process are all used to send part of the data, doing the same thing, then the running attributes of the threads included in the process For concurrent execution, any thread included in the process can be suspended, and the process can continue to work, but the CPU resources occupied by the process are less, which can reduce the system load while the process continues to work. Optionally, if the running attribute of the threads included in the target process is not concurrent execution, suspend the target process.

作为一种可选的实施方式,所述方法还包括:As an optional implementation, the method also includes:

获取当前时间;Get the current time;

将所述当前时间输入至预先训练好的进程挂起模型,获得预警信息;Inputting the current time into a pre-trained process suspension model to obtain early warning information;

若所述预警信息不为空值,输出所述预警信息。If the warning information is not a null value, output the warning information.

在该可选的实施方式中,可以获取当前的时间,将当前的时间输入至预先训练好的进程挂起模型,即使用所述进程挂起模型监测当前时间,若当前时间为预警时间范围内,其中,预警时间范围是可以预先设置的,比如,提前15分钟预警,会输出预警信息。比如,若进程A需要在6:00进行挂起,在5:45输出预警信息,提示用户物理主机会在6:00超负载,需要对进程A进行挂起。对于物理主机超负载,可以进行提前预警,让用户及时处理,避免物理主机上业务优先级高的业务进程因为物理主机超负载而运行性能低下。In this optional implementation, the current time can be obtained, and the current time can be input into the pre-trained process suspension model, that is, the process suspension model is used to monitor the current time, if the current time is within the warning time range , wherein the warning time range can be set in advance, for example, if the warning is given 15 minutes in advance, the warning information will be output. For example, if process A needs to be suspended at 6:00, a warning message will be output at 5:45, prompting the user that the physical host will be overloaded at 6:00, and process A needs to be suspended. For the overload of the physical host, early warning can be given to allow users to deal with it in time, so as to avoid the low performance of business processes with high business priority on the physical host due to the overload of the physical host.

在图1所描述的方法流程中,可以获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;从所述超标进程中确定目标进程,并将所述目标进程挂起。本发明中,通过监控CPU的总使用率,当CPU的总使用率大于预设的阈值时,表明当前物理主机的CPU可能被多个业务进程抢占,可以根据各个业务进程的权重以及对CPU的占用即CPU使用率,计算各个业务进程的CPU使用率指标,再从超标的业务进程(超标进程)中选择CPU使用率指标最小的进程挂起,即将业务优先级较低的业务进程所占用的CPU资源释放出来,让业务优先级高的业务进程可以使用这些被释放出来的CPU资源,可以提高业务优先级高的业务进程的运行性能。In the method flow described in FIG. 1 , the total CPU usage of the processor of the physical host and the CPU usage of each business process on the physical host can be obtained; if the total CPU usage is greater than the preset total CPU usage rate threshold, for each of the business processes, according to the preset weight corresponding to the business process and the CPU usage rate, determine the CPU usage rate index of the business process; if the CPU usage rate index is greater than the business process The preset indicator threshold corresponding to the process determines that the business process is an over-standard process; determines a target process from the over-standard process, and suspends the target process. In the present invention, by monitoring the total usage rate of the CPU, when the total usage rate of the CPU is greater than the preset threshold, it indicates that the CPU of the current physical host may be preempted by multiple business processes, and the weight of each business process and the CPU Occupancy is the CPU usage rate, calculate the CPU usage rate index of each business process, and then select the process with the smallest CPU usage rate index from the over-standard business processes (over-standard processes) to suspend, that is, the business process occupied by the business process with a lower priority CPU resources are released, so that business processes with high business priority can use these released CPU resources, which can improve the running performance of business processes with high business priority.

以上所述,仅是本发明的具体实施方式,但本发明的保护范围并不局限于此,对于本领域的普通技术人员来说,在不脱离本发明创造构思的前提下,还可以做出改进,但这些均属于本发明的保护范围。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. For those of ordinary skill in the art, without departing from the inventive concept of the present invention, it is also possible to make Improvements, but these all belong to the protection scope of the present invention.

请参见图4,图4是本发明公开的一种基于物理主机处理器的进程挂起装置的较佳实施例的功能模块图。Please refer to FIG. 4 . FIG. 4 is a functional block diagram of a preferred embodiment of a device for suspending a process based on a physical host processor disclosed in the present invention.

在一些实施例中,所述基于物理主机处理器的进程挂起装置运行于物理主机中。所述基于物理主机处理器的进程挂起装置可以包括多个由程序代码段所组成的功能模块。所述基于物理主机处理器的进程挂起装置中的各个程序段的程序代码可以存储于存储器中,并由至少一个处理器所执行,以执行图1所描述的基于物理主机处理器的进程挂起方法中的部分或全部步骤。In some embodiments, the device for suspending processes based on the physical host processor runs in the physical host. The process suspension device based on the physical host processor may include a plurality of functional modules composed of program code segments. The program codes of the various program segments in the process suspension device based on the physical host processor can be stored in the memory, and executed by at least one processor, so as to execute the process suspension based on the physical host processor described in FIG. 1 some or all of the steps in the method.

本实施例中,所述基于物理主机处理器的进程挂起装置根据其所执行的功能,可以被划分为多个功能模块。所述功能模块可以包括:获取模块201、确定模块202以及挂起模块203。本发明所称的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器中。在一些实施例中,关于各模块的功能将在后续的实施例中详述。In this embodiment, the process suspension device based on the physical host processor can be divided into multiple functional modules according to the functions it performs. The function modules may include: an acquisition module 201 , a determination module 202 and a suspension module 203 . The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, and are stored in memory. In some embodiments, the functions of each module will be described in detail in subsequent embodiments.

每隔预设的时间间隔,获取物理主机的CPU总使用率以及所述物理主机上每个业务进程的第二信息;Obtaining the total CPU utilization rate of the physical host and the second information of each business process on the physical host every preset time interval;

根据所述CPU总使用率以及所述每个业务进程的第二信息,更新所述物理主机上的虚拟表格,其中,所述虚拟表格用于存储所述CPU总使用率以及所述每个业务进程的第二信息。Update the virtual table on the physical host according to the total CPU usage and the second information of each service process, where the virtual table is used to store the total CPU usage and each service process The second information of the process.

本发明的第二方面提供一种基于物理主机处理器的进程挂起装置,所述装置包括:A second aspect of the present invention provides a process suspension device based on a physical host processor, the device comprising:

获取模块201,用于获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;An acquisition module 201, configured to acquire the total processor CPU usage rate of the physical host and the CPU usage rate of each business process on the physical host;

其中,处理器(CPU,Central Processing Unit)是一块超大规模的集成电路,是一台计算机的运算核心(Core)和控制核心(Control Unit)。它的功能主要是解释计算机指令以及处理计算机软件中的数据。Among them, the processor (CPU, Central Processing Unit) is a very large-scale integrated circuit, which is the computing core (Core) and control core (Control Unit) of a computer. Its function is mainly to interpret computer instructions and process data in computer software.

其中,进程是指是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是程序的基本执行实体。Among them, a process refers to a running activity of a program in a computer on a certain data set, and is the basic unit for resource allocation and scheduling by the system, and the basic execution entity of the program.

本发明实施例中,可以通过top命令获取Linux系统中的CPU总使用率,可以通过导出/proc/pid(进程id)/status文件的统计信息来获取到每个业务进程的CPU使用率。In the embodiment of the present invention, the total CPU utilization rate in the Linux system can be obtained by the top command, and the CPU utilization rate of each business process can be obtained by exporting the statistical information of the /proc/pid (process id)/status file.

确定模块202,用于若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;A determination module 202, configured to determine the total CPU usage rate for each business process according to the preset weight corresponding to the business process and the CPU usage rate if the total CPU usage rate is greater than a preset CPU usage rate threshold. The CPU usage indicator of the business process;

其中,所述权重是指某一因素或指标相对于某一事物的重要程度。Wherein, the weight refers to the importance of a certain factor or index relative to a certain thing.

其中,所述CPU使用率指标是与业务进程的权重相关联的一个指标,用于衡量业务进程当前的CPU占用情况。Wherein, the CPU usage index is an index associated with the weight of the business process, and is used to measure the current CPU usage of the business process.

本发明实施例中,可以预先设置物理主机的CPU总使用率阈值,物理主机的总CPU使用率大于所述CPU总使用率阈值时,确定当前的物理主机处于超负载状态,即当前物理主机剩余的CPU资源不足,所有的业务进程几乎不能分配到新的CPU资源,一旦有CPU资源释放出来,各个业务进程会根据需要抢占CPU资源,可能导致业务业务优先级低的业务进程抢占了业务优先级高的业务进程的CPU资源,使得业务优先级高的业务进程的运行性能低下甚至无法运行。因此需要对这些业务进程进行管理,以提高业务优先级高的业务进程的运行性能。可以根据业务进程的重要程度(业务优先级),预先给每个业务进程设置权重,业务优先级高的业务进程的权重的值比较大。将业务进程的权重乘以所述业务进程自身在物理主机上的CPU使用率,计算结果为所述业务进程的CPU使用率指标。比如,物理主机上当前只有A和B两个业务进程,A的权重为0.9、CPU使用率为50%,B的权重为0.1、CPU使用率为10%,那么A的CPU使用率指标为45%,B的CPU使用率指标为1%。In the embodiment of the present invention, the total CPU usage threshold of the physical host can be preset. When the total CPU usage of the physical host is greater than the total CPU usage threshold, it is determined that the current physical host is in an overloaded state, that is, the current physical host has remaining CPU resources are insufficient, and all business processes can hardly be allocated new CPU resources. Once CPU resources are released, each business process will preempt CPU resources as needed, which may cause business processes with low business priority to preempt business priority. The high CPU resources of business processes make the running performance of business processes with high business priority low or even unable to run. Therefore, it is necessary to manage these business processes so as to improve the operation performance of the business processes with high business priority. A weight may be set in advance for each business process according to the importance of the business process (business priority), and a business process with a higher business priority has a higher weight value. The weight of the business process is multiplied by the CPU usage of the business process itself on the physical host, and the calculation result is the CPU usage index of the business process. For example, there are currently only two business processes A and B on the physical host, and the weight of A is 0.9, and the CPU usage is 50%, and the weight of B is 0.1, and the CPU usage is 10%, so the CPU usage index of A is 45. %, B's CPU usage indicator is 1%.

所述确定模块202,还用于若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;The determination module 202 is further configured to determine that the business process is an exceeding process if the CPU usage index is greater than a preset index threshold corresponding to the business process;

本发明实施例中,可以预先设置每个业务进程的指标阈值。每个业务进程的指标阈值为所述业务进程允许的CPU最大占用的指标值。若所述业务进程的CPU使用率指标大于所述业务进程对应的预设指标阈值,表明所述业务进程的CPU占用超过了所述业务进程所允许的CPU最大占用,即该业务进程抢占了其它业务进程的CPU资源。确定所述业务进程为超标进程。In the embodiment of the present invention, the index threshold of each business process may be preset. The index threshold of each business process is the index value of the maximum CPU usage allowed by the business process. If the CPU usage index of the business process is greater than the preset index threshold corresponding to the business process, it indicates that the CPU usage of the business process exceeds the maximum CPU usage allowed by the business process, that is, the business process preempts other CPU resources of the business process. It is determined that the business process is an exceeding standard process.

所述确定模块202,还用于从所述超标进程中确定目标进程。The determining module 202 is further configured to determine a target process from the exceeding process.

挂起模块203,用于将所述目标进程挂起。The suspending module 203 is configured to suspend the target process.

本发明实施例中,SDK可以执行从Agent发送过来的挂起指令,将目标进程挂起。In the embodiment of the present invention, the SDK can execute the suspend command sent from the Agent to suspend the target process.

请一并参见图2和图3,图2是本发明公开的一种没有采用基于物理主机处理器的进程挂起方法的效果预测图;图3是本发明实现基于物理主机处理器的进程挂起方法的效果预测图;如图2所示,无论所述物理主机剩余的CPU资源多或少,业务优先级低的业务进程占用的CPU资源不变,即随着所述物理主机剩余的CPU资源越来越少,业务优先级高的业务进程可获得的CPU资源也越来越少,可能导致业务优先级高的业务进程因为不能获得足够的CPU资源而运行性能低下甚至无法运行。当使用了本发明实现的基于物理主机处理器的进程挂起方法后,如图3所述,当物理主机剩余的CPU资源变少时,会将业务优先级低的业务进程挂起,释放业务优先级低的业务进程所占用的CPU资源,使得业务优先级高的业务进程可以获得足够的CPU资源,从而提高了业务优先级高的业务进程的运行性能。Please refer to Fig. 2 and Fig. 3 together. Fig. 2 is an effect prediction diagram of a process suspension method based on a physical host processor not used in the present invention; Fig. 3 is a process suspension method based on a physical host processor in the present invention. The effect prediction diagram of the starting method; as shown in Figure 2, regardless of whether the remaining CPU resources of the physical host are more or less, the CPU resources occupied by the business processes with low service priority remain unchanged, that is, as the remaining CPU resources of the physical host Resources are getting less and less, and the CPU resources available to high-priority business processes are also getting less and less, which may lead to low performance or even failure of high-priority business processes because they cannot obtain enough CPU resources. After using the process suspension method based on the physical host processor implemented by the present invention, as shown in Figure 3, when the remaining CPU resources of the physical host become less, the service process with low service priority will be suspended, and the service priority will be released. The CPU resources occupied by low-level business processes can be reduced so that high-priority business processes can obtain sufficient CPU resources, thereby improving the running performance of high-priority business processes.

作为一种可选的实施方式,所述获取模块201,还用于所述确定模块202针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标之后,获取所述业务进程的标识;As an optional implementation manner, the acquiring module 201 is further configured for the determining module 202 to determine the business process according to the preset weight corresponding to the business process and the CPU usage rate for each business process. After the CPU usage index of the business process is obtained, the identification of the business process is obtained;

所述挂起模块203,还用于根据所述业务进程的标识、所述CPU使用率以及所述CPU使用率指标,在使用预先训练好的进程挂起模型判断所述业务进程需要被挂起时,将所述业务进程挂起。The suspending module 203 is further configured to judge that the business process needs to be suspended according to the identifier of the business process, the CPU usage rate and the CPU usage rate index by using a pre-trained process suspension model , suspend the business process.

其中,所述标识包括业务名称以及业务进程名称。Wherein, the identifier includes a business name and a business process name.

在该可选的实施方式中,可以将所述业务进程的标识、所述CPU使用率以及所述CPU使用率指标输入至预先训练好的进程挂起模型中,当所述进程挂起模型判断所述业务进程需要被挂起时,会输出挂起所述业务进程的指令给所述业务进程对应的SDK,所述SDK接收到挂起所述业务进程的指令后,将所述业务进程挂起。因为所述进程挂起模型是可以不断根据新的样本来学习优化,其判断业务进程是否需要被挂起比程序根据代码中设置的指标阈值等判断条件来判断业务进程是否需要被挂起更加准确,而且可以直接输出针对业务进程的挂起指令,不需要SDK向Agent请求发送挂起指令,降低了Agent的性能损耗。In this optional implementation, the identifier of the business process, the CPU usage rate, and the CPU usage rate indicator may be input into a pre-trained process suspension model, and when the process suspension model judges When the service process needs to be suspended, it will output an instruction to suspend the service process to the SDK corresponding to the service process, and the SDK will suspend the service process after receiving the instruction to suspend the service process. rise. Because the process suspension model can continuously learn and optimize based on new samples, it is more accurate to judge whether the business process needs to be suspended than the program judges whether the business process needs to be suspended according to the judgment conditions such as the indicator threshold set in the code , and can directly output the suspension command for the business process, without requiring the SDK to send the suspension command to the Agent request, reducing the performance loss of the Agent.

作为一种可选的实施方式,所述基于物理主机处理器的进程挂起装置还可以包括:As an optional implementation manner, the device for suspending processes based on the physical host processor may further include:

生成模块,用于所述确定模块202确定所述业务进程为超标进程之后,根据所述超标进程,生成警告信息;A generating module, configured to generate warning information according to the exceeding process after the determining module 202 determines that the business process is an exceeding process;

第一输出模块,用于输出所述警告信息;a first output module, configured to output the warning information;

所述确定模块202从所述超标进程中确定目标进程的方式具体为:The manner in which the determining module 202 determines the target process from the exceeding process is as follows:

接收进程/线程挂起指令;Receive process/thread suspension instruction;

将所述进程/线程挂起指令所指示的进程/线程确定为目标进程。Determine the process/thread indicated by the process/thread suspension instruction as the target process.

其中,所述警告信息可以包括但不限于业务进程的名称以及建议挂起分数。Wherein, the warning information may include but not limited to the name of the business process and the suggested suspension score.

其中,所述线程是指操作系统能够进行运算调度的最小单位。它被包含在进程之中,是进程中的实际运作单位。Wherein, the thread refers to the smallest unit that the operating system can perform operation scheduling. It is included in the process and is the actual operating unit in the process.

在该可选的实施方式中,在确定所述业务进程为超标进程之后,SDK可以生成关于所述超标进程的警告信息,例如,生成的警告信息可以为:当前物理主机的CPU处于超负载的状态,超标进程为test1,建议挂起分数为60分(满分100分)。其中,建议挂起分数高,表示该超标进程的CPU使用率比较高或该超标进程的业务优先级比较低,建议挂起分数可以根据预设的计算规则得出,建议挂起分数可以根据预设的计算规则得出,进程的CPU使用率越高、权重越低,其建议挂起分数越高。如何计算建议挂起分数,本发明对此不做具体限定。所述警告信息会输出至物理主机的界面上,提示用户当前物理主机处于超负载的状态,显示超标进程以及超标进程的建议挂起分数。用户可以参考建议挂起分数来决定挂起的进程,根据用户输入的进程/线程挂起指令,将所述挂起指令指示的进程/线程挂起。即由用户人工挂起进程或挂起某个进程包括的线程。In this optional implementation, after determining that the business process is an exceeding process, the SDK may generate warning information about the exceeding process. For example, the generated warning information may be: the CPU of the current physical host is overloaded. Status, the exceeding process is test1, and the suggested pending score is 60 points (out of 100 points). Among them, a high recommended pending score indicates that the CPU usage of the exceeding standard process is relatively high or the business priority of the exceeding standard process is relatively low. The recommended pending score can be obtained according to the preset calculation rules. According to the calculation rules set, the higher the CPU usage of a process and the lower its weight, the higher its recommended suspension score. How to calculate the suggestion suspension score is not specifically limited in the present invention. The warning information will be output to the interface of the physical host, prompting the user that the current physical host is in an overloaded state, and displaying the exceeding process and the suggested suspension score of the exceeding process. The user may refer to the suggested suspension score to determine the suspended process, and suspend the process/thread indicated by the suspension instruction according to the process/thread suspension instruction input by the user. That is, the user manually suspends the process or suspends the threads included in a certain process.

作为一种可选的实施方式,所述生成模块,还用于所述挂起模块203将所述目标进程挂起之后,根据被挂起的所述进程/线程的第一信息,生成学习样本;As an optional implementation manner, the generating module is further configured to generate a learning sample according to the first information of the suspended process/thread after the suspending module 203 suspends the target process ;

所述基于物理主机处理器的进程挂起装置还可以包括:The process suspension device based on the physical host processor may also include:

训练模块,用于使用所述学习样本进行训练,对所述进程挂起模型进行优化。A training module, configured to use the learning samples for training to optimize the process suspension model.

其中,所述第一信息包括但不限于所述进程的名称、业务名称、所述进程的CPU使用率,所述进程/线程被挂起的时间点,所述进程被挂起的具体情况(整个进程被挂起或进程包括的线程被挂起),如果只是挂起进程的线程,会记录被挂起的线程的数量。Wherein, the first information includes but is not limited to the name of the process, the name of the business, the CPU usage rate of the process, the time point when the process/thread is suspended, and the specific situation of the process being suspended ( The entire process is suspended or the threads included in the process are suspended), if only the threads of the process are suspended, the number of suspended threads will be recorded.

在该可选的实施方式中,可以根据所述第一信息,生成学习样本。SDK的学习模块可以使用所述学习样本进行训练,调整所述进程挂起模型对业务进程挂起的条件(各种数据)范围,提高所述进程挂起模型判断业务进程是否需要挂起的准确性,从而实现对所述进程挂起模型的优化。In this optional implementation manner, a learning sample may be generated according to the first information. The learning module of the SDK can use the learning samples for training, adjust the range of conditions (various data) that the process suspension model can suspend the business process, and improve the accuracy of the process suspension model in judging whether the business process needs to be suspended. performance, thereby achieving optimization of the process hang model.

作为一种可选的实施方式,所述确定模块202从所述超标进程中确定目标进程的方式具体为:As an optional implementation manner, the manner in which the determining module 202 determines the target process from the exceeding process is specifically:

从所述超标进程中,确定CPU使用率指标最小的进程为目标进程;From the process exceeding the standard, determine that the process with the smallest CPU usage index is the target process;

所述基于物理主机处理器的进程挂起装置还可以包括:The process suspension device based on the physical host processor may also include:

判断模块,用于判断所述目标进程包括的线程的运行属性是否为并发执行;A judging module, configured to judge whether the running attribute of the threads included in the target process is concurrent execution;

所述挂起模块203将所述目标进程挂起的方式具体为:The manner in which the suspending module 203 suspends the target process is as follows:

若所述目标进程包括的线程的运行属性为并发执行,将所述目标进程包括的任一个线程挂起;或If the running attribute of the threads included in the target process is concurrent execution, suspending any thread included in the target process; or

若所述目标进程包括的线程的运行属性不为并发执行,将所述目标进程挂起。If the running attribute of the threads included in the target process is not concurrent execution, suspend the target process.

在该可选的实施方式中,可以从超标进程中,确定CPU使用率指标最小的进程为目标进程,CPU使用率指标跟权重相关,CPU使用率指标最小的进程一般为业务优先级最低的进程,即所述目标进程的业务优先度比较低,可能是最低的。可以所述目标进程挂起,释放所述目标进程占用的CPU资源,给其它业务进程使用,确保业务优先级高的业务进程可以获得足够的CPU资源,可以提高业务优先级高的业务进程的运行性能。在对所述目标进程挂起之前,可以判断所述目标进程包括的线程的运行属性是否为并发执行,若所述目标进程包括的线程的运行属性为并发执行,将所述目标进程包括的任一个线程挂起,比如:若某个进程是用来发送一段数据,该进程包括的线程都是用来同时发送这段数据的一部分,那么该进程包括的线程的运行属性为并发执行,可以将该进程包括的任一个线程挂起,该进程可以继续工作,但该进程占用的CPU资源少了,可以让该进程继续工作的同时减轻系统负载。可选的,若所述目标进程包括的线程的运行属性不为并发执行,将所述目标进程挂起。In this optional implementation, the process with the smallest CPU usage index can be determined as the target process from the exceeding process, the CPU usage index is related to the weight, and the process with the smallest CPU usage index is generally the process with the lowest business priority , that is, the service priority of the target process is relatively low, possibly the lowest. The target process can be suspended, and the CPU resources occupied by the target process can be released for use by other business processes to ensure that the business processes with high business priority can obtain sufficient CPU resources, which can improve the operation of the business process with high business priority performance. Before the target process is suspended, it can be judged whether the running attribute of the thread included in the target process is concurrent execution, if the running attribute of the thread included in the target process is concurrent execution, any A thread is suspended, for example: if a process is used to send a piece of data, and the threads included in the process are all used to send part of the data at the same time, then the running attribute of the threads included in the process is concurrent execution, and the If any thread included in the process is suspended, the process can continue to work, but the CPU resources occupied by the process are reduced, so that the system load can be reduced while the process continues to work. Optionally, if the running attribute of the threads included in the target process is not concurrent execution, suspend the target process.

作为一种可选的实施方式,所述获取模块201,还用于获取当前时间;As an optional implementation manner, the acquiring module 201 is also configured to acquire the current time;

所述基于物理主机处理器的进程挂起装置还可以包括:The process suspension device based on the physical host processor may also include:

输入模块,用于将所述当前时间输入至预先训练好的进程挂起模型,获得预警信息;An input module, configured to input the current time into a pre-trained process suspension model to obtain early warning information;

第二输出模块,用于若所述预警信息不为空值,输出所述预警信息。The second output module is configured to output the early warning information if the early warning information is not null.

在该可选的实施方式中,可以获取当前的时间,将当前的时间输入至预先训练好的进程挂起模型,即使用所述进程挂起模型监测当前时间,若当前时间为预警时间范围内,会输出预警信息。比如,若进程A需要在6:00进行挂起,在5:45输出预警信息,提示用户物理主机会在6:00超负载,需要对进程A进行挂起。对于物理主机超负载,可以进行提前预警,让用户及时处理,避免物理主机上业务优先级高的业务进程因为物理主机超负载而运行性能低下。In this optional implementation, the current time can be obtained, and the current time can be input into the pre-trained process suspension model, that is, the process suspension model is used to monitor the current time, if the current time is within the warning time range , the warning message will be output. For example, if process A needs to be suspended at 6:00, a warning message will be output at 5:45, prompting the user that the physical host will be overloaded at 6:00, and process A needs to be suspended. For the overload of the physical host, early warning can be given to allow users to deal with it in time, so as to avoid the low performance of business processes with high business priority on the physical host due to the overload of the physical host.

作为一种可选的实施方式,所述获取模块201,还用于每隔预设的时间间隔,获取物理主机的CPU总使用率以及所述物理主机上每个业务进程的第二信息;As an optional implementation manner, the acquiring module 201 is further configured to acquire the total CPU usage rate of the physical host and the second information of each business process on the physical host every preset time interval;

所述基于物理主机处理器的进程挂起装置还可以包括:The process suspension device based on the physical host processor may also include:

更新模块,用于根据所述CPU总使用率以及所述每个业务进程的第二信息,更新所述物理主机上的虚拟表格,其中,所述虚拟表格用于存储所述CPU总使用率以及所述每个业务进程的第二信息。An update module, configured to update a virtual table on the physical host according to the total CPU usage and the second information of each business process, wherein the virtual table is used to store the total CPU usage and The second information of each business process.

其中,所述第二信息包括但不限于进程id、进程名称、业务名称、进程状态以及CPU使用率。Wherein, the second information includes but not limited to process id, process name, business name, process status and CPU usage.

其中,所述虚拟表格是指一种数据结构,可以用来保存数据。Wherein, the virtual table refers to a data structure that can be used to store data.

在该可选的实施方式中,可以每隔设的时间间隔去获取物理主机的CPU总使用率以及获取物理主机上每个业务进程的第二信息;使用Agent管理所述CPU总使用率以及所述第二信息,可以建立虚拟表格保存所述CPU总使用率以及所述第二信息或对所述虚拟表格的保存数据进行更新,并提供外部接口给其它程序查询。In this optional implementation manner, the total CPU utilization rate of the physical host and the second information of each business process on the physical host can be obtained at intervals set at intervals; the Agent is used to manage the total CPU utilization rate and the total utilization rate of the physical host. For the second information, a virtual table can be created to save the total CPU usage and the second information or update the stored data in the virtual table, and provide an external interface for other programs to query.

在图4所描述的基于物理主机处理器的进程挂起装置中,可以获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;从所述超标进程中确定目标进程,并将所述目标进程挂起。本发明中,通过监控CPU的总使用率,当CPU的总使用率大于预设的阈值时,表明当前物理主机的CPU可能被多个业务进程抢占,可以根据各个业务进程的权重以及对CPU的占用即CPU使用率,计算各个业务进程的CPU使用率指标,再从超标的业务进程(超标进程)中选择CPU使用率指标最小的进程挂起,即将业务优先级较低的业务进程所占用的CPU资源释放出来,让业务优先级高的业务进程可以使用这些被释放出来的CPU资源,可以提高业务优先级高的业务进程的运行性能。In the process suspension device based on the physical host processor described in FIG. 4, the total CPU usage of the processor of the physical host and the CPU usage of each business process on the physical host can be obtained; rate is greater than the preset total CPU usage threshold, for each of the business processes, according to the preset weight corresponding to the business process and the CPU usage, determine the CPU usage index of the business process; if the If the CPU usage index is greater than the preset index threshold corresponding to the business process, it is determined that the business process is an over-standard process; a target process is determined from the over-standard processes, and the target process is suspended. In the present invention, by monitoring the total usage rate of the CPU, when the total usage rate of the CPU is greater than the preset threshold, it indicates that the CPU of the current physical host may be preempted by multiple business processes, and the weight of each business process and the CPU Occupancy is the CPU usage rate, calculate the CPU usage rate index of each business process, and then select the process with the smallest CPU usage rate index from the over-standard business processes (over-standard processes) to suspend, that is, the business process occupied by the business process with a lower priority CPU resources are released, so that business processes with high business priority can use these released CPU resources, which can improve the running performance of business processes with high business priority.

如图5所示,图5是本发明实现基于物理主机处理器的进程挂起方法的较佳实施例的物理主机的结构示意图。所述物理主机3包括存储器31、至少一个处理器32、存储在所述存储器31中并可在所述至少一个处理器32上运行的计算机程序33及至少一条通讯总线34。As shown in FIG. 5 , FIG. 5 is a schematic structural diagram of a physical host in a preferred embodiment of the present invention for implementing a process suspension method based on a physical host processor. The physical host 3 includes a memory 31 , at least one processor 32 , a computer program 33 stored in the memory 31 and executable on the at least one processor 32 , and at least one communication bus 34 .

本领域技术人员可以理解,图5所示的示意图仅仅是所述物理主机3的示例,并不构成对所述物理主机3的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述物理主机3还可以包括输入输出设备、网络接入设备等。Those skilled in the art can understand that the schematic diagram shown in FIG. 5 is only an example of the physical host 3, and does not constitute a limitation on the physical host 3, and may include more or less components than those shown in the figure, or combine Certain components, or different components, for example, the physical host 3 may also include input and output devices, network access devices, and the like.

所述物理主机3所处的网络包括但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。The network where the physical host 3 is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN) and the like.

所述至少一个处理器32可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。该处理器32可以是微处理器或者该处理器32也可以是任何常规的处理器等,所述处理器32是所述物理主机3的控制中心,利用各种接口和线路连接整个物理主机3的各个部分。The at least one processor 32 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC ), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. This processor 32 can be microprocessor or this processor 32 also can be any conventional processor etc., described processor 32 is the control center of described physical host 3, utilizes various interfaces and lines to connect whole physical host 3 various parts of .

所述存储器31可用于存储所述计算机程序33和/或模块/单元,所述处理器32通过运行或执行存储在所述存储器31内的计算机程序和/或模块/单元,以及调用存储在存储器31内的数据,实现所述物理主机3的各种功能。所述存储器31可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据物理主机3的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器31可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 31 can be used to store the computer program 33 and/or module/unit, and the processor 32 runs or executes the computer program and/or module/unit stored in the memory 31, and calls the computer program stored in the memory 31 to realize various functions of the physical host 3. The memory 31 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created according to the use of the physical host 3 (such as audio data, phone book, etc.) and the like are stored. In addition, memory 31 can include high-speed random access memory, and can also include non-volatile memory, such as hard disk, internal memory, plug-in hard disk, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid state storage devices.

结合图1,所述物理主机3中的所述存储器31存储多个指令以实现一种基于物理主机处理器的进程挂起方法,所述处理器32可执行所述多个指令从而实现:Referring to FIG. 1, the memory 31 in the physical host 3 stores multiple instructions to implement a process suspension method based on the processor of the physical host, and the processor 32 can execute the multiple instructions to achieve:

获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;Obtain the total processor CPU usage of the physical host and the CPU usage of each business process on the physical host;

若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;If the total CPU usage is greater than the preset total CPU usage threshold, for each of the business processes, determine the CPU usage of the business process according to the preset weight corresponding to the business process and the CPU usage rate index;

若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;If the CPU usage index is greater than the preset index threshold corresponding to the business process, determine that the business process is an exceeding process;

从所述超标进程中确定目标进程,并将所述目标进程挂起。Determine a target process from the overrunning processes, and suspend the target process.

在一种可选的实施方式中,所述针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标之后,所述处理器32可执行所述多个指令从而实现:In an optional implementation manner, for each of the business processes, after determining the CPU usage index of the business process according to the preset weight corresponding to the business process and the CPU usage rate, the The processor 32 can execute the plurality of instructions to implement:

获取所述业务进程的标识;Obtain the identifier of the business process;

根据所述业务进程的标识、所述CPU使用率以及所述CPU使用率指标,在使用预先训练好的进程挂起模型判断所述业务进程需要被挂起时,将所述业务进程挂起。According to the identifier of the service process, the CPU usage rate and the CPU usage rate index, when it is judged that the service process needs to be suspended by using a pre-trained process suspension model, the service process is suspended.

在一种可选的实施方式中,所述确定所述业务进程为超标进程之后,所述处理器32可执行所述多个指令从而实现:In an optional implementation manner, after determining that the business process is an exceeding process, the processor 32 may execute the multiple instructions to achieve:

根据所述超标进程,生成警告信息;Generate a warning message according to the exceeding standard process;

输出所述警告信息;output the warning message;

所述从所述超标进程中确定目标进程包括:The determining the target process from the exceeding standard process includes:

接收进程/线程挂起指令;Receive process/thread suspension instruction;

将所述进程/线程挂起指令所指示的进程/线程确定为目标进程。Determine the process/thread indicated by the process/thread suspension instruction as the target process.

在一种可选的实施方式中,所述将所述目标进程挂起之后,所述处理器32可执行所述多个指令从而实现:In an optional implementation manner, after the target process is suspended, the processor 32 may execute the multiple instructions to achieve:

根据被挂起的所述进程/线程的第一信息,生成学习样本;generating a learning sample according to the first information of the suspended process/thread;

使用所述学习样本进行训练,对所述进程挂起模型进行优化。The learning samples are used for training, and the process suspension model is optimized.

在一种可选的实施方式中,所述从所述超标进程中确定目标进程包括:In an optional implementation manner, the determining the target process from the exceeding process includes:

从所述超标进程中,确定CPU使用率指标最小的进程为目标进程;From the process exceeding the standard, determine that the process with the smallest CPU usage index is the target process;

所述方法还包括:The method also includes:

判断所述目标进程包括的线程的运行属性是否为并发执行;Judging whether the running attribute of the thread included in the target process is concurrent execution;

所述将所述目标进程挂起包括:Said suspending said target process includes:

若所述目标进程包括的线程的运行属性为并发执行,将所述目标进程包括的任一个线程挂起;或If the running attribute of the threads included in the target process is concurrent execution, suspending any thread included in the target process; or

若所述目标进程包括的线程的运行属性不为并发执行,将所述目标进程挂起。If the running attribute of the threads included in the target process is not concurrent execution, suspend the target process.

在一种可选的实施方式中,所述处理器32可执行所述多个指令从而实现:In an optional implementation manner, the processor 32 may execute the multiple instructions to implement:

获取当前时间;Get the current time;

将所述当前时间输入至预先训练好的进程挂起模型,获得预警信息;Inputting the current time into a pre-trained process suspension model to obtain early warning information;

若所述预警信息不为空值,输出所述预警信息。If the warning information is not a null value, output the warning information.

在一种可选的实施方式中,所述处理器32可执行所述多个指令从而实现:In an optional implementation manner, the processor 32 may execute the multiple instructions to implement:

每隔预设的时间间隔,获取物理主机的CPU总使用率以及所述物理主机上每个业务进程的第二信息;Obtaining the total CPU utilization rate of the physical host and the second information of each business process on the physical host every preset time interval;

根据所述CPU总使用率以及所述每个业务进程的第二信息,更新所述物理主机上的虚拟表格,其中,所述虚拟表格用于存储所述CPU总使用率以及所述每个业务进程的第二信息。Update the virtual table on the physical host according to the total CPU usage and the second information of each service process, where the virtual table is used to store the total CPU usage and each service process The second information of the process.

具体地,所述处理器32对上述指令的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation method of the above instruction by the processor 32, reference may be made to the description of the relevant steps in the embodiment corresponding to FIG. 1 , which will not be repeated here.

在图5所描述的物理主机3中,可以获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;从所述超标进程中确定目标进程,并将所述目标进程挂起。本发明中,通过监控CPU的总使用率,当CPU的总使用率大于预设的阈值时,表明当前物理主机的CPU可能被多个业务进程抢占,可以根据各个业务进程的权重以及对CPU的占用即CPU使用率,计算各个业务进程的CPU使用率指标,再从超标的业务进程(超标进程)中选择CPU使用率指标最小的进程挂起,即将业务优先级较低的业务进程所占用的CPU资源释放出来,让业务优先级高的业务进程可以使用这些被释放出来的CPU资源,可以提高业务优先级高的业务进程的运行性能。In the physical host 3 described in FIG. 5 , the total processor CPU usage rate of the physical host and the CPU usage rate of each business process on the physical host can be obtained; if the total CPU usage rate is greater than the preset CPU total Utilization rate threshold, for each of the business processes, according to the preset weight corresponding to the business process and the CPU usage rate, determine the CPU usage rate index of the business process; if the CPU usage rate index is greater than the The preset indicator threshold corresponding to the business process determines that the business process is an over-standard process; determines a target process from the over-standard process, and suspends the target process. In the present invention, by monitoring the total usage rate of the CPU, when the total usage rate of the CPU is greater than the preset threshold, it indicates that the CPU of the current physical host may be preempted by multiple business processes, and the weight of each business process and the CPU Occupancy is the CPU usage rate, calculate the CPU usage rate index of each business process, and then select the process with the smallest CPU usage rate index from the over-standard business processes (over-standard processes) to suspend, that is, the business process occupied by the business process with a lower priority CPU resources are released, so that business processes with high business priority can use these released CPU resources, which can improve the running performance of business processes with high business priority.

所述物理主机3集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated modules/units of the physical host 3 are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excludes electrical carrier signals and telecommunication signals.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software function modules.

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned. In addition, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or devices stated in the system claims may also be realized by one unit or device through software or hardware. Secondary terms are used to denote names without implying any particular order.

最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent replacements can be made without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

Translated fromChinese
1.一种基于物理主机处理器的进程挂起方法,其特征在于,所述方法包括:1. A process suspension method based on a physical host processor, characterized in that the method comprises:获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;Obtain the total processor CPU usage of the physical host and the CPU usage of each business process on the physical host;若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;If the total CPU usage is greater than the preset total CPU usage threshold, for each of the business processes, determine the CPU usage of the business process according to the preset weight corresponding to the business process and the CPU usage rate index;若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;If the CPU usage index is greater than the preset index threshold corresponding to the business process, determine that the business process is an exceeding process;从所述超标进程中确定目标进程,并将所述目标进程挂起。Determine a target process from the overrunning processes, and suspend the target process.2.根据权利要求1所述的方法,其特征在于,所述针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标之后,所述方法还包括:2. The method according to claim 1, wherein, for each of the business processes, the CPU usage of the business process is determined according to the preset weight corresponding to the business process and the CPU usage rate After the rate indicator, the method also includes:获取所述业务进程的标识;Obtain the identifier of the business process;根据所述业务进程的标识、所述CPU使用率以及所述CPU使用率指标,在使用预先训练好的进程挂起模型判断所述业务进程需要被挂起时,将所述业务进程挂起。According to the identifier of the service process, the CPU usage rate and the CPU usage rate index, when it is judged that the service process needs to be suspended by using a pre-trained process suspension model, the service process is suspended.3.根据权利要求2所述的方法,其特征在于,所述确定所述业务进程为超标进程之后,所述方法还包括:3. The method according to claim 2, characterized in that, after determining that the business process is an exceeding process, the method further comprises:根据所述超标进程,生成警告信息;Generate a warning message according to the exceeding standard process;输出所述警告信息;output the warning message;所述从所述超标进程中确定目标进程包括:The determining the target process from the exceeding standard process includes:接收进程/线程挂起指令;Receive process/thread suspension instruction;将所述进程/线程挂起指令所指示的进程/线程确定为目标进程。Determine the process/thread indicated by the process/thread suspension instruction as the target process.4.根据权利要求3所述的方法,其特征在于,所述将所述目标进程挂起之后,所述方法还包括:4. The method according to claim 3, wherein after the target process is suspended, the method further comprises:根据被挂起的所述进程/线程的第一信息,生成学习样本;generating a learning sample according to the first information of the suspended process/thread;使用所述学习样本进行训练,对所述进程挂起模型进行优化。The learning samples are used for training, and the process suspension model is optimized.5.根据权利要求1所述的方法,其特征在于,所述从所述超标进程中确定目标进程包括:5. The method according to claim 1, wherein said determining the target process from the over-standard process comprises:从所述超标进程中,确定CPU使用率指标最小的进程为目标进程;From the process exceeding the standard, determine that the process with the smallest CPU usage index is the target process;所述方法还包括:The method also includes:判断所述目标进程包括的线程的运行属性是否为并发执行;Judging whether the running attribute of the thread included in the target process is concurrent execution;所述将所述目标进程挂起包括:Said suspending said target process includes:若所述目标进程包括的线程的运行属性为并发执行,将所述目标进程包括的任一个线程挂起;或If the running attribute of the threads included in the target process is concurrent execution, suspending any thread included in the target process; or若所述目标进程包括的线程的运行属性不为并发执行,将所述目标进程挂起。If the running attribute of the threads included in the target process is not concurrent execution, suspend the target process.6.根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1 to 5, further comprising:获取当前时间;Get the current time;将所述当前时间输入至预先训练的进程挂起模型,获得预警信息;Inputting the current time into the pre-trained process suspension model to obtain early warning information;若所述预警信息不为空值,输出所述预警信息。If the warning information is not a null value, output the warning information.7.根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:7. The method according to any one of claims 1 to 5, wherein the method further comprises:每隔预设的时间间隔,获取物理主机的CPU总使用率以及所述物理主机上每个业务进程的第二信息;Obtaining the total CPU utilization rate of the physical host and the second information of each business process on the physical host every preset time interval;根据所述CPU总使用率以及所述每个业务进程的第二信息,更新所述物理主机上的虚拟表格,其中,所述虚拟表格用于存储所述CPU总使用率以及所述每个业务进程的第二信息。Update the virtual table on the physical host according to the total CPU usage and the second information of each service process, where the virtual table is used to store the total CPU usage and each service process The second information of the process.8.一种基于物理主机处理器的进程挂起装置,其特征在于,所述基于物理主机处理器的进程挂起装置包括:8. A process suspension device based on a physical host processor, characterized in that the process suspension device based on a physical host processor comprises:获取模块,用于获取物理主机的处理器CPU总使用率以及所述物理主机上每个业务进程的CPU使用率;An acquisition module, configured to acquire the total processor CPU usage of the physical host and the CPU usage of each business process on the physical host;确定模块,用于若所述CPU总使用率大于预设的CPU总使用率阈值,针对每个所述业务进程,根据所述业务进程对应的预设权重以及所述CPU使用率,确定所述业务进程的CPU使用率指标;A determining module, configured to determine, for each of the business processes, according to the preset weight corresponding to the business process and the CPU usage rate, if the total CPU usage rate is greater than a preset total CPU usage rate threshold The CPU usage indicator of the business process;所述确定模块,还用于若所述CPU使用率指标大于所述业务进程对应的预设指标阈值,确定所述业务进程为超标进程;The determination module is further configured to determine that the business process is an exceeding process if the CPU usage index is greater than the preset index threshold corresponding to the business process;所述确定模块,还用于从所述超标进程中确定目标进程;The determining module is further configured to determine a target process from the exceeding process;挂起模块,用于将所述目标进程挂起。The suspend module is used to suspend the target process.9.一种物理主机,其特征在于,所述物理主机包括处理器和存储器,所述处理器用于执行存储器中存储的计算机程序以实现如权利要求1至7中任意一项所述的基于物理主机处理器的进程挂起方法。9. A physical host, characterized in that the physical host includes a processor and a memory, the processor is used to execute a computer program stored in the memory to realize the physical-based The host processor's process suspend method.10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有至少一个指令,所述至少一个指令被处理器执行时实现如权利要求1至7任意一项所述的基于物理主机处理器的进程挂起方法。10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the method according to any one of claims 1 to 7 is implemented. A process suspension method based on the physical host processor.
CN201910569779.1A2019-06-272019-06-27 Process suspension method based on physical host processor and related equipmentPendingCN110286961A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910569779.1ACN110286961A (en)2019-06-272019-06-27 Process suspension method based on physical host processor and related equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910569779.1ACN110286961A (en)2019-06-272019-06-27 Process suspension method based on physical host processor and related equipment

Publications (1)

Publication NumberPublication Date
CN110286961Atrue CN110286961A (en)2019-09-27

Family

ID=68019966

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910569779.1APendingCN110286961A (en)2019-06-272019-06-27 Process suspension method based on physical host processor and related equipment

Country Status (1)

CountryLink
CN (1)CN110286961A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113961359A (en)*2021-11-082022-01-21杭州安恒信息技术股份有限公司System resource control method and device based on terminal process fusing algorithm
CN114070634A (en)*2021-11-222022-02-18安天科技集团股份有限公司SMTP (simple message transfer protocol) -based secret stealing behavior detection method and device and electronic equipment
CN116028204A (en)*2022-05-162023-04-28荣耀终端有限公司 Process control method and electronic device

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102257481A (en)*2008-12-232011-11-23思杰系统有限公司Systems and methods for controlling, by a hypervisor, access to physical resources
CN102946486A (en)*2012-11-202013-02-27惠州Tcl移动通信有限公司Background application automatic clearing method based on mobile phone and mobile phone
CN105528052A (en)*2015-12-092016-04-27上海斐讯数据通信技术有限公司Electronic equipment power consumption reduction method and device and electronic equipment with display screen
CN105589546A (en)*2015-12-212016-05-18北京金山安全软件有限公司Information detection method and device
CN105955826A (en)*2016-05-102016-09-21广东睿江云计算股份有限公司Control method and device of quality of service in cloud host system
CN107145389A (en)*2017-03-092017-09-08深圳市先河系统技术有限公司A kind of system process monitoring method and computing device
CN107450984A (en)*2017-07-252017-12-08广东欧珀移动通信有限公司 Task scheduling method, device, storage medium and electronic equipment
CN107526637A (en)*2017-08-012017-12-29广东欧珀移动通信有限公司Applied program processing method, device, mobile terminal and storage medium
CN107885544A (en)*2017-10-312018-04-06广东欧珀移动通信有限公司 Application program management and control method, device, medium and electronic equipment
CN109324878A (en)*2018-09-202019-02-12郑州云海信息技术有限公司 A kind of control method of process CPU occupancy rate and related equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102257481A (en)*2008-12-232011-11-23思杰系统有限公司Systems and methods for controlling, by a hypervisor, access to physical resources
CN102946486A (en)*2012-11-202013-02-27惠州Tcl移动通信有限公司Background application automatic clearing method based on mobile phone and mobile phone
CN105528052A (en)*2015-12-092016-04-27上海斐讯数据通信技术有限公司Electronic equipment power consumption reduction method and device and electronic equipment with display screen
CN105589546A (en)*2015-12-212016-05-18北京金山安全软件有限公司Information detection method and device
CN105955826A (en)*2016-05-102016-09-21广东睿江云计算股份有限公司Control method and device of quality of service in cloud host system
CN107145389A (en)*2017-03-092017-09-08深圳市先河系统技术有限公司A kind of system process monitoring method and computing device
CN107450984A (en)*2017-07-252017-12-08广东欧珀移动通信有限公司 Task scheduling method, device, storage medium and electronic equipment
CN107526637A (en)*2017-08-012017-12-29广东欧珀移动通信有限公司Applied program processing method, device, mobile terminal and storage medium
CN107885544A (en)*2017-10-312018-04-06广东欧珀移动通信有限公司 Application program management and control method, device, medium and electronic equipment
CN109324878A (en)*2018-09-202019-02-12郑州云海信息技术有限公司 A kind of control method of process CPU occupancy rate and related equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113961359A (en)*2021-11-082022-01-21杭州安恒信息技术股份有限公司System resource control method and device based on terminal process fusing algorithm
CN114070634A (en)*2021-11-222022-02-18安天科技集团股份有限公司SMTP (simple message transfer protocol) -based secret stealing behavior detection method and device and electronic equipment
CN114070634B (en)*2021-11-222024-02-27安天科技集团股份有限公司SMTP protocol-based secret stealing behavior detection method and device and electronic equipment
CN116028204A (en)*2022-05-162023-04-28荣耀终端有限公司 Process control method and electronic device
CN116028204B (en)*2022-05-162023-10-20荣耀终端有限公司Process management and control method and electronic equipment

Similar Documents

PublicationPublication DateTitle
WO2021139438A1 (en)Big data resource processing method and apparatus, and terminal and storage medium
WO2021066621A1 (en)Intelligent cloud platform to host resource efficient edge network function
CN108776934A (en)Distributed data computational methods, device, computer equipment and readable storage medium storing program for executing
CN103763346B (en) A distributed resource scheduling method and device
CN109152061B (en) Channel deployment method, device, server and storage medium
CN112130963A (en)Virtual machine task scheduling method and device, computer equipment and storage medium
CN110275760A (en) Process suspending method based on virtual host processor and its related equipment
CN112925634B (en) Heterogeneous resource scheduling method and system
CN106648557B (en) Method and device for sharing application programming interface API
CN109840142A (en)Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN110286961A (en) Process suspension method based on physical host processor and related equipment
CN109614236B (en)Cluster resource dynamic adjustment method, device and equipment and readable storage medium
WO2017166643A1 (en)Method and device for quantifying task resources
CN112541640A (en)Resource authority management method and device, electronic equipment and computer storage medium
WO2022178933A1 (en)Context-based voice sentiment detection method and apparatus, device and storage medium
US20190044832A1 (en)Technologies for optimized quality of service acceleration
WO2019029721A1 (en)Task scheduling method, apparatus and device, and storage medium
CN118394592A (en) A Paas platform based on cloud computing
CN115576534B (en) Atomic service orchestration method, device, electronic equipment and storage medium
CN112256783A (en)Data export method and device, electronic equipment and storage medium
CN116010056A (en) An automatic task scheduling management method, device, equipment and storage medium
CN108028806A (en) Method and device for allocating virtual resources in network function virtualization NFV network
CN110286949A (en) Process suspending method and related equipment based on reading and writing of physical host storage device
CN110286948A (en) Process suspension method and related equipment based on reading and writing of virtual host storage device
WO2020000724A1 (en)Method, electronic device and medium for processing communication load between hosts of cloud platform

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20190927


[8]ページ先頭

©2009-2025 Movatter.jp