Chip resource management method, chip resource management device and chip
By enabling interaction between the business resource management unit and the global resource management unit, which form a resource queue within the system-on-a-chip, the problem of invalid responses when cache resources are exhausted is solved, ensuring the normal operation of the business system and the validity of resource requests.
Patent Information
- Application Number
- CN202511633553.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-07
- Publication Date
- 2026-03-03
AI Technical Summary
In system-on-a-chip (SoC), when cache resources are exhausted, multiple invalid responses cause resource requests from the business system to affect the normal operation of other businesses, resulting in poor workflow.
Resources are pre-requested by the business resource management unit to form a resource queue, and interact with the global resource management unit through on-chip interconnection to ensure effective response and avoid resource contention and invalid requests.
This has enabled smoother control over other business processes within the business system, avoided resource requests from consuming the internet, and ensured the timeliness and effectiveness of resource requests.
Smart Images

Figure CN121597397A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of system-on-a-chip technology, and in particular to a chip resource management method, a chip resource management device, and a chip. Background Technology
[0002] In the design process of System on Chip (SOC), due to the complexity of the design business and the limitation of the total amount of cache resources in the chip, there are often situations where multiple businesses access the cache resources in the chip at the same time.
[0003] When the total cache resources in the chip are constantly exhausted or nearly exhausted, if the business system accesses the cache resources in the chip at this time, the resource management module in the chip will send invalid response information to the business system multiple times (invalid response information indicates that the cache resources in the chip are exhausted). Alternatively, the resource management module in the chip may send invalid response information to the business system, and the business system may send resource requests to the resource management module again. Such multiple communication interactions will affect other businesses running in the business system, and in severe cases, may even cause other businesses to fail to operate normally.
[0004] Therefore, how to ensure that the business system can obtain cache resources from the chip while ensuring the normal operation of other business systems has become an urgent technical problem to be solved. Summary of the Invention
[0005] Therefore, it is necessary to address the aforementioned technical problems by providing a chip resource management method, a chip resource management device, and a chip that can enable the business system to obtain cache resources from the chip while ensuring the normal operation of other business processes.
[0006] Firstly, this application provides a chip resource management method applied to a business resource management unit, comprising:
[0007] In response to the first resource request sent by the business system, target resource information is generated based on the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are the resources that the business resource management unit has applied for in advance from the global resource management unit;
[0008] The target resource information is sent to the business system, and the target resource information is used to instruct the business system to use the target resource to perform corresponding business.
[0009] In one embodiment, the method further includes:
[0010] Send a second resource request to the global resource management unit; the second resource request is used to request available resources from the global resource management unit;
[0011] Receive available resource information sent by the global resource management unit; the available resource information is generated by the global resource management unit based on the second resource request and the idle resources on the chip;
[0012] Determine the resource queue based on available resource information.
[0013] In one embodiment, the method further includes:
[0014] Receive the first resource release information sent by the business system; the first resource release information is triggered after the business system completes its business execution.
[0015] Manage the information on the release of the first resource.
[0016] In one embodiment, the above-mentioned management of the first resource release information includes:
[0017] The first resource release information is sent to the global resource management unit; the first resource release information is used to instruct the global resource management unit to modify the status of the corresponding resource to an available status according to the first resource release information.
[0018] or,
[0019] Change the status of the resource corresponding to the first resource release information in the resource queue to an available status.
[0020] In one embodiment, the method further includes:
[0021] If no first resource request is received from the business system within a preset time period, all available resources in the resource queue will be sent to the global resource management unit.
[0022] Secondly, this application also provides a chip resource management method, applied to a global resource management unit, including:
[0023] Receives a second resource request sent by the business resource management unit; the second resource request includes the identification information of the business system, the business type, and the required amount of resources.
[0024] Based on the identification information, business type, and required resource quantity of the business system, resources are matched from the available resources to obtain the matched resource information;
[0025] Based on the matched resource information, generate available resource information and send the available resource information to the business resource management unit.
[0026] In one embodiment, when the matched resource information is empty, the above method further includes:
[0027] Generate invalid response information;
[0028] Invalid response information is sent to the business resource management unit.
[0029] Thirdly, this application also provides a chip resource management device, applied to a business resource management unit, comprising:
[0030] The generation module is used to respond to the first resource request sent by the business system and generate target resource information based on the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are the resources that the business resource management unit has applied for in advance from the global resource management unit;
[0031] The sending module is used to send target resource information to the business system. The target resource information is used to instruct the business system to use the target resource to perform corresponding business.
[0032] Fourthly, this application also provides a chip resource management device applied to a global resource management unit, comprising:
[0033] The receiving module is used to receive the second resource request sent by the business resource management unit;
[0034] The generation module is used to generate available resource information based on the second resource request and the idle resources on the chip;
[0035] The sending module is used to send available resource information to the business resource management unit.
[0036] Fifthly, this application also provides a chip, including: a business resource management unit and a global resource management unit;
[0037] A business resource management unit, used as described in the first aspect above;
[0038] A global resource management unit for use as described in the second aspect above.
[0039] In the aforementioned chip resource management method, device, and chip, the business resource management unit completely takes over the interaction between the business system and the global resource management unit via on-chip interconnect. As the sole consumer of the business resource management unit, the business system does not compete with the global resource management unit for resource requests. Therefore, there is no issue of invalid resource requests from the business system affecting the normal operation of other services within the business system. This makes the flow control of other business processes in the business system smoother and solves the drawback of business processes and shared resource requests occurring simultaneously on the business system, thus affecting business processes. Furthermore, since the business resource management unit pre-requests resources from the global resource management unit, forming a resource queue, it must return a valid response for any resource request from the business system, thereby avoiding the occupation of the business system's interconnect network and affecting the flow of other business processes. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is an application environment diagram of a chip resource management method in one embodiment;
[0042] Figure 2 This is an application environment diagram of a chip resource management method in one embodiment;
[0043] Figure 3 This is a flowchart illustrating a chip resource management method in one embodiment;
[0044] Figure 4 This is a flowchart illustrating a chip resource management method in another embodiment;
[0045] Figure 5 This is a flowchart illustrating a chip resource management method in another embodiment;
[0046] Figure 6 This is a flowchart illustrating a chip resource management method in another embodiment;
[0047] Figure 7 This is a flowchart illustrating a chip resource management method in another embodiment;
[0048] Figure 8 This is a flowchart illustrating a chip resource management method in another embodiment;
[0049] Figure 9 This is a flowchart illustrating a chip resource management method in another embodiment;
[0050] Figure 10 This is a structural block diagram of a chip resource management device in one embodiment;
[0051] Figure 11 This is a structural block diagram of a chip resource management device in one embodiment. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0053] In the design process of a System-on-Chip (SOC), due to the complexity of the design requirements and the limitation of the total amount of cache resources in the chip, multiple services often access the cache resources in the chip simultaneously. For example, in... Figure 1 The on-chip interconnect system shown includes a business system, an on-chip interconnect unit, and a global resource management unit. The business systems (e.g., business system A, business system B, and business system C) are business execution mechanisms that rely on on-chip resources and have the ability to actively initiate access to the global resource management unit. The on-chip interconnect unit is the communication channel between each business system and the global resource management unit. It is suitable for hardware data exchange characteristics and has capabilities such as backpressure, arbitration, and credit management. The global resource management unit refers to the execution mechanism mounted on the data exchange bus, which is used to manage on-chip resources and has the ability to passively respond to bus access to resources.
[0054] Typically, on-chip business systems A, B, and C can all request resources from the global resource management unit through the on-chip interconnection unit to complete the command or data migration corresponding to their respective businesses, ultimately realizing the business flow of their respective business systems.
[0055] However, when the total cache resources in the chip are constantly exhausted or nearly exhausted, if the business system accesses the cache resources in the chip from the global resource management unit, the global resource management unit will send invalid response information to the business system multiple times (invalid response information indicates that the cache resources in the chip are exhausted). Alternatively, the global resource management unit may send invalid response information to the business system, and the business system may send resource requests to the global resource management unit again. Such multiple communication interactions will affect other services running in the business system, and in severe cases, may even cause other services to fail to operate normally.
[0056] Therefore, how to ensure the normal operation of other business processes within the business system while still allowing the business system to obtain cached resources from the global resource management unit has become a pressing technical problem. This application provides a chip resource management method aimed at solving the above-mentioned problem.
[0057] Having described the background technology of the chip resource management method provided in the embodiments of this application, the implementation environment involved in the chip resource management method provided in the embodiments of this application will be briefly described below. The chip resource management method provided in the embodiments of this application can be applied to, for example, Figure 2 The implementation environment shown includes a global resource management unit, an on-chip interconnect unit, a business resource management unit, and a business system. The functions of the global resource management unit, the on-chip interconnect unit, and the business system are the same as described above and will not be repeated here. The business resource management unit is used to manage the available resources of the business system, including sending the corresponding resources to the business system when the business system requests resources, and requesting resources from the global resource management unit through the on-chip interconnect unit.
[0058] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0059] In one embodiment, such as Figure 3 As shown, a chip resource management method is provided, which is applied to... Figure 2 Taking the business resource management unit in the example, the explanation includes the following steps:
[0060] S201. In response to the first resource request sent by the business system, generate target resource information based on the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are the resources that the business resource management unit has applied for in advance from the global resource management unit.
[0061] The first resource request includes the resource requirements of the business system. The resource requirements of the business system may include resource types, resource identifiers required by the business system, etc. Resource types may include computing resources, storage resources, input / output (I / O) resources, bandwidth resources, virtual resources, etc.
[0062] Among them, the resource queue can be a queue formed by the available resources that the business resource management unit applies for in advance from the global resource management unit. The available resources of the business system stored in the resource queue can be represented by resource numbers. The available resources of the business system stored in the resource queue can be one, that is, resource number 1 can be directly stored in the resource queue. The available resources of the business system stored in the resource queue can also be multiple, that is, resource number 1, resource number 2, ..., resource number n can be stored in the resource queue.
[0063] Optionally, different resource numbers can also be used to represent different types of resources. For example, resource number 1 represents a resource of type a, resource number 2 represents a resource of type b, resource number 3 represents a resource of type c, and so on. If there is only one available resource of a business system stored in the resource queue, and the resource type of that resource is c, then resource number 3 can be directly stored in the resource queue. If there are multiple available resources of a business system stored in the resource queue, and there are two resources of type a, three resources of type b, and one resource of type c, then two resource numbers 1, three resource numbers 2, and one resource number 3 can be directly stored in the resource queue.
[0064] The global resource management unit refers to a logical structure that manages and allocates all available resources in a unified manner from the perspective of the entire system. The global resource management unit can be implemented as an on-chip resource management unit, a board-level resource management unit, or a system-level resource management unit.
[0065] Optionally, the resources can be resources that the business resource management unit has requested in advance from the global resource management unit, or resources that the business resource management unit has requested from the global resource management unit after receiving the first resource request from the business system.
[0066] In this embodiment, when the on-chip business system needs to perform business, it requires certain resources. At this time, the business system can send a first resource request to the business resource management unit, carrying the resource type and the resource identifier required by the business system. After receiving the first resource request, the business resource management unit can filter the resource information corresponding to the resource requirement from the resource queue according to the resource type and the resource identifier required by the business system, and generate target resource information according to the resource information corresponding to the resource requirement.
[0067] Optionally, after receiving the first resource request, the business resource management unit can match the corresponding resource from the resource queue according to the resource type in the first resource request to obtain the target resource information; for example, if the resource type in the first resource request is 'a', then the resource of resource type 'a' can be directly matched from the resource queue to obtain the target resource information.
[0068] Optionally, after receiving the first resource request, the business resource management unit can match the corresponding resource from the resource queue based on the resource identifier required by the business system in the first resource request to obtain the target resource information; for example, if the resource identifier required by the business system in the first resource request is aaa, then the resource with the resource identifier aaa can be directly matched from the resource queue to obtain the target resource information.
[0069] Optionally, after receiving the first resource request, the business resource management unit can first match multiple resources corresponding to the resource type in the resource queue according to the resource type in the first resource request, and then match the corresponding resource from the multiple resources according to the resource identifier required by the business system to obtain the target resource information; for example, if the resource type in the first resource request is 'a', then multiple resources of resource type 'a' can be matched from the resource queue, and then the corresponding resource can be matched from the multiple resources according to the resource identifier required by the business system to obtain the target resource information.
[0070] Optionally, after the business resource management unit receives the first resource request sent by the business system, it can send a second resource request to the global resource management unit, so that the global resource management unit can determine the available resource information based on the second resource request and the idle resources on the chip, and send the available resource information to the business resource management unit. The business resource management unit then updates the resource queue based on the available resource information, and generates target resource information based on the resource queue and the first resource request.
[0071] S202. Send the target resource information to the business system. The target resource information is used to instruct the business system to use the target resource to perform the corresponding business.
[0072] In this embodiment, after generating the target resource information, the target resource information can be sent to the business system so that the business system can execute the corresponding business according to the target resource corresponding to the target resource information.
[0073] In this embodiment, the Business Resource Management Unit (BRM) completely takes over the interaction between the business system and the Global Resource Management Unit (GRM) via on-chip interconnect. As the sole consumer of the BRM, the business system does not compete with the GRM for resource requests. Therefore, there is no issue of invalid resource requests from the business system affecting the normal operation of other services within the business system. This makes the flow control of other business processes in the business system smoother and solves the drawback of business processes and shared resource requests occurring simultaneously on the business system, which can affect business processes. In addition, since the BRM pre-requests resources from the GRM to form a resource queue, it must return a valid response for any resource request from the business system, thereby avoiding the occupation of the business system's interconnect network and affecting the flow of other business processes.
[0074] In this embodiment, in the above Figure 3 Based on the illustrated embodiment, the process of acquiring the resource queue can be further explained. In an exemplary embodiment, such as... Figure 4 As shown, the above method also includes:
[0075] S203. Send a second resource request to the global resource management unit; the second resource request is used to request available resources from the global resource management unit.
[0076] The second resource request includes information such as the identification information of the business system and the resource type.
[0077] In this embodiment, the chip can first complete the SoC system initialization. After the SoC system initialization is completed, for a specific business of the business system, the business resource management unit corresponding to the business system sends a second resource request to the global resource management unit, so that the global resource management unit can determine the available resource information based on the identification information of the business system, the resource type and the idle resources on the chip in the second resource request.
[0078] Optionally, based on the identification information of the business system, the resource type, and the idle resources on the chip in the second resource request, the specific implementation method for determining the available resource information includes:
[0079] Based on the resource type in the second resource request, multiple idle resources are determined from the idle resources on the chip. Then, based on the identification information of the business system, available resources are determined from the multiple idle resources to generate available resource information.
[0080] S204. Receive available resource information sent by the global resource management unit; the available resource information is generated by the global resource management unit based on the second resource request and the idle resources on the chip.
[0081] In this embodiment, after the global resource management unit generates available resource information based on the second resource request and the idle resources on the chip, the global resource management unit can send the available resource information to the business resource management unit so that the business resource management unit can receive the available resource information sent by the global resource management unit.
[0082] S205. Determine the resource queue based on available resource information.
[0083] In this embodiment, after the business resource management unit receives the available resource information, it can determine the resource queue based on the available resource information.
[0084] Optionally, available resource information can be directly added to the resource queue, or the resource status corresponding to the available resource information in the resource queue can be modified to an available status based on the available resource information.
[0085] The resource queue determination method provided in this embodiment involves the business resource management unit sending a resource request to the global resource management unit in advance to request available resources. This allows the business resource management unit to generate a resource queue based on the available resource information, ensuring that when the business system requests resources from the business resource management unit, the business resource management unit can directly determine the target resource information from the resource queue and send it to the business system, thus ensuring the normal operation of the business system.
[0086] In this embodiment, in the above Figure 3 Based on the illustrated embodiment, the detailed process of releasing the corresponding resources to the business resource management unit after the business system completes the business flow can also be explained. In an exemplary embodiment, such as Figure 5 As shown, the above method also includes:
[0087] S206. Receive the first resource release information sent by the business system; the first resource release information is the information triggered after the business system completes its business execution.
[0088] The first resource release information includes target resource information, namely the identification information of the target resource.
[0089] In this embodiment, after the business system receives the target resource information sent by the business resource management unit, it can complete the corresponding business flow based on the target resource corresponding to the target resource information. After the business flow is completed, it triggers the first resource release information including the identification information of the target resource and sends the first resource release information to the business resource management unit so that the business resource management unit can receive the first resource release information.
[0090] S207. Manage the information on the release of the first resource.
[0091] In this embodiment, after receiving the first resource release information, the first resource release information can be managed.
[0092] Optionally, the process of managing the first resource release information can be described in detail, and the above S207 includes any of the following:
[0093] In one embodiment, a first resource release message is sent to the global resource management unit; the first resource release message is used to instruct the global resource management unit to modify the status of the corresponding resource to an available state according to the first resource release message.
[0094] In this embodiment, after the business resource management unit receives the first resource release information, it can send the first resource release information to the global resource management unit. After receiving the first resource release information, the global resource management unit can modify the status of the corresponding resource to an available status according to the first resource release information, so that the corresponding resource in the global resource management unit is in an available status. This makes it convenient for the task resource management unit to send the resource information corresponding to the available resource to the task resource management unit when the task resource management unit requests resources from the global resource management unit. This makes it convenient for the subsequent task system to directly obtain the corresponding resource information from the task management unit.
[0095] In another embodiment, the status of the resource corresponding to the first resource release information in the resource queue is modified to an available status.
[0096] In this embodiment, after the business resource management unit receives the resource release information, it can directly modify the status of the resource corresponding to the first resource release information in the resource queue to the available status. When the business system requests resources from the business resource management unit again, the business resource management unit can directly determine the target resource information from the available resources in the resource queue and send it to the business system, thereby ensuring that the business resource management unit responds quickly to the resource requests of the business system.
[0097] In this embodiment, after the business system completes the corresponding business flow, it can send resource release information to the business resource management unit. The business resource management unit can then send the resource release information to the global resource management unit, so that the corresponding resource in the global resource management unit is in an available state. This facilitates the task resource management unit to request resources from the global resource management unit, which can then send the resource information corresponding to the available resource to the task resource management unit. This allows the task system to directly obtain the corresponding resource information from the task management unit. Alternatively, the business resource management unit can also modify the status of the resource corresponding to the first resource release information in the resource queue to an available state. Thus, when the business system requests resources from the business resource management unit again, the business resource management unit can directly determine the target resource information from the available resources in the resource queue and send it to the business system, thereby ensuring a rapid response from the business resource management unit to the resource requests of the business system.
[0098] In this embodiment, in the above Figure 3 Based on the illustrated embodiment, the detailed process of processing resources in the resource queue when no first resource request is received from the business system within a preset time period can also be explained. In an exemplary embodiment, such as Figure 6 As shown, the above method also includes:
[0099] S208. If no first resource request is received from the business system within a preset time period, all available resources in the resource queue are sent to the global resource management unit.
[0100] In this embodiment, if the business resource management unit does not receive the first resource request sent by the business system within a preset time period, it means that all business processes in the business system have been completed. At this time, the business resource management unit can send all available resources in the resource queue to the global resource management unit to achieve closed-loop management of resources.
[0101] Optionally, if the business resource management unit does not receive the first resource request from the business system within a preset time period, it may continue to wait until other business resource management units also do not receive the first resource request from the business system within the preset time period. In this case, the business resource management unit and other business resource management units may simultaneously send all available resources in the resource queue to the global resource management unit.
[0102] In this embodiment, if the business resource management unit does not receive the first resource request sent by the business system within a preset time period, it can send all available resources in the resource queue to the global resource management unit to ensure closed-loop management of on-chip resources.
[0103] In one embodiment, such as Figure 7As shown, a chip resource management method is provided, which is applied to... Figure 1 Taking the global resource management unit in the example, the explanation includes the following steps:
[0104] S301, Receive a second resource request sent by the business resource management unit; the second resource request includes information such as the identification information of the business system, resource type, and required resource quantity.
[0105] In this embodiment, the chip can first complete the SoC system initialization. After the SoC system initialization is completed, for a specific business of the business system, the business resource management unit corresponding to the business system sends a second resource request to the global resource management unit, and the global resource management unit receives the second resource request.
[0106] S302. Based on the identification information, business type, and required resource quantity of the business system, match resources from the available resources to obtain the matched resource information.
[0107] In this embodiment, based on the resource type in the second resource request, multiple idle resources are determined from the idle resources on the chip. Then, based on the required resource amount, multiple idle resources are matched to obtain multiple matching resources. Finally, based on the identification information of the business system, resource information corresponding to the business system is filtered from the multiple matching resources to obtain matching resource information.
[0108] S303. Based on the matched resource information, generate available resource information and send the available resource information to the business resource management unit.
[0109] In this embodiment, after obtaining the matching resource information, available resource information can be generated based on the matching resource information, and the available resource information can be sent to the business resource management unit.
[0110] In this embodiment, the Business Resource Management Unit (BRM) completely takes over the interaction between the business system and the Global Resource Management Unit (GRM) via on-chip interconnect. As the sole consumer of the BRM, the business system does not compete with the GRM for resource requests. Therefore, there is no issue of invalid resource requests from the business system affecting the normal operation of other services within the business system. This makes the flow control of other business processes in the business system smoother and solves the drawback of business processes and shared resource requests occurring simultaneously on the business system, which can affect business processes. In addition, since the BRM pre-requests resources from the GRM to form a resource queue, it must return a valid response for any resource request from the business system, thereby avoiding the occupation of the business system's interconnect network and affecting the flow of other business processes.
[0111] In one embodiment, such as Figure 8As shown, when the matched resource information is empty, the above method also includes:
[0112] S304. Generate invalid response information.
[0113] In this embodiment, when matching resources from idle resources based on the business system's identification information, business type, and required resource quantity, and the obtained matching resource information is empty, it indicates that there are no resources in the global resource management unit corresponding to the second resource request. At this time, the global resource management unit can generate invalid response information.
[0114] S305. Send the invalid response information to the business resource management unit.
[0115] In this embodiment, after generating invalid response information, the invalid response information can be sent to the business resource management unit. After receiving the invalid response information, the business resource management unit can send a second resource request to the global resource management unit again to request resources from the global resource management unit.
[0116] In this embodiment, if the global resource management unit finds that the resource information matched with the second resource request and the on-chip idle resources is empty, it will return an invalid response to the business resource management unit. This will make it clear to the business resource management unit that there are no available resources in the current global resource management unit and that the request needs to be initiated again, thus ensuring the timeliness and effectiveness of the resource request.
[0117] In one embodiment, such as Figure 9 As shown, a chip resource management method is also provided, including:
[0118] T1 (Business Resource Management Unit) sends a second resource request to the Global Resource Management Unit; the second resource request is used to request available resources from the Global Resource Management Unit; the second resource request includes the identification information of the business system, the business type, and the required amount of resources;
[0119] T2 (Global Resource Management Unit) receives the second resource request sent by the Business Resource Management Unit;
[0120] T3. Based on the identification information, business type, and required resource quantity of the business system, match resources from the available resources to obtain the matched resource information;
[0121] T4. Generate available resource information based on the matched resource information;
[0122] T5. Send available resource information to the business resource management unit;
[0123] T6. If the matched resource information is empty, generate an invalid response message;
[0124] T7. Send the invalid response information to the business resource management unit;
[0125] T8 (Business Resource Management Unit) receives available resource information sent by the Global Resource Management Unit; the available resource information is generated by the Global Resource Management Unit based on the second resource request and the idle resources on the chip;
[0126] T9. Determine the resource queue based on available resource information;
[0127] T10. (Business system) sends the first resource request to the business resource management unit;
[0128] T11. (Business Resource Management Unit) responds to the first resource request sent by the business system and generates target resource information based on the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are the resources that the business resource management unit has applied for in advance from the global resource management unit;
[0129] T12. Send the target resource information to the business system. The target resource information is used to instruct the business system to use the target resource to perform corresponding business.
[0130] T13. Receive the first resource release information sent by the business system; the first resource release information is triggered after the business system completes its business execution.
[0131] T14. Send the first resource release information to the global resource management unit; the first resource release information is used to instruct the global resource management unit to modify the status of the corresponding resource to the available status according to the first resource release information; or, modify the status of the resource corresponding to the first resource release information in the resource queue to the available status.
[0132] T15. If no first resource request is received from the business system within the preset time period, send all available resources in the resource queue to the global resource management unit.
[0133] It should be noted that the descriptions of T1-T15 above can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.
[0134] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0135] Based on the same inventive concept, this application also provides a chip resource management device for implementing the chip resource management method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more chip resource management device embodiments provided below can be found in the limitations of the chip resource management method described above, and will not be repeated here.
[0136] In one exemplary embodiment, such as Figure 10 As shown, a chip resource management device is provided, including: a generation module 10 and a transmission module 11, wherein:
[0137] The generation module 10 is used to respond to the first resource request sent by the business system and generate target resource information according to the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are the resources that the business resource management unit has applied for in advance from the global resource management unit.
[0138] The sending module 11 is used to send target resource information to the business system. The target resource information is used to instruct the business system to use the target resource to perform corresponding business.
[0139] In one exemplary embodiment, the above-described apparatus further includes:
[0140] The sending module is used to send a second resource request to the global resource management unit; the second resource request is used to request available resources from the global resource management unit.
[0141] The receiving module is used to receive available resource information sent by the global resource management unit; the available resource information is generated by the global resource management unit based on the second resource request and the idle resources on the chip.
[0142] The determination module is used to determine the resource queue based on available resource information.
[0143] In one exemplary embodiment, the above-described apparatus further includes:
[0144] The receiving module is used to receive the first resource release information sent by the business system; the first resource release information is triggered after the business system completes its business execution.
[0145] The management module is used to manage the information on the release of the first resource.
[0146] In one exemplary embodiment, the above-mentioned management module includes:
[0147] The sending unit is specifically used to send the first resource release information to the global resource management unit; the first resource release information is used to instruct the global resource management unit to modify the status of the corresponding resource to an available status according to the first resource release information.
[0148] or,
[0149] The modification unit is specifically used to modify the status of the resource corresponding to the first resource release information in the resource queue to an available status.
[0150] In one exemplary embodiment, the above-mentioned management module includes:
[0151] The sending module is used to send all available resources in the resource queue to the global resource management unit when no first resource request is received from the business system within a preset time period.
[0152] In one exemplary embodiment, such as Figure 11 As shown, a chip resource management device is provided, applied to a global resource management unit, including: a receiving module 20, a matching module 21, and a transmitting module 22, wherein:
[0153] The receiving module 20 is used to receive a second resource request sent by the business resource management unit; the second resource request includes the identification information of the business system, the business type, and the required amount of resources;
[0154] The matching module 21 is used to match resources from the available resources based on the identification information, business type and required resource amount of the business system, and obtain the matched resource information.
[0155] The sending module 22 is used to generate available resource information based on the matched resource information and send the available resource information to the business resource management unit.
[0156] In an exemplary embodiment, when the matched resource information is empty, the above apparatus further includes:
[0157] The generation module is used to generate invalid response information;
[0158] The sending module is used to send invalid response information to the business resource management unit.
[0159] Each module in the aforementioned chip resource management device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0160] In one exemplary embodiment, a chip is provided, including: a business resource management unit and a global resource management unit;
[0161] The business resource management unit is used to perform tasks such as... Figures 2-5 The method in the illustrated embodiments;
[0162] The global resource management unit is used to perform tasks such as... Figure 6 and Figure 7 The method in the illustrated embodiment.
[0163] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0164] In response to the first resource request sent by the business system, target resource information is generated based on the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are the resources that the business resource management unit has applied for in advance from the global resource management unit;
[0165] The target resource information is sent to the business system, and the target resource information is used to instruct the business system to use the target resource to perform corresponding business.
[0166] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0167] Send a second resource request to the global resource management unit; the second resource request is used to request available resources from the global resource management unit;
[0168] Receive available resource information sent by the global resource management unit; the available resource information is generated by the global resource management unit based on the second resource request and the idle resources on the chip;
[0169] Determine the resource queue based on available resource information.
[0170] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0171] Receive the first resource release information sent by the business system; the first resource release information is triggered after the business system completes its business execution.
[0172] Manage the information on the release of the first resource.
[0173] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0174] The first resource release information is sent to the global resource management unit; the first resource release information is used to instruct the global resource management unit to modify the status of the corresponding resource to an available status according to the first resource release information.
[0175] or,
[0176] Change the status of the resource corresponding to the first resource release information in the resource queue to an available status.
[0177] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0178] If no first resource request is received from the business system within a preset time period, all available resources in the resource queue will be sent to the global resource management unit.
[0179] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0180] Receives a second resource request sent by the business resource management unit; the second resource request includes the identification information of the business system, the business type, and the required amount of resources.
[0181] Based on the identification information, business type, and required resource quantity of the business system, resources are matched from the available resources to obtain the matched resource information;
[0182] Based on the matched resource information, generate available resource information and send the available resource information to the business resource management unit.
[0183] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0184] Generate invalid response information;
[0185] Invalid response information is sent to the business resource management unit.
[0186] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0187] In response to the first resource request sent by the business system, target resource information is generated based on the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are the resources that the business resource management unit has applied for in advance from the global resource management unit;
[0188] The target resource information is sent to the business system, and the target resource information is used to instruct the business system to use the target resource to perform corresponding business.
[0189] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0190] Send a second resource request to the global resource management unit; the second resource request is used to request available resources from the global resource management unit;
[0191] Receive available resource information sent by the global resource management unit; the available resource information is generated by the global resource management unit based on the second resource request and the idle resources on the chip;
[0192] Determine the resource queue based on available resource information.
[0193] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0194] Receive the first resource release information sent by the business system; the first resource release information is triggered after the business system completes its business execution.
[0195] Manage the information on the release of the first resource.
[0196] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0197] The first resource release information is sent to the global resource management unit; the first resource release information is used to instruct the global resource management unit to modify the status of the corresponding resource to an available status according to the first resource release information.
[0198] or,
[0199] Change the status of the resource corresponding to the first resource release information in the resource queue to an available status.
[0200] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0201] If no first resource request is received from the business system within a preset time period, all available resources in the resource queue will be sent to the global resource management unit.
[0202] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0203] Receives a second resource request sent by the business resource management unit; the second resource request includes the identification information of the business system, the business type, and the required amount of resources.
[0204] Based on the identification information, business type, and required resource quantity of the business system, resources are matched from the available resources to obtain the matched resource information;
[0205] Based on the matched resource information, generate available resource information and send the available resource information to the business resource management unit.
[0206] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0207] Generate invalid response information;
[0208] Invalid response information is sent to the business resource management unit.
[0209] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0210] In response to the first resource request sent by the business system, target resource information is generated based on the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are the resources that the business resource management unit has applied for in advance from the global resource management unit;
[0211] The target resource information is sent to the business system, and the target resource information is used to instruct the business system to use the target resource to perform corresponding business.
[0212] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0213] Send a second resource request to the global resource management unit; the second resource request is used to request available resources from the global resource management unit;
[0214] Receive available resource information sent by the global resource management unit; the available resource information is generated by the global resource management unit based on the second resource request and the idle resources on the chip;
[0215] Determine the resource queue based on available resource information.
[0216] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0217] Receive the first resource release information sent by the business system; the first resource release information is triggered after the business system completes its business execution.
[0218] Manage the information on the release of the first resource.
[0219] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0220] The first resource release information is sent to the global resource management unit; the first resource release information is used to instruct the global resource management unit to modify the status of the corresponding resource to an available status according to the first resource release information.
[0221] or,
[0222] Change the status of the resource corresponding to the first resource release information in the resource queue to an available status.
[0223] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0224] If no first resource request is received from the business system within a preset time period, all available resources in the resource queue will be sent to the global resource management unit.
[0225] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0226] Receives a second resource request sent by the business resource management unit; the second resource request includes the identification information of the business system, the business type, and the required amount of resources.
[0227] Based on the identification information, business type, and required resource quantity of the business system, resources are matched from the available resources to obtain the matched resource information;
[0228] Based on the matched resource information, generate available resource information and send the available resource information to the business resource management unit.
[0229] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0230] Generate invalid response information;
[0231] Invalid response information is sent to the business resource management unit.
[0232] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0233] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0234] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A chip resource management method, characterized in that, Applied to a business resource management unit, the method includes: In response to a first resource request sent by the business system, target resource information is generated based on the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are resources that the business resource management unit has pre-applied for from the global resource management unit; The target resource information is sent to the business system, and the target resource information is used to instruct the business system to perform corresponding business using the target resource.
2. The method according to claim 1, characterized in that, The method further includes: A second resource request is sent to the global resource management unit; the second resource request is used to request available resources from the global resource management unit. The system receives the available resource information sent by the global resource management unit; the available resource information is generated by the global resource management unit based on the second resource request and the idle resources on the chip. The resource queue is determined based on the available resource information.
3. The method according to claim 1, characterized in that, The method further includes: Receive first resource release information sent by the business system; the first resource release information is triggered after the business system completes its business execution. Manage the first resource release information.
4. The method according to claim 3, characterized in that, The management of the first resource release information includes: The first resource release information is sent to the global resource management unit; the first resource release information is used to instruct the global resource management unit to modify the status of the corresponding resource to an available status according to the first resource release information. or, Modify the status of the resource corresponding to the first resource release information in the resource queue to an available status.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: If the first resource request sent by the business system is not received within a preset time period, all available resources in the resource queue are sent to the global resource management unit.
6. A chip resource management method, characterized in that, Applied to a global resource management unit, the method includes: Receive a second resource request sent by the business resource management unit; the second resource request includes the identification information of the business system, the business type, and the required amount of resources. Based on the identification information of the business system, the business type, and the required resource quantity, resources are matched from the available resources to obtain the matched resource information; Based on the matched resource information, available resource information is generated and sent to the business resource management unit.
7. The method according to claim 6, characterized in that, When the matched resource information is empty, the method further includes: Generate invalid response information; The invalid response information is sent to the business resource management unit.
8. A chip resource management device, characterized in that, The device is applied to a business resource management unit and includes: A generation module is used to respond to a first resource request sent by the business system and generate target resource information based on the resource queue and the first resource request; wherein, the resource queue includes the available resources of the business system; the available resources are resources that the business resource management unit has pre-applied for from the global resource management unit; The sending module is used to send the target resource information to the business system, wherein the target resource information is used to instruct the business system to perform corresponding business using the target resource.
9. A chip resource management device, characterized in that, The device, applied to a global resource management unit, includes: The receiving module is used to receive the second resource request sent by the business resource management unit; The generation module is used to generate available resource information based on the second resource request and the idle resources on the chip; The sending module is used to send the available resource information to the business resource management unit.
10. A chip, characterized in that, include: Business resource management unit, global resource management unit; The business resource management unit is used to perform the method as described in any one of claims 1-5; The global resource management unit is used to perform the method as described in claim 6 or 7.