Method and system for improving WIFI throughput rate, terminal and storage medium
By monitoring CPU and interrupt usage to migrate or bind WiFi modules, the method optimizes resource allocation, enhancing throughput efficiency and performance in dual WiFi operations.
Patent Information
- Application Number
- CN202411198222.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-13
AI Technical Summary
Dual WiFi modules in the same frequency band compete for system resources, leading to suboptimal hardware performance, especially during simultaneous operations.
A method and system that monitor CPU and system interrupt usage to migrate interrupts to different CPUs or bind to a large core when dual WiFi modules are active, ensuring efficient resource allocation.
Enhances throughput efficiency by optimizing resource allocation among WiFi modules, reducing energy consumption, and maintaining performance during dual WiFi operations.
Smart Images

Figure CN119127432A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer business conference, and more specifically, to a method, system, terminal and storage medium for improving WIFI throughput. Background Art
[0002] With the development of domestic corporate meetings, more and more conference motherboards are equipped with multiple WiFi modules (AP+STA) and the demand is becoming more and more common. When dual WiFi works at the same time, even if they work in different frequency bands, there will still be competition for system resources, resulting in the hardware being unable to exert its corresponding hardware capabilities even though the hardware is equipped with dual WiFi. In extreme cases such as dual WiFi streaming at the same time, the performance is poor. A method and system for improving WIFI throughput that can solve this problem is needed. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method for improving WIFI throughput, a system for improving WIFI throughput, a terminal for improving WIFI throughput and a computer-readable storage medium in view of the above-mentioned defects of the prior art.
[0004] The technical solution adopted by the present invention to solve its technical problem is:
[0005] A method for improving WIFI throughput is constructed, which includes the following steps:
[0006] Create a system service program daemon to monitor the CPU usage and system interrupt usage;
[0007] Query the number of WiFi modules currently in operation through the system service program daemon;
[0008] If there are two WiFi modules currently in operation, obtain the CPU usage and system interrupt usage of each of the two WiFi modules;
[0009] Determine whether the two WiFi modules are concentrated on the same CPU based on the CPU usage of the two WiFi modules;
[0010] If the two WiFi modules are concentrated on the same CPU, the interruption is migrated to the other CPU by changing the interruption affinity of any WiFi module. If the two WiFi modules are not concentrated on the same CPU, no action is taken.
[0011] The method for improving WIFI throughput of the present invention further comprises the steps of:
[0012] If the number of WiFi modules currently in operation is one, the interrupt of the WiFi module in operation is bound to the large core of the soc by changing the interrupt affinity.
[0013] The method for improving WIFI throughput of the present invention further comprises the steps of:
[0014] If there is no WiFi module in working state, the system service program daemon process goes into sleep.
[0015] The method for improving WIFI throughput of the present invention further comprises the steps of:
[0016] When the WiFi module starts working, it sends a broadcast to wake up the system service daemon.
[0017] A system for improving WIFI throughput, comprising a daemon process generation unit and a data processing unit;
[0018] The daemon process generation unit is used to create a system service program daemon process to monitor the usage of the CPU and the usage of system interrupts;
[0019] The data processing unit queries the number of currently working WiFi modules through the system service program daemon process; if the number of currently working WiFi modules is two, obtains the CPU usage and system interrupt usage of each of the two WiFi modules;
[0020] The data processing unit is also used to determine whether the two WiFi modules are concentrated on the same CPU based on the CPU usage of each of the two WiFi modules; if the two WiFi modules are concentrated on the same CPU, the interruption is migrated to other CPUs by changing the affinity of the interruption of any of the WiFi modules; if the two WiFi modules are not concentrated on the same CPU, no action is taken.
[0021] The system for improving WIFI throughput of the present invention, wherein the data processing unit is also used to bind the interrupt of the working WiFi module to be executed on the large core of the soc by changing the interrupt affinity when the number of the currently working WiFi module is one.
[0022] In the system for improving WIFI throughput of the present invention, the data processing unit is further used for causing the system service program daemon process to enter sleep mode when there is no WiFi module currently in working state.
[0023] In the system for improving WIFI throughput of the present invention, the data processing unit is further used to send a broadcast to wake up the system service program daemon process when the WiFi module starts working.
[0024] A terminal for improving WIFI throughput comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0025] A computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the above method when executed by a processor.
[0026] The beneficial effect of the present invention is that: by applying the method of the present application, a system service program daemon is created to monitor the usage of the CPU and the usage of the system interrupt. If there are two WiFi modules using the same CPU, the interrupt affinity of any of the WiFi modules is changed to migrate the interrupt to the other CPU, thereby ensuring the working throughput efficiency of the two WiFi modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. The drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work:
[0028] Figure 1 It is a flow chart of a method for improving WIFI throughput rate according to a preferred embodiment of the present invention;
[0029] Figure 2 It is a system principle block diagram of improving WIFI throughput according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the following will be described clearly and completely in combination with the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are partial embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.
[0031] The method for improving WIFI throughput in a preferred embodiment of the present invention is as follows: Figure 1 As shown, the following steps are included:
[0032] S01: Create a system service program daemon to monitor the usage of CPU and system interrupts;
[0033] S02: Query the number of currently working WiFi modules through the system service program daemon process;
[0034] S03: If there are two WiFi modules currently in operation, obtain the CPU usage and system interrupt usage of each of the two WiFi modules;
[0035] S04: judging whether the two WiFi modules are concentrated on the same CPU according to the CPU usage of the two WiFi modules;
[0036] S05: If the two WiFi modules are concentrated on the same CPU, the interruption affinity of any WiFi module is changed to migrate the interruption to another CPU. If the two WiFi modules are not concentrated on the same CPU, no action is taken.
[0037] By applying the method of the present application, a system service program daemon is created to monitor the CPU usage and system interrupt usage. If two WiFi modules use the same CPU, the interrupt affinity of any WiFi module is changed to migrate the interrupt to the other CPU to ensure the working throughput efficiency of the two WiFi modules.
[0038] It should be noted that the above is the case where two WiFi modules are used at the same time, and it can also be extended to the case where more than two WiFi modules are used at the same time, which is also achieved by migrating the interrupts to other CPUs through the affinity of the interrupts of the WiFi modules. For example, if there are three WiFi modules, the interrupts of two of the WiFi modules can be migrated to other CPUs (two different CPUs) through the affinity of the interrupts of the WiFi modules.
[0039] If there is only one WiFi module currently in operation, the interrupt of the WiFi module in operation is bound to the large core of the soc by changing the interrupt affinity to ensure the best performance.
[0040] If there is no WiFi module in working state, the system service program daemon process goes into sleep. When the WiFi module starts to work, a broadcast is sent to wake up the system service program daemon process to reduce energy consumption.
[0041] A system for improving WIFI throughput, such as Figure 2 As shown, it includes a daemon process generation unit 100 and a data processing unit 101;
[0042] The daemon process generation unit 100 is used to create a system service program daemon process to monitor the usage of the CPU and the usage of the system interrupts;
[0043] The data processing unit 101 queries the number of currently working WiFi modules through the system service program daemon process; if the number of currently working WiFi modules is two, the CPU usage and system interrupt usage of each of the two WiFi modules are obtained;
[0044] The data processing unit 101 is further used to determine whether the two WiFi modules are concentrated on the same CPU according to the CPU usage of the two WiFi modules; if the two WiFi modules are concentrated on the same CPU, the interruption affinity of any WiFi module is changed to migrate the interruption to other CPUs; if the two WiFi modules are not concentrated on the same CPU, no action is taken;
[0045] The system of the present application monitors the CPU usage and system interrupt usage by creating a system service program daemon process. If two WiFi modules use the same CPU, the interrupt affinity of any WiFi module is changed to migrate the interrupt to other CPUs to ensure the working throughput efficiency of the two WiFi modules.
[0046] Preferably, if the number of WiFi modules currently in operation is one, the interrupt of the WiFi module in operation is bound to be executed on the large core of the soc by changing the interrupt affinity to ensure the best performance.
[0047] If there is no WiFi module in working state, the system service program daemon process goes into sleep. When the WiFi module starts to work, a broadcast is sent to wake up the system service program daemon process to reduce energy consumption.
[0048] A terminal for improving WIFI throughput includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0049] A computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the above method when executed by a processor.
[0050] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.
Claims
1. A method for improving WIFI throughput, characterized in that: The following steps are involved: Create a system service program daemon to monitor the CPU usage and system interrupt usage; Query the number of WiFi modules currently in operation through the system service program daemon; If there are two WiFi modules currently in operation, obtain the CPU usage and system interrupt usage of each of the two WiFi modules; Determine whether the two WiFi modules are concentrated on the same CPU based on the CPU usage of the two WiFi modules; If the two WiFi modules are concentrated on the same CPU, the interruption is migrated to the other CPU by changing the interruption affinity of any WiFi module. If the two WiFi modules are not concentrated on the same CPU, no action is taken.
2. The method for improving WIFI throughput according to claim 1, characterized in that: The method further comprises the steps of: If the number of WiFi modules currently in operation is one, the interrupt of the WiFi module in operation is bound to be executed on the large core of the soc by changing the interrupt affinity.
3. The method for improving WIFI throughput according to claim 1, characterized in that: The method further comprises the steps of: If there is no WiFi module in working state, the system service program daemon process goes into sleep.
4. The method for improving WIFI throughput according to claim 3, characterized in that: The method further comprises the steps of: When the WiFi module starts working, it sends a broadcast to wake up the system service program daemon.
5. A system for improving WIFI throughput, characterized in that: including a daemon process generating unit and a data processing unit; The daemon process generation unit is used to create a system service program daemon process to monitor the usage of the CPU and the usage of system interrupts; The data processing unit queries the number of currently working WiFi modules through the system service program daemon process; if the number of currently working WiFi modules is two, obtains the CPU usage and system interrupt usage of each of the two WiFi modules; The data processing unit is also used to determine whether the two WiFi modules are concentrated on the same CPU based on the CPU usage of each of the two WiFi modules; if the two WiFi modules are concentrated on the same CPU, the interruption is migrated to other CPUs by changing the affinity of the interruption of any of the WiFi modules; if the two WiFi modules are not concentrated on the same CPU, no action is taken.
6. The system for improving WIFI throughput according to claim 5, characterized in that: The data processing unit is also used to bind the interrupt of the working WiFi module to the large core of the soc by changing the interrupt affinity when the number of the currently working WiFi modules is one.
7. The system for improving WIFI throughput according to claim 5, characterized in that: The data processing unit is also used to put the system service program daemon process into sleep mode when there is no WiFi module in working state at present.
8. The system for improving WIFI throughput according to claim 7, characterized in that: The data processing unit is also used to send out a broadcast to wake up the system service program daemon when the WiFi module starts working.
9. A terminal for improving WIFI throughput, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
