Method and device for adjusting data stream of CPU (Central Processing Unit)
A data flow and data technology, applied in the direction of network traffic/resource management, electrical components, wireless communication, etc., can solve the problems of effective data discarding, CPU not being fully utilized, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0081] figure 1 It is a schematic flowchart of a method for adjusting a CPU data flow provided in Embodiment 1 of the present invention, and the method may be executed by a device for adjusting a CPU data flow, wherein the device may be implemented by software and / or hardware. Such as figure 1 As shown, the method includes:
[0082] Step 101, obtain central processing unit (CPU) to receive control data R C The current control data R C s speed;
[0083] Specifically, calculate the current control data R of the control data RC C The rate methods include the following methods:
[0084] Preferably, the acquiring CPU receives the control data R C The current control data R C rates, including:
[0085] Acquire the current control data R according to the calculation formula of the current idle rate P of the CPU and a preset idle rate C s speed.
[0086] Specifically, according to the current idle rate P and the calculation formula, solve the current control data R C s spee...
Embodiment 2
[0117] figure 2 It is a schematic flow chart of the method for adjusting the CPU data flow provided by the second embodiment of the present invention, which is optimized on the basis of the first embodiment. Such as figure 2 As shown, the method includes:
[0118] Step 201, based on the protocol data R in at least two set periods P The rate, control data R C The rate and the idle rate of the CPU determine the coefficient in the calculation formula of the idle rate;
[0119] Wherein, the calculation formula is a high-order polynomial with the data rate as the independent variable and the idle rate as the dependent variable, and the data rate includes the CPU receiving protocol data R P The rate and control data R C s speed;
[0120] Specifically, taking the quadratic polynomial as an example, the way to obtain the coefficients of the quadratic polynomial is as follows:
[0121] After acquiring m cycles, at different rates (R 1 , R 2 ,...,R m ) corresponding to the C...
Embodiment 3
[0137] image 3 It is a schematic flow chart of the method for adjusting CPU data flow provided by Embodiment 3 of the present invention, which is optimized on the basis of Embodiment 1 or Embodiment 2, and is specifically described on the basis of Embodiment 1 as an example. Such as image 3 As shown, the method includes:
[0138] Step 301, detecting whether the preset time for adjusting the CPU data flow has been reached;
[0139] If so, execute to obtain the current control data R of the data received by the CPU C The steps of the rate;
[0140]If it is detected that the preset time for adjusting the CPU data flow has not been reached, return to the step of detecting whether the preset time for adjusting the CPU data flow has been reached.
[0141] Step 302, acquire the control data R received by the CPU C The current control data R C s speed;
[0142] Step 303, determine the control data R of the data flow according to the current idle rate P of the CPU C range of ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 