CN108108243B - Resource sharing system and method - Google Patents

Resource sharing system and method Download PDF

Info

Publication number
CN108108243B
CN108108243B CN201711336736.6A CN201711336736A CN108108243B CN 108108243 B CN108108243 B CN 108108243B CN 201711336736 A CN201711336736 A CN 201711336736A CN 108108243 B CN108108243 B CN 108108243B
Authority
CN
China
Prior art keywords
manager
processing module
resource
processor
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711336736.6A
Other languages
Chinese (zh)
Other versions
CN108108243A (en
Inventor
王军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201711336736.6A priority Critical patent/CN108108243B/en
Publication of CN108108243A publication Critical patent/CN108108243A/en
Application granted granted Critical
Publication of CN108108243B publication Critical patent/CN108108243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)
  • Multi Processors (AREA)

Abstract

The invention discloses a resource control system and a method, wherein the system comprises: a processor, the processor comprising: a first processing module and a second processing module; the manager is connected with the first processing module; the manager is in communication with the first processing module for using a portion of the resources shared by the processors; therefore, in the invention, the manager can use part of the resources shared by the processors, thereby improving the processing capacity of the manager.

Description

Resource sharing system and method
Technical Field
The invention relates to the technical field of information processing, in particular to a resource sharing system and method.
Background
At present, a computer includes various types of controllers, and includes some managers, such as a BMC (Baseboard Management Controller), in addition to a core processor, which is a Management center of a server and is used for managing information such as a power supply, a fan, a network card, a display card, and the like in the system.
However, the processing capacity of the manager is limited, and the inventor finds in practice that the processing capacity of the manager often becomes a bottleneck for improving the processing efficiency of the system.
Therefore, how to increase the processing capability of the manager becomes a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention provides a resource control system and method to improve the processing capability of a manager.
In order to achieve the purpose, the invention provides the following technical scheme:
a resource control system, comprising:
a processor, the processor comprising: a first processing module and a second processing module;
the manager is connected with the first processing module;
the manager is in communication with the first processing module for using a portion of the resources shared by the processors.
Preferably, the first processing module is configured to receive a computing resource usage request sent by the manager, and share a part of its computing resource with the manager.
Preferably, the first processing module is specifically configured to receive a computing resource usage request sent by the manager, and share a part of pre-partitioned computing resources to the manager for use;
or the first processing module is specifically configured to receive a computing resource usage request sent by the manager, and determine, based on a pre-allocation policy, that part of the computing resources matched with the currently idle computing resources are shared with the manager for use.
Preferably, the method further comprises the following steps:
the memory module is connected with the second processing module;
the first processing module is used for sending the memory resource use request sent by the manager to the second processing module;
the second processing module is used for sharing part of the memory resources of the memory module to the manager for use based on the memory resource use request.
Preferably, the manager is configured to use the partial memory resource when using the partial computing resource shared by the first processing module.
Preferably, the method further comprises the following steps:
the communication module is respectively connected with the processor and the manager;
the communication module is used for sending the current state of the processor to the manager so that the manager sends a resource use request to the processor when the processor is in a normal state.
A resource control method is applied to a manager and comprises the following steps:
sending a resource use request to a first processing module of a processor;
receiving resource sharing information fed back by the processor based on the resource use request;
using a portion of the resources shared by the processors based on the resource sharing information.
Preferably, the resource usage request comprises a computing resource usage request;
the receiving resource sharing information fed back by the processor based on the resource usage request includes:
receiving computing resource sharing information fed back by the first processing module based on the use information of the computing resources; the computing resource sharing information is used for instructing the manager to use a part of computing resources shared by the first processing module.
Preferably, the resource use request includes a memory resource use request;
the receiving resource sharing information fed back by the processor based on the resource usage request includes:
receiving memory resource sharing information sent by the first processing module; the memory resource sharing information is determined by a second processing module of the processor having the memory resource using request, and is used for instructing the manager to use a part of memory resources of a memory module connected with the second processing module.
A resource sharing method is applied to a processor and comprises the following steps:
receiving a resource use request sent by a manager;
determining resource sharing information based on the resource usage request;
sending the resource sharing information to the manager so that the manager uses part of resources in the processor based on the resource sharing information.
As can be seen from the above technical solutions, compared with the prior art, an embodiment of the present invention discloses a resource control system, including: the system comprises a processor, a first processing module, a second processing module and a manager, wherein the manager is connected with the first processing module, communicates with the first processing module and is used for using part of resources shared by the processor; therefore, in the invention, the manager can use part of the resources shared by the processors, thereby improving the processing capacity of the manager.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a resource control system according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a resource control system according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a resource control system according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a resource control system according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a resource control method according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a resource control method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention discloses a resource control system, as shown in fig. 1, the system includes: a processor 100 and a manager 200; specifically, the method comprises the following steps:
the processor 100 includes a first processing module 110 and a second processing module 120.
The manager 200 is connected to the first processing module 100 to communicate with the first processing module 100 for using a part of the resources shared by the processor 100.
In the present invention, the processing power of the processor 100 is greater than that of the manager 200, so that the processor 100 can share part of the resources for the manager 200 to use.
Optionally, the processor 100 may be a central processing unit of the electronic device, and the manager 200 may be a Baseboard Management Controller (BMC) of the electronic device, and it is understood that the central processing unit does not limit the processor 100, and the BMC does not limit the manager 200.
Therefore, the resource control system provided by the embodiment includes: the system comprises a processor, a first processing module, a second processing module and a manager, wherein the manager is connected with the first processing module, communicates with the first processing module and is used for using part of resources shared by the processor; the processing capacity of the manager is improved because the manager can use part of the resources shared by the processors.
In the invention, the manager can apply different resources to the processor based on the situation of the manager. Specifically, the manager may send a computing resource usage request to the first processing module, and then the first processing module is configured to receive the computing resource usage request sent by the manager, and share a part of its computing resource with the manager for use, so that the manager may share a part of the processing task with the computing resource shared by the first processing module with the manager for processing, thereby improving the processing capability of the manager.
It should be noted that the first processing module is a module having a computing function on a processor. Optionally, the first processing module may be an FPGA (Field-Programmable Gate Array) module, for example, a model of Purley CPU with an FPGA. The manager is connected to a High-Speed Interface of the first processing module, which may be a High-Speed Serial Interface (HSSI), through a bus.
The first processing module is used for receiving a computing resource use request sent by the manager and sharing a part of pre-divided computing resources to the manager for use; or determining that part of the computing resources matched with the current idle computing resources are shared to the manager for use based on the pre-allocation strategy.
In practical applications, the first processing module may divide different computing resources for different managers, and then, after receiving a computing resource usage request sent by a manager, determine a pre-divided part of the computing resources corresponding to the manager, and share the pre-divided part of the computing resources with the manager for use. Alternatively, the first processing module may have a pre-allocation policy thereon, so as to determine that a portion of the computing resources matching the currently idle computing resources is shared with the manager for use, for example, ten percent of the currently idle computing resources is divided into manager uses.
It should be noted that, the manager may determine the size of the computing resource to be used based on its own processing capability, and send the size to the first processing module with the computing resource use request, where the first processing module determines how to allocate the computing resource to the manager.
Therefore, the manager can use part of the computing resources shared by the first processing module, and the processing capacity of the manager is improved.
Another embodiment of the present invention discloses a resource control system, as shown in fig. 2, the system includes: the processor 100, the manager 200, and the memory module 300 specifically:
the processor 100 includes: a first processing module 110 and a second processing module 120.
The first processing module 110 is connected to the second processing module 120, the second processing module 120 is connected to the memory module 300, the memory module 300 is a memory module used by the processor 100, and the processor 100 can store data to be buffered in the memory module 300 when performing its own processing task.
The manager 200 is connected to the first processing module 110, the first processing module 110 is configured to receive a computing resource usage request sent by the manager 200, and share a part of its computing resource with the manager for use, and the first processing module 110 is configured to send a memory resource usage request sent by the manager 200 to the second processing module 120.
The second processing module 120 is configured to share a part of the memory resources of the memory module 300 with the manager 200 for use based on the memory resource use request, specifically, the second processing module may divide a part of the memory resources for use by the manager based on the currently idle memory resources of the memory module. Of course, the memory resource usage request sent by the manager 200 may carry the requested memory size, and the second processing module 120 determines how many memory resources are partitioned to the manager based on the memory size and the current idle memory size.
For example, if the size of the memory applied by the manager is smaller than the size of the currently idle memory, the memory resource corresponding to the size of the memory applied by the manager is assigned to the manager, and if the size of the memory applied by the manager is larger than the size of the currently idle memory, the memory resource is assigned to the manager based on the size of the currently idle memory. This is all possible and is not intended to be limiting in any way.
In another embodiment of the present invention, the manager 200 is configured to use a part of the memory resources when using a part of the computing resources shared by the first processing module 110.
That is, when the first processing module 110 shares a part of its own computing resource with the manager for use, the manager may need to use the memory resource to cache data when using the part of the computing resource, and then the second processing module 120 may use the part of the memory resource shared by the memory module 300 to the manager 200.
Therefore, the manager can use part of the memory resources shared by the second processing module, and the processing capacity of the manager is improved.
Another embodiment of the present invention discloses a resource control system, as shown in fig. 3, the system includes: a processor 100, a manager 200, and a communication module 400; wherein:
the processor 100 includes a first processing module 110 and a second processing module 120.
The communication module 400 is respectively connected to the processor 100 and the manager 200, and is configured to send the current state of the processor 100 to the manager 200, so that the manager 200 sends a resource usage request to the processor 100 when the processor is in a normal state, and specifically, the manager 200 may communicate with the first processing module 110 when it is determined that the processor is in a normal state, so as to send a resource usage request to the first processing module 110, so as to use a part of resources shared by the processor 100.
The communication module 400 may actively monitor whether the processor 100 is operating normally, for example, may send an inquiry command to the processor 100, and if the processor 100 does not respond, determine that the processor is not operating normally. Of course, the processor 100 may also actively report an error to the communication module 400 when a fault occurs, so that the communication module acquires the current state of the processor 100.
The communication module 400 may be specifically a PCH (south bridge).
Fig. 4 shows a specific implementation form of the resource control system, wherein the processor includes a first processing module FPGA and a second processing module SKL, and the manager BMC communicates with the first processing module FPGA.
Specifically, the communication module PCH is configured to send a current state of the processor to the manager BMC, so that the manager BMC sends a resource usage request to the processor when the processor is in a normal state. When the manager BMC sends a computing resource use request to the first processing module FPGA, the first processing module FPGA is used for sharing part of computing resources of the first processing module FPGA to the manager BMC based on the received computing resource use request. When the manager BMC sends a memory resource use request to the first processing module FPGA, the first processing module FPGA sends the memory resource use request to the second processing module SKL, and the second processing module SKL shares part of memory resources of the memory module DIMM to the manager BMC to use based on the memory resource use request.
An embodiment of the present invention discloses a resource control method, which is applied to a manager, and as shown in fig. 5, the method includes the following steps:
step 501: sending a resource use request to a first processing module of a processor;
the processor comprises a first processing module and a second processing module, the first processing module is communicated with the manager, and the manager sends a resource use request to the first processing module of the processor.
Step 502: receiving resource sharing information fed back by the processor based on the resource use request;
step 503: using a portion of the resources shared by the processors based on the resource sharing information.
When the resource usage request includes a computing resource usage request, correspondingly, the receiving resource sharing information fed back by the processor based on the resource usage request includes: receiving computing resource sharing information fed back by the first processing module based on the use information of the computing resources; the computing resource sharing information is used for instructing the manager to use a part of computing resources shared by the first processing module.
Specifically, the resource sharing information may be used to instruct the manager to use a part of the computing resources pre-divided by the first processing module or to instruct the manager to use a part of the computing resources determined by the first processing module based on the pre-allocation policy and matching with the currently idle computing resources.
When the resource usage request includes a memory resource usage request, correspondingly, the receiving resource sharing information fed back by the processor based on the resource usage request includes: and receiving the memory resource sharing information sent by the first processing module.
The memory resource sharing information is determined by a second processing module of the processor having the memory resource using request, and is used for instructing the manager to use a part of memory resources of a memory module connected with the second processing module.
As one implementation, using a portion of resources shared by the processors based on the resource sharing information includes: and using the partial memory resources when using partial computing resources shared by the first processing module based on the resource sharing information.
In another embodiment of the present invention, before sending the resource usage request to the first processing module of the processor, the method may further include:
receiving the current state of the processor sent by the communication module;
it is determined that the process is in a normal operating state.
Specifically, the communication module is connected to the processor and configured to send the current state of the processor to the manager.
An embodiment of the present invention discloses a resource sharing method applied to a processor, as shown in fig. 6, the method includes the following steps:
step 601: receiving a resource use request sent by a manager;
the processor includes a first processing module and a second processing module, and specifically, the resource use request sent by the manager may be received by the first processing module.
Step 602: determining resource sharing information based on the resource usage request;
specifically, when the resource usage request is a computing resource usage request, the first processing module determines computing resource sharing information based on the computing resource usage request. The computing resource sharing information may be used to instruct the manager to use a pre-partitioned portion of the computing resources in the first processing module or to instruct the manager to use a portion of the computing resources in the first processing module that is determined to match the currently idle computing resources based on a pre-allocation policy.
When the resource use request is a memory resource use request, the second processing module determines memory resource sharing information based on the memory resource use request transmitted by the first processing module. The memory resource sharing information is used for indicating the manager to use part of the memory resources in the memory module, and the memory module is connected with the second processing module.
Step 603: sending the resource sharing information to the manager so that the manager uses part of resources in the processor based on the resource sharing information.
When the resource sharing information is computing resource sharing information, the manager may use a part of the computing resources shared by the first processing module based on the computing resource sharing information, and when the resource sharing information is memory resource sharing information, the manager may use a part of the memory resources shared by the memory module based on the memory resource sharing information.
Of course, the manager may be configured to use a portion of the memory resources shared by the memory modules when using a portion of the computing resources shared by the first processing module.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A resource control system, comprising:
a processor, the processor comprising: a first processing module and a second processing module;
the manager is connected with the first processing module;
the manager is in communication with the first processing module for using a portion of the resources shared by the processors;
the first processing module is used for receiving a computing resource use request sent by the manager and sharing part of computing resources of the first processing module to the manager for use.
2. The system according to claim 1, wherein the first processing module is specifically configured to receive a computing resource usage request sent by the manager, and share a pre-divided part of computing resources with the manager;
or the first processing module is specifically configured to receive a computing resource usage request sent by the manager, and determine, based on a pre-allocation policy, that part of the computing resources matched with the currently idle computing resources are shared with the manager for use.
3. The system of claim 1, further comprising:
the memory module is connected with the second processing module;
the first processing module is used for sending the memory resource use request sent by the manager to the second processing module;
the second processing module is used for sharing part of the memory resources of the memory module to the manager for use based on the memory resource use request.
4. The system of claim 3, wherein the manager is configured to use the portion of the memory resources when using the portion of the computing resources shared by the first processing module.
5. The system of claim 1, further comprising:
the communication module is respectively connected with the processor and the manager;
the communication module is used for sending the current state of the processor to the manager so that the manager sends a resource use request to the processor when the processor is in a normal state.
6. A resource control method is applied to a manager and comprises the following steps:
sending a resource use request to a first processing module of a processor;
receiving resource sharing information fed back by the processor based on the resource use request;
using a portion of the resources shared by the processors based on the resource sharing information;
wherein the resource usage request comprises a computing resource usage request;
the receiving resource sharing information fed back by the processor based on the resource usage request includes:
receiving computing resource sharing information fed back by the first processing module based on the use information of the computing resources; the computing resource sharing information is used for indicating the manager to use a part of computing resources shared by the first processing module.
7. The method of claim 6, wherein the resource usage request comprises a memory resource usage request;
the receiving resource sharing information fed back by the processor based on the resource usage request includes:
receiving memory resource sharing information sent by the first processing module; the memory resource sharing information is determined by a second processing module of the processor having the memory resource using request, and is used for instructing the manager to use a part of memory resources of a memory module connected with the second processing module.
8. A resource sharing method is applied to a processor, and the method comprises the following steps:
receiving a resource use request sent by a manager;
determining resource sharing information based on the resource usage request;
sending the resource sharing information to the manager so that the manager uses part of resources in the processor based on the resource sharing information;
wherein the resource usage request comprises a computing resource usage request; the determining resource sharing information based on the resource usage request includes: determining computing resource sharing information based on the computing resource usage request; the computing resource sharing information is used for indicating the manager to use a part of computing resources shared by a first processing module of the processor.
CN201711336736.6A 2017-12-14 2017-12-14 Resource sharing system and method Active CN108108243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711336736.6A CN108108243B (en) 2017-12-14 2017-12-14 Resource sharing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711336736.6A CN108108243B (en) 2017-12-14 2017-12-14 Resource sharing system and method

Publications (2)

Publication Number Publication Date
CN108108243A CN108108243A (en) 2018-06-01
CN108108243B true CN108108243B (en) 2021-04-13

Family

ID=62215866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711336736.6A Active CN108108243B (en) 2017-12-14 2017-12-14 Resource sharing system and method

Country Status (1)

Country Link
CN (1) CN108108243B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916209B (en) * 2010-08-06 2012-11-21 华东交通大学 Cluster task resource allocation method for multi-core processor
CN102467399A (en) * 2010-11-18 2012-05-23 鸿富锦精密工业(深圳)有限公司 Firmware updating system and method for baseboard management controller
CN104615500A (en) * 2015-02-25 2015-05-13 浪潮电子信息产业股份有限公司 Dynamic server computing resource allocation method
US10635146B2 (en) * 2016-01-28 2020-04-28 Dell Products, L.P. Power monitoring calibration to a target performance level

Also Published As

Publication number Publication date
CN108108243A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN109451051B (en) Service request processing method and device, electronic equipment and storage medium
US8156253B2 (en) Computer system, device sharing method, and device sharing program
US20160378570A1 (en) Techniques for Offloading Computational Tasks between Nodes
CN109726005B (en) Method, server system and computer readable medium for managing resources
CN109766172B (en) Asynchronous task scheduling method and device
CN109408243B (en) RDMA-based data processing method, device and medium
US11922059B2 (en) Method and device for distributed data storage
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
CN110019496B (en) Data reading and writing method and system
CN115277566B (en) Load balancing method and device for data access, computer equipment and medium
CN112286688B (en) Memory management and use method, device, equipment and medium
CN104793982A (en) Method and device for establishing virtual machine
CN112671928A (en) Equipment centralized management architecture, load balancing method, electronic equipment and storage medium
EP2852113A1 (en) Load sharing method and device, and single board
CN109428926B (en) Method and device for scheduling task nodes
CN115904761A (en) System on chip, vehicle and video processing unit virtualization method
CN113361913A (en) Communication service arranging method, device, computer equipment and storage medium
WO2020252724A1 (en) Log processing method and device, and computer-readable storage medium
CN103500108A (en) System memory access method, node processor and multi-processor system
CN108108243B (en) Resource sharing system and method
CN117130571A (en) Display method, device, chip and storage medium based on multi-core heterogeneous system
CN108632321A (en) Treating method and apparatus based on scheduling of resource under big data platform
CN109962941B (en) Communication method, device and server
CN111404842A (en) Data transmission method, device and computer storage medium
CN111857996B (en) Interrupt processing method, system, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant