CN106708619B - Resource management method and device - Google Patents
Resource management method and device Download PDFInfo
- Publication number
- CN106708619B CN106708619B CN201510429902.1A CN201510429902A CN106708619B CN 106708619 B CN106708619 B CN 106708619B CN 201510429902 A CN201510429902 A CN 201510429902A CN 106708619 B CN106708619 B CN 106708619B
- Authority
- CN
- China
- Prior art keywords
- application
- physical resource
- physical
- user space
- kernel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明实施例提供一种资源管理方法及装置,该方法包括:获取物理资源使用信息,所述物理资源使用信息用于指示应用运行所需要的物理资源;根据所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口,以使所述应用直接访问所述物理资源;从而减少了不同应用对操作系统内核的资源争用,提升了系统性能。
Embodiments of the present invention provide a resource management method and device. The method includes: acquiring physical resource usage information, where the physical resource usage information is used to indicate physical resources required for application operation; The application allocates an independent physical resource, and allocates an interface for directly accessing the physical resource to the application, so that the application can directly access the physical resource; thereby reducing the resource contention of the operating system kernel by different applications, Improved system performance.
Description
技术领域technical field
本发明实施例涉及计算机技术,尤其涉及一种资源管理方法及装置。Embodiments of the present invention relate to computer technologies, and in particular, to a resource management method and apparatus.
背景技术Background technique
目前通用的操作系统中,应用无法感知和/或控制物理资源,即当任意所述应用需要访问资源时,都需要陷入所述操作系统的内核,通过所述内核访问资源。因此,当所述操作系统的多个应用都需要访问资源时,会引起内核资源争用,导致系统性能下降。In current general operating systems, applications cannot perceive and/or control physical resources, that is, when any application needs to access resources, it needs to fall into the kernel of the operating system and access resources through the kernel. Therefore, when multiple applications of the operating system all need to access resources, contention of kernel resources will occur, resulting in system performance degradation.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种资源管理方法及装置,提升了系统性能。Embodiments of the present invention provide a resource management method and device, which improve system performance.
第一方面,本发明实施例提供一种资源管理方法,包括:In a first aspect, an embodiment of the present invention provides a resource management method, including:
获取物理资源使用信息,所述物理资源使用信息用于指示应用运行所需要的物理资源;Obtain physical resource usage information, where the physical resource usage information is used to indicate physical resources required for application operation;
根据所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口,以使所述应用直接访问所述物理资源。An independent physical resource is allocated to the application according to the physical resource usage information, and an interface for directly accessing the physical resource is allocated to the application, so that the application can directly access the physical resource.
结合第一方面,在第一方面的第一种可能的实现方式中,所述获取物理资源使用信息,包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the acquiring physical resource usage information includes:
获取预设的所述物理资源使用信息;或者,Acquire the preset physical resource usage information; or,
根据所述应用发送的硬件控制数据结构获取所述物理资源使用信息;其中,所述硬件控制数据结构包括所述物理资源使用信息。The physical resource usage information is acquired according to a hardware control data structure sent by the application; wherein the hardware control data structure includes the physical resource usage information.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述为所述应用分配用于直接访问所述物理资源的接口,包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the allocating an interface for directly accessing the physical resource for the application includes: :
为所述应用建立用户空间系统服务功能库,并将所述应用所需的内核的管理数据结构复制到所述用户空间系统服务功能库中,其中,所述管理数据结构用于直接访问所述物理资源。establishing a user space system service function library for the application, and copying the management data structure of the kernel required by the application into the user space system service function library, wherein the management data structure is used to directly access the physical resources.
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,还包括:为所述应用分配用于管理所述物理资源的管理策略;其中,所述用户空间系统服务功能库包括:所述管理策略。With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the method further includes: allocating a management policy for managing the physical resource to the application; wherein the The user space system service function library includes: the management strategy.
结合第一方面、第一方面的第一种至第三种任一种可能的实现方式,在第一方面的第四种可能的实现方式中,所述根据所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口之后,还包括:With reference to the first aspect and any one of the possible implementation manners of the first to third aspects of the first aspect, in a fourth possible implementation manner of the first aspect, the physical resource usage information is the After the application allocates independent physical resources, and allocates an interface for directly accessing the physical resources to the application, the method further includes:
动态更新所述独立的物理资源,并同步更新操作系统内核和所述用户空间系统服务功能库中的内核管理数据结构。The independent physical resources are dynamically updated, and the operating system kernel and the kernel management data structure in the user space system service function library are updated synchronously.
结合第一方面、第一方面的第一种至第四种任一种可能的实现方式,在第一方面的第五种可能的实现方式中,所述根据所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口之后,还包括:With reference to the first aspect and any of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, the use of the physical resource information is the After the application allocates independent physical resources, and allocates an interface for directly accessing the physical resources to the application, the method further includes:
设置异常处理函数,所述异常处理函数用于当所述应用触发异常时,所述应用根据所述异常处理函数进行异常处理。An exception handling function is set, and the exception handling function is used for the application to perform exception handling according to the exception handling function when the application triggers an exception.
结合第一方面、第一方面的第一种至第五种任一种可能的实现方式,在第一方面的第六种可能的实现方式中,所述物理资源使用信息包括以下至少一种:物理内存信息、中央处理器CPU信息、寄存器访问控制权限、输入/输出设备读写权限及特权指令执行权限。With reference to the first aspect and any of the first to fifth possible implementations of the first aspect, in a sixth possible implementation of the first aspect, the physical resource usage information includes at least one of the following: Physical memory information, central processing unit CPU information, register access control authority, input/output device read and write authority, and privileged instruction execution authority.
第二方面,本发明实施例提供一种资源管理装置,包括:In a second aspect, an embodiment of the present invention provides a resource management device, including:
获取模块,用于获取物理资源使用信息,所述物理资源使用信息用于指示应用运行所需要的物理资源;an acquisition module, configured to acquire physical resource usage information, where the physical resource usage information is used to indicate physical resources required for application operation;
分配模块,用于根据所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口,以使所述应用直接访问所述物理资源。an allocation module, configured to allocate an independent physical resource to the application according to the physical resource usage information, and allocate an interface for directly accessing the physical resource to the application, so that the application can directly access the physical resource .
结合第二方面,在第二方面的第一种可能的实现方式中,所述获取模块具体用于:With reference to the second aspect, in a first possible implementation manner of the second aspect, the obtaining module is specifically used for:
获取预设的所述物理资源使用信息;或者,Acquire the preset physical resource usage information; or,
根据所述应用发送的硬件控制数据结构获取所述物理资源使用信息;其中,所述硬件控制数据结构包括所述物理资源使用信息。The physical resource usage information is acquired according to a hardware control data structure sent by the application; wherein the hardware control data structure includes the physical resource usage information.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述分配模块具体用于:With reference to the second aspect or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the allocation module is specifically used for:
为所述应用建立用户空间系统服务功能库,并将所述应用所需的内核的管理数据结构复制到所述用户空间系统服务功能库中,其中,所述管理数据结构用于直接访问所述物理资源。establishing a user space system service function library for the application, and copying the management data structure of the kernel required by the application into the user space system service function library, wherein the management data structure is used to directly access the physical resources.
结合第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,所述分配模块还用于:为所述应用分配用于管理所述物理资源的管理策略;其中,所述用户空间系统服务功能库包括:所述管理策略。With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the allocation module is further configured to: allocate a management strategy for managing the physical resources to the application ; wherein, the user space system service function library includes: the management policy.
结合第二方面、第二方面的第一种至第三种任一种可能的实现方式,在第二方面的第四种可能的实现方式中,所述装置还包括:With reference to the second aspect and any of the first to third possible implementations of the second aspect, in a fourth possible implementation of the second aspect, the apparatus further includes:
更新模块,用于动态更新所述独立的物理资源,并同步更新操作系统内核和所述用户空间系统服务功能库中的内核管理数据结构。The updating module is used for dynamically updating the independent physical resource, and synchronously updating the operating system kernel and the kernel management data structure in the user space system service function library.
结合第二方面、第二方面的第一种至第四种任一种可能的实现方式,在第二方面的第五种可能的实现方式中,所述装置还包括:With reference to the second aspect and any of the first to fourth possible implementations of the second aspect, in a fifth possible implementation of the second aspect, the apparatus further includes:
异常处理模块,用于设置异常处理函数,所述异常处理函数用于当所述应用触发异常时,所述应用根据所述异常处理函数进行异常处理。The exception handling module is configured to set an exception handling function, and the exception handling function is used for the application to perform exception handling according to the exception handling function when the application triggers an exception.
结合第二方面、第二方面的第一种至第五种任一种可能的实现方式,在第二方面的第六种可能的实现方式中,所述物理资源使用信息包括以下至少一种:物理内存信息、中央处理器CPU信息、寄存器访问控制权限、输入/输出设备读写权限及特权指令执行权限。With reference to the second aspect and any of the first to fifth possible implementations of the second aspect, in a sixth possible implementation of the second aspect, the physical resource usage information includes at least one of the following: Physical memory information, central processing unit CPU information, register access control authority, input/output device read and write authority, and privileged instruction execution authority.
本发明中,通过获取物理资源使用信息,所述物理资源使用信息用于指示应用运行所需要的物理资源;进一步地,根据所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口,以使所述应用直接访问所述物理资源;从而减少了不同应用对操作系统内核的资源争用,提升了系统性能。In the present invention, by acquiring physical resource usage information, the physical resource usage information is used to indicate the physical resources required for application operation; further, according to the physical resource usage information, an independent physical resource is allocated to the application, and an The application allocates an interface for directly accessing the physical resource, so that the application can directly access the physical resource; thus, resource contention of different applications on the operating system kernel is reduced, and system performance is improved.
附图说明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 briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1A为本发明资源管理方法的操作系统架构图一;1A is an operating system architecture diagram 1 of the resource management method of the present invention;
图1B为本发明资源管理方法实施例一的流程示意图;1B is a schematic flowchart of Embodiment 1 of a resource management method according to the present invention;
图2A为本发明资源管理方法的操作系统架构图二;2A is a second operating system architecture diagram of the resource management method of the present invention;
图2B为本发明资源管理方法实施例三的示意图;2B is a schematic diagram of Embodiment 3 of the resource management method of the present invention;
图2C为本发明资源管理方法实施例四的示意图;2C is a schematic diagram of Embodiment 4 of the resource management method of the present invention;
图3为本发明资源管理装置实施例一的结构示意图;3 is a schematic structural diagram of Embodiment 1 of a resource management apparatus according to the present invention;
图4为本发明资源管理装置实施例二的结构示意图;4 is a schematic structural diagram of Embodiment 2 of a resource management apparatus according to the present invention;
图5为本发明资源管理装置实施例三的结构示意图。FIG. 5 is a schematic structural diagram of Embodiment 3 of a resource management apparatus according to the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
图1A为本发明资源管理方法的操作系统架构图一,图1B为本发明资源管理方法实施例一的流程示意图。本实施例的执行主体为配置在操作系统内核中的资源管理装置,该装置可以通过软件和/或硬件实现。本实施例的方案应用于通用的操作系统中,实现了用户态应用可以绕过操作系统内核直接访问和管理为所述应用分配的物理资源。如图1B所示,本实施例的方法可以包括:FIG. 1A is a first operating system architecture diagram of the resource management method of the present invention, and FIG. 1B is a schematic flowchart of Embodiment 1 of the resource management method of the present invention. The execution body of this embodiment is a resource management apparatus configured in the operating system kernel, and the apparatus may be implemented by software and/or hardware. The solution of this embodiment is applied to a general operating system, so that a user-mode application can bypass the operating system kernel to directly access and manage the physical resources allocated for the application. As shown in FIG. 1B , the method of this embodiment may include:
S101、获取物理资源使用信息,所述物理资源使用信息用于指示应用运行所需要的物理资源。S101. Obtain physical resource usage information, where the physical resource usage information is used to indicate physical resources required for running an application.
如图1A所示,操作系统至少包括:硬件资源、操作系统内核和应用;其中,所述操作系统内核中设置有资源管理装置。本发明实施例中,获取用于指示应用运行所需要的物理资源的物理资源使用信息;可选地,所述物理资源使用信息包括以下至少一种:物理内存信息、中央处理器CPU信息、寄存器访问控制权限、输入/输出设备读写权限及特权指令执行权限;可选地,所述物理资源使用信息还可包括其它物理资源信息,本发明对此并不作限制。As shown in FIG. 1A , the operating system at least includes: hardware resources, an operating system kernel and an application; wherein, a resource management device is provided in the operating system kernel. In this embodiment of the present invention, physical resource usage information for indicating physical resources required for running an application is obtained; optionally, the physical resource usage information includes at least one of the following: physical memory information, central processing unit CPU information, registers Access control authority, input/output device read and write authority, and privileged instruction execution authority; optionally, the physical resource usage information may also include other physical resource information, which is not limited in the present invention.
可选地,步骤S101包括:获取预设的所述物理资源使用信息;或者,根据所述应用发送的硬件控制数据结构获取所述物理资源使用信息;其中,所述硬件控制数据结构包括所述物理资源使用信息。Optionally, step S101 includes: acquiring the preset physical resource usage information; or acquiring the physical resource usage information according to a hardware control data structure sent by the application; wherein the hardware control data structure includes the Physical resource usage information.
本发明实施例中,所述物理资源使用信息可为预设的物理资源使用信息,或者为根据所述应用发送的包括所述物理资源使用信息的硬件控制数据结构获取所述物理资源使用信息。In this embodiment of the present invention, the physical resource usage information may be preset physical resource usage information, or the physical resource usage information may be acquired according to a hardware control data structure including the physical resource usage information sent by the application.
S102、根据所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口,以使所述应用直接访问所述物理资源。S102. Allocate an independent physical resource to the application according to the physical resource usage information, and allocate an interface for directly accessing the physical resource to the application, so that the application can directly access the physical resource.
本发明实施例中,在获取到用于指示应用运行所需要的物理资源的物理资源使用信息后,根据所述物理资源使用信息为所述应用分配独立的物理资源(即其它应用不可使用的物理资源)(如CPU、物理内存、I/O设备及特权指令执行权限等),并为所述应用分配用于直接访问所述物理资源的接口,以使所述应用通过所述接口直接访问所述物理资源,即所述应用升级为可绕过操作系统内核直接访问所述物理资源(如直接执行特权指令、直接管理CPU、直接管理物理内存和直接访问I/O设备等)的提权应用;从而减少了不同应用对操作系统内核的资源争用,提升了系统性能。In this embodiment of the present invention, after obtaining physical resource usage information indicating physical resources required for running an application, an independent physical resource (that is, physical resources that cannot be used by other applications) is allocated to the application according to the physical resource usage information. resources) (such as CPU, physical memory, I/O devices, and privileged instruction execution authority, etc.), and assign the application an interface for directly accessing the physical resource, so that the application can directly access all the physical resources through the interface. The physical resource, that is, the application is upgraded to an elevated application that can bypass the operating system kernel and directly access the physical resource (such as directly executing privileged instructions, directly managing CPU, directly managing physical memory, and directly accessing I/O devices, etc.). ; thereby reducing the resource contention of the operating system kernel by different applications and improving system performance.
可选地,为所述应用分配用于直接访问所述物理资源的接口包括:为所述应用建立用户空间系统服务功能库,并将所述应用所需的内核的管理数据结构复制到所述用户空间系统服务功能库中,其中,所述管理数据结构用于直接访问所述物理资源。Optionally, allocating an interface for directly accessing the physical resource to the application includes: establishing a user space system service function library for the application, and copying the management data structure of the kernel required by the application to the application. In the user space system service function library, the management data structure is used to directly access the physical resource.
本发明实施例中为了保证营养兼容性,通过为所述应用建立用户空间系统服务功能库,并将所述应用所需的内核的管理数据结构复制到所述用户空间系统服务功能库中的方式为所述应用提供用于直接访问所述物理资源的接口;可选地,根据所述物理资源初始化处理器虚拟化硬件,并由用户空间系统服务功能库初始化所述独立的物理资源,以便于通过所述用户空间系统服务功能库向所述应用提供接口(可选地,所述用户空间系统服务功能库中包括所述独立的物理资源对应的服务管理函数例程,所述应用执行时直接调用所述用户空间系统服务功能库中的服务管理函数例程即可访问或管理所述物理资源,无需陷入操作系统内核);即提权后的应用可直接通过管理、更新所述用户空间系统服务功能库中的所述管理数据结构的操作来维持应用的正常运行。In this embodiment of the present invention, in order to ensure nutritional compatibility, a user space system service function library is established for the application, and the management data structure of the kernel required by the application is copied into the user space system service function library. Provide the application with an interface for directly accessing the physical resource; optionally, initialize processor virtualization hardware according to the physical resource, and initialize the independent physical resource by the user space system service function library, so as to facilitate Provide an interface to the application through the user space system service function library (optionally, the user space system service function library includes service management function routines corresponding to the independent physical resources, and the application directly executes The physical resource can be accessed or managed by calling the service management function routine in the service function library of the user space system, without being trapped in the operating system kernel); that is, the application after privilege escalation can directly manage and update the user space system by The operation of the management data structure in the service function library is used to maintain the normal operation of the application.
可选地,本发明资源管理方法还包括:为所述应用分配用于管理所述物理资源的管理策略;其中,所述用户空间系统服务功能库包括:所述管理策略;以便于所述应用通过所述用户空间系统服务功能库中的接口和/或管理策略直接访问或管理所述物理资源。Optionally, the resource management method of the present invention further includes: allocating a management strategy for managing the physical resources to the application; wherein, the user space system service function library includes: the management strategy; in order to facilitate the application The physical resources are directly accessed or managed through interfaces and/or management policies in the user space system service function library.
在本发明实施方式中,所述操作系统可以是开源的Linux操作系统,Microsoft公司开发的Windows操作系统,Google公司的Android系统、或Apple公司开发的iOS系统等操作系统,或者是Vxworks这类的嵌入式操作系统。所述操作系统包括用于控制和管理常规系统任务,例如内存管理、存储设备控制、电源管理等,以及有助于各种软硬件之间通信的各种组件和/或驱动器。In the embodiment of the present invention, the operating system may be an open-source Linux operating system, a Windows operating system developed by Microsoft, an Android system developed by Google, an operating system such as an iOS system developed by Apple, or an operating system such as Vxworks. Embedded operating system. The operating system includes various components and/or drivers for controlling and managing conventional system tasks, such as memory management, storage device control, power management, etc., as well as facilitating communication between various hardware and software.
本发明实施例中,通过获取物理资源使用信息,所述物理资源使用信息用于指示应用运行所需要的物理资源;进一步地,根据所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口,以使所述应用直接访问所述物理资源;即所述应用可绕过操作系统内核直接访问所述物理资源,从而减少了不同应用对操作系统内核的资源争用,提升了系统性能。In this embodiment of the present invention, by acquiring physical resource usage information, the physical resource usage information is used to indicate the physical resources required for the application to run; further, independent physical resources are allocated to the application according to the physical resource usage information, and assign the application an interface for directly accessing the physical resource, so that the application can directly access the physical resource; that is, the application can directly access the physical resource bypassing the operating system kernel, thereby reducing the The resource contention of the application on the operating system kernel improves the system performance.
当所述I/O设备为共享设备时,为了保证所述应用访问I/O设备的安全性,可选地,通过消息式系统调用与其它应用共享所述I/O设备,如通过所述应用对应的用户空间系统服务功能库提供的接口,向操作系统内核发送请求所述I/O设备的消息。When the I/O device is a shared device, in order to ensure the security of the application accessing the I/O device, optionally, the I/O device is shared with other applications through a message system call, as described by The interface provided by the corresponding user space system service function library is applied, and a message requesting the I/O device is sent to the operating system kernel.
可选地,步骤S102之后还包括:动态更新所述独立的物理资源,并同步更新操作系统内核和所述用户空间系统服务功能库中的内核管理数据结构。Optionally, after step S102, the method further includes: dynamically updating the independent physical resource, and synchronously updating the operating system kernel and the kernel management data structure in the user space system service function library.
本发明实施例中,可选地,当所述提权应用在运行过程中需要更改物理资源(如更改控制权限或者申请物理内存、CPU、I/O设备等)时,所述提权应用可通过调用所述用户空间系统服务功能库中包含的用于与操作系统内核交互的接口,向所述操作系统内核中的所述资源管理装置发送请求消息(所述请求消息中包含所述提权应用需要更新的物理资源信息),以使所述资源管理装置根据所述请求消息动态更新所述独立的物理资源;可选地,根据所述需要更新的物理资源信息更新用户空间系统服务功能库(即用户态指定内存)和操作系统内核中的管理数据结构。In this embodiment of the present invention, optionally, when the privilege escalation application needs to change physical resources (such as changing control permissions or applying for physical memory, CPU, I/O devices, etc.) during the running process, the privilege escalation application may Send a request message to the resource management device in the operating system kernel by invoking the interface included in the user space system service function library for interacting with the operating system kernel (the request message includes the privilege escalation physical resource information that needs to be updated), so that the resource management apparatus dynamically updates the independent physical resource according to the request message; optionally, updates the user space system service function library according to the physical resource information that needs to be updated (that is, user-mode specified memory) and management data structures in the operating system kernel.
可选地,当所述提权应用在运行过程中需要更改物理资源(如释放物理内存、CPU、I/O设备等)时,所述提权应用可直接通过所述用户空间系统服务功能库动态更新独立的物理资源,进一步地,可通过所述用户空间系统服务功能库更新用户空间系统服务功能库(即用户态指定内存)中的管理数据结构,并将修改信息发送给所述操作系统内核中的所述资源管理装置,以使所述资源管理装置同步更新操作系统内核中的内核管理数据结构。Optionally, when the privilege escalation application needs to change physical resources (such as releasing physical memory, CPU, I/O devices, etc.) during the running process, the privilege escalation application can directly use the user space system service function library. Dynamically update the independent physical resources, further, the management data structure in the user space system service function library (that is, the user-mode designated memory) can be updated through the user space system service function library, and the modification information is sent to the operating system The resource management device in the kernel, so that the resource management device updates the kernel management data structure in the operating system kernel synchronously.
可选地,动态更新所述独立的物理资源还包含以下三种情景:Optionally, dynamically updating the independent physical resource also includes the following three scenarios:
情景1:当所述应用(即提权应用)每次访问所述资源管理装置时,所述资源管理装置根据预设的资源分配策略和调用参数(可选地,所述调用参数可包括所述独立的物理资源的资源类型和资源大小等参数)判断是否需要更新为所述应用分配的独立的物理资源;Scenario 1: When the application (that is, the privilege escalation application) accesses the resource management apparatus every time, the resource management apparatus according to the preset resource allocation policy and invocation parameters (optionally, the invocation parameters may include all (parameters such as the resource type and resource size of the independent physical resource) to judge whether the independent physical resource allocated for the application needs to be updated;
情景2:当所述应用(即提权应用)因触发异常陷入到操作系统内核态时,操作系统内核判断是否需要更新为所述应用分配的独立的物理资源;Scenario 2: When the application (that is, the privilege escalation application) falls into the operating system kernel state due to a trigger exception, the operating system kernel determines whether the independent physical resources allocated for the application need to be updated;
情景3:操作系统内核周期性地判断是否需要更新为所述应用分配的独立的物理资源;若硬件支持,则直接修改任务权限,直接更新设置CPU及寄存器,并动态调整其执行权限,如通过设置虚拟机控制块(Virtual machine control block,简称VMCS)提供的数据结构来改变其对CPU硬件的部分访问管理权限;若硬件不支持,则触发中断使所述应用(提权应用)陷入内核态,并更新为所述应用分配的独立的物理资源。Scenario 3: The operating system kernel periodically determines whether the independent physical resources allocated for the application need to be updated; if the hardware supports it, it directly modifies the task permissions, directly updates and sets the CPU and registers, and dynamically adjusts its execution permissions. Set the data structure provided by the virtual machine control block (Virtual machine control block, VMCS for short) to change some of its access management rights to the CPU hardware; if the hardware does not support it, trigger an interrupt to make the application (privilege escalation application) fall into the kernel state , and update the individual physical resources allocated for the application.
可选地,步骤S102之后还包括:设置异常处理函数,所述异常处理函数用于当所述应用触发异常时,所述应用根据所述异常处理函数进行异常处理。Optionally, after step S102, the method further includes: setting an exception handling function, where the exception handling function is used for the application to perform exception handling according to the exception handling function when the application triggers an exception.
本发明实施例中,通过设置异常处理函数,以便当所述应用(即提权应用)触发异常时,所述应用根据所述异常处理函数进行异常处理。可选地,异常处理过程分为两类:第一类为所述用户空间系统服务功能库中包含已定制的异常处理函数,第二类为需要通过操作系统内核的处理过程;当所述应用中发生除零异常、页缺失异常或者无效操作码(invalid opcode)等时,所述应用通过所述用户空间系统服务功能库中的异常处理函数进行异常处理;当所述应用在执行过程中违反了所述应用对应的所述物理资源权限范围信息时,如读写了无读写权限的寄存器、硬件触发异常或者状态切换,则所述应用保存当前的执行环境,加载操作系统内核的执行环境,并根据所述异常处理函数进行异常处理;可选地,当所述异常处理完成后,所述资源管理装置再次将所述应用恢复为提权应用(即重新执行步骤S101和步骤S102的过程),以使得所述提权应用继续正常执行。In this embodiment of the present invention, an exception handling function is set, so that when the application (ie, an elevated privilege application) triggers an exception, the application performs exception handling according to the exception handling function. Optionally, the exception handling procedures are divided into two categories: the first category is that the user space system service function library contains customized exception handling functions, and the second category is the processing procedures that need to pass through the operating system kernel; when the application When a division-by-zero exception, a page missing exception, or an invalid opcode occurs, the application performs exception handling through the exception handling function in the user space system service function library; when the application violates the When the physical resource permission scope information corresponding to the application is read, such as reading or writing a register without read and write permission, a hardware trigger exception, or a state switch, the application saves the current execution environment and loads the execution environment of the operating system kernel. , and perform exception processing according to the exception processing function; optionally, after the exception processing is completed, the resource management apparatus restores the application to an elevated application again (that is, re-executes the processes of steps S101 and S102 ), so that the privilege escalation application continues to execute normally.
结合图1A所示,本发明资源管理方法实施例二中可以包括如下步骤:With reference to FIG. 1A , the second embodiment of the resource management method of the present invention may include the following steps:
1)应用通过操作系统内核提供的接口,将用于指示所述应用运行所需要的物理资源的物理资源使用信息发送给所述资源管理装置,可选地,通过硬件控制数据结构的形式发送给所述资源管理装置;可选地,所述物理资源使用信息包括以下至少一种:物理内存信息、中央处理器CPU信息、寄存器访问控制权限、输入/输出设备读写权限、特权指令执行权限及中断指向。1) The application sends the physical resource usage information for indicating the physical resources required for the application to run to the resource management device through the interface provided by the operating system kernel, optionally, in the form of a hardware control data structure to the resource management device; The resource management device; optionally, the physical resource usage information includes at least one of the following: physical memory information, central processing unit CPU information, register access control authority, input/output device read and write authority, privileged instruction execution authority and interrupt pointer.
2)所述操作系统内核的资源管理装置根据所述应用发送的所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口,如对所述应用的物理内存进行初始化、对所述应用所需的CPU上的寄存器进行保存和初始化及构建新的中断向量表等数据结构;可选地,根据为所述应用分配的所述物理资源初始化处理器虚拟化硬件,并由用户空间系统服务功能库初始化所述物理资源,以便于通过所述用户空间系统服务功能库向所述应用提供用于直接访问所述物理资源的接口。2) The resource management device of the operating system kernel allocates an independent physical resource to the application according to the physical resource usage information sent by the application, and allocates an interface for directly accessing the physical resource to the application, Such as initializing the physical memory of the application, saving and initializing the registers on the CPU required by the application, and constructing a new interrupt vector table and other data structures; The physical resource initialization processor virtualizes hardware, and initializes the physical resource by the user space system service function library, so as to provide the application with an interface for directly accessing the physical resource through the user space system service function library.
3)所述资源管理装置保存所述应用当前的执行环境,如寄存器值、寄存器状态及段寄存器等;并加载所述应用升级后的特权应用对应的执行上下文(即为所述应用分配的独立的物理资源,如物理内存信息、中央处理器CPU信息及CPU寄存器设置等),以使所述特权应用根据所述用户空间系统服务功能库,直接访问或管理所述物理资源;其中,所述用户空间系统服务功能库用于为所述特权应用提供管理所述物理资源的管理策略和用于直接访问所述物理资源的接口。3) The resource management device saves the current execution environment of the application, such as register values, register status, segment registers, etc.; and loads the execution context corresponding to the privileged application after the application is upgraded (that is, the independent allocation for the application). physical resources, such as physical memory information, central processing unit CPU information, and CPU register settings, etc.), so that the privileged application can directly access or manage the physical resources according to the user space system service function library; wherein, the The user space system service function library is used to provide the privileged application with a management policy for managing the physical resource and an interface for directly accessing the physical resource.
4)所述资源管理装置设置执行入口点,并设置异常处理函数;当所述提权应用在执行过程中触发异常时,保存上下文(如CPU寄存器信息等),切换到下一个进程,并根据所述异常处理函数进行异常处理。4) The resource management device sets an execution entry point and sets an exception handling function; when the privilege escalation application triggers an exception during execution, it saves the context (such as CPU register information, etc.), switches to the next process, and The exception handling function performs exception handling.
综上所述,本实施例中,通过为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口,以使所述应用根据用户空间系统服务功能库直接管理或访问所述物理资源,而无需通过操作系统内核管理物理资源,从而减少了不同应用对操作系统内核的资源争用,提升了系统性能。To sum up, in this embodiment, by allocating independent physical resources to the application and assigning the application an interface for directly accessing the physical resource, the application can serve the function library according to the user space system The physical resources are directly managed or accessed without managing the physical resources through the operating system kernel, thereby reducing resource contention of the operating system kernel by different applications and improving system performance.
图2A为本发明资源管理方法的操作系统架构图二。如图2A所示,管理核(core)用于设置应用核(core)的指令执行权限、寄存器读写权限及I/O设备等;提权应用通过定制的用户空间系统服务功能库(LibXOS)直接访问或管理所述提权应用对应的独立的物理资源;所述资源管理装置用于进程提权(即将普通应用升级为提权应用,具体地,通过管理核来设置应用核上执行进程的资源权限范围;其中,普通应用每次需要通过操作系统内核访问或操作物理资源,提权应用可直接根据其对应的用户空间系统服务功能库直接访问或操作其对应的物理资源);所述所述资源管理装置还用于对所述提权应用超出执行权限时的异常处理;用户空间系统服务功能库通过消息式系统调用来获取远端的I/O服务;另外,当提权应用不能通过用户空间系统服务功能库实现的某内核功能时,可通过请求队列写到指定内存,并由服务线程读取响应。FIG. 2A is a second operating system architecture diagram of the resource management method of the present invention. As shown in Figure 2A, the management core (core) is used to set the instruction execution authority, register read and write authority, and I/O devices of the application core (core); the privilege escalation application uses the customized user space system service function library (LibXOS) Directly access or manage the independent physical resources corresponding to the privilege escalation application; the resource management device is used for process privilege escalation (that is, to upgrade a common application to a privilege escalation application, specifically, setting the process execution value on the application core through the management core). Scope of resource authority; in which, ordinary applications need to access or operate physical resources through the operating system kernel each time, and privilege-escalation applications can directly access or operate their corresponding physical resources according to their corresponding user space system service function libraries); The resource management device is also used to handle exceptions when the privilege escalation application exceeds the execution authority; the user space system service function library obtains remote I/O services through message-based system calls; in addition, when the privilege escalation application cannot pass When a certain kernel function is implemented by the user space system service function library, it can be written to the specified memory through the request queue, and the response is read by the service thread.
图2B为本发明资源管理方法实施例三的示意图,如图2B所示,具体地描述了在用户态空间进行页表管理的方法。可选地,在对普通应用进行提权时,将所述普通应用在操作系统内核中的页表数据结构拷贝到指定物理内存中,并由用户态空间系统服务功能库里的页表管理模块进行管理,包括对页表的读写和/或更新等操作。当所述应用从非根(non-root)模式陷入到根(root)模式时,即因为主动或被动(如异常)等原因陷入操作系统内核时,需要将所述页表数据结构同步到原来内核管理的页表结构。由于页表里面是对虚拟内存和物理内存进行离散的映射,因此,在拷贝页表数据结构的时,对于已经映射在内核页表里的物理内存,需要在内核里进行锁定,不让换出;而对于页表里面还未填充的项,则是由用户态系统服务功能库根据应用请求、执行过程状态和预留物理内存等信息来进行管理的。FIG. 2B is a schematic diagram of Embodiment 3 of the resource management method according to the present invention. As shown in FIG. 2B , a method for page table management in a user state space is specifically described. Optionally, when the common application is elevated, the page table data structure of the common application in the operating system kernel is copied to the specified physical memory, and the page table management module in the user space system service function library is used for processing. Management, including operations such as reading, writing and/or updating page tables. When the application falls into root mode from non-root mode, that is, falls into the operating system kernel due to active or passive (such as exception) reasons, the page table data structure needs to be synchronized to the original Kernel-managed page table structure. Since the virtual memory and physical memory are discretely mapped in the page table, when copying the page table data structure, the physical memory that has been mapped in the kernel page table needs to be locked in the kernel and not allowed to be swapped out. ; For items that have not yet been filled in the page table, they are managed by the user-mode system service function library according to information such as application requests, execution process status, and reserved physical memory.
图2C为本发明资源管理方法实施例四的示意图。如图2C所示,具体描述了通过用户空间系统服务功能库(LibXOS)进行管理、申请、分配和释放内存的内容。LibXOS中的内存管理主要提供两部分功能,其中,1)第一部分功能为:对于应用所需的申请和释放内存的函数例程,LibXOS只管理在对应用提权时资源管理装置分配的物理内存,因此所有申请和释放操作都只针对预留的所述物理内存;但当所述物理内存耗尽时,就需要通过主动与操作系统内核交互的方式向操作系统内核申请新的物理内存,以增加为所述应用预留的物理内存,申请新的物理内存的过程即为主动陷入操作系统方式,即通过vmcall陷入操作系统内核,然后根据传递的参数,由操作系统内核中的异常处理函数来响应,并分配物理内存,最后返回;2)第二部分功能为:用户态缺页异常处理,其中,缺页异常是指页表中的映射项不存在时,访问该虚拟地址所触发的硬件异常;现有Linux和大部分其它操作系统都通过内核的异常处理函数来完成的,但本发明实施例中在对普通应用提权时更新初始化了现有硬件异常处理函数,并设置了VMCS数据结构,使得在发生缺页异常时,硬件会将缺页异常抛到用户态,并由用户空间系统服务功能库中的用户态缺页异常处理函数进行处理,具体地,可按照现有操作系统中按需调页的方式来编写用户态缺页异常处理函数,也可采用提前调页的方式来编写用户态缺页异常处理函数,因此,提升了不同内存使用需求的应用的系统性能。FIG. 2C is a schematic diagram of Embodiment 4 of a resource management method according to the present invention. As shown in FIG. 2C , the content of managing, applying, allocating and releasing memory through the user space system service function library (LibXOS) is described in detail. The memory management in LibXOS mainly provides two parts of functions, among which, 1) the first part of the function is: for the function routines required by the application to apply and release the memory, LibXOS only manages the physical memory allocated by the resource management device when the application is elevated. Therefore, all application and release operations are only for the reserved physical memory; but when the physical memory is exhausted, it is necessary to apply for new physical memory to the operating system kernel by actively interacting with the operating system kernel to increase the For the physical memory reserved for the application, the process of applying for a new physical memory is to actively fall into the operating system mode, that is, fall into the operating system kernel through vmcall, and then respond by the exception handling function in the operating system kernel according to the passed parameters , and allocate physical memory, and finally return; 2) The second part of the function is: user mode page fault exception handling, where page fault exception refers to the hardware exception triggered by accessing the virtual address when the mapping entry in the page table does not exist Existing Linux and most of other operating systems are completed by the exception handling function of the kernel, but in the embodiment of the present invention, the existing hardware exception handling function is updated and initialized when the common application is elevated, and the VMCS data structure is set, When a page fault exception occurs, the hardware will throw the page fault exception to the user mode, and it will be processed by the user mode page fault exception handling function in the user space system service function library. The user-mode page fault exception handling function can be written by paging, or the user-mode page fault exception processing function can be written by paging in advance. Therefore, the system performance of applications with different memory usage requirements is improved.
图3为本发明资源管理装置实施例一的结构示意图,如图3所示,本实施例提供的资源管理装置30可以包括:获取模块301及分配模块302。FIG. 3 is a schematic structural diagram of Embodiment 1 of a resource management apparatus according to the present invention. As shown in FIG. 3 , the
其中,获取模块301用于获取物理资源使用信息,所述物理资源使用信息用于指示应用运行所需要的物理资源;Wherein, the obtaining
分配模块302用于根据所述物理资源使用信息为所述应用分配独立的物理资源,并为所述应用分配用于直接访问所述物理资源的接口,以使所述应用直接访问所述物理资源。The
本实施例的资源管理装置可以用于执行本发明上述资源管理方法实施例一中的技术方案,其实现原理和技术效果类似,此处不再赘述。The resource management apparatus in this embodiment can be used to execute the technical solution in Embodiment 1 of the foregoing resource management method of the present invention, and the implementation principles and technical effects thereof are similar, and are not repeated here.
可选地,作为一种可实施的方式,在图3所示的实施方式的基础上,所述获取模块301具体用于:Optionally, as an implementable manner, on the basis of the implementation manner shown in FIG. 3 , the acquiring
获取预设的所述物理资源使用信息;或者,Acquire the preset physical resource usage information; or,
根据所述应用发送的硬件控制数据结构获取所述物理资源使用信息;其中,所述硬件控制数据结构包括所述物理资源使用信息。The physical resource usage information is acquired according to a hardware control data structure sent by the application; wherein the hardware control data structure includes the physical resource usage information.
可选地,作为另一种可实施的方式,在图3所示的实施方式的基础上,所述分配模块302具体用于:为所述应用建立用户空间系统服务功能库,并将所述应用所需的内核的管理数据结构复制到所述用户空间系统服务功能库中,其中,所述管理数据结构用于直接访问所述物理资源。Optionally, as another implementable manner, on the basis of the implementation manner shown in FIG. 3 , the
可选地,所述分配模块还用于:为所述应用分配用于管理所述物理资源的管理策略;其中,所述用户空间系统服务功能库包括:所述管理策略。Optionally, the allocating module is further configured to: allocate a management policy for managing the physical resource to the application; wherein the user space system service function library includes: the management policy.
可选地,作为另一种可实施的方式,如图4所示,图4为本发明资源管理装置实施例二的结构示意图,在图3所示的实施方式的基础上,资源管理装置30还包括:更新模块303用于动态更新所述独立的物理资源,并同步更新操作系统内核和所述用户空间系统服务功能库中的内核管理数据结构;Optionally, as another implementable manner, as shown in FIG. 4 , FIG. 4 is a schematic structural diagram of Embodiment 2 of the resource management apparatus according to the present invention. On the basis of the embodiment shown in FIG. 3 , the
可选地,还包括:异常处理模块304用于设置异常处理函数,所述异常处理函数用于当所述应用触发异常时,所述应用根据所述异常处理函数进行异常处理。Optionally, the method further includes: the
可选地,所述物理资源使用信息包括以下至少一种:物理内存信息、中央处理器CPU信息、寄存器访问控制权限、输入/输出设备读写权限及特权指令执行权限。Optionally, the physical resource usage information includes at least one of the following: physical memory information, central processing unit CPU information, register access control authority, input/output device read and write authority, and privileged instruction execution authority.
本实施例的资源管理装置可以用于执行本发明上述资源管理方法实施例中的技术方案,其实现原理和技术效果类似,此处不再赘述。The resource management apparatus in this embodiment can be used to execute the technical solutions in the foregoing resource management method embodiments of the present invention, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
图5为本发明资源管理装置实施例三的结构示意图,如图5所示,本实施例提供的资源管理装置50可以包括处理器501和存储器502。资源管理装置50还可以包括数据接口单元503,该数据接口单元503可以和处理器501相连。其中,数据接口单元503用于输入/输出数据信息,存储器502用于存储执行指令。当资源管理装置50运行时,处理器501与存储器502之间通信,处理器501调用存储器502中的执行指令,用以执行上述资源管理方法实施例中的操作。FIG. 5 is a schematic structural diagram of Embodiment 3 of a resource management apparatus according to the present invention. As shown in FIG. 5 , the
本实施例的资源管理装置可以用于执行本发明上述资源管理方法实施例中的技术方案,其实现原理和技术效果类似,此处不再赘述。The resource management apparatus in this embodiment can be used to execute the technical solutions in the foregoing resource management method embodiments of the present invention, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, 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 can be implemented in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute the methods described in the various embodiments of the present invention. some steps. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used for illustration. The internal structure is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the apparatus described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.
Claims (12)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510429902.1A CN106708619B (en) | 2015-07-21 | 2015-07-21 | Resource management method and device |
PCT/CN2016/073940 WO2017012339A1 (en) | 2015-07-21 | 2016-02-17 | Resource management method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510429902.1A CN106708619B (en) | 2015-07-21 | 2015-07-21 | Resource management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106708619A CN106708619A (en) | 2017-05-24 |
CN106708619B true CN106708619B (en) | 2021-01-15 |
Family
ID=57834837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510429902.1A Active CN106708619B (en) | 2015-07-21 | 2015-07-21 | Resource management method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106708619B (en) |
WO (1) | WO2017012339A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144714A (en) * | 2017-06-19 | 2019-01-04 | 中兴通讯股份有限公司 | EMS memory management process and device |
CN109901935B (en) * | 2017-12-11 | 2021-12-17 | 航天信息股份有限公司 | Method and equipment for communicating with USB Key |
CN109976886B (en) * | 2017-12-28 | 2021-10-22 | 深圳中电长城信息安全系统有限公司 | Kernel remote switching method and device |
CN114611849A (en) * | 2020-11-25 | 2022-06-10 | 北京秦淮数据有限公司 | IDC resource management system and method |
CN114153557A (en) * | 2021-11-01 | 2022-03-08 | 平头哥(上海)半导体技术有限公司 | Method and system for deploying specified application based on host machine operating system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103995731A (en) * | 2014-05-09 | 2014-08-20 | 华为技术有限公司 | Management center deployment method and virtual device |
CN104391949A (en) * | 2014-11-26 | 2015-03-04 | 国家电网公司 | Data dictionary based wide area data resource management method |
CN104424034A (en) * | 2013-09-04 | 2015-03-18 | 华为技术有限公司 | Hardware resource access method and hardware resource access device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488098B (en) * | 2009-02-13 | 2011-11-30 | 华中科技大学 | Multi-core computing resource management system based on virtual computing technology |
CN102117113B (en) * | 2009-12-31 | 2015-03-04 | 联想(北京)有限公司 | Computer system and method of power supply management for central processing unit thereof |
US9146785B2 (en) * | 2011-09-14 | 2015-09-29 | Microsoft Technology Licensing, Llc | Application acceleration in a virtualized environment |
CN102385532A (en) * | 2011-12-02 | 2012-03-21 | 浪潮集团有限公司 | Method for improving cloud application property via non-transparent CACHE |
US9672071B2 (en) * | 2013-09-10 | 2017-06-06 | Vmware, Inc. | Method and system for distributed processing of HTTP requests |
-
2015
- 2015-07-21 CN CN201510429902.1A patent/CN106708619B/en active Active
-
2016
- 2016-02-17 WO PCT/CN2016/073940 patent/WO2017012339A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424034A (en) * | 2013-09-04 | 2015-03-18 | 华为技术有限公司 | Hardware resource access method and hardware resource access device |
CN103995731A (en) * | 2014-05-09 | 2014-08-20 | 华为技术有限公司 | Management center deployment method and virtual device |
CN104391949A (en) * | 2014-11-26 | 2015-03-04 | 国家电网公司 | Data dictionary based wide area data resource management method |
Also Published As
Publication number | Publication date |
---|---|
WO2017012339A1 (en) | 2017-01-26 |
CN106708619A (en) | 2017-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109155782B (en) | Interprocess communication between containers | |
US9081612B2 (en) | Virtual machine control method and virtual machine | |
EP3798835B1 (en) | Method, device, and system for implementing hardware acceleration processing | |
US11625257B2 (en) | Provisioning executable managed objects of a virtualized computing environment from non-executable managed objects | |
US7421533B2 (en) | Method to manage memory in a platform with virtual machines | |
US10180843B2 (en) | Resource processing method and device for a multi-core operating system | |
TWI417790B (en) | Logical partitioning and virtualization in a heterogeneous architecture | |
US10191759B2 (en) | Apparatus and method for scheduling graphics processing unit workloads from virtual machines | |
US8583875B1 (en) | Efficient readable ballooning of guest memory by backing balloon pages with a shared page | |
US10289564B2 (en) | Computer and memory region management method | |
CN106708619B (en) | Resource management method and device | |
JP2022516486A (en) | Resource management methods and equipment, electronic devices, and recording media | |
CN111880891B (en) | Microkernel-based scalable virtual machine monitor and embedded system | |
GB2525003A (en) | Data Processing Systems | |
CN106844008A (en) | A kind of method of data manipulation, equipment and system | |
CN117331704B (en) | Graphics processor GPU scheduling method, device and storage medium | |
JP7615474B2 (en) | Computing device and method for handling interrupts - Patents.com | |
US20160378533A1 (en) | Computer and hypervisor-based resource scheduling method | |
US9558364B2 (en) | Computing machine, access management method, and access management program | |
US20200201691A1 (en) | Enhanced message control banks | |
WO2022222977A1 (en) | Method and apparatus for managing memory of physical server for running cloud service instances | |
CN117453352B (en) | Equipment straight-through method under Xen | |
CN115061780A (en) | Virtual machine storage space allocation method, system, device and storage medium | |
CN114780209A (en) | Interrupt processing method and device based on virtual machine monitor, terminal equipment and chip | |
CN120216404A (en) | Instruction sending method, instruction receiving method and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |