Information acquisition method, processor and communication apparatus
A processor and configuration information technology, which is applied to register devices, machine execution devices, multi-program devices, etc., can solve the problem of high processor resource occupancy, improve practicability and operability, and solve resource occupancy. High, resource-saving effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0112] Embodiment 1, obtain the photoelectric module information of a single period (single polling);
[0113] see Figure 4 , Figure 4 It is a schematic diagram of an embodiment of the method 100 for information acquisition in the embodiment of this application. The method 100 includes:
[0114] 101. The processor obtains the first information, wherein the first information is used to instruct the processor to obtain the first photoelectric module information obtained by the logic device, and the first photoelectric module information is obtained by the logic device from the first photoelectric module according to the data reading rule of;
[0115] In this embodiment, the processor (specifically, it may be a CPU) first generates first information, and the first information may be obtained in the following two ways:
[0116] Mode 1, after the processor is powered on, the software program automatically generates the first information;
[0117] Method 2, the first message a...
Embodiment 2
[0176] Embodiment 2, obtaining multiple cycles of photoelectric module information (multiple polling);
[0177] see Image 6 , Image 6 It is a schematic diagram of another embodiment of the method 300 for information acquisition in the embodiment of the present application. The method 300 includes:
[0178] 301. The processor obtains first information, wherein the first information is used to instruct the processor to obtain the first photoelectric module information obtained by the logic device, and the first photoelectric module information is obtained by the logic device from the first photoelectric module according to the data reading rule of;
[0179] Step 301 is the same as above Figure 4 Step 101 in the corresponding embodiment is similar, and details are not repeated here.
[0180] 302. The processor obtains the information of the first photoelectric module from the logic device through the high-speed bus;
[0181] Step 302 is the same as above Figure 4 Step 1...
Embodiment 3
[0191] Embodiment three, experimental data.
[0192] Based on the methods described in Embodiment 1 and Embodiment 2, after testing, an SFP single board containing 48 ports uses the information acquisition method provided by this application, and the CPU occupancy rate is reduced to about 10% of the original solution. . When the electrical module visits regularly, the CPU occupation rate is reduced to about 2.5% of the original.
[0193] It should be noted that, in a reasonable scenario, the more photoelectric modules accessed through the bus agent module, the more obvious the effect of reducing the CPU occupancy rate.
[0194] Figure 7 is a schematic structural diagram of the processor 40 in the embodiment of the present application. The processor 40 includes a storage unit 420 , a processing unit 430 and a bus system 440 . Processor 40 is used to execute Figure 4-Figure 6 Relevant operations performed by the processor in the methods of each embodiment.
[0195] The s...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


