Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Resource management method of multiple nucleus system and its controlling nucleus

A resource management and multi-core system technology, applied in the field of resource allocation, can solve problems such as increasing algorithm complexity, useless search operations, and affecting resource allocation efficiency

Inactive Publication Date: 2009-09-23
NEW H3C TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] 1. Due to the discontinuity of resource allocation, it is necessary to traverse the resource pool to find idle resources during resource allocation, which greatly affects the efficiency of resource allocation;
[0012] 2. When it is necessary to traverse the forwarding table (for example, to display all valid entries) or to delete the entire forwarding table, it is necessary to traverse the entire resource pool to find valid or satisfying entries; actually valid or Entries that meet the conditions account for a relatively small proportion of the entire forwarding table, but it is necessary to traverse the entire forwarding table, adding many useless search operations, which greatly affects the forwarding efficiency
[0013] 3. When it is necessary to delete a specific forwarding entry, in order to prevent the message that is accessing the entry from accessing the memory space that has been released, the delayed deletion mechanism introduced increases the complexity of the algorithm
This method is not conducive to the stability of the program. For example, if a deletion message is lost during the repeated addition and deletion process, it may cause subsequent addition of messages to use wrong resources.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Resource management method of multiple nucleus system and its controlling nucleus
  • Resource management method of multiple nucleus system and its controlling nucleus
  • Resource management method of multiple nucleus system and its controlling nucleus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0091] In this embodiment, resources are allocated in order of serial numbers, so that it can be conveniently realized that the serial numbers corresponding to the address information of the allocated resources are continuous during the resource allocation process.

[0092] Figure 4 It is a specific flowchart of the resource management method in Embodiment 1 of the present invention. like Figure 4 As shown, the method includes:

[0093] Step 401, creating and initializing a resource management table in advance, storing address information of all available resources in the resource pool, and setting idle indexes and resource IDs.

[0094] In this embodiment, the resource management table is implemented in the form of a pointer array ppStPoolCtrl[], and is used to store the address information of each allocatable resource in the resource pool. Specifically, each element in the pointer array points to a resource in the resource pool, which is called the resource management p...

Embodiment 2

[0127] In this embodiment, an allocation index is further introduced for resource allocation, which can also ensure that after resource allocation, the sequence numbers corresponding to the address information of the allocated resources are continuous. See the following description for specific implementation methods.

[0128] Figure 7 It is a specific flowchart of the resource management method in Embodiment 2 of the present invention. like Figure 7 As shown, the method includes:

[0129] Step 701, creating and initializing a resource management table in advance, saving address information of each resource that can be allocated in the resource pool, setting free index, allocation index and resource ID.

[0130] In this embodiment, the resource management table is implemented in the form of a pointer array ppStPoolCtrl[], and is used to store the correspondence between the address information of each allocatable resource in the resource pool and the sequence numbers set fo...

Embodiment 3

[0174] For the resource management method based on the first and second embodiments above, the packet forwarding table can be formed by writing the forwarding table items in the allocated resources. This embodiment describes in detail the specific implementation manner of packet forwarding by using the forwarding table.

[0175] Figure 9 It is the specific process of packet forwarding in this embodiment. like Figure 9 As shown, the process includes:

[0176] Step 901, receiving a message to be forwarded, extracting key information from the message content to calculate a HASH value.

[0177] Step 902, determine the corresponding resource and the resource ID of the resource according to the HASH value.

[0178] The manner of determining the corresponding resource according to the HASH value may adopt the same manner as in the solution of the background art, and details will not be repeated here. The resource ID is determined according to the resource, that is, the element...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a resource management method for a multi-core system. A resource management table is established in advance to store the address information of each resource that can be allocated in a resource pool; an idle index is set, and the idle index indexes to entries in the resource management table. The entry divides the resource management table into two parts that store all allocated resource address information and store unallocated resource address information; when releasing resources, determine the serial number of the resource management entry corresponding to the resource address information to be released and the last allocated resource address exchange the address information saved in the two serial number entries; reset the free index to index to another entry in the resource management table, which divides the resource management table into storage All allocated resource address information and two parts that store unallocated resource address information. The invention also discloses the control core of the multi-core system. By applying the present invention, resource allocation efficiency can be improved.

Description

technical field [0001] The invention relates to resource allocation technology, in particular to a resource management method and control core of a multi-core system. Background technique [0002] The multi-core central processing unit (CPU) can be regarded as a system-on-chip (SOC) formed by integrating multiple general-purpose central processing units (CPU) and some functional components into one chip. In this paper, the general-purpose CPU in the multi-core CPU is Called the core (core). A system using a multi-core CPU is called a multi-core system. In a multi-core system, each core can concurrently access critical resources (also known as shared resources). The allocation and access of these shared resources requires a certain mechanism for control and management to ensure the normal operation of the system. [0003] A typical application of a multi-core system is in a router product, which manages a large number of routing and other forwarding table information, and c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/50G06F17/30
Inventor 张雪峰
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products