[go: up one dir, main page]

WO2015180111A1 - Method, apparatus and device for managing system resource - Google Patents

Method, apparatus and device for managing system resource Download PDF

Info

Publication number
WO2015180111A1
WO2015180111A1 PCT/CN2014/078842 CN2014078842W WO2015180111A1 WO 2015180111 A1 WO2015180111 A1 WO 2015180111A1 CN 2014078842 W CN2014078842 W CN 2014078842W WO 2015180111 A1 WO2015180111 A1 WO 2015180111A1
Authority
WO
WIPO (PCT)
Prior art keywords
logical device
type
logical
resources
hardware
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.)
Ceased
Application number
PCT/CN2014/078842
Other languages
French (fr)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2014/078842 priority Critical patent/WO2015180111A1/en
Priority to CN201480037433.2A priority patent/CN105340246A/en
Publication of WO2015180111A1 publication Critical patent/WO2015180111A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method, device and device for managing system resources.
  • virtualization technology is a commonly used technology.
  • virtualizing hardware resources By virtualizing hardware resources, multiple virtual machines or runtimes can be run on a computer system such as a server.
  • the virtualization layer in the system is increased.
  • the system partitions the hardware resources, and the virtual machines run on the hardware partitions that are allocated to them.
  • the virtual machine and runtime will occupy hardware resources for a long time in the system, but the actual hardware resources are limited. Therefore, in many cases, the actual hardware resources in the server cannot support running multiple runtimes or virtual machines at the same time, so that some runtimes or virtual machines need to wait for the server to allocate hardware resources, thereby reducing the efficiency of the server processing data.
  • Embodiments of the present invention provide a method, device, and device for managing system resources, which can recover hardware resources occupied by idle logical devices in time, and allocate recovered hardware resources to logical devices that require hardware resources, thereby improving utilization of hardware resources. rate.
  • an embodiment of the present invention provides a method for managing system resources, including: determining, according to a logical device hardware resource utilization of each virtual machine in the system, a first type of logical device, where the logical device in the system includes a virtual
  • the first type of logic device includes at least a logic device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system;
  • the released hardware resource is allocated to the second type of logical device, wherein the logical device other than the first type of logical device in the system further includes the second type of logical device.
  • the determining, by the hardware resource usage of each logical device in the system, the first type of logical device including: receiving a logical device in the system
  • the suspended request message is sent by the logical device before entering the sleep state, the logical device before entering the sleep state, and the logical device whose idle time is greater than or equal to the threshold;
  • the logical device that sent the pause request message is used as the first type of logical device.
  • the method further includes:
  • an embodiment of the present invention provides a method for managing system resources, including: detecting, according to hardware resource utilization of a logical device in a system, whether it is a first type of logical device, where the logical device in the system includes a virtual device.
  • the first type of logic device includes at least a logic device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system;
  • the system management unit determines that the virtual machine is the first type of logical device according to the pause request message, and releases the a hardware resource occupied by the logical device, and the released hardware resource is allocated to the second type of logical device, where the second device includes the second logical device other than the first type of logical device Class logical device.
  • the method for managing system resources further includes:
  • an embodiment of the present invention provides an apparatus for managing system resources, including: an acquiring unit, configured to: according to hardware resource utilization of each logical device in the system, the logical device in the system includes a virtual machine and a runtime Determining a first type of logical device, where the first type of logical device includes at least a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system;
  • a release unit configured to release hardware resources occupied by the first type of logic device
  • an allocating unit configured to allocate the released hardware resource to the second type of virtual machine, where the logical device other than the first type of logical device in the system further includes the second type of logical device.
  • the acquiring unit includes:
  • a receiving subunit configured to receive a pause request sent by a logical device in the system, where the pause request message is a logical device before entering a sleep state in the system, a logical device before entering a sleep state, and idle Transmitted by a logical device whose time is greater than or equal to the threshold;
  • a judging subunit for using the logical device that sent the suspend request message as the first type of logical device a judging subunit for using the logical device that sent the suspend request message as the first type of logical device.
  • the method further includes:
  • a storage unit configured to save an operating state of the first type of logical device that has released the hardware resource
  • a loading unit configured to allocate a hardware resource to the first type of logical device and load the running state after the releasing the hardware resource occupied by the first type of logical device.
  • an embodiment of the present invention provides an apparatus for managing system resources, including: a detecting unit, configured to detect, according to hardware resource utilization of a logical device in the system, whether the first type of logical device is in the system, Logical device includes a virtual machine and a runtime; the first type of logical device includes at least a sleep state, a sleep state, and an idle state in the system a logical device whose time is greater than or equal to the threshold;
  • a determining unit configured to send a pause request message to the system management subunit if the first type of logical device is used; so that the system management subunit determines that the logical device is the first according to the pause request message Generating a logical device, and releasing the hardware resources occupied by the logical device, and allocating the released hardware resources to the second type of logical device, where the logical device other than the first type of logical device is in the system The second type of logical device is included.
  • the device for managing a system resource further includes:
  • a receiving unit configured to receive hardware resources allocated by the system management subunit and sent running state information, where the running state information records an operating state of the logical device before being released by the system management subunit ;
  • a loading unit configured to load, according to the running state information, an operating state before the logical device is released by the system management subunit.
  • an embodiment of the present invention provides an apparatus for managing system resources, including: the apparatus for managing system resources at least: a processor, a memory, and a communication bus; the communication bus is used to implement the processor and a communication between the memories; the memory is used to store data involved in running the device for managing system resources; and the processor is configured to use hardware resource utilization of each logical device in the system Determining a first type of logical device, where the logical device in the system includes a virtual machine and a runtime; the first type of logical device includes at least a sleep state, a sleep state, and an idle time greater than or equal to a threshold in the system Logical device
  • the processor is further configured to release the hardware resources occupied by the first type of logic device; the processor is further configured to allocate the released hardware resource to the second type of logic device, where, in the system In addition to the logical devices other than the first type of logical devices, the second type of logical devices are also included.
  • the processor is specifically configured to receive a pause request message sent by the logical device in the system, where the pause request message is a logical device before entering a sleep state in the system, a logical device before entering a sleep state, and an idle time And being sent by the logical device that is greater than or equal to the threshold; and the logical device that sent the pause request message is used as the first type of logical device.
  • the method further includes:
  • the memory is further configured to save an operating state of the first type of virtual machine that has released hardware resources
  • the processor is further configured to read an operating state of the first type of logical device from the memory; and after the releasing the hardware resources occupied by the first type of logical device, the first class The logical device allocates hardware resources and loads the operational state.
  • an embodiment of the present invention provides an apparatus for managing system resources, including: the apparatus for managing system resources at least: a processor, a memory, and a communication bus; the communication bus is configured to implement the processor, a communication between the network interface and the memory; the memory is configured to store data involved in the running of the device for monitoring the network load;
  • the processor is configured to detect, according to the hardware resource utilization of the logical device in the system, whether the first logical device is in a first class, the logical device in the system includes a virtual machine and a runtime; and the first logical device is at least Included in the system is a sleep state, is in a sleep state, and the idle time is greater than or equal to a threshold value of the logical device;
  • the processor is further configured to: if it is the first type of logical device, send a pause request message to the system management unit; so that the system management unit determines, according to the pause request message, that the logical device is the a type of logical device, and releasing the hardware resources occupied by the logical device, and allocating the released hardware resources to the second type of logical device, wherein the logical device other than the first type of logical device in the system The second type of logical device is included.
  • the management system further includes: the processor, specifically configured to receive hardware resources allocated by the system management unit and sent running state information, where the running state information records that hardware resources are released by the system management unit Before, the operating state of the logical device; and loading, according to the running state information, an operating state before the logical device is released by the system management unit.
  • the method, device, and device for managing a system determine, according to hardware resource utilization of each logical device in the system, a sleep state, a sleep state, and an idle time greater than or equal to a threshold value in the system.
  • a hardware resource occupied by a logical device with low resource utilization such as a logical device, allocates the released hardware resource to a logical device that requires hardware resources.
  • the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources.
  • the situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server.
  • FIG. 1 is a structural diagram of a system according to an embodiment of the present invention
  • FIG. 1a is a flowchart of a method for managing system resources according to an embodiment of the present invention
  • FIG. 1b is a structural diagram of a method for managing system resources according to an embodiment of the present invention
  • Another method structure diagram for managing system resources
  • FIG. 1 is a flowchart of another method for managing system resources according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for managing system resources according to an embodiment of the present invention
  • Figure 2 is a structural diagram of a method for managing system resources according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for managing system resources according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of a method for managing system resources according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of a method for managing system resources according to an embodiment of the present invention
  • FIG. 5 is a flowchart of another method for managing system resources according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an apparatus for managing system resources according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a specific implementation manner of an apparatus for managing system resources according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of another apparatus for managing system resources according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another apparatus for managing system resources according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another apparatus for managing system resources according to an embodiment of the present disclosure.
  • Figure 10 is a schematic structural diagram of an apparatus for managing system resources according to an embodiment of the present invention
  • Figure 1 is a schematic structural diagram of another apparatus for managing system resources according to an embodiment of the present invention.
  • the embodiment of the present invention can be applied to a system capable of running a virtual machine or a runtime.
  • the system shown in FIG. 1 includes: a system management module (Sy st em Manager), and a logical device.
  • the number of logical devices is at least two or more.
  • the functions of the system management module include: managing system hardware and dividing hardware resources of logical devices.
  • the idle monitoring module (I dle Mon it or ) is included in the logical device, and the functions of the idle monitoring module include: The idle monitoring module in the device separately monitors the idle state of the logical device, and when the time when the logical device is in the Idle state exceeds a certain threshold or the logical device actively sleeps/sleeps, the logical device sends a pause to the management module ( Suspend) request, indicating that the logical device may suspend execution for a long time thereafter, the resources of the logical device may be released, and used for other logical devices or for other purposes.
  • the idle monitoring module in the device separately monitors the idle state of the logical device, and when the time when the logical device is in the Idle state exceeds a certain threshold or the logical device actively sleeps/sleeps, the logical device sends a pause to the management module ( Suspend) request, indicating that the logical device may suspend execution for a long time thereafter, the resources of the logical device may be released,
  • the idle monitoring module in a virtual machine detects the Idle process of the virtual machine.
  • the virtual machine When the virtual machine is in the Idle state for more than a certain threshold, the virtual machine 1 or the virtual machine actively enters.
  • the virtual machine 1 and the virtual machine 2 In the sleep/hibernation state, as shown in the virtual machine 2 in the figure, the virtual machine 1 and the virtual machine 2 will release system resources such as cpu core and memory, and are managed by the system management module, and the virtual machine 1 and the virtual machine 2 are interrupted.
  • system management module It is also monitored by the system management module; when the virtual machine is reactivated, the system management module re-allocates the virtual machine with system resources such as cpu core and memory, and resumes execution of the virtual machine, as shown in virtual machine 3, the system management module will be interrupted. Passed to the virtual machine 3.
  • the runtime system includes: system management module, runtime (runtime) 1, runtime 2.
  • the runtime library code and application code are compiled into a program that causes the applications in Runtime 1 and Runtime 2 to run directly on the hardware environment.
  • the runtime is running for the JVM (Java Virtual Machine)
  • the JVM can directly access the hardware resources, running the application supported by the JVM;
  • LibOS Library Operating System
  • the application runs directly LibOS runtime environment.
  • a lightweight virtualization system/de-virtualization system/partition system which can allocate exclusive hardware partitions to virtual machines, including: System Management Module (Virtual System Manager), Virtual Machine (VM).
  • System Management Module Virtual System Manager
  • VM Virtual Machine
  • the hardware is partitioned, and virtual machine 1 and virtual machine 2 have various hardware resources, and virtual machine 1 and virtual machine 2 can directly access the hardware.
  • An embodiment of the present invention provides a method for managing system resources, as shown in FIG. 1d, including:
  • the logical device in the system includes a virtual machine and a runtime; the first type of logical device includes at least a sleep state, a sleep state, and an idle time greater than or equal to A valued logical device.
  • the system management module in the system can determine the first type of logical device according to the hardware resource utilization of each logical device in the system. For example, in each virtual machine in the system, a monitoring module is set, and the monitoring module is used to monitor parameters such as running status, idle time, and information flow of the virtual machine, which reflect hardware resource utilization. Among them, the parameters such as running status, idle time, and information flow can be weighted, and the result of the weighting calculation is taken as the hardware resource utilization rate.
  • the system management module can determine the process executed by each logical device in real time, or the logical device can report the process executed in the virtual machine to the system management module in real time; the system management module can identify the type of the process currently executed by the logical device, and according to Each type of process acquires the hardware resource utilization of the logical device for the occupation of hardware resources.
  • the Idle process is a process that is executed when the logical device is idle. If the idle monitoring module in the logical device detects that the logical device is running the Idle process, the logical device belongs to the first type of logical device.
  • the logical device sends a pause request to the system management module.
  • the system management module receives the information of the pause request, the system management module takes over the virtual machine interrupt monitoring right, and releases the hardware resources such as the cpu core and the memory of the logical device.
  • the logical device other than the first type of logical device in the system further includes the second type of logical device.
  • the second type of logical device For example: In the system, there is a running logical device, but the logical device has insufficient hardware resources to achieve efficient operation, and this logical device can be used as the second type of logical device;
  • the hardware resources of the hardware device such as the server, the computer, and the like that are carrying the system are limited to the system, and the logical device is waiting for the allocated hardware resources
  • the logical device that is waiting for the allocated hardware resources is Can be used as a second type of logical device.
  • the specific implementation process of allocating the released hardware resources to the second type of logical device is:
  • the system management module uses the detected re-awakened logical device and the logical device currently in the queued resource as the second type of logical device, and the system management module reassigns the recovered hardware resource according to the requirement of the logical device. Two types of logical devices.
  • the method for managing a system determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value.
  • the hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources.
  • the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources.
  • the situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server.
  • the system management module may release the hardware resource and redistribute the released resource.
  • the system management module can determine the first type of logical device by a pause request message sent by a logical device in the system. Therefore, on the basis of the method shown in Figure Id, 01 can be implemented as 201-202 as shown in Figure 2:
  • the suspend request message is sent by a logical device that has a lower hardware resource utilization condition, such as a logical device before entering the sleep state, a logical device before entering the sleep state, or a logical device with an idle time greater than or equal to the threshold.
  • a logical device that has a lower hardware resource utilization condition
  • the threshold such as a logical device before entering the sleep state, a logical device before entering the sleep state, or a logical device with an idle time greater than or equal to the threshold.
  • the logical device that sent the pause request message is used as the first type of logical device.
  • the virtual machine 1 issues a pause request message to the system management module, where the virtual machine 1 is a first type of logical device.
  • the virtual machine 1 is a first type of logical device.
  • 203 Release hardware resources occupied by the first type of logical device.
  • the logical device other than the first type of logical device in the system further includes the second type of logical device.
  • the method for managing a system determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value.
  • the hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources.
  • the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources.
  • the situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server.
  • the system management module in the system may first save the running state of the first type of logical device that has released the hardware resource, so that when the first type of logical device is awake again, not only can
  • the first type of logical device allocates hardware resources, and can also load an operating state of the first type of logical device. Therefore, on the basis of the embodiment shown in FIG. 1 d and FIG. 2, an embodiment as shown in FIG. 3 is further included:
  • the pause request is sent by the logical device before entering the sleep state in the system, the virtual machine before entering the sleep state, and the logical device whose idle time is greater than or equal to the threshold.
  • the logical device that sends the pause request message is used as the first type of logical device.
  • the logical device sends a pause request to the system management module. After the system management module receives the information of the pause request, the system management module takes over the logical device interrupt monitoring right, and saves the current running state of the logical device, and releases the cpu core of the logical device.
  • System resources such as memory. Its
  • the current running state may at least include: a result calculated during the running of the program, and a progress of the running of the program.
  • management module can execute 301 - 302 and 303 at the same time, or can be executed in a certain order.
  • the hardware resources occupied by the first type of logical device are released, the hardware resources are allocated to the first type of logical device and the running state is loaded.
  • the system management module wakes up the corresponding interrupt monitoring instance.
  • the interrupt monitoring instance is created for the logical device after the system management module receives the interrupt request sent by the virtual machine, and may include a thread and a process.
  • the interrupt monitoring instance may specifically include information such as a logical device identifier, a logical device state, and the like, wherein the logical device state mainly includes: the logical device has been completely suspended, the logical device is in the pause process, and the logical device has resumed operation.
  • the interrupt monitoring instance allocates hardware resources such as cpu and memory to the logical device according to the configuration information of the virtual machine, and loads the running state saved when the logical device is suspended from the disk or the memory, and restores the logical device on the newly allocated hardware resource.
  • the running state the device is interrupted and delivered to the logic device that resumes execution, and the interrupt monitoring of the logical device is released.
  • the logical device other than the first type of logical device in the system further includes the second type of logical device.
  • system management module can execute 304 and 305 at the same time, or can be executed in a certain order.
  • the method for managing a system determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value.
  • the hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources.
  • the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices caused by insufficient hardware resources.
  • the inability to run efficiently or wait for the allocation of resources occurs, so that the hardware resources actually existing in the server can support more logical devices to run at the same time, thus avoiding repeatedly releasing the hardware resources when the first type of logical devices are awake again.
  • the previous operation saves the time for the server to process data, improves the efficiency of the server processing data, and reduces the energy consumption of the server.
  • An embodiment of the present invention provides a method for managing system resources. As shown in FIG. 4, the method may be implemented by a logic device in the system shown in FIG. 1, and includes:
  • the logic device in the system includes a logic device and a runtime; the first type of logic device includes at least a logic device that is in a sleep state, is in a sleep state, and has an idle time greater than a threshold value in the system.
  • the logic device in the system other than the first type of logic device includes the second type of logic device. If it is not the first type of logical device, no processing is performed.
  • the system management unit determines that the logical device is the first type of logical device according to the received pause request information, and releases the logical device occupation.
  • Hardware resources then re-allocate the reclaimed released hardware resources to logical devices that require hardware resources.
  • the method for managing a system determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value.
  • the hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources.
  • the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices caused by insufficient hardware resources.
  • the inability to run efficiently or wait for resource allocation occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing The energy loss of the server.
  • the first type of logical device releases the hardware resource, and the system management module recovers and allocates the released hardware resource to the second type of logical device.
  • the first type of logical device is awake again, the first type of logical device is restored according to an operating state when the first type of logical device releases resources. Therefore, based on the embodiment shown in FIG. 4, an embodiment as shown in FIG. 5 may also be included, which is executed by a logic device in the system as shown in FIG.
  • the first type of logic device includes at least a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system.
  • the logic device in the system other than the first type of logic device includes the second type of logic device. If it is not the first type of logical device, no processing is performed.
  • the system management module not only recovers the hardware resources released by the first type of logical devices, but also records the running state of the first type of logical devices when the hardware resources are released.
  • the running status may include: cpu register information used by the logical device, memory information used by the logical device, and device status.
  • an operating state before the logical device is released by the system management unit. For example: A logical device that has been reclaimed hardware resources is awake again. At this time, the system management module not only allocates the hardware resources of the logical device, but also loads the operating state before the logical device releases the hardware resources. The operation before the first type of logic device is repeatedly awake and the hardware resources are repeatedly released is avoided, the time for processing the data by the server is saved, the efficiency of processing the data by the server is improved, and the energy loss of the server is also reduced.
  • the embodiment of the present invention further provides an apparatus 60 for managing system resources.
  • the apparatus 60 includes:
  • the collecting unit 61 is configured to: according to hardware resource utilization of each logical device in the system, the logical device in the system includes a virtual machine and a runtime; determining a first type of logical device, where the first type of logical device includes at least A logical device in the system that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold.
  • the releasing unit 62 is configured to release hardware resources occupied by the first type of logical device.
  • the allocating unit 63 is configured to allocate the released hardware resources to the second type of logical device.
  • the logical device other than the first type of logical device in the system further includes the second type of logical device.
  • the collecting unit 61 may include:
  • the receiving subunit 611 is configured to receive a pause request message sent by the logical device in the system, where the pause request message is a logical device before entering a sleep state in the system, a logical device before entering a sleep state, and idle The time is greater than or equal to the threshold value sent by the logical device.
  • the determining subunit 612 is configured to use, as the first type of logical device, a logical device that sends the pause request message.
  • the device 60 may further include:
  • the storage unit 64 is configured to save an operating state of the first type of logical device that has released the hardware resource.
  • the loading unit 65 is configured to allocate hardware resources and load the running state for the first type of logical device after the releasing the hardware resources occupied by the first type of logical device.
  • An embodiment of the present invention further provides an apparatus 80 for managing system resources, as shown in FIG. 80 includes:
  • the detecting unit 81 is configured to detect, according to the hardware resource utilization of the logical device in the system, whether the logical device is the first type.
  • the logical device in the system includes a virtual machine and a runtime; the first type of logical device includes at least a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system.
  • the determining unit 82 is configured to: if it is the first type of logical device, send a pause request to the system management subunit: ⁇ ;; to facilitate the system management subunit to determine the logic according to the pause request
  • the device is the first type of logical device, and releases the hardware resources occupied by the logical device, and allocates the released hardware resources to the second type of logical device.
  • the logic device in the system other than the first type of logic device includes the second type of logic device.
  • the device 80 may further include:
  • the receiving unit 83 is configured to receive hardware resources allocated by the system management subunit and sent operating state information, where the running state information records operation of the logical device before being released by the system management subunit status.
  • the loading unit 84 is configured to load, according to the running state information, an operating state before the logical device is released by the system management subunit.
  • the embodiment of the present invention provides a device 90 for monitoring network load, including at least a processor 901, a memory 904, and a communication bus 903.
  • the device 90 may also include a network interface 902.
  • the communication bus 903 is configured to implement connection communication between the processor 901, the network interface 902, and the memory 904.
  • the memory 904 is configured to store the device 90 for monitoring network load during operation.
  • the data involved; optionally, a user interface 905 is also included, including a display, a keyboard or a pointing device (eg, a mouse, a trackball, a touchpad, or a tactile display).
  • Memory 904 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the memory 904 can optionally include at least one storage device located away from the processor 901.
  • the network interface 902 is mainly for information transmission between different devices.
  • the system management module needs to transmit information to the virtual machine in the two devices at the same time.
  • the function of the network interface 902 is to make the system management module and the two devices respectively.
  • the virtual machine in the transmission information is mainly for information transmission between different devices.
  • memory 904 stores the following elements, executable modules or data structures, or a subset thereof, or their extension set:
  • System 9041 includes various system programs for implementing various basic services and processing hardware-based tasks.
  • Application 9042 includes various applications running on the system, such as: on a virtual machine in a virtual machine system.
  • the running application the application running on the lightweight virtualization system/de-virtualization system/partition system, the runtime running on the runtime system.
  • the processor 901 is configured to determine, according to hardware resource utilization of each logical device in the system, a first type of logical device, where the first type of logical device includes at least a sleep state and is in a sleep state in the system.
  • the 901 is configured to release the hardware resources occupied by the first type of logical device, and the processor 901 is further configured to allocate the released hardware resources.
  • a second type of logical device wherein the logical device other than the first type of logical device in the system further includes the second type of logical device.
  • the processor 901 is specifically configured to: receive a pause request sent by the logic device in the system; and the pause request message is entered by the logical device before entering the sleep state in the system, and enters a sleep state.
  • the logical device that sent the pause request message is used as the first type of logical device.
  • the processor 901 is further configured to: save the first that is released hardware resources An operating state of the logical device of the class; after the releasing the hardware resources occupied by the first type of logical device, allocating hardware resources to the first type of logical device and loading the operating state.
  • the device of the management system determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value.
  • the hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources.
  • the present invention can release and allocate hardware resources of a virtual machine with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources.
  • the situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server.
  • the embodiment of the present invention further provides a device 100 for monitoring network load, which at least includes: a processor 1001, a memory 1004, and a communication bus 1003.
  • the device 100 may also include a network interface 1002.
  • the communication bus 1003 is configured to implement connection communication between the processor 1001, the network interface 1002, and the memory 1004.
  • the memory 1004 is configured to store the device for monitoring the network load during operation.
  • the data involved optionally, also includes a user interface 1005, including a display, keyboard or pointing device (eg, mouse, trackball, touchpad or tactile display).
  • Memory 1004 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the memory 1004 can optionally include at least one storage device located remotely from the processor 1001;
  • memory 1004 stores the following elements, executable modules or data structures, or a subset thereof, or their extension set:
  • the system 10041 includes various system programs for implementing various basic services and processing hardware-based tasks.
  • the application 10042 includes various applications running on the system, for example: on a virtual machine in a virtual machine system. Running applications, applications running on a lightweight virtualization/de-virtualized/partitioned system, running on a runtime system Time.
  • the processor 1 001 is configured to detect, according to the hardware resource utilization of the logical device in the system, whether it is a first type of logical device, where the logical device in the system includes a virtual machine and a runtime;
  • a type of logic device includes at least a logic device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system;
  • the processor 1 001 is further configured to: if it is the first type of logical device, send a pause request message to the system management unit; so that the system management unit determines, according to the pause request, that the logical device is The first type of logical device, and the hardware resources occupied by the logical device are released, and the released hardware resources are allocated to the second type of logical device, where the system is other than the first type of logical device.
  • the logical device of the second type includes the second type of logical device.
  • the processor 1 001 is specifically configured to receive hardware resources allocated by the system management unit and sent operation state information, where the operation state information records, before the system management unit releases the hardware resources, An operating state of the logical device; and loading, according to the operating state information, an operating state before the logical device is released by the system management unit.
  • the device of the management system determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value.
  • the hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources.
  • the present invention can release and allocate hardware resources of a virtual machine with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources.
  • the situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server.
  • the same parts can be referred to each other, and each embodiment focuses on the other embodiments. the difference.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the storage medium may be a magnetic disk, an optical disk, a read-only storage memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Power Sources (AREA)

Abstract

Disclosed are a method, apparatus and device for managing system resources, which relate to the technical field of computers, and may timely recycle the hardware resources occupied in an idle logic device, so that the time of a server processing data is saved, the efficiency of the server processing data is improved, and the energy loss of the server is also reduced. The method of the present invention comprises: determining a first class of logic devices according to the hardware resource utilization rate of each logic device in the system, wherein the first class of logic devices at least comprise logic devices which are in a dormant state, in a sleep state and of which the idle time is greater than or equal to a threshold; releasing the hardware resources occupied by the first class of logic devices; distributing the released hardware resources to a second class of logic devices, wherein the logic devices in the system also comprise the second class of logic devices apart from the first class devices. The present invention applies to computer systems like a server etc.

Description

一种管理系统资源的方法、 装置及设备  Method, device and device for managing system resources

技术领域 Technical field

本发明涉及计算机技术领域, 尤其涉及一种管理系统资源的方法、 装 置及设备。  The present invention relates to the field of computer technologies, and in particular, to a method, device and device for managing system resources.

背景技术 Background technique

目前, 在计算机领域中, 虚拟化技术是一种常用的技术, 通过对硬件 资源的虚拟化, 可以在服务器等计算机系统上运行多个虚拟机或者运行 时, 然而系统中的虚拟化层增加了虚拟机访问硬件资源的开销。  At present, in the field of computers, virtualization technology is a commonly used technology. By virtualizing hardware resources, multiple virtual machines or runtimes can be run on a computer system such as a server. However, the virtualization layer in the system is increased. The overhead of virtual machine access to hardware resources.

在目前常用的众核平台中, 系统会对硬件资源进行分区, 虚拟机运行 在划分给自己的硬件分区上。 这种情况下, 虚拟机和运行时在系统中会长 时间占用硬件资源, 而实际存在的硬件资源是有限的。 因此, 在很多情况 下,服务器中实际存在的硬件资源无法支持同时运行多个运行时或者虚拟 机, 使得部分运行时或者虚拟机需要等待服务器分配硬件资源, 从而降低 了服务器处理数据的效率。  In the currently used many-core platforms, the system partitions the hardware resources, and the virtual machines run on the hardware partitions that are allocated to them. In this case, the virtual machine and runtime will occupy hardware resources for a long time in the system, but the actual hardware resources are limited. Therefore, in many cases, the actual hardware resources in the server cannot support running multiple runtimes or virtual machines at the same time, so that some runtimes or virtual machines need to wait for the server to allocate hardware resources, thereby reducing the efficiency of the server processing data.

发明内容 Summary of the invention

本发明的实施例提供一种管理系统资源的方法、 装置及设备, 能够及 时回收空闲逻辑设备占用的硬件资源,并分配已回收的硬件资源给需要硬 件资源的逻辑设备, 从而提高硬件资源的利用率。  Embodiments of the present invention provide a method, device, and device for managing system resources, which can recover hardware resources occupied by idle logical devices in time, and allocate recovered hardware resources to logical devices that require hardware resources, thereby improving utilization of hardware resources. rate.

为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:

第一方面, 本发明的实施例提供一种管理系统资源的方法, 包括: 根据系统中各个虚拟机的逻辑设备硬件资源利用率,确定第一类逻辑 设备, 所述系统中的逻辑设备包括虚拟机和运行时; 所述第一类逻辑设备 至少包括在所述系统中处于休眠状态、处于睡眠状态和空闲时间大于等于 阔值的逻辑设备;  In a first aspect, an embodiment of the present invention provides a method for managing system resources, including: determining, according to a logical device hardware resource utilization of each virtual machine in the system, a first type of logical device, where the logical device in the system includes a virtual The first type of logic device includes at least a logic device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system;

释放所述第一类逻辑设备占用的硬件资源;  Freeing hardware resources occupied by the first type of logical device;

将被释放的硬件资源分配至第二类逻辑设备, 其中, 在所述系统中除 了所述第一类逻辑设备以外的逻辑设备, 还包括了所述第二类逻辑设备。 结合第一方面, 在第一方面的第一种可能的实现方式中, 所述根据系 统中各个逻辑设备的硬件资源利用率, 确定第一类逻辑设备, 包括: 接收所述系统中的逻辑设备发送的暂停请求消息,所述暂停请求消息 是由所述系统中的进入休眠状态前的逻辑设备、进入睡眠状态前的逻辑设 备和空闲时间大于等于阔值的逻辑设备发送的; The released hardware resource is allocated to the second type of logical device, wherein the logical device other than the first type of logical device in the system further includes the second type of logical device. With reference to the first aspect, in a first possible implementation manner of the first aspect, the determining, by the hardware resource usage of each logical device in the system, the first type of logical device, including: receiving a logical device in the system The suspended request message is sent by the logical device before entering the sleep state, the logical device before entering the sleep state, and the logical device whose idle time is greater than or equal to the threshold;

将发送了所述暂停请求消息的逻辑设备作为所述第一类逻辑设备。 结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第 二种可能的实现方式中, 还包括:  The logical device that sent the pause request message is used as the first type of logical device. In conjunction with the first aspect or the first possible implementation of the first aspect, in a second possible implementation of the first aspect, the method further includes:

保存被释放了硬件资源的所述第一类逻辑设备的运行状态; 在所述释放所述第一类逻辑设备占用的硬件资源之后,为所述第一类 逻辑设备分配硬件资源并加载所述运行状态。  Saving an operating state of the first type of logical device that has released the hardware resource; after releasing the hardware resource occupied by the first type of logical device, allocating hardware resources to the first type of logical device and loading the Operating status.

第二方面, 本发明的实施例提供一种管理系统资源的方法, 包括: 根据系统中的逻辑设备的硬件资源利用率,检测是否为第一类逻辑设 备, 所述系统中的逻辑设备包括虚拟机和运行时; 所述第一类逻辑设备至 少包括在所述系统中处于休眠状态、处于睡眠状态和空闲时间大于等于阔 值的逻辑设备;  In a second aspect, an embodiment of the present invention provides a method for managing system resources, including: detecting, according to hardware resource utilization of a logical device in a system, whether it is a first type of logical device, where the logical device in the system includes a virtual device. The first type of logic device includes at least a logic device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system;

若为所述第一类逻辑设备, 则向系统管理单元发送暂停请求消息; 以 便于所述系统管理单元根据所述暂停请求消息确定所述虚拟机为所述第 一类逻辑设备, 并释放所述逻辑设备占用的硬件资源, 并将被释放的硬件 资源分配至第二类逻辑设备, 其中, 在所述系统中除了所述第一类逻辑设 备以外的逻辑设备中, 包括了所述第二类逻辑设备。  If it is the first type of logical device, sending a pause request message to the system management unit; so that the system management unit determines that the virtual machine is the first type of logical device according to the pause request message, and releases the a hardware resource occupied by the logical device, and the released hardware resource is allocated to the second type of logical device, where the second device includes the second logical device other than the first type of logical device Class logical device.

结合第二方面, 在第二方面的第一种可能的实现方式中, 所述的管理 系统资源的方法, 还包括:  With reference to the second aspect, in a first possible implementation manner of the second aspect, the method for managing system resources, further includes:

接收所述系统管理单元分配的硬件资源和发送的运行状态信息,所述 运行状态信息记录了在被所述系统管理单元释放硬件资源之前,所述逻辑 设备的运行状态;  Receiving, by the system management unit, hardware resources and sent operating state information, where the operating state information records an operating state of the logical device before being released by the system management unit;

根据所述运行状态信息加载所述逻辑设备被所述系统管理单元释放 硬件资源之前的运行状态。 Loading the logical device according to the running state information to be released by the system management unit The operating state before the hardware resources.

第三方面, 本发明的实施例提供一种管理系统资源的装置, 包括: 采集单元, 用于根据系统中各个逻辑设备的硬件资源利用率, 所述系 统中的逻辑设备包括虚拟机和运行时; 确定第一类逻辑设备, 所述第一类 逻辑设备至少包括在所述系统中处于休眠状态、处于睡眠状态和空闲时间 大于等于阔值的逻辑设备;  In a third aspect, an embodiment of the present invention provides an apparatus for managing system resources, including: an acquiring unit, configured to: according to hardware resource utilization of each logical device in the system, the logical device in the system includes a virtual machine and a runtime Determining a first type of logical device, where the first type of logical device includes at least a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system;

释放单元, 用于释放所述第一类逻辑设备占用的硬件资源;  a release unit, configured to release hardware resources occupied by the first type of logic device;

分配单元, 用于将被释放的硬件资源分配至第二类虚拟机, 其中, 在 所述系统中除了所述第一类逻辑设备以外的逻辑设备,还包括了所述第二 类逻辑设备。  And an allocating unit, configured to allocate the released hardware resource to the second type of virtual machine, where the logical device other than the first type of logical device in the system further includes the second type of logical device.

结合第三方面, 在第三方面的第一种可能实现方式中, 所述采集单元 包括:  In conjunction with the third aspect, in a first possible implementation manner of the third aspect, the acquiring unit includes:

接收子单元, 用于接收所述系统中的逻辑设备发送的暂停请求肖 , , 所述暂停请求消息是由所述系统中的进入休眠状态前的逻辑设备、进入睡 眠状态前的逻辑设备和空闲时间大于等于阔值的逻辑设备发送的;  a receiving subunit, configured to receive a pause request sent by a logical device in the system, where the pause request message is a logical device before entering a sleep state in the system, a logical device before entering a sleep state, and idle Transmitted by a logical device whose time is greater than or equal to the threshold;

判断子单元,用于将发送了所述暂停请求消息的逻辑设备作为所述第 一类逻辑设备。  a judging subunit for using the logical device that sent the suspend request message as the first type of logical device.

结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第 二种可能的实现方式中, 还包括:  With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the method further includes:

存储单元,用于保存被释放了硬件资源的所述第一类逻辑设备的运行 状态;  a storage unit, configured to save an operating state of the first type of logical device that has released the hardware resource;

加载单元, 用于在所述释放所述第一类逻辑设备占用的硬件资源之 后, 为所述第一类逻辑设备分配硬件资源并加载所述运行状态。  a loading unit, configured to allocate a hardware resource to the first type of logical device and load the running state after the releasing the hardware resource occupied by the first type of logical device.

第四方面, 本发明的实施例提供一种管理系统资源的装置, 包括: 检测单元, 用于根据系统中的逻辑设备的硬件资源利用率, 检测是否 为第一类逻辑设备, 所述系统中的逻辑设备包括虚拟机和运行时; 所述第 一类逻辑设备至少包括在所述系统中处于休眠状态、处于睡眠状态和空闲 时间大于等于阔值的逻辑设备; According to a fourth aspect, an embodiment of the present invention provides an apparatus for managing system resources, including: a detecting unit, configured to detect, according to hardware resource utilization of a logical device in the system, whether the first type of logical device is in the system, Logical device includes a virtual machine and a runtime; the first type of logical device includes at least a sleep state, a sleep state, and an idle state in the system a logical device whose time is greater than or equal to the threshold;

判断单元, 用于若为所述第一类逻辑设备, 则向系统管理子单元发送 暂停请求消息;以便于所述系统管理子单元根据所述暂停请求消息确定所 述逻辑设备为所述第一类逻辑设备, 并释放所逻辑设备机占用的硬件资 源, 并将被释放的硬件资源分配至第二类逻辑设备, 其中, 在所述系统中 除了所述第一类逻辑设备以外的逻辑设备中, 包括了所述第二类逻辑设 备。  a determining unit, configured to send a pause request message to the system management subunit if the first type of logical device is used; so that the system management subunit determines that the logical device is the first according to the pause request message Generating a logical device, and releasing the hardware resources occupied by the logical device, and allocating the released hardware resources to the second type of logical device, where the logical device other than the first type of logical device is in the system The second type of logical device is included.

结合第四方面, 在第四方面的第一种可能实现方式中, 所述的管理系 统资源的装置, 还包括:  With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the device for managing a system resource further includes:

接收单元,用于接收所述系统管理子单元分配的硬件资源和发送的运 行状态信息,所述运行状态信息记录了在被所述系统管理子单元释放硬件 资源之前, 所述逻辑设备的运行状态;  a receiving unit, configured to receive hardware resources allocated by the system management subunit and sent running state information, where the running state information records an operating state of the logical device before being released by the system management subunit ;

加载单元,用于根据所述运行状态信息加载所述逻辑设备被所述系统 管理子单元释放硬件资源之前的运行状态。  And a loading unit, configured to load, according to the running state information, an operating state before the logical device is released by the system management subunit.

第五方面, 本发明的实施例提供一种管理系统资源的设备, 包括: 所述管理系统资源的设备至少包括: 处理器、 存储器和通信总线; 所 述通信总线用于实现所述处理器和所述存储器之间的连接通信;所述存储 器, 用于存储所述管理系统资源的设备在运行过程中所涉及的数据; 所述处理器, 用于根据系统中各个逻辑设备的硬件资源利用率, 确定 第一类逻辑设备, 所述系统中的逻辑设备包括虚拟机和运行时; 所述第一 类逻辑设备至少包括在所述系统中处于休眠状态、处于睡眠状态和空闲时 间大于等于阔值的逻辑设备;  In a fifth aspect, an embodiment of the present invention provides an apparatus for managing system resources, including: the apparatus for managing system resources at least: a processor, a memory, and a communication bus; the communication bus is used to implement the processor and a communication between the memories; the memory is used to store data involved in running the device for managing system resources; and the processor is configured to use hardware resource utilization of each logical device in the system Determining a first type of logical device, where the logical device in the system includes a virtual machine and a runtime; the first type of logical device includes at least a sleep state, a sleep state, and an idle time greater than or equal to a threshold in the system Logical device

所述处理器, 还用于释放所述第一类逻辑设备占用的硬件资源; 所述处理器, 还用于将被释放的硬件资源分配至第二类逻辑设备, 其 中, 在所述系统中除了所述第一类逻辑设备以外的逻辑设备, 还包括了所 述第二类逻辑设备。  The processor is further configured to release the hardware resources occupied by the first type of logic device; the processor is further configured to allocate the released hardware resource to the second type of logic device, where, in the system In addition to the logical devices other than the first type of logical devices, the second type of logical devices are also included.

结合第五方面, 在第五方面的第一种可能实现方式中, 还包括: 所述 处理器, 具体用于接收所述系统中的逻辑设备发送的暂停请求消息, 所述 暂停请求消息是由所述系统中的进入休眠状态前的逻辑设备、进入睡眠状 态前的逻辑设备和空闲时间大于等于阔值的逻辑设备发送的;并将发送了 所述暂停请求消息的逻辑设备作为所述第一类逻辑设备。 With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, The processor is specifically configured to receive a pause request message sent by the logical device in the system, where the pause request message is a logical device before entering a sleep state in the system, a logical device before entering a sleep state, and an idle time And being sent by the logical device that is greater than or equal to the threshold; and the logical device that sent the pause request message is used as the first type of logical device.

结合第五方面或第五方面的第一种可能的实现方式,在第五方面的第 二种可能的实现方式中, 还包括:  With reference to the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the method further includes:

所述存储器,还用于保存被释放了硬件资源的所述第一类虚拟机的运 行状态;  The memory is further configured to save an operating state of the first type of virtual machine that has released hardware resources;

所述处理器,还用于从所述存储器中读取所述第一类逻辑设备的运行 状态; 并在所述释放所述第一类逻辑设备占用的硬件资源之后, 为所述第 一类逻辑设备分配硬件资源并加载所述运行状态。  The processor is further configured to read an operating state of the first type of logical device from the memory; and after the releasing the hardware resources occupied by the first type of logical device, the first class The logical device allocates hardware resources and loads the operational state.

第六方面, 本发明的实施例提供一种管理系统资源的设备, 包括: 所 述管理系统资源的设备至少包括: 处理器、 存储器和通信总线; 所述通信 总线用于实现所述处理器、 所述网络接口和所述存储器之间的连接通信; 所述存储器,用于存储所述监控网络负载的设备在运行过程中所涉及的数 据;  In a sixth aspect, an embodiment of the present invention provides an apparatus for managing system resources, including: the apparatus for managing system resources at least: a processor, a memory, and a communication bus; the communication bus is configured to implement the processor, a communication between the network interface and the memory; the memory is configured to store data involved in the running of the device for monitoring the network load;

所述处理器, 用于根据系统中的逻辑设备的硬件资源利用率, 检测是 否为第一类逻辑设备, 所述系统中的逻辑设备包括虚拟机和运行时; 所述 第一类逻辑设备至少包括在所述系统中处于休眠状态、处于睡眠状态和空 闲时间大于等于阔值的逻辑设备;  The processor is configured to detect, according to the hardware resource utilization of the logical device in the system, whether the first logical device is in a first class, the logical device in the system includes a virtual machine and a runtime; and the first logical device is at least Included in the system is a sleep state, is in a sleep state, and the idle time is greater than or equal to a threshold value of the logical device;

所述处理器, 还用于若为所述第一类逻辑设备, 则向系统管理单元发 送暂停请求消息;以便于所述系统管理单元根据所述暂停请求消息确定所 述逻辑设备为所述第一类逻辑设备, 并释放所述逻辑设备占用的硬件资 源, 并将被释放的硬件资源分配至第二类逻辑设备, 其中, 在所述系统中 除了所述第一类逻辑设备以外的逻辑设备中, 包括了所述第二类逻辑设 备。  The processor is further configured to: if it is the first type of logical device, send a pause request message to the system management unit; so that the system management unit determines, according to the pause request message, that the logical device is the a type of logical device, and releasing the hardware resources occupied by the logical device, and allocating the released hardware resources to the second type of logical device, wherein the logical device other than the first type of logical device in the system The second type of logical device is included.

结合第六方面, 在第六方面的第一种可能实现方式中, 所述的管理系 统资源的设备, 还包括: 所述处理器, 具体用于接收所述系统管理单元分 配的硬件资源和发送的运行状态信息,所述运行状态信息记录了在被所述 系统管理单元释放硬件资源之前, 所述逻辑设备的运行状态; 并根据所述 运行状态信息加载所述逻辑设备被所述系统管理单元释放硬件资源之前 的运行状态。 With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the management system The device of the system further includes: the processor, specifically configured to receive hardware resources allocated by the system management unit and sent running state information, where the running state information records that hardware resources are released by the system management unit Before, the operating state of the logical device; and loading, according to the running state information, an operating state before the logical device is released by the system management unit.

本发明实施例提供的管理系统的方法、 装置及设备, 根据系统中各个 逻辑设备的硬件资源利用率, 确定并释放在所述系统中处于休眠状态、 处 于睡眠状态和空闲时间大于等于阔值的逻辑设备等资源利用率较低的逻 辑设备占用的硬件资源,将被释放的硬件资源分配给需要硬件资源的逻辑 设备。 相对于现有技术, 本发明能够将硬件资源利用率较低的逻辑设备的 硬件资源释放并分配给系统中的其他逻辑设备,减少了因硬件资源不足导 致的逻辑设备无法高效运行或是等待分配资源的情况发生,从而使得服务 器中实际存在的硬件资源能够支持更多的逻辑设备同时运行,因此节省了 服务器处理数据的时间, 提高了服务器处理数据的效率, 也减少了服务器 的能源损耗。  The method, device, and device for managing a system according to an embodiment of the present invention determine, according to hardware resource utilization of each logical device in the system, a sleep state, a sleep state, and an idle time greater than or equal to a threshold value in the system. A hardware resource occupied by a logical device with low resource utilization, such as a logical device, allocates the released hardware resource to a logical device that requires hardware resources. Compared with the prior art, the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources. The situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server.

附图说明 DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动 的前提下, 还可以根据这些附图获得其它的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without any creative work.

图 1为本发明实施例提供的一种系统结构图;  FIG. 1 is a structural diagram of a system according to an embodiment of the present invention;

图 1 a为本发明实施例提供的一种管理系统资源的方法流程图; 图 1 b为本发明实施例提供的一种管理系统资源的方法结构图; 图 1 c为本发明实施例提供的另一种管理系统资源的方法结构图; 图 1 d为本发明实施例提供的另一种管理系统资源的方法流程图; 图 2为本发明实施例提供的另一种管理系统资源的方法流程图; 图 2 a为本发明实施例提供的一种管理系统资源的方法结构图; 图 3为本发明实施例提供的另一种管理系统资源的方法流程图; 图 3 a为本发明实施例提供的一种管理系统资源的方法结构图; 图 4为本发明实施例提供的另一种管理系统资源的方法流程图; 图 5为本发明实施例提供的另一种管理系统资源的方法流程图; 图 6为本发明实施例提供的一种管理系统资源的装置的结构示意图; 图 6 a为本发明实施例提供的一种管理系统资源的装置的具体实现方 式的结构示意图; 1a is a flowchart of a method for managing system resources according to an embodiment of the present invention; FIG. 1b is a structural diagram of a method for managing system resources according to an embodiment of the present invention; Another method structure diagram for managing system resources; FIG. 1 is a flowchart of another method for managing system resources according to an embodiment of the present invention; FIG. 2 is a flowchart of another method for managing system resources according to an embodiment of the present invention; Figure 2 is a structural diagram of a method for managing system resources according to an embodiment of the present invention; FIG. 3 is a flowchart of a method for managing system resources according to an embodiment of the present invention; FIG. 3 is a structural diagram of a method for managing system resources according to an embodiment of the present invention; FIG. A flowchart of a method for managing system resources; FIG. 5 is a flowchart of another method for managing system resources according to an embodiment of the present invention; FIG. 6 is a schematic structural diagram of an apparatus for managing system resources according to an embodiment of the present invention; FIG. 6 is a schematic structural diagram of a specific implementation manner of an apparatus for managing system resources according to an embodiment of the present disclosure;

图 7为本发明实施例提供的另一种管理系统资源的装置的结构示意 图;  FIG. 7 is a schematic structural diagram of another apparatus for managing system resources according to an embodiment of the present disclosure;

图 8为本发明实施例提供的另一种管理系统资源的装置的结构示意 图;  FIG. 8 is a schematic structural diagram of another apparatus for managing system resources according to an embodiment of the present disclosure;

图 9为本发明实施例提供的另一种管理系统资源的装置的结构示意 图;  FIG. 9 is a schematic structural diagram of another apparatus for managing system resources according to an embodiment of the present disclosure;

图 1 0为本发明实施例提供的一种管理系统资源的设备的结构示意图; 图 1 1为本发明实施例提供的另一种管理系统资源的设备的结构示意 图。  Figure 10 is a schematic structural diagram of an apparatus for managing system resources according to an embodiment of the present invention; Figure 1 is a schematic structural diagram of another apparatus for managing system resources according to an embodiment of the present invention.

具体实施方式 detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进 行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的 范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

本发明实施例可以应用于能够运行虚拟机或运行时的系统, 例如: 如 图 1所示的系统, 其中包括: 系统管理模块( Sy s t em Manager ) , 逻辑设备。 其中, 逻辑设备的数量至少为两个或者多个。 系统管理模块的作用包括: 管理系统硬件, 以及对逻辑设备的硬件资源进行划分。 逻辑设备中包括了 空闲监控模块 ( I d l e Mon i t or ) , 空闲监控模块的作用包括: 每一个逻辑 设备中的空闲监控模块分别监控所在逻辑设备的空闲状态,当所述逻辑设 备处于 Idle状态的时间超过一定阈值或者所述逻辑设备主动睡眠 /休眠 时, 由所述逻辑设备向管理模块发送暂停 ( Suspend) 请求, 表示所述逻 辑设备此后很长一段时间可能暂停执行, 所述逻辑设备的资源可以释放, 并用于其它逻辑设备或者用于其它目的。 The embodiment of the present invention can be applied to a system capable of running a virtual machine or a runtime. For example, the system shown in FIG. 1 includes: a system management module (Sy st em Manager), and a logical device. The number of logical devices is at least two or more. The functions of the system management module include: managing system hardware and dividing hardware resources of logical devices. The idle monitoring module (I dle Mon it or ) is included in the logical device, and the functions of the idle monitoring module include: The idle monitoring module in the device separately monitors the idle state of the logical device, and when the time when the logical device is in the Idle state exceeds a certain threshold or the logical device actively sleeps/sleeps, the logical device sends a pause to the management module ( Suspend) request, indicating that the logical device may suspend execution for a long time thereafter, the resources of the logical device may be released, and used for other logical devices or for other purposes.

如图 la所示,一个虚拟机中的空闲监控模块通过检测这一个虚拟机的 Idle进程, 当虚拟机处于 Idle状态的时间超过一定阔值时, 如图中虚拟机 1, 或者虚拟机主动进入睡眠 /休眠状态时, 如图中虚拟机 2, 所述虚拟机 1 和虚拟机 2将释放 cpu核、 内存等系统资源, 并交由系统管理模块管理, 并 且虚拟机 1和虚拟机 2的中断也由系统管理模块监控; 当虚拟机重新激活 时, 系统管理模块重新为所述虚拟机分配 cpu核、 内存等系统资源, 恢复 虚拟机的执行,如图虚拟机 3,系统管理模块并将中断传递给所述虚拟机 3。  As shown in FIG. 1a, the idle monitoring module in a virtual machine detects the Idle process of the virtual machine. When the virtual machine is in the Idle state for more than a certain threshold, the virtual machine 1 or the virtual machine actively enters. In the sleep/hibernation state, as shown in the virtual machine 2 in the figure, the virtual machine 1 and the virtual machine 2 will release system resources such as cpu core and memory, and are managed by the system management module, and the virtual machine 1 and the virtual machine 2 are interrupted. It is also monitored by the system management module; when the virtual machine is reactivated, the system management module re-allocates the virtual machine with system resources such as cpu core and memory, and resumes execution of the virtual machine, as shown in virtual machine 3, the system management module will be interrupted. Passed to the virtual machine 3.

再例如: 如图 lb所示, 运行时系统, 包括: 系统管理模块、 运行时 ( runtime ) 1、 运行时 2。 其中, 运行时库代码和应用程序代码编译成一 个程序, 使运行时 1和运行时 2中的应用程序直接运行在硬件环境上。 当运 行时为 JVM ( Java Virtual Machine ) 运行时, JVM可以直接访问硬件资 源, 上面跑 JVM支持的应用程序; 当运行时为 LibOS ( Library Operating System, 库操作系统) 运行时, 应用程序直接跑在 LibOS运行时环境上。  For another example: As shown in Figure lb, the runtime system includes: system management module, runtime (runtime) 1, runtime 2. The runtime library code and application code are compiled into a program that causes the applications in Runtime 1 and Runtime 2 to run directly on the hardware environment. When the runtime is running for the JVM (Java Virtual Machine), the JVM can directly access the hardware resources, running the application supported by the JVM; when running LibOS (Library Operating System), the application runs directly LibOS runtime environment.

再例如: 如图 lc所示, 轻量级虚拟化系统 /去虚拟化系统 /分区系统, 等能够为虚拟机分配独享的硬件分区的系统, 其中包括: 系统管理模块 ( System Manager ), 虚拟机 (VM)。 其中硬件是分区的, 虚拟机 1和虚拟 机 2具有各种硬件资源, 且虚拟机 1和虚拟机 2可以直接访问硬件。  For another example: as shown in Figure lc, a lightweight virtualization system/de-virtualization system/partition system, etc., which can allocate exclusive hardware partitions to virtual machines, including: System Management Module (Virtual System Manager), Virtual Machine (VM). The hardware is partitioned, and virtual machine 1 and virtual machine 2 have various hardware resources, and virtual machine 1 and virtual machine 2 can directly access the hardware.

本发明实施例提供一种管理系统资源的方法, 如图 Id所示, 包括: An embodiment of the present invention provides a method for managing system resources, as shown in FIG. 1d, including:

101, 根据系统中各个逻辑设备的硬件资源利用率, 确定第一类逻辑 设备。 101. Determine, according to hardware resource utilization of each logical device in the system, a first type of logical device.

其中, 所述系统中的逻辑设备包括虚拟机和运行时; 第一类逻辑设备 至少包括在所述系统中处于休眠状态、处于睡眠状态和空闲时间大于等于 阔值的逻辑设备。 The logical device in the system includes a virtual machine and a runtime; the first type of logical device includes at least a sleep state, a sleep state, and an idle time greater than or equal to A valued logical device.

在本实施例中,可以由系统中的系统管理模块根据系统中各个逻辑设 备的硬件资源利用率, 确定第一类逻辑设备。 例如: 在系统中的各个虚拟 机中,设置有监控模块,监控模块用于监控虚拟机的运行状态、空闲时间、 信息流量等反映硬件资源利用率的参数。 其中, 可以对运行状态、 空闲时 间、 信息流量等参数进行加权计算, 并将加权计算的结果作为硬件资源利 用率。  In this embodiment, the system management module in the system can determine the first type of logical device according to the hardware resource utilization of each logical device in the system. For example, in each virtual machine in the system, a monitoring module is set, and the monitoring module is used to monitor parameters such as running status, idle time, and information flow of the virtual machine, which reflect hardware resource utilization. Among them, the parameters such as running status, idle time, and information flow can be weighted, and the result of the weighting calculation is taken as the hardware resource utilization rate.

再例如: 系统管理模块可以实时确定各个逻辑设备执行的进程, 或是 由逻辑设备向系统管理模块实时上报虚拟机中执行的进程;系统管理模块 可以识别逻辑设备当前执行的进程的类型,并根据各个类型的进程对于硬 件资源的占用情况, 获取逻辑设备的硬件资源利用率。 比如: Idle进程是 一种逻辑设备处于空闲状态时才会执行的进程,若逻辑设备中的空闲监控 模块检测出该逻辑设备运行了 Idle进程, 则说明该逻辑设备属于第一类逻 辑设备。  For example, the system management module can determine the process executed by each logical device in real time, or the logical device can report the process executed in the virtual machine to the system management module in real time; the system management module can identify the type of the process currently executed by the logical device, and according to Each type of process acquires the hardware resource utilization of the logical device for the occupation of hardware resources. For example, the Idle process is a process that is executed when the logical device is idle. If the idle monitoring module in the logical device detects that the logical device is running the Idle process, the logical device belongs to the first type of logical device.

1 02 , 释放所述第一类逻辑设备占用的硬件资源。  1 02. Release the hardware resources occupied by the first type of logical device.

例如: 逻辑设备给系统管理模块发送暂停请求, 在系统管理模块接收 到暂停请求的信息后, 由系统管理模块接管虚拟机中断监控权, 并释放逻 辑设备的 cpu核、 内存等硬件资源。  For example: The logical device sends a pause request to the system management module. After the system management module receives the information of the pause request, the system management module takes over the virtual machine interrupt monitoring right, and releases the hardware resources such as the cpu core and the memory of the logical device.

1 03 , 将被释放的硬件资源分配至第二类逻辑设备。  1 03 , allocate the released hardware resources to the second type of logical device.

其中, 在所述系统中除了所述第一类逻辑设备以外的逻辑设备, 还包 括了所述第二类逻辑设备。 例如: 在系统中, 存在一个正在运行的逻辑设 备, 但所述逻辑设备的硬件资源不足, 无法达到高效的运行, 则这一个逻 辑设备可以作为第二类逻辑设备;  The logical device other than the first type of logical device in the system further includes the second type of logical device. For example: In the system, there is a running logical device, but the logical device has insufficient hardware resources to achieve efficient operation, and this logical device can be used as the second type of logical device;

再例如: 在系统中, 由于承载系统的服务器、 计算机等硬件设备的能 够提供给系统的硬件资源有限,导致这一个逻辑设备正在等待被分配硬件 资源, 则该正在等待被分配硬件资源的逻辑设备可以作为第二类逻辑设 备。其中,将被释放的硬件资源分配至第二类逻辑设备的具体实现流程是: 系统管理模块将检测到的重新被唤醒的逻辑设备和当前处于排队等候资 源的逻辑设备作为第二类逻辑设备,系统管理模块将已回收的硬件资源根 据所述逻辑设备的需求, 重新分配到第二类逻辑设备。 For another example: in the system, because the hardware resources of the hardware device such as the server, the computer, and the like that are carrying the system are limited to the system, and the logical device is waiting for the allocated hardware resources, the logical device that is waiting for the allocated hardware resources is Can be used as a second type of logical device. The specific implementation process of allocating the released hardware resources to the second type of logical device is: The system management module uses the detected re-awakened logical device and the logical device currently in the queued resource as the second type of logical device, and the system management module reassigns the recovered hardware resource according to the requirement of the logical device. Two types of logical devices.

本发明实施例提供的管理系统的方法,根据系统中各个逻辑设备的硬 件资源利用率, 确定并释放在所述系统中处于休眠状态、 处于睡眠状态和 空闲时间大于等于阔值的逻辑设备等资源利用率较低的逻辑设备占用的 硬件资源, 将被释放的硬件资源分配给需要硬件资源的逻辑设备。 相对于 现有技术,本发明能够将硬件资源利用率较低的逻辑设备的硬件资源释放 并分配给系统中的其他逻辑设备,减少了因硬件资源不足导致的逻辑设备 无法高效运行或是等待分配资源的情况发生,从而使得服务器中实际存在 的硬件资源能够支持更多的逻辑设备同时运行,因此节省了服务器处理数 据的时间, 提高了服务器处理数据的效率, 也减少了服务器的能源损耗。  The method for managing a system according to the embodiment of the present invention determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value. The hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources. Compared with the prior art, the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources. The situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server.

在本实施例中,可以由系统管理模块根据各个逻辑设备的硬件资源利 用率, 确定所述第一类逻辑设备之后, 释放硬件资源并将所释放的资源再 分配。系统管理模块可以通过系统中的逻辑设备发送的暂停请求消息来确 定第一类逻辑设备。 因此在如图 I d所示的方式的基础上, 1 01可以实现为 如图 2所示的 201 -202 :  In this embodiment, after the first type of logical device is determined according to the hardware resource utilization rate of each logical device, the system management module may release the hardware resource and redistribute the released resource. The system management module can determine the first type of logical device by a pause request message sent by a logical device in the system. Therefore, on the basis of the method shown in Figure Id, 01 can be implemented as 201-202 as shown in Figure 2:

2 01 , 接收所述系统中的逻辑设备发送的暂停请求消 , 。  2 01. Receive a pause request sent by a logical device in the system.

其中, 暂停请求消息是由进入休眠状态前的逻辑设备、 进入睡眠状态 前的逻辑设备或是空闲时间大于等于阔值的逻辑设备等出现了硬件资源 利用率较低的情况的逻辑设备发送的。 例如: 如图 2 a所示, 虚拟机 1中的 空闲监控模块检测出虚拟机 1准备主动休眠或者虚拟机 1进入了空闲状态 且空闲时间大于阔值, 则虚拟机 1向系统管理模块发出暂停请求消息。  The suspend request message is sent by a logical device that has a lower hardware resource utilization condition, such as a logical device before entering the sleep state, a logical device before entering the sleep state, or a logical device with an idle time greater than or equal to the threshold. For example, as shown in FIG. 2a, when the idle monitoring module in the virtual machine 1 detects that the virtual machine 1 is ready to actively sleep or the virtual machine 1 enters an idle state and the idle time is greater than the threshold, the virtual machine 1 issues a pause to the system management module. Request message.

2 02 , 将发送了所述暂停请求消息的逻辑设备作为所述第一类逻辑设 备。  2 02, the logical device that sent the pause request message is used as the first type of logical device.

例如: 如图 2a所示, 虚拟机 1发出暂停请求消息到系统管理模块, 其 中, 虚拟机 1为第一类逻辑设备。 203 , 释放所述第一类逻辑设备占用的硬件资源。 For example, as shown in FIG. 2a, the virtual machine 1 issues a pause request message to the system management module, where the virtual machine 1 is a first type of logical device. 203. Release hardware resources occupied by the first type of logical device.

204, 将被释放的硬件资源分配至第二类逻辑设备。  204. Allocate the released hardware resources to the second type of logical device.

其中, 在所述系统中除了所述第一类逻辑设备以外的逻辑设备, 还包 括了所述第二类逻辑设备。  The logical device other than the first type of logical device in the system further includes the second type of logical device.

本发明实施例提供的管理系统的方法,根据系统中各个逻辑设备的硬 件资源利用率, 确定并释放在所述系统中处于休眠状态、 处于睡眠状态和 空闲时间大于等于阔值的逻辑设备等资源利用率较低的逻辑设备占用的 硬件资源, 将被释放的硬件资源分配给需要硬件资源的逻辑设备。 相对于 现有技术,本发明能够将硬件资源利用率较低的逻辑设备的硬件资源释放 并分配给系统中的其他逻辑设备,减少了因硬件资源不足导致的逻辑设备 无法高效运行或是等待分配资源的情况发生,从而使得服务器中实际存在 的硬件资源能够支持更多的逻辑设备同时运行,因此节省了服务器处理数 据的时间, 提高了服务器处理数据的效率, 也减少了服务器的能源损耗。  The method for managing a system according to the embodiment of the present invention determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value. The hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources. Compared with the prior art, the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources. The situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server.

在本实施例中,还可以由系统中的系统管理模块先保存被释放了硬件 资源的所述第一类逻辑设备的运行状态,使所述第一类逻辑设备再次被唤 醒时, 不仅能够为所述第一类逻辑设备分配硬件资源, 还能加载所述第一 类逻辑设备的运行状态。 因此在如图 1 d和图 2所示的实施方式的基础上, 还包括如图 3所示的实施方式:  In this embodiment, the system management module in the system may first save the running state of the first type of logical device that has released the hardware resource, so that when the first type of logical device is awake again, not only can The first type of logical device allocates hardware resources, and can also load an operating state of the first type of logical device. Therefore, on the basis of the embodiment shown in FIG. 1 d and FIG. 2, an embodiment as shown in FIG. 3 is further included:

301 , 接收所述系统中的逻辑设备发送的暂停请求;肖 , 。  301. Receive a pause request sent by a logic device in the system;

其中, 暂停请求;肖息是由所述系统中的进入休眠状态前的逻辑设备、 进入睡眠状态前的虚拟机和空闲时间大于等于阔值的逻辑设备发送的。  The pause request is sent by the logical device before entering the sleep state in the system, the virtual machine before entering the sleep state, and the logical device whose idle time is greater than or equal to the threshold.

302 , 将发送了所述暂停请求消息的逻辑设备作为所述第一类逻辑设 备。  302. The logical device that sends the pause request message is used as the first type of logical device.

303 , 保存被释放了硬件资源的所述第一类逻辑设备的运行状态。 例如: 逻辑设备向系统管理模块发送暂停请求, 在系统管理模块接收 到暂停请求的信息后, 由系统管理模块接管逻辑设备中断监控权, 并保存 逻辑设备的当前运行状态, 释放逻辑设备的 cpu核、 内存等系统资源。 其 中, 当前运行状态至少可以包括: 程序运行过程中计算出的结果, 程序运 行的进度。 303. Save an operating state of the first type of logical device that has released the hardware resource. For example: the logical device sends a pause request to the system management module. After the system management module receives the information of the pause request, the system management module takes over the logical device interrupt monitoring right, and saves the current running state of the logical device, and releases the cpu core of the logical device. System resources such as memory. Its The current running state may at least include: a result calculated during the running of the program, and a progress of the running of the program.

需要说明的是, 管理模块可以同时执行 301 - 302和 303 , 也可以按照一 定的先后顺序执行。  It should be noted that the management module can execute 301 - 302 and 303 at the same time, or can be executed in a certain order.

304 , 在所述释放所述第一类逻辑设备占用的硬件资源之后, 为所述 第一类逻辑设备分配硬件资源并加载所述运行状态。  After the hardware resources occupied by the first type of logical device are released, the hardware resources are allocated to the first type of logical device and the running state is loaded.

例如:如图 3a所示,系统管理模块接收到逻辑设备的设备中断信息后, 唤醒对应的中断监控实例。 其中, 所述中断监控实例是当系统管理模块接 收到虚拟机发送的中断请求后, 为该逻辑设备创建的, 可以包括线程、 进 程。 所述中断监控实例具体可以包括逻辑设备标识符、 逻辑设备状态等信 息, 其中, 逻辑设备状态主要包括: 逻辑设备已经完全暂停、 逻辑设备正 在暂停过程中、 逻辑设备已经恢复运行。 之后中断监控实例根据虚拟机的 配置信息, 重新为逻辑设备分配 cpu、 内存等硬件资源, 并且从磁盘或者 内存中加载逻辑设备暂停时保存的运行状态,在新分配的硬件资源上恢复 逻辑设备的运行状态, 将该设备中断投递到恢复执行的逻辑设备, 同时解 除对该逻辑设备的中断监控。  For example, as shown in FIG. 3a, after receiving the device interrupt information of the logical device, the system management module wakes up the corresponding interrupt monitoring instance. The interrupt monitoring instance is created for the logical device after the system management module receives the interrupt request sent by the virtual machine, and may include a thread and a process. The interrupt monitoring instance may specifically include information such as a logical device identifier, a logical device state, and the like, wherein the logical device state mainly includes: the logical device has been completely suspended, the logical device is in the pause process, and the logical device has resumed operation. After that, the interrupt monitoring instance allocates hardware resources such as cpu and memory to the logical device according to the configuration information of the virtual machine, and loads the running state saved when the logical device is suspended from the disk or the memory, and restores the logical device on the newly allocated hardware resource. In the running state, the device is interrupted and delivered to the logic device that resumes execution, and the interrupt monitoring of the logical device is released.

305, 将被释放的硬件资源分配至第二类逻辑设备。  305. Allocate the released hardware resources to the second type of logical device.

其中, 在所述系统中除了所述第一类逻辑设备以外的逻辑设备, 还包 括了所述第二类逻辑设备。  The logical device other than the first type of logical device in the system further includes the second type of logical device.

需要说明的是, 系统管理模块可以同时执行 304和 305 , 也可以按照一 定的先后顺序执行。  It should be noted that the system management module can execute 304 and 305 at the same time, or can be executed in a certain order.

本发明实施例提供的管理系统的方法,根据系统中各个逻辑设备的硬 件资源利用率, 确定并释放在所述系统中处于休眠状态、 处于睡眠状态和 空闲时间大于等于阔值的逻辑设备等资源利用率较低的逻辑设备占用的 硬件资源, 将被释放的硬件资源分配给需要硬件资源的逻辑设备。 相对于 现有技术,本发明能够将硬件资源利用率较低的逻辑设备的硬件资源释放 并分配给系统中的其他逻辑设备,减少了因硬件资源不足导致的逻辑设备 无法高效运行或是等待分配资源的情况发生,从而使得服务器中实际存在 的硬件资源能够支持更多的逻辑设备同时运行, 因此, 避免了所述第一类 逻辑设备再次被唤醒时重复释放硬件资源前的运行,节省了服务器处理数 据的时间, 提高了服务器处理数据的效率, 也减少了服务器的能源损耗。 The method for managing a system according to the embodiment of the present invention determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value. The hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources. Compared with the prior art, the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices caused by insufficient hardware resources. The inability to run efficiently or wait for the allocation of resources occurs, so that the hardware resources actually existing in the server can support more logical devices to run at the same time, thus avoiding repeatedly releasing the hardware resources when the first type of logical devices are awake again. The previous operation saves the time for the server to process data, improves the efficiency of the server processing data, and reduces the energy consumption of the server.

本发明实施例提供一种管理系统资源的方法, 如图 4所示, 该方法可 以由如图 1所示的系统中的逻辑设备执行, 包括:  An embodiment of the present invention provides a method for managing system resources. As shown in FIG. 4, the method may be implemented by a logic device in the system shown in FIG. 1, and includes:

401 , 根据系统中的逻辑设备的硬件资源利用率, 检测是否为第一类 逻辑设备。  401. Detect whether the first type of logical device is based on a hardware resource utilization of the logical device in the system.

其中, 所述系统中的逻辑设备包括逻辑设备和运行时; 第一类逻辑设 备至少包括在所述系统中处于休眠状态、处于睡眠状态和空闲时间大于等 于阔值的逻辑设备。  The logic device in the system includes a logic device and a runtime; the first type of logic device includes at least a logic device that is in a sleep state, is in a sleep state, and has an idle time greater than a threshold value in the system.

402 , 若为所述第一类逻辑设备, 则向系统管理单元发送暂停请求消 息;以便于所述系统管理单元根据所述暂停请求消息确定所述逻辑设备为 所述第一类逻辑设备, 并释放所述逻辑设备占用的硬件资源, 并将被释放 的硬件资源分配至第二类逻辑设备。  402. If it is the first type of logical device, send a pause request message to the system management unit, so that the system management unit determines, according to the pause request message, that the logical device is the first type of logical device, and The hardware resources occupied by the logical device are released, and the released hardware resources are allocated to the second type of logical device.

其中, 在所述系统中除了所述第一类逻辑设备以外的逻辑设备中, 包 括了所述第二类逻辑设备。 若不为所述第一类逻辑设备, 则不作处理。  The logic device in the system other than the first type of logic device includes the second type of logic device. If it is not the first type of logical device, no processing is performed.

例如: 存在一个向系统管理单元发送暂停请求消息的逻辑设备, 则此 时系统管理单元根据接收到的暂停请求信息确定所述逻辑设备为所述第 一类逻辑设备, 同时释放所述逻辑设备占用的硬件资源, 之后将已经回收 的被释放硬件资源重新分配给需要硬件资源的逻辑设备。  For example, there is a logic device that sends a pause request message to the system management unit, and then the system management unit determines that the logical device is the first type of logical device according to the received pause request information, and releases the logical device occupation. Hardware resources, then re-allocate the reclaimed released hardware resources to logical devices that require hardware resources.

本发明实施例提供的管理系统的方法,根据系统中各个逻辑设备的硬 件资源利用率, 确定并释放在所述系统中处于休眠状态、 处于睡眠状态和 空闲时间大于等于阔值的逻辑设备等资源利用率较低的逻辑设备占用的 硬件资源, 将被释放的硬件资源分配给需要硬件资源的逻辑设备。 相对于 现有技术,本发明能够将硬件资源利用率较低的逻辑设备的硬件资源释放 并分配给系统中的其他逻辑设备,减少了因硬件资源不足导致的逻辑设备 无法高效运行或是等待分配资源的情况发生,从而使得服务器中实际存在 的硬件资源能够支持更多的逻辑设备同时运行,因此节省了服务器处理数 据的时间, 提高了服务器处理数据的效率, 也减少了服务器的能源损耗。 The method for managing a system according to the embodiment of the present invention determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value. The hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources. Compared with the prior art, the present invention can release and allocate hardware resources of logical devices with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices caused by insufficient hardware resources. The inability to run efficiently or wait for resource allocation occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing The energy loss of the server.

进一步的可选的, 在本案实例中, 在终端实行完毕 402 , 所述第一类 逻辑设备释放硬件资源, 并且系统管理模块将释放的硬件资源回收、 分配 给所述第二类逻辑设备后, 所述第一类逻辑设备被再次唤醒时, 根据所述 第一类逻辑设备释放资源时的运行状态恢复所述第一类逻辑设备。因此在 如图 4所示的实施方式的基础上, 还可以包括如图 5所示的实施方式, 由如 图 1所示的系统中的逻辑设备执行:  Further, in the example of the present application, after the terminal is executed 402, the first type of logical device releases the hardware resource, and the system management module recovers and allocates the released hardware resource to the second type of logical device. When the first type of logical device is awake again, the first type of logical device is restored according to an operating state when the first type of logical device releases resources. Therefore, based on the embodiment shown in FIG. 4, an embodiment as shown in FIG. 5 may also be included, which is executed by a logic device in the system as shown in FIG.

501 , 根据逻辑设备的硬件资源利用率, 检测是否为第一类逻辑设备。 其中, 第一类逻辑设备至少包括在所述系统中处于休眠状态、 处于睡 眠状态和空闲时间大于等于阔值的逻辑设备。  501. Detect, according to the hardware resource utilization of the logical device, whether the first type of logical device is detected. The first type of logic device includes at least a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system.

502 , 若为所述第一类逻辑设备, 则向系统管理单元发送暂停请求消 息;以便于所述系统管理单元根据所述暂停请求消息确定所述逻辑设备为 所述第一类逻辑设备, 并释放所述逻辑设备占用的硬件资源, 并将被释放 的硬件资源分配至第二类逻辑设备。  502. If it is the first type of logical device, send a pause request message to the system management unit, so that the system management unit determines, according to the pause request message, that the logical device is the first type of logical device, and The hardware resources occupied by the logical device are released, and the released hardware resources are allocated to the second type of logical device.

其中, 在所述系统中除了所述第一类逻辑设备以外的逻辑设备中, 包 括了所述第二类逻辑设备。 若不为所述第一类逻辑设备, 则不作处理。  The logic device in the system other than the first type of logic device includes the second type of logic device. If it is not the first type of logical device, no processing is performed.

503 ,接收所述系统管理单元分配的硬件资源和发送的运行状态信息, 所述运行状态信息记录了在被所述系统管理单元释放硬件资源之前,所述 逻辑设备的运行状态。  503. Receive hardware resources allocated by the system management unit and sent operating state information, where the running state information records an operating state of the logical device before being released by the system management unit.

例如: 存在一个第一类逻辑设备释放硬件资源, 则系统管理模块不仅 回收所述第一类逻辑设备释放的硬件资源,同时记录下所述第一类逻辑设 备在释放硬件资源时的运行状态。 其中, 运行状态可以包括: 逻辑设备使 用的 cpu寄存器信息、 逻辑设备使用的内存信息、 设备状态。  For example, if a first type of logical device releases hardware resources, the system management module not only recovers the hardware resources released by the first type of logical devices, but also records the running state of the first type of logical devices when the hardware resources are released. The running status may include: cpu register information used by the logical device, memory information used by the logical device, and device status.

504 , 根据所述运行状态信息加载所述逻辑设备被所述系统管理单元 释放硬件资源之前的运行状态。 例如: 存在一个已经被回收硬件资源的逻辑设备再次被唤醒, 此时, 系统管理模块不仅分配给所述逻辑设备硬件资源,同时加载所述逻辑设备 释放硬件资源之前的运行状态。避免了所述第一类逻辑设备再次被唤醒时 重复释放硬件资源前的运行, 节省了服务器处理数据的时间, 提高了服务 器处理数据的效率, 也减少了服务器的能源损耗。 504. Load, according to the running state information, an operating state before the logical device is released by the system management unit. For example: A logical device that has been reclaimed hardware resources is awake again. At this time, the system management module not only allocates the hardware resources of the logical device, but also loads the operating state before the logical device releases the hardware resources. The operation before the first type of logic device is repeatedly awake and the hardware resources are repeatedly released is avoided, the time for processing the data by the server is saved, the efficiency of processing the data by the server is improved, and the energy loss of the server is also reduced.

本发明实施例还提供一种管理系统资源的装置 60 , 如图 6所示, 装置 60包括:  The embodiment of the present invention further provides an apparatus 60 for managing system resources. As shown in FIG. 6, the apparatus 60 includes:

采集单元 61 , 用于根据系统中各个逻辑设备的硬件资源利用率, 所述 系统中的逻辑设备包括虚拟机和运行时; 确定第一类逻辑设备, 所述第一 类逻辑设备至少包括在所述系统中处于休眠状态、处于睡眠状态和空闲时 间大于等于阔值的逻辑设备。  The collecting unit 61 is configured to: according to hardware resource utilization of each logical device in the system, the logical device in the system includes a virtual machine and a runtime; determining a first type of logical device, where the first type of logical device includes at least A logical device in the system that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold.

释放单元 62 , 用于释放所述第一类逻辑设备占用的硬件资源。  The releasing unit 62 is configured to release hardware resources occupied by the first type of logical device.

分配单元 63 , 用于将被释放的硬件资源分配至第二类逻辑设备。  The allocating unit 63 is configured to allocate the released hardware resources to the second type of logical device.

其中, 在所述系统中除了所述第一类逻辑设备以外的逻辑设备, 还包 括了所述第二类逻辑设备。  The logical device other than the first type of logical device in the system further includes the second type of logical device.

进一步的, 如图 6a所示, 所述采集单元 61可以包括:  Further, as shown in FIG. 6a, the collecting unit 61 may include:

接收子单元 611 , 用于接收所述系统中的逻辑设备发送的暂停请求消 息, 所述暂停请求消息是由所述系统中的进入休眠状态前的逻辑设备、 进 入睡眠状态前的逻辑设备和空闲时间大于等于阔值的逻辑设备发送的。  The receiving subunit 611 is configured to receive a pause request message sent by the logical device in the system, where the pause request message is a logical device before entering a sleep state in the system, a logical device before entering a sleep state, and idle The time is greater than or equal to the threshold value sent by the logical device.

判断子单元 612 , 用于将发送了所述暂停请求消息的逻辑设备作为所 述第一类逻辑设备。  The determining subunit 612 is configured to use, as the first type of logical device, a logical device that sends the pause request message.

其中, 如图 7所示, 装置 60还可以包括:  Wherein, as shown in FIG. 7, the device 60 may further include:

存储单元 64 ,用于保存被释放了硬件资源的所述第一类逻辑设备的运 行状态。  The storage unit 64 is configured to save an operating state of the first type of logical device that has released the hardware resource.

加载单元 65 ,用于在所述释放所述第一类逻辑设备占用的硬件资源之 后, 为所述第一类逻辑设备分配硬件资源并加载所述运行状态。  The loading unit 65 is configured to allocate hardware resources and load the running state for the first type of logical device after the releasing the hardware resources occupied by the first type of logical device.

本发明实施例还提供一种管理系统资源的装置 80 , 如图 8所示, 装置 80包括: An embodiment of the present invention further provides an apparatus 80 for managing system resources, as shown in FIG. 80 includes:

检测单元 81 , 用于根据系统中的逻辑设备的硬件资源利用率, 检测是 否为第一类逻辑设备。  The detecting unit 81 is configured to detect, according to the hardware resource utilization of the logical device in the system, whether the logical device is the first type.

其中, 所述系统中的逻辑设备包括虚拟机和运行时; 第一类逻辑设备 至少包括在所述系统中处于休眠状态、处于睡眠状态和空闲时间大于等于 阔值的逻辑设备。  The logical device in the system includes a virtual machine and a runtime; the first type of logical device includes at least a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system.

判断单元 82 , 用于若为所述第一类逻辑设备, 则向系统管理子单元发 送暂停请求 :Λ肖息;以便于所述系统管理子单元根据所述暂停请求、肖息确定 所述逻辑设备为所述第一类逻辑设备,并释放所述逻辑设备占用的硬件资 源, 并将被释放的硬件资源分配至第二类逻辑设备。 The determining unit 82 is configured to: if it is the first type of logical device, send a pause request to the system management subunit: Λ ;; to facilitate the system management subunit to determine the logic according to the pause request The device is the first type of logical device, and releases the hardware resources occupied by the logical device, and allocates the released hardware resources to the second type of logical device.

其中, 在所述系统中除了所述第一类逻辑设备以外的逻辑设备中, 包 括了所述第二类逻辑设备。  The logic device in the system other than the first type of logic device includes the second type of logic device.

其中, 如图 9所示, 装置 80还可以包括:  As shown in FIG. 9, the device 80 may further include:

接收单元 83 ,用于接收所述系统管理子单元分配的硬件资源和发送的 运行状态信息,所述运行状态信息记录了在被所述系统管理子单元释放硬 件资源之前, 所述逻辑设备的运行状态。  The receiving unit 83 is configured to receive hardware resources allocated by the system management subunit and sent operating state information, where the running state information records operation of the logical device before being released by the system management subunit status.

加载单元 84 ,用于根据所述运行状态信息加载所述逻辑设备被所述系 统管理子单元释放硬件资源之前的运行状态。  The loading unit 84 is configured to load, according to the running state information, an operating state before the logical device is released by the system management subunit.

本发明实施例提供了一种监控网络负载的设备 90 , 至少包括: 处理器 901、 存储器 904和通信总线 903 ; 在本实施例中, 设备 90也可以包括网络 接口 902。 所述通信总线 903用于实现所述处理器 901、 所述网络接口 902 和所述存储器 904之间的连接通信; 所述存储器 904 , 用于存储所述监控网 络负载的设备 90在运行过程中所涉及的数据; 可选的, 还包含用户接口 905 , 包括显示器, 键盘或者点击设备(例如, 鼠标, 轨迹球( trackball ) , 触感板或者触感显示屏)。 存储器 904可能包含高速 RAM存储器, 也可能 还包括非不稳定的存储器( non-volatile memory ), 例如至少一个磁盘存储 器。存储器 904可选的可以包含至少一个位于远离前述处理器 901的存储装 置; The embodiment of the present invention provides a device 90 for monitoring network load, including at least a processor 901, a memory 904, and a communication bus 903. In this embodiment, the device 90 may also include a network interface 902. The communication bus 903 is configured to implement connection communication between the processor 901, the network interface 902, and the memory 904. The memory 904 is configured to store the device 90 for monitoring network load during operation. The data involved; optionally, a user interface 905 is also included, including a display, a keyboard or a pointing device (eg, a mouse, a trackball, a touchpad, or a tactile display). Memory 904 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory. The memory 904 can optionally include at least one storage device located away from the processor 901. Set

需要说明的是, 在本实施例中, 网络接口 902主要是为了不同设备之 间的信息传输。 例如: 一个设备中存在一个系统管理模块, 所述系统管理 模块要同时与两个设备中的虚拟机传输信息, 此时网络接口 902的作用是 使所述系统管理模块分别与所述两个设备中的虚拟机传输信息。  It should be noted that, in this embodiment, the network interface 902 is mainly for information transmission between different devices. For example, there is a system management module in a device, and the system management module needs to transmit information to the virtual machine in the two devices at the same time. At this time, the function of the network interface 902 is to make the system management module and the two devices respectively. The virtual machine in the transmission information.

在一些实施方式中, 存储器 904存储了如下的元素, 可执行模块或者 数据结构, 或者他们的子集, 或者他们的扩展集:  In some embodiments, memory 904 stores the following elements, executable modules or data structures, or a subset thereof, or their extension set:

其中系统 9041 , 包含各种系统程序, 用于实现各种基础业务以及处理 基于硬件的任务; 应用程序 9042 , 包含各种在系统上运行的应用程序, 比 如: 在虚拟机系统中的虚拟机上运行的应用程序、 在轻量级虚拟化系统 / 去虚拟化系统 /分区系统上运行的应用程序、 在运行时系统上运行的运行 时。  System 9041 includes various system programs for implementing various basic services and processing hardware-based tasks. Application 9042 includes various applications running on the system, such as: on a virtual machine in a virtual machine system. The running application, the application running on the lightweight virtualization system/de-virtualization system/partition system, the runtime running on the runtime system.

具体的, 所述处理器 901 , 用于根据系统中各个逻辑设备的硬件资源 利用率, 确定第一类逻辑设备, 所述第一类逻辑设备至少包括在所述系统 中处于休眠状态、 处于睡眠状态和空闲时间大于等于阔值的逻辑设备; 所述处理器 901 , 还用于释放所述第一类逻辑设备占用的硬件资源; 所述处理器 901 ,还用于将被释放的硬件资源分配至第二类逻辑设备, 其中, 在所述系统中除了所述第一类逻辑设备以外的逻辑设备, 还包括了 所述第二类逻辑设备。  Specifically, the processor 901 is configured to determine, according to hardware resource utilization of each logical device in the system, a first type of logical device, where the first type of logical device includes at least a sleep state and is in a sleep state in the system. The 901 is configured to release the hardware resources occupied by the first type of logical device, and the processor 901 is further configured to allocate the released hardware resources. To a second type of logical device, wherein the logical device other than the first type of logical device in the system further includes the second type of logical device.

其中, 所述处理器 901具体用于: 接收所述系统中的逻辑设备发送的 暂停请求;肖息,所述暂停请求消息是由所述系统中的进入休眠状态前的逻 辑设备、进入睡眠状态前的逻辑设备和空闲时间大于等于阔值的逻辑设备 发送的;  The processor 901 is specifically configured to: receive a pause request sent by the logic device in the system; and the pause request message is entered by the logical device before entering the sleep state in the system, and enters a sleep state. The former logical device and the logical device whose idle time is greater than or equal to the threshold value;

并且,将发送了所述暂停请求消息的逻辑设备作为所述第一类逻辑设 备。  And, the logical device that sent the pause request message is used as the first type of logical device.

其中, 所述处理器 901 , 还用于: 保存被释放了硬件资源的所述第一 类逻辑设备的运行状态;在所述释放所述第一类逻辑设备占用的硬件资源 之后, 为所述第一类逻辑设备分配硬件资源并加载所述运行状态。 The processor 901 is further configured to: save the first that is released hardware resources An operating state of the logical device of the class; after the releasing the hardware resources occupied by the first type of logical device, allocating hardware resources to the first type of logical device and loading the operating state.

本发明实施例提供的管理系统的设备,根据系统中各个逻辑设备的硬 件资源利用率, 确定并释放在所述系统中处于休眠状态、 处于睡眠状态和 空闲时间大于等于阔值的逻辑设备等资源利用率较低的逻辑设备占用的 硬件资源, 将被释放的硬件资源分配给需要硬件资源的逻辑设备。 相对于 现有技术,本发明能够将硬件资源利用率较低的虚拟机的硬件资源释放并 分配给系统中的其他逻辑设备,减少了因硬件资源不足导致的逻辑设备无 法高效运行或是等待分配资源的情况发生,从而使得服务器中实际存在的 硬件资源能够支持更多的逻辑设备同时运行,因此节省了服务器处理数据 的时间, 提高了服务器处理数据的效率, 也减少了服务器的能源损耗。  The device of the management system provided by the embodiment of the present invention determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value. The hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources. Compared with the prior art, the present invention can release and allocate hardware resources of a virtual machine with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources. The situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server.

本发明实施例还提供了一种监控网络负载的设备 100 , 至少包括: 处 理器 1001、 存储器 1004和通信总线 1003 ; 在本实施例中, 设备 100也可以 包括网络接口 1002。 所述通信总线 1003用于实现所述处理器 1001、 所述网 络接口 1002和所述存储器 1004之间的连接通信; 所述存储器 1004 , 用于存 储所述监控网络负载的设备在运行过程中所涉及的数据, 可选的, 还包含 用户接口 1005 , 包括显示器, 键盘或者点击设备 (例如, 鼠标, 轨迹球 ( trackball ) , 触感板或者触感显示屏)。 存储器 1004可能包含高速 RAM 存储器, 也可能还包括非不稳定的存储器(non-volatile memory ), 例如至 少一个磁盘存储器。存储器 1004可选的可以包含至少一个位于远离前述处 理器 1001的存储装置;  The embodiment of the present invention further provides a device 100 for monitoring network load, which at least includes: a processor 1001, a memory 1004, and a communication bus 1003. In this embodiment, the device 100 may also include a network interface 1002. The communication bus 1003 is configured to implement connection communication between the processor 1001, the network interface 1002, and the memory 1004. The memory 1004 is configured to store the device for monitoring the network load during operation. The data involved, optionally, also includes a user interface 1005, including a display, keyboard or pointing device (eg, mouse, trackball, touchpad or tactile display). Memory 1004 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory. The memory 1004 can optionally include at least one storage device located remotely from the processor 1001;

在一些实施方式中, 存储器 1004存储了如下的元素, 可执行模块或者 数据结构, 或者他们的子集, 或者他们的扩展集:  In some embodiments, memory 1004 stores the following elements, executable modules or data structures, or a subset thereof, or their extension set:

其中系统 10041 , 包含各种系统程序, 用于实现各种基础业务以及处 理基于硬件的任务; 应用程序 10042 , 包含各种在系统上运行的应用程序, 比如: 在虚拟机系统中的虚拟机上运行的应用程序、 在轻量级虚拟化系统 /去虚拟化系统 /分区系统上运行的应用程序、 在运行时系统上运行的运行 时。 The system 10041 includes various system programs for implementing various basic services and processing hardware-based tasks. The application 10042 includes various applications running on the system, for example: on a virtual machine in a virtual machine system. Running applications, applications running on a lightweight virtualization/de-virtualized/partitioned system, running on a runtime system Time.

具体的, 所述处理器 1 001 , 用于根据系统中的逻辑设备的硬件资源利 用率, 检测是否为第一类逻辑设备, 所述系统中的逻辑设备包括虚拟机和 运行时; 所述第一类逻辑设备至少包括在所述系统中处于休眠状态、 处于 睡眠状态和空闲时间大于等于阔值的逻辑设备;  Specifically, the processor 1 001 is configured to detect, according to the hardware resource utilization of the logical device in the system, whether it is a first type of logical device, where the logical device in the system includes a virtual machine and a runtime; A type of logic device includes at least a logic device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value in the system;

所述处理器 1 001 , 还用于若为所述第一类逻辑设备, 则向系统管理单 元发送暂停请求消息;以便于所述系统管理单元根据所述暂停请求消 , 确 定所述逻辑设备为所述第一类逻辑设备,并释放所述逻辑设备占用的硬件 资源, 并将被释放的硬件资源分配至第二类逻辑设备, 其中, 在所述系统 中除了所述第一类逻辑设备以外的逻辑设备中,包括了所述第二类逻辑设 备。  The processor 1 001 is further configured to: if it is the first type of logical device, send a pause request message to the system management unit; so that the system management unit determines, according to the pause request, that the logical device is The first type of logical device, and the hardware resources occupied by the logical device are released, and the released hardware resources are allocated to the second type of logical device, where the system is other than the first type of logical device. The logical device of the second type includes the second type of logical device.

其中, 所述处理器 1 001 , 具体用于接收所述系统管理单元分配的硬件 资源和发送的运行状态信息,所述运行状态信息记录了在被所述系统管理 单元释放硬件资源之前, 所述逻辑设备的运行状态; 并且, 根据所述运行 状态信息加载所述逻辑设备被所述系统管理单元释放硬件资源之前的运 行状态。  The processor 1 001 is specifically configured to receive hardware resources allocated by the system management unit and sent operation state information, where the operation state information records, before the system management unit releases the hardware resources, An operating state of the logical device; and loading, according to the operating state information, an operating state before the logical device is released by the system management unit.

本发明实施例提供的管理系统的设备,根据系统中各个逻辑设备的硬 件资源利用率, 确定并释放在所述系统中处于休眠状态、 处于睡眠状态和 空闲时间大于等于阔值的逻辑设备等资源利用率较低的逻辑设备占用的 硬件资源, 将被释放的硬件资源分配给需要硬件资源的逻辑设备。 相对于 现有技术,本发明能够将硬件资源利用率较低的虚拟机的硬件资源释放并 分配给系统中的其他逻辑设备,减少了因硬件资源不足导致的逻辑设备无 法高效运行或是等待分配资源的情况发生,从而使得服务器中实际存在的 硬件资源能够支持更多的逻辑设备同时运行,因此节省了服务器处理数据 的时间, 提高了服务器处理数据的效率, 也减少了服务器的能源损耗。 同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的 不同之处。 尤其, 对于设备实施例而言, 由于其基本相似于方法实施例, 所以描述得比较简单, 相关之处参见方法实施例的部分说明即可。 The device of the management system provided by the embodiment of the present invention determines, according to the hardware resource utilization of each logical device in the system, a resource such as a logical device that is in a sleep state, is in a sleep state, and has an idle time greater than or equal to a threshold value. The hardware resources occupied by the low-utilization logical devices allocate the released hardware resources to the logical devices that need hardware resources. Compared with the prior art, the present invention can release and allocate hardware resources of a virtual machine with low hardware resource utilization to other logical devices in the system, thereby reducing logical devices that cannot be efficiently operated or waiting for allocation due to insufficient hardware resources. The situation of resources occurs, so that the actual hardware resources in the server can support more logical devices to run at the same time, thus saving the time for the server to process data, improving the efficiency of the server processing data, and reducing the energy consumption of the server. The same parts can be referred to each other, and each embodiment focuses on the other embodiments. the difference. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分 流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存 储于一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法 的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆 体 ( Rea d-On l y Memory , ROM )或随机存储记忆体 ( Random Ac ce s s Memo ry , RAM ) 等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only storage memory (ROM), or a random access memory (RAM).

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的 保护范围应该以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 Claim 1、 一种管理系统资源的方法,其特征在于,包括:  A method of managing system resources, characterized by comprising: 根据系统中各个逻辑设备的硬件资源利用率,确定第一类逻辑设备, 所述系统中的逻辑设备包括虚拟机和运行时;所述第一类逻辑设备至少包 括在所述系统中处于休眠状态、 处于睡眠状态和空闲时间大于等于阈值的 逻辑设备;  Determining, according to hardware resource utilization of each logical device in the system, a first type of logical device, where the logical device in the system includes a virtual machine and a runtime; the first type of logical device includes at least a dormant state in the system a logical device that is in a sleep state and whose idle time is greater than or equal to a threshold; 释放所述第一类逻辑设备占用的硬件资源;  Freeing hardware resources occupied by the first type of logical device; 将被释放的硬件资源分配至第二类逻辑设备 ,其中 ,在所述系统中除 了所述第一类逻辑设备以外的逻辑设备,还包括了所述第二类逻辑设备。  The released hardware resources are allocated to the second type of logical device, wherein the logical devices other than the first type of logical devices are included in the system, and the second type of logical devices are also included. 2、 根据权利要求 1所述的管理系统资源的方法,其特征在于 ,所述根 据系统中各个逻辑设备的硬件资源利用率,确定第一类逻辑设备,包括: 接收所述系统中的逻辑设备发送的暂停请求消息,所述暂停请求消息 是由所述系统中的进入休眠状态前的逻辑设备、 进入睡眠状态前的逻辑设 备和空闲时间大于等于阈值的逻辑设备发送的 ;  The method for managing system resources according to claim 1, wherein the determining the first type of logical device according to the hardware resource utilization of each logical device in the system comprises: receiving the logical device in the system The suspended request message is sent by the logical device before entering the sleep state, the logical device before entering the sleep state, and the logical device whose idle time is greater than or equal to the threshold; 将发送了所述暂停请求消息的逻辑设备作为所述第一类逻辑设备。 The logical device that sent the pause request message is used as the first type of logical device. 3、 根据权利要求 1或 2所述的管理系统资源的方法,其特征在于,还包 括: 3. A method of managing system resources according to claim 1 or 2, further comprising: 保存被释放了硬件资源的所述第一类逻辑设备的运行状态;  Saving an operating state of the first type of logical device that has released the hardware resource; 在所述释放所述第一类逻辑设备占用的硬件资源之后 , 为所述第一类 逻辑设备分配硬件资源并加载所述运行状态。  After releasing the hardware resources occupied by the first type of logical device, allocating hardware resources to the first type of logical device and loading the running state. 4、 一种管理系统资源的方法,其特征在于,包括:  4. A method of managing system resources, characterized by comprising: 根据系统中的逻辑设备的硬件资源利用率,检测是否为第一类逻辑设 备,所述系统中的逻辑设备包括虚拟机和运行时;所述第一类逻辑设备至 少包括在所述系统中处于休眠状态、 处于睡眠状态和空闲时间大于等于阈 值的逻辑设备;  Detecting whether it is a first type of logical device according to the hardware resource utilization of the logical device in the system, the logical device in the system includes a virtual machine and a runtime; the first type of logical device is at least included in the system a sleep device, a sleep state, and a logical device whose idle time is greater than or equal to a threshold; 若为所述第一类逻辑设备 ,则向系统管理单元发送暂停请求消息; 以 便于所述系统管理单元根据所述暂停请求消息确定所述逻辑设备为所述第 一类逻辑设备 ,并释放所述逻辑设备占用的硬件资源,并将被释放的硬件 资源分配至第二类逻辑设备,其中 ,在所述系统中除了所述第一类逻辑设 备以外的逻辑设备中 ,包括了所述第二类逻辑设备。 If it is the first type of logical device, sending a pause request message to the system management unit; so that the system management unit determines that the logical device is the first according to the pause request message. a type of logical device, and releasing the hardware resources occupied by the logical device, and allocating the released hardware resources to the second type of logical device, wherein the logical device other than the first type of logical device in the system The second type of logical device is included. 5、 根据权利要求 4所述的管理系统资源的方法,其特征在于,还包括: 接收所述系统管理单元分配的硬件资源和发送的运行状态信息,所述 运行状态信息记录了在被所述系统管理单元释放硬件资源之前 ,所述逻辑 设备的运行状态;  The method for managing system resources according to claim 4, further comprising: receiving hardware resources allocated by the system management unit and running operating state information, where the running state information is recorded The operating state of the logical device before the system management unit releases the hardware resource; 根据所述运行状态信息加载所述逻辑设备被所述系统管理单元释放硬 件资源之前的运行状态。  And loading an operating state of the logical device before the hardware resource is released by the system management unit according to the running state information. 6、 一种管理系统资源的装置,其特征在于,包括:  6. A device for managing system resources, comprising: 采集单元,用于根据系统中各个逻辑设备的硬件资源利用率,所述系 统中的逻辑设备包括虚拟机和运行时;确定第一类逻辑设备 ,所述第一类 逻辑设备至少包括在所述系统中处于休眠状态、 处于睡眠状态和空闲时间 大于等于阈值的逻辑设备;  An acquiring unit, configured to: according to hardware resource utilization of each logical device in the system, the logical device in the system includes a virtual machine and a runtime; determining a first type of logical device, where the first type of logical device is included at least a logical device in the system that is in a sleep state, in a sleep state, and whose idle time is greater than or equal to a threshold; 释放单元,用于释放所述第一类逻辑设备占用的硬件资源;  a release unit, configured to release hardware resources occupied by the first type of logical device; 分配单元,用于将被释放的硬件资源分配至第二类逻辑设备 ,其中 , 在所述系统中除了所述第一类逻辑设备以外的逻辑设备,还包括了所述第 二类逻辑设备。  And an allocating unit, configured to allocate the released hardware resource to the second type of logical device, wherein the logical device other than the first type of logical device in the system further includes the second type of logical device. 7、 根据权利要求 6所述的管理系统资源的装置,其特征在于 ,所述采 集单元包括:  7. The apparatus for managing system resources according to claim 6, wherein the collection unit comprises: 接收子单元,用于接收所述系统中的逻辑设备发送的暂停请求消息, 所述暂停请求消息是由所述系统中的进入休眠状态前的逻辑设备、 进入睡 眠状态前的逻辑设备和空闲时间大于等于阈值的逻辑设备发送的 ;  a receiving subunit, configured to receive a pause request message sent by a logical device in the system, where the pause request message is a logical device before entering a sleep state in the system, a logical device before entering a sleep state, and an idle time Transmitted by a logical device that is greater than or equal to the threshold; 判断子单元,用于将发送了所述暂停请求消息的逻辑设备作为所述第 一类逻辑设备。  a judging subunit for using the logical device that sent the suspend request message as the first type of logical device. 8、 根据权利要求 6或 7所述的管理系统资源的装置,其特征在于,还包 括: 存储单元,用于保存被释放了硬件资源的所述第一类逻辑设备的运行 状态; The device for managing system resources according to claim 6 or 7, further comprising: a storage unit, configured to save an operating state of the first type of logical device that is released with a hardware resource; 加载单元,用于在所述释放所述第一类逻辑设备占用的硬件资源之后, 为所述第一类逻辑设备分配硬件资源并加载所述运行状态。  a loading unit, configured to allocate a hardware resource to the first type of logical device and load the running state after the releasing the hardware resources occupied by the first type of logical device. 9、 一种管理系统资源的装置,其特征在于,包括:  9. An apparatus for managing system resources, comprising: 检测单元,用于根据系统中的逻辑设备的硬件资源利用率,检测是否 为第一类逻辑设备,所述系统中的逻辑设备包括虚拟机和运行时;所述第 一类逻辑设备至少包括在所述系统中处于休眠状态、 处于睡眠状态和空闲 时间大于等于阈值的逻辑设备;  a detecting unit, configured to detect, according to hardware resource utilization of the logical device in the system, whether the first type of logical device, the logical device in the system includes a virtual machine and a runtime; the first type of logical device is included at least a logic device in the system that is in a sleep state, in a sleep state, and whose idle time is greater than or equal to a threshold; 判断单元,用于若为所述第一类逻辑设备 ,则向系统管理子单元发送 暂停请求消息; 以便于所述系统管理子单元根据所述暂停请求消息确定所 述逻辑设备为所述第一类逻辑设备,并释放所述逻辑设备占用的硬件资源, 并将被释放的硬件资源分配至第二类逻辑设备,其中 ,在所述系统中除了 所述第一类逻辑设备以外的逻辑设备中 ,包括了所述第二类逻辑设备。  a determining unit, configured to send a pause request message to the system management subunit if the first type of logical device is used, so that the system management subunit determines that the logical device is the first according to the pause request message Generating a logical device, and releasing the hardware resources occupied by the logical device, and allocating the released hardware resources to the second type of logical device, wherein the logical device other than the first type of logical device is in the system The second type of logical device is included. 10、根据权利要求 9所述的管理系统资源的装置,其特征在于,还包括: 接收单元,用于接收所述系统管理子单元分配的硬件资源和发送的运 行状态信息,所述运行状态信息记录了在被所述系统管理子单元释放硬件 资源之前,所述逻辑设备的运行状态;  The device for managing system resources according to claim 9, further comprising: a receiving unit, configured to receive hardware resources allocated by the system management subunit and sent operating state information, where the operating state information Recording an operating state of the logical device before releasing the hardware resource by the system management subunit; 加载单元,用于根据所述运行状态信息加载所述逻辑设备被所述系统 管理子单元释放硬件资源之前的运行状态。  And a loading unit, configured to load, according to the running state information, an operating state before the logical device is released by the system management subunit. 11、 一种管理系统资源的设备 ,其特征在于,所述管理系统资源的设 备至少包括:处理器、 存储器和通信总线;所述通信总线用于实现所述处 理器和所述存储器之间的连接通信;所述存储器,用于存储所述管理系统 资源的设备在运行过程中所涉及的数据;  11. A device for managing system resources, wherein the device for managing system resources includes at least: a processor, a memory, and a communication bus; the communication bus is configured to implement between the processor and the memory The communication is used to store data involved in the operation of the device for managing the system resource; 所述处理器,用于根据系统中各个逻辑设备的硬件资源利用率,确定 第一类逻辑设备 ,所述系统中的逻辑设备包括虚拟机和运行时;所述第一 类逻辑设备至少包括在所述系统中处于休眠状态、 处于睡眠状态和空闲时 间大于等于阈值的逻辑设备;并释放所述第一类逻辑设备占用的硬件资源; 并将被释放的硬件资源分配至第二类逻辑设备,其中 ,在所述系统中除了 所述第一类逻辑设备以外的逻辑设备 ,还包括了所述第二类逻辑设备。 The processor is configured to determine, according to hardware resource utilization of each logical device in the system, a first type of logical device, where the logical device includes a virtual machine and a runtime; the first type of logical device is included at least When the system is in a sleep state, in a sleep state, and in an idle state a logical device that is greater than or equal to the threshold; and releases the hardware resources occupied by the first type of logical device; and allocates the released hardware resource to the second type of logical device, wherein the first class is included in the system The logical device other than the logical device further includes the second type of logical device. 12、 根据权利要求 11所述的管理系统资源的设备 ,其特征在于 ,所述 处理器,具体用于接收所述系统中的逻辑设备发送的暂停请求消息,所述 暂停请求消息是由所述系统中的进入休眠状态前的逻辑设备、 进入睡眠状 态前的逻辑设备和空闲时间大于等于阈值的逻辑设备发送的 ;并将发送了 所述暂停请求消息的逻辑设备作为所述第一类逻辑设备。  The device for managing system resources according to claim 11, wherein the processor is specifically configured to receive a pause request message sent by a logical device in the system, where the pause request message is a logical device before entering a sleep state, a logical device before entering a sleep state, and a logical device having an idle time greater than or equal to a threshold; and a logical device that sends the pause request message as the first type of logical device . 13、 根据权利要求 11或 12所述的管理系统资源的设备 ,其特征在于 , 所述存储器,还用于保存被释放了硬件资源的所述第一类逻辑设备的运行 状态;  The device for managing system resources according to claim 11 or 12, wherein the memory is further configured to save an operating state of the first type of logical device that has released the hardware resource; 所述处理器,还用于从所述存储器中读取所述第一类逻辑设备的运行 状态;并在所述释放所述第一类逻辑设备占用的硬件资源之后 , 为所述第 一类逻辑设备分配硬件资源并加载所述运行状态。  The processor is further configured to read an operating state of the first type of logical device from the memory; and after the releasing the hardware resources occupied by the first type of logical device, the first class The logical device allocates hardware resources and loads the operational state. 14、 一种管理系统资源的设备 ,其特征在于,所述管理系统资源的设 备至少包括:处理器、 存储器和通信总线;所述通信总线用于实现所述处 理器、 所述网络接口和所述存储器之间的连接通信;所述存储器,用于存 储所述监控网络负载的设备在运行过程中所涉及的数据;  14. A device for managing system resources, wherein the device for managing system resources includes at least: a processor, a memory, and a communication bus; the communication bus is configured to implement the processor, the network interface, and the a connection communication between the memories; the memory is configured to store data involved in the operation of the device for monitoring the network load; 所述处理器,用于根据系统中的逻辑设备的硬件资源利用率,检测是 否为第一类逻辑设备 ,所述系统中的逻辑设备包括虚拟机和运行时;所述 第一类逻辑设备至少包括在所述系统中处于休眠状态、 处于睡眠状态和空 闲时间大于等于阈值的逻辑设备;  The processor is configured to detect, according to the hardware resource utilization of the logical device in the system, whether the first type of logical device, the logical device in the system includes a virtual machine and a runtime; and the first type of logical device is at least Included in the system is a sleep state, is in a sleep state, and the idle time is greater than or equal to a threshold of logic devices; 所述处理器,还用于若为所述第一类逻辑设备,则向系统管理单元发 送暂停请求消息; 以便于所述系统管理单元根据所述暂停请求消息确定所 述逻辑设备为所述第一类逻辑设备,并释放所述逻辑设备占用的硬件资源, 并将被释放的硬件资源分配至第二类逻辑设备,其中 ,在所述系统中除了 所述第一类逻辑设备以外的逻辑设备中 ,包括了所述第二类逻辑设备。 The processor is further configured to: if the first type of logic device is, send a pause request message to the system management unit; so that the system management unit determines, according to the pause request message, that the logical device is the a type of logical device, and releasing the hardware resources occupied by the logical device, and allocating the released hardware resources to the second type of logical device, wherein the logical device other than the first type of logical device in the system The second type of logical device is included. 15、 根据权利要求 14所述的管理系统资源的设备,其特征在于 ,所述 处理器,具体用于接收所述系统管理单元分配的硬件资源和发送的运行状 态信息,所述运行状态信息记录了在被所述系统管理单元释放硬件资源之 前,所述逻辑设备的运行状态;并根据所述运行状态信息加载所述逻辑设 备被所述系统管理单元释放硬件资源之前的运行状态。 The device for managing system resources according to claim 14, wherein the processor is specifically configured to receive hardware resources allocated by the system management unit and sent operational status information, where the running status information is recorded. An operating state of the logical device before being released by the system management unit; and loading an operating state of the logical device before the hardware resource is released by the system management unit according to the operating state information.
PCT/CN2014/078842 2014-05-29 2014-05-29 Method, apparatus and device for managing system resource Ceased WO2015180111A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/078842 WO2015180111A1 (en) 2014-05-29 2014-05-29 Method, apparatus and device for managing system resource
CN201480037433.2A CN105340246A (en) 2014-05-29 2014-05-29 Method, apparatus and device for managing system resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/078842 WO2015180111A1 (en) 2014-05-29 2014-05-29 Method, apparatus and device for managing system resource

Publications (1)

Publication Number Publication Date
WO2015180111A1 true WO2015180111A1 (en) 2015-12-03

Family

ID=54697890

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078842 Ceased WO2015180111A1 (en) 2014-05-29 2014-05-29 Method, apparatus and device for managing system resource

Country Status (2)

Country Link
CN (1) CN105340246A (en)
WO (1) WO2015180111A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089922A (en) * 2016-11-21 2018-05-29 三星电子株式会社 For the electronic device and its method of effective resource management
CN112612573A (en) * 2020-12-17 2021-04-06 龙存科技(北京)股份有限公司 Memory allocation method and device based on resource monitoring
CN114968480A (en) * 2022-04-29 2022-08-30 苏州浪潮智能科技有限公司 Method, system and storage medium for managing heterogeneous equipment in node

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375376B (en) * 2016-08-25 2020-04-14 迈普通信技术股份有限公司 Resource recovery method and device
CN112286639B (en) * 2020-11-08 2024-02-23 国家电网有限公司 Methods to reduce CPU usage of security components

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051564A (en) * 2013-01-07 2013-04-17 杭州华三通信技术有限公司 Dynamic resource allocation method and device
US8522249B2 (en) * 2007-06-27 2013-08-27 Bluestreak Technology, Inc. Management of software implemented services in processor-based devices
CN103475683A (en) * 2012-06-08 2013-12-25 中兴通讯股份有限公司 Cloud contact resource scheduling and processing method and apparatus thereof
CN103617091A (en) * 2013-12-18 2014-03-05 深圳市道通科技有限公司 Method and device for realizing dynamic allocation of hardware resources

Family Cites Families (3)

* Cited by examiner, † Cited by third party
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
CN103179048B (en) * 2011-12-21 2016-04-13 中国电信股份有限公司 Main frame qos policy transform method and the system of cloud data center
US20140007097A1 (en) * 2012-06-29 2014-01-02 Brocade Communications Systems, Inc. Dynamic resource allocation for virtual machines

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8522249B2 (en) * 2007-06-27 2013-08-27 Bluestreak Technology, Inc. Management of software implemented services in processor-based devices
CN103475683A (en) * 2012-06-08 2013-12-25 中兴通讯股份有限公司 Cloud contact resource scheduling and processing method and apparatus thereof
CN103051564A (en) * 2013-01-07 2013-04-17 杭州华三通信技术有限公司 Dynamic resource allocation method and device
CN103617091A (en) * 2013-12-18 2014-03-05 深圳市道通科技有限公司 Method and device for realizing dynamic allocation of hardware resources

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089922A (en) * 2016-11-21 2018-05-29 三星电子株式会社 For the electronic device and its method of effective resource management
CN108089922B (en) * 2016-11-21 2022-01-25 三星电子株式会社 Electronic device for efficient resource management and method thereof
CN112612573A (en) * 2020-12-17 2021-04-06 龙存科技(北京)股份有限公司 Memory allocation method and device based on resource monitoring
CN114968480A (en) * 2022-04-29 2022-08-30 苏州浪潮智能科技有限公司 Method, system and storage medium for managing heterogeneous equipment in node

Also Published As

Publication number Publication date
CN105340246A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
JP6219512B2 (en) Virtual hadoop manager
US9875145B2 (en) Load based dynamic resource sets
US11181970B2 (en) System and method for performing distributed power management without power cycling hosts
US9672075B2 (en) Method, apparatus, and system for implementing hot migration of virtual machine
US9558025B2 (en) Inter-board virtualization management for managing hardware resources corresponding to interrupts
US20170017511A1 (en) Method for memory management in virtual machines, and corresponding system and computer program product
CN104050137B (en) The method and device that kernel is run in a kind of OS
EP2672381A1 (en) Virtual resource management method, system and device
US20150378782A1 (en) Scheduling of tasks on idle processors without context switching
EP3000024B1 (en) Dynamically provisioning storage
CN102314377A (en) The method of accelerator and the migration of realization virtual support machine thereof
CN107197053A (en) A kind of load-balancing method and device
CN114389955B (en) Embedded Platform Heterogeneous Resource Pool Management Method
CN103810015A (en) Virtual machine establishing method and equipment
WO2015180111A1 (en) Method, apparatus and device for managing system resource
US20120144389A1 (en) Optimizing virtual image deployment for hardware architecture and resources
CN112052072A (en) Scheduling strategy and super-fusion system of virtual machine
US8977752B2 (en) Event-based dynamic resource provisioning
KR102513961B1 (en) Electronic Device having Multiple Operating Systems and Dynamic Memory Management Method thereof
CN114546587A (en) A method for expanding and shrinking capacity of online image recognition service and related device
US9612907B2 (en) Power efficient distribution and execution of tasks upon hardware fault with multiple processors
CN105677481A (en) Method and system for processing data and electronic equipment
CN104714924B (en) A kind of resource control method and device
CN116743589B (en) Cloud host migration method, device and electronic equipment
Gil et al. GPU Usage Time-Based Ordering Management Technique for Tasks Execution to Prevent Running Failures of GPU Tasks in Container Environments.

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480037433.2

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14893555

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14893555

Country of ref document: EP

Kind code of ref document: A1