CN117729114B - Network card power consumption adjustment method and device, network card, electronic equipment and storage medium - Google Patents

Network card power consumption adjustment method and device, network card, electronic equipment and storage medium Download PDF

Info

Publication number
CN117729114B
CN117729114B CN202410074568.1A CN202410074568A CN117729114B CN 117729114 B CN117729114 B CN 117729114B CN 202410074568 A CN202410074568 A CN 202410074568A CN 117729114 B CN117729114 B CN 117729114B
Authority
CN
China
Prior art keywords
network card
flow
time period
target
preset time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410074568.1A
Other languages
Chinese (zh)
Other versions
CN117729114A (en
Inventor
姜璐
刘晓
路明远
周春法
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202410074568.1A priority Critical patent/CN117729114B/en
Publication of CN117729114A publication Critical patent/CN117729114A/en
Application granted granted Critical
Publication of CN117729114B publication Critical patent/CN117729114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a network card power consumption adjustment method, a network card power consumption adjustment device, network cards, electronic equipment and a storage medium, wherein historical flow information of a network port in a first preset time period is obtained; the historical flow information comprises flow values of all time points included in a first preset time period, and maximum flow values, minimum flow values and average flow values of all sub-time periods; determining a demand flow threshold value in a second preset time period according to the historical flow information; determining configuration information of the network card according to the demand flow threshold; adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the operating frequency of the network card and the link width between the network card and the server. According to the actual working data flow condition of the network port, the power consumption of the network card is automatically adjusted, and the power consumption of the network card is reduced under the condition that the requirement of transmitting the data packet bandwidth is met, so that the adjustment of the power consumption of the network card is independent of an idle power saving mode of the system, and the overall power consumption of the server is reduced.

Description

Network card power consumption adjustment method and device, network card, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for adjusting power consumption of a network card, a network card electronic device, and a readable storage medium.
Background
The network cards belong to data transmission units in the server, and with the continuous increase of the performance of the server, one server plays more roles, which means that the scene of configuring a plurality of network cards in one server is more and more, the network cards of the server also work correspondingly in the running process of the server, and when the network cards work simultaneously, larger power consumption is generated, so that the energy saving of the server is not facilitated.
In the related art, the network card is generally in a full power consumption mode, and related instructions are sent to each network card device only when the system layer is in an idle state, so that the network card device enters the idle state to reduce the power consumption of the network card.
However, the server is basically not in an idle state under the normal running condition, or is in an idle state only in a small period of time, so that the power consumption saved by adjusting the network card device through the idle state is very limited, and higher energy-saving requirements are difficult to achieve.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are provided to provide a method, an apparatus, an electronic device, and a readable storage medium for adjusting power consumption of a network card, which overcome or at least partially solve the foregoing problems.
In a first aspect, an embodiment of the present application discloses a method for adjusting power consumption of a network card, where the method includes:
Acquiring historical flow information of a network port in a first preset time period; the historical flow information comprises flow values of all time points included in a first preset time period, and maximum flow values, minimum flow values and average flow values of all sub-time periods;
determining a required flow threshold value in a second preset time period according to the historical flow information;
Determining configuration information of the network card according to the required flow threshold;
adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the working frequency of the network card and the link width between the network card and the host end.
Optionally, the determining the demand flow threshold value in the second preset time period according to the historical flow information includes:
determining a flow gain coefficient according to the target historical flow information corresponding to the second preset time period;
Determining a required flow threshold value in unit time according to the flow gain coefficient, the accumulated maximum flow corresponding to the second preset time period and the time length of the second preset time period; and the accumulated maximum flow is accumulated and determined through the flow values of all target time points corresponding to the second preset time period.
Optionally, the determining a flow gain coefficient according to the target historical flow information corresponding to the second preset time period includes:
determining a target maximum flow value, a target minimum flow value and a target average flow value in the second preset time period according to the flow values of all target time points corresponding to the second preset time period;
And determining a flow gain coefficient according to the target maximum flow value, the target minimum flow value and the target average flow value.
Optionally, the determining the configuration information of the network card according to the required flow threshold includes:
Determining a target bandwidth rate required by the network card according to the required flow threshold;
determining a target working frequency and a target link width of the network card according to the target bandwidth rate;
the adjusting the working state of the network card based on the configuration information comprises the following steps:
And adjusting the working frequency of the network card to the target working frequency, and adjusting the link width between the network card and the host end to the target link width.
Optionally, before the adjusting the working state of the network card based on the configuration information, the method further includes:
According to the minimum flow value of each sub-time period, determining a first target time period with the minimum flow value;
And taking the first target time period as a time period for adjusting the working state of the network card.
Optionally, the method further comprises:
determining a second target time period with the maximum flow value according to the maximum flow value distribution condition of each sub time period;
And taking the second target time period as a time period for evaluating the required flow threshold.
Optionally, the adjusting the working state of the network card based on the configuration information includes:
transmitting renegotiation signals to a host terminal based on a communication link between the network card and the host terminal;
And under the condition that the host end releases the resources corresponding to the network card based on the renegotiation signal, adjusting the working state of the network card based on the configuration information.
Optionally, the adjusting the operating frequency of the network card to the target operating frequency includes:
Switching a default transmission rate protocol corresponding to the network card into a target transmission rate protocol; the transmission rate defined by the target transmission rate protocol is smaller than the transmission rate defined by the default transmission rate protocol;
The adjusting the link width between the network card and the host to be the target link width includes:
and closing an idle transceiving pair channel between the network card and the host terminal based on the target link width.
Optionally, the adjusting the working state of the network card based on the configuration information includes:
Restarting the network card after updating the target working frequency and the target link width to a register;
and reestablishing the data link between the network card and the host terminal based on the target working frequency and the target link width.
Optionally, the reestablishing the data link between the network card and the host based on the target operating frequency and the target link width includes:
Carrying out link negotiation between the network card and the host terminal based on the target working frequency and the target link width;
And reconfiguring resources corresponding to the network card based on the link negotiation result.
Optionally, the method further comprises:
Acquiring actual flow information in the second preset time period, wherein the actual flow information comprises flow values of all time points included in the second preset time period, and maximum flow values, minimum flow values and average flow values of all sub-time periods;
and adjusting the configuration information of the network card in the next time period according to the actual flow information in the second preset time period.
In a second aspect, an embodiment of the present application discloses a device for adjusting power consumption of a network card, where the device includes:
the acquisition module is used for acquiring historical flow information of the network port in a first preset time period; the historical flow information comprises flow values of all time points included in a first preset time period, and maximum flow values, minimum flow values and average flow values of all sub-time periods;
The first determining module is used for determining a required flow threshold value in a second preset time period according to the historical flow information;
the second determining module is used for determining the configuration information of the network card according to the required flow threshold;
the adjusting module is used for adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the working frequency of the network card and the link width between the network card and the host end.
In a third aspect, the embodiment of the present application further discloses a network card, where the network card includes: the network interface flow monitoring module, the network card signal control module and the register;
the network port flow monitoring module is used for interacting with the register to acquire historical flow information of the network port in a first preset time period;
The network card signal control module is used for determining a required flow threshold value in a second preset time period according to the historical flow information;
the network card signal control module is also used for determining configuration information of the network card according to the required flow threshold;
The network card signal control module is also used for adjusting the working state of the network card based on the configuration information.
In a fourth aspect, an embodiment of the present application further discloses an electronic device, including a processor and a memory, where the memory stores a program or instructions executable on the processor, where the program or instructions implement the steps of the method according to the first aspect when executed by the processor.
In a fifth aspect, embodiments of the present application also disclose a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the method as described in the first aspect.
In the embodiment of the application, the historical flow information of the network port in a first preset time period is obtained; determining a required flow threshold value in a second preset time period according to the historical flow information; determining configuration information of the network card according to the required flow threshold; adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the operating frequency of the network card and the link width between the network card and the server. The method acquires the historical flow information of the network card, evaluates the required flow threshold value of a second preset time period according to the historical flow information, determines the configuration information corresponding to the requirement of the network card meeting the required flow threshold value based on the required flow threshold value, and adjusts the working state of the network card based on the configuration information.
Drawings
Fig. 1 is a flowchart of steps of a method for adjusting power consumption of a network card according to an embodiment of the present invention;
Fig. 2 is a flowchart of steps of another method for adjusting power consumption of a network card according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a flow value distribution of a network card according to an embodiment of the present invention;
fig. 4 is a flowchart of a network card reconfiguration process according to an embodiment of the present invention;
Fig. 5 is a diagram of a network card connection structure according to an embodiment of the present invention;
Fig. 6 is a block diagram of a network card power consumption adjustment device according to an embodiment of the present invention;
FIG. 7 is an electronic device of an embodiment of the invention;
fig. 8 is yet another electronic device of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Referring to fig. 1, a flowchart illustrating steps of a method for adjusting power consumption of a network card according to an embodiment of the present application is shown, where the method includes:
Step 101, obtaining historical flow information of a network port in a first preset time period.
In the embodiment of the application, in the actual working state of the network card, the network card is always in a state of continuously existing data flow, but in most of the working time of the network card, the data flow of the network card is less than 10% of the actual bandwidth of the network card, even more often less than 1% of the actual bandwidth, and only very individual time is more than 10%, so that when the existing scene does not have a large amount of data increase, the network card continuously operates in a full power consumption mode, and a large amount of energy is consumed, thereby causing resource waste. In order to reduce the power consumption of a network card, the application discloses a method for reducing the power consumption of the network card without depending on an idle mode of a server system.
Specifically, the network card in the present application may be a network card applied to a server, which is a network card with PCIe (PERIPHERAL COMPONENT INTERCONNECT EXPRESS, PCI bus) interfaces, and PCIe-based expansion cards can be inserted into PCIe slots in a device motherboard such as a host, a server, and a network switch, where PCIe network cards can implement a series of point-to-point connections through the switch to control data flow. After the PCIe network card is inserted, a logical connection is formed between the slot and the network card so as to communicate with each other. A server may include a plurality of slots to which a plurality of network cards are installed. The historical flow information of the network port in the first preset time period can be obtained for each network card, so that the working state of each network card can be independently adjusted.
Further, the first preset time period may be a time period before the current time, for example, the first preset time period may be a time of one week before the current time, and for one network card, the historical traffic information in the previous period may be obtained. For example, in order to adjust the working state of the network card in the week, the historical flow information of the network card in the week may be obtained first, where the historical flow information includes the flow values of each time point, and the maximum flow value, the minimum flow value and the average flow value of each sub-time period. Each time point may be a time point when the flow value is sampled, for example, taking updating the network port flow value once per minute as an example, each time point may correspond to each minute of the previous week, the flow value at each time point may be a flow value corresponding to each minute, and each sub-time period may be a custom period, for example, if the sub-time period is one hour, the maximum flow value, the minimum flow value and the average flow value corresponding to the sub-time period, that is, the maximum flow value, the minimum flow value and the average flow value corresponding to a certain hour.
For example, if the first preset time period is a week, the first minute flow value is counted as 20Mb/s, the second minute Zhong Liu is counted as 40Mb/s, the flow value of each minute is counted sequentially, 60 minutes is counted as a sub-time period, a minimum flow value of 20Mb/s, a maximum flow value of 70Mb/s and an average flow value of 40Mb/s in the sub-time period are obtained, then the information of the first hour is used as a reference, a mathematical statistical model is established, the data is classified and counted, then the information of the second hour is counted based on the mathematical statistical model, according to 7x24 hours of a week, the maximum data flow value and the minimum data flow value of each day and the distribution condition of the average data flow value of the next week can be counted, and further the data flow of the next week can be predicted.
And 102, determining a required flow threshold value in a second preset time period according to the historical flow information.
In the embodiment of the present invention, the maximum flow value in the second preset time period may be determined according to the historical flow information, where the second preset time period may be the current week, for example, the first preset time period is the flow statistics of the previous week, and then the second preset time period may be the current week, and through the flow statistics of the previous week, the possible demand flow threshold of the current week may be predicted.
Further, the demand flow threshold may be used to characterize a peak value of the current peripheral flow value, and according to the demand flow threshold, data such as an operating bandwidth required by the network port to meet the demand flow threshold may be determined.
Specifically, the manner of determining the demand flow threshold value in the second preset time period according to the historical flow information may be: if it is determined that the maximum flow value is the maximum value in the whole first preset time period on the sunday according to the historical flow information of the first preset period, the maximum flow value of a certain sub-time period on the sunday can be used as the predicted required flow threshold corresponding to the second preset time period. Still alternatively, an average of the maximum flow values for each sub-period of the day may be calculated, and a maximum of the average of the maximum flow values may be selected as the demand flow threshold for the second preset time period. It should be noted that, the sampling time interval of the network port flow, the division of the sub-time period and the determination of the required flow threshold in the second preset time period may be determined according to the actual requirement, which is not limited in the embodiment of the present application.
And step 103, determining configuration information of the network card according to the required flow threshold.
In the embodiment of the application, the configuration information of the network card can be determined according to the required flow threshold, and the configuration information of the network card is used for configuring the working state of the network card, so that the network card can meet the data transmission requirement in a second preset time period. In the actual running process of the network card, the network card defaults to be in a state of full power consumption running, and the actual bandwidth occupied by the network card in operation only occupies a small part of the theoretical bandwidth.
Specifically, after the required flow threshold is determined, the configuration information of the network card can be determined by taking the required flow threshold as a reference, and the network card can meet the data transmission requirement of each day in the whole second preset time period by taking the required flow threshold as a reference.
Further, if the cumulative maximum value of the current week data reaches M1 in the period from T1 to T2, the network card estimates Mx (maximum flow in a unit time) as a required flow threshold of the network port, and the network card can adjust its own transmission rate and PCIE bandwidth to reduce power consumption by calculating the connection condition of PCIE links of the network card and satisfying the required flow threshold. The calculated target transmission rate and target PCIE bandwidth can be used as configuration information of the network card.
Step 104, adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the working frequency of the network card and the link width between the network card and the host end.
In the embodiment of the invention, after the configuration information of the network card is determined based on the demand flow threshold, the working state of the network card can be adjusted based on the configuration information. For example, if the configuration information indicates that the transmission rate of the network card is GEN2 and the link width is PCIE ex1, the bandwidth rate requirement of the required traffic threshold may be met, and then the transmission rate of the network card and the PCIE link width may be adjusted based on the configuration information. The host side may be a server.
Further, the network card adjusts the working frequency of the internal network card through calculation of the data flow through the statistical model, reduces the main frequency of part of internal processors under the condition that the requirement of a required flow threshold can be met, synchronously adjusts links of the network card and a server, for example, can close redundant PCIE TX and RX differential signals for configuration of a network card chip default PCIEX8, only retains a pair of differential signals, namely retains PCIEX1, for detection of the network card and the server host, and forcibly configures Gen3 rate of the network card chip default to Gen2, so that the network card can negotiate with the server by using a PCIEX1 Gen2 mode, and the aim of reducing the overall power consumption of the network card is achieved.
In summary, in the embodiment of the application, historical flow information of a network port in a first preset time period is obtained; determining a required flow threshold value in a second preset time period according to the historical flow information; determining configuration information of the network card according to the required flow threshold; adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the operating frequency of the network card and the link width between the network card and the server. The method acquires the historical flow information of the network card, evaluates the required flow threshold value of a second preset time period according to the historical flow information, determines the configuration information corresponding to the requirement of the network card meeting the required flow threshold value based on the required flow threshold value, and adjusts the working state of the network card based on the configuration information.
Referring to fig. 2, a flowchart illustrating steps of another method for adjusting power consumption of a network card according to an embodiment of the present application is shown, where the method includes:
step 201, obtaining historical flow information of a network port in a first preset time period;
this step can refer to step 101, and will not be described here.
Step 202, determining a flow gain coefficient according to the target historical flow information corresponding to the second preset time period.
In the embodiment of the application, in order to make the determined required flow threshold more accurate, the application can also determine the flow gain coefficient first, wherein the flow gain coefficient is used for increasing the gain flow value on the basis of the maximum flow value so as to ensure that the working state of the network card after adjustment can meet the actual requirement in a second preset time period and ensure the fluency of data transmission in the second preset time period.
Specifically, the flow gain factor may be a value greater than 1, and the determined maximum flow value may be multiplied by the flow gain factor to obtain the final demand flow threshold. The flow gain coefficient may be determined by calculating the target historical flow information corresponding to the second preset time period, or may be determined by user-defining based on the actual requirement, which is not limited in the embodiment of the present application. The second preset time period may be a time period to be predicted, and the target historical flow information corresponding to the second preset time period may be historical flow information associated with a flow value of the second preset time period. For example, the second preset time period is the current week, then the target historical traffic information corresponding to the second preset time period may be the historical traffic information of the previous week, and if the second preset time period is the current week day, then the target historical traffic information corresponding to the second preset time period may be the historical traffic information of the current week day, if it is determined based on the historical flow information that the maximum value or the average value of the data flow always occurs on the day of the week, then if the second preset time period is the present week, the target historical flow information corresponding to the second preset time period may be the historical flow information of the day of the week. The embodiments of the present application are not limited herein. The use of the flow gain coefficient can enable the network card to still meet the actual data transmission requirement and ensure the working stability of the network card if sudden data increase exists in a second preset time period.
Optionally, step 202 includes:
Sub-step 2021, determining a target maximum flow value, a target minimum flow value and a target average flow value in the second preset time period according to the flow values of each target time point corresponding to the second preset time period;
sub-step 2022, determining a flow gain factor based on the target maximum flow value, the target minimum flow value, and the target average flow value.
In the embodiment of the present invention, for the sub-step 2041 and the sub-step 2042, if the second preset time period is the present week, the flow value of each target time point corresponding to the second preset time period may be the flow value of each time point of the previous week corresponding to the time point of the present week. If the second preset time period is the current week day, the flow value of each target time point corresponding to the second preset time period may be the flow value of each time point of the previous week day. Taking the second preset time period as the current week day as an example, according to statistics of flow values of all time points of the previous week day, a target maximum flow value, a target minimum flow value and a target average flow value predicted by the current week day can be determined. Or the second preset time period is taken as an example of the tenth sub-time period of Zhou Zhouri, and according to statistics on the flow value of the tenth sub-time period of the last week and day, the target maximum flow value, the target minimum flow value and the target average flow value corresponding to the tenth sub-time period of the week and day can be predicted and determined.
The flow gain coefficient may be determined from the target maximum flow value, the target minimum flow value, and the target average flow value.
Step 203, determining a required flow threshold in unit time according to the flow gain coefficient, the accumulated maximum flow corresponding to the second preset time period, and the time length of the second preset time period; and the accumulated maximum flow is accumulated and determined through the flow values of all target time points corresponding to the second preset time period.
In the embodiment of the invention, the required flow threshold value in unit time can be calculated by the following model:
Mx=(M1/(T2-T1))×(1+Mc/(Ma+Mb))
Where Mx represents the demand flow threshold, ma represents the flow maximum, mb represents the flow maximum and Mc represents the flow average, (T2-T1) represents the predicted second preset time period. The calculation result of (1+mc/(ma+mb) may be used as the flow gain coefficient, and the constant 1 may be a specified gain adjustment parameter, or may be another numerical value.
Specifically, if the cumulative maximum flow of the current week data reaches M1 in the period from T1 to T2, the network card estimates Mx as a maximum flow of the network port, and the network card can adjust the Gen3 rate and the bandwidth of PCIEX8 according to the flow requirement by calculating the connection condition of the PCIE link of the network card, thereby reducing the rate and the bandwidth of the network card as much as possible while meeting the flow requirement. For example, if M1 is 2400, T2-T1 is 60 minutes, ma represents the maximum flow value in the 60 minutes, such as 50 Mb/s, mb represents the minimum flow value in the 60 minutes, such as 20 Mb/s, mc represents the average flow value in the 60 minutes, such as 40 Mb/s, then the required flow threshold in the 60 minutes is calculated as: 62.8 Mb/s. At this time, 62.8 Mb/s may be used as the demand flow rate threshold per unit time.
And 204, determining configuration information of the network card according to the required flow threshold.
This step can refer to step 103, and will not be described here.
Optionally, step 204 includes:
Sub-step 2041, determining a target bandwidth rate required by the network card according to the required flow threshold;
Sub-step 2042, determining a target operating frequency and a target link width of the network card based on the target bandwidth rate.
In the embodiment of the present invention, for sub-step 2041 and sub-step 2042, after the required flow threshold is determined, the working state that the network card needs to reach, that is, the target bandwidth rate that the network card needs to meet, may be determined based on the required flow threshold, and the target bandwidth rate may be the network card bandwidth rate that meets the required flow threshold, and the target working frequency and the target link width of the network card may be correspondingly adjusted based on the target bandwidth rate, so that the network card after the configuration is adjusted, while meeting the requirement of the required flow threshold, the power consumption of the network card is reduced.
Step 205, adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the operating frequency of the network card and the link width between the network card and the server.
This step can refer to step 104, and will not be described here.
Optionally, step 205 specifically includes:
Sub-step 2051, adjusting the working frequency of the network card to the target working frequency, and adjusting the link width between the network card and the server to the target link width.
In the embodiment of the invention, PCIE (PERIPHERAL COMPONENT INTERCONNECT EXPRESS, peripheral component interconnect express protocol) is a high-speed bus for connecting various components and external devices on a motherboard, so that the data transmission rate can be improved to an extremely high level, and different PCIE versions have a certain difference. The data transmission bandwidth of PCIE Gen1 is 2.5Gbps, each channel supports unidirectional 250MB/s data transmission, the data transmission bandwidth of PCIE Gen2 is 5Gbps, each channel can support unidirectional 500MB/s data transmission, the data transmission bandwidth of PCIE Gen3 is 8Gbps, each channel can support unidirectional 1GB/s data transmission, PCIE Gen4 can raise the data transmission rate to 16Gbps, each channel can support unidirectional 2GB/s data transmission, and along with continuous raising of PCIE version, the data transmission rate of each channel is also continuously raised, and data transmission can be completed more quickly. Meanwhile, the power consumption of PCIE equipment is increased to a certain extent. Therefore, after the required flow threshold is determined, a transmission rate protocol meeting the required flow threshold can be determined, if the default transmission rate of the network card is the Gen3 rate and the Gen2 is determined to meet the data transmission requirement based on the required flow threshold, the default transmission rate of the network card chip can be forcedly configured from the Gen3 rate to the Gen2, so that the power consumption is reduced to a certain extent by adjusting the working frequency of the network card.
Further, in PCIe systems, physical connections between two PCIe devices are made with links (links), each of which interconnects the two devices point-to-point. One link corresponds to a bus to which only one device is attached, and each link is assigned a link number. A link includes a plurality of paths, and the number of selectable paths is: x1, x2, x4, x8, x12, x16 or x32. Each channel is provided with four signal lines, each signal direction is provided with a pair of differential signals, and data can be simultaneously transmitted or received, so that double simplex and serial differential data transmission between two devices is realized. Therefore, after the required flow threshold is determined, the number of paths meeting the required flow threshold, that is, the link width, can be determined, for example, the configuration of the default link width pci ex8 of the network card chip can be configured by closing redundant PCIE TX and RX differential signals, and only one pair of differential signals, that is, the PCIE ex1, is reserved for the PCIE TX and RX to be used for communication between the network card and the host end of the server, so as to achieve the purpose of reducing the power consumption of the network card.
Optionally, the substep 2051 specifically includes:
sub-step 20511, switching the default transmission rate protocol corresponding to the network card to a target transmission rate protocol; the transmission rate defined by the target transmission rate protocol is smaller than the transmission rate defined by the default transmission rate protocol;
and step 20512, closing an idle transceiving pair channel between the network card and the server based on the target link width.
In an embodiment of the present invention, after the required traffic threshold is determined for sub-step 20511 and sub-step 20512, a transmission rate protocol satisfying the required traffic threshold may be determined as the target transmission rate protocol. For example, if the default transmission rate of the network card is the Gen3 rate, and it is determined that the data transmission requirement can be met by using the Gen2 based on the requirement flow threshold, the default transmission rate of the network card chip can be forcedly configured from the Gen3 rate to the Gen2, so as to reduce the power consumption to a certain extent by adjusting the working frequency of the network card.
Likewise, after the required traffic threshold is determined, the link width meeting the required traffic threshold can be determined, for example, the configuration of the default link width pci ex8 of the network card chip can be used for communication between the network card and the host end of the server by closing redundant PCIE TX and RX differential signals, and only one pair of differential signals are reserved for PCIE TX and RX, namely, PCIE ex1 is reserved, and PCIE ex1 is the target link width, so that the purpose of reducing the power consumption of the network card is achieved.
Optionally, step 205 specifically includes:
A substep 2052, based on a communication link between the network card and the host, of sending a renegotiation signal to the host;
sub-step 2053, adjusting the working state of the network card based on the configuration information when the host releases the resources corresponding to the network card based on the renegotiation signal.
In the embodiment of the present application, for sub-step 2052 and sub-step 2053, after determining the configuration information of the network card, the network card may be reconfigured based on the configuration information, so that the power consumption is reduced when the network card operates in a new period. Specifically, the network card firmware informs the server host of the need of renegotiating the PCIE at the slot position of the network card through the PCIE link, at this time, the BIOS (Basic Input Output System ) at the server host starts to release resources of the network card, after the resources are released, the network card firmware starts to adjust the configuration of its own chip, the network card adjusts the frequency of the internal operation of the network card based on the calculation result of the required flow threshold, and under the condition that the requirement of the data flow can be met, the main frequency of part of internal processors is reduced, the link of the network card and the server host is adjusted synchronously, for example, the configuration of the network card chip default PCIE ex8 can be used for negotiating with the server by closing redundant PCIE TX and RX differential signals, only one pair of differential signals is reserved for PCIE ex1, which is used for communication between the network card and the server host, and the Gen3 rate of the network card default Gen2 is forcedly configured to Gen2, so that the power consumption of the network card default Gen 1 and Gen2 can be used, and the overall negotiation of the network card is reduced. For one data center, a large number of servers are operated, and after the method provided by the application is adopted to reduce the power consumption of each network card, the total reduction amount of the power consumption of the network card is considerable, and the overall power consumption of the data center can be effectively reduced.
Optionally, step 205 specifically includes:
sub-step 2054, after updating the target operating frequency and the target link width to a register, restarting the network card;
In step 2055, the data link between the network card and the host is re-established based on the target operating frequency and the target link width.
In the embodiment of the present invention, for sub-step 2054 and sub-step 2055, after determining the configuration information of the network card, the configuration information may be stored in the register of the network card, the network card firmware may restart itself, the configuration of the network card after restarting may be switched to a new configuration stored in the register, after the network card is started, the server host is notified to perform identification loading on the network card, the server host and the network card perform link negotiation according to the latest configuration condition of the network card, thereby completing negotiation of the PCIE x1 Gen2, then loading resources to the network card based on the configuration information of the network card again, at this time, the network card may work normally, then continue to process network packets, and through intelligently adjusting the chip operating frequency of the network card and PCIE link width of the network card, the power consumption of the network card may be directly reduced by about 30%, so that the reduction of the network card is no longer dependent on the idle state of the server itself, and the power consumption of the network card may be adjusted by the flow data acquired in real time, thereby saving resources.
Optionally, the substep 2055 specifically includes:
A substep 20551, performing link negotiation between the network card and the server based on the target operating frequency and the target link width;
and a substep 20552, reconfiguring resources corresponding to the network card based on the link negotiation result.
In the embodiment of the invention, aiming at sub-step 20551 and sub-step 20552, the network card firmware performs restarting operation on the network card to switch the default configuration of the network card into the new configuration information stored in the register, the network card is started and then normally loads the configuration state after switching, the server host end is informed to carry out identification loading on the network card, the server host end and the network card carry out link negotiation according to the target working frequency and the target link width of the network card, so as to complete the negotiation of the link width and the transmission rate, then the network card loads resources for the network card based on the configuration information of the network card again, after the address space is allocated for the network card, the network card can normally work, and then the PCIE link width of the network card is continuously processed, so that the reduction of the power consumption of the network card is not dependent on the idle state of the server itself any more, and the power consumption of the network card can be intelligently adjusted through the flow data acquired by the network card in real time, thereby saving resources.
Optionally, before step 205, the method further includes:
Step 206, determining a first target time period with the minimum flow value according to the historical flow information;
and step 207, taking the first target time period as a time period for adjusting the working state of the network card.
In the embodiment of the present application, for step 206 and step 207, since the network card reconfiguration needs to be performed after the network card is restarted, the data transmission needs to be suspended during the network card reconfiguration, and the data transmission process is continued after waiting for the network card reconfiguration to be completed. Therefore, in order to prevent the network card configuration process from affecting the normal operation of the server to the greatest extent, the application can also select a time period with the minimum network port data flow rate to perform the network card reconfiguration process based on the statistical result of the flow data of each sub-time period in the first preset time period.
For example, based on the flow value of each time point included in the first preset time period and information such as the maximum flow value, the minimum flow value and the average flow value of each sub-time period, a sub-time period with the minimum flow value can be determined, for example, a time period with the minimum flow value corresponding to each sub-time period is used as a time period for adjusting the working state of the network card. Or the time period with the minimum average flow value corresponding to each sub-time period is used as the time period for adjusting the working state of the network card, and the embodiment of the application is not limited herein. If it is determined, based on the historical traffic information, that the sub-period in which the minimum value of the data traffic is located at two to three points on the circumference of the previous week period, then the period of time allocated for the network card can be adjusted at two to three points on the circumference of the current week.
Optionally, the method further comprises:
step 208, determining a second target time period with the maximum flow value according to the maximum flow value distribution condition of each sub time period in the historical flow information;
Step 209, taking the second target time period as a time period for evaluating the demand flow threshold.
In the embodiment of the present invention, referring to fig. 3, with respect to step 208 and step 209, based on the distribution situation of the maximum value in the graph, a time period corresponding to the maximum flow value may be correspondingly determined, and when the demand flow threshold of the next time period is predicted based on the historical flow information of the first preset time period, a second target time period with the maximum flow value may be determined based on the distribution situation of the maximum flow value of each sub-time period of the first preset time period; the second target time period is taken as a time period for evaluating the demand flow threshold.
If it is determined based on historical traffic information that the maximum or average of data traffic is always present on weekdays, then the demand traffic threshold determined based on the weekday data traffic information may cover bandwidth demands for other time periods within the week. Therefore, if the second preset time period is the present week, the target historical flow information corresponding to the second preset time period may be the historical flow information of the week of the previous week, and the required flow threshold of the present week is evaluated based on the historical flow information area of the week, so as to ensure that the configuration information of the network card determined based on the required flow threshold can meet the actual data transmission requirement.
Optionally, the method further comprises:
Step 210, obtaining actual flow information in the second preset time period, where the actual flow information includes flow values of all time points included in the second preset time period, and maximum flow values, minimum flow values and average flow values of all sub-time periods;
Step 211, adjusting configuration information of the network card in the next time period according to the actual flow information in the second preset time period.
In the embodiment of the present application, based on step 210 and step 211, after the working state of the network card is reconfigured based on the updated configuration information, after the configuration information of the network card is continuously collected and changed, the data flow value of the network port at each time point in the new time period is determined, the maximum flow value, the minimum flow value and the average flow value of each sub-time period are determined, and based on the collected data, the required flow threshold of the next period is continuously predicted, so as to determine the configuration information corresponding to the network card in the next time period, thereby reducing the power consumption of the network card in the next time period. The application can acquire the data flow information of the network card in real time, and further continuously and intelligently adjust the working state of the network card, so that the adjustment of the power consumption of the network card is independent of the idle power saving mode of the system, the automatic adjustment of the power consumption of the network card based on the actual flow condition of the network card is realized, and the overall power consumption of the server is reduced.
Referring to fig. 4, fig. 4 shows a flow chart of a network card reconfiguration process according to an embodiment of the present application, including:
step S1, monitoring data flow by a network port;
step S2, counting the maximum value, the minimum value and the average value of the flow in unit time;
step S3, determining a required flow threshold after gain;
Step S4, calculating the link width (PCIE link width) and the network card working frequency based on the demand flow threshold;
step S5, the network card issues new configuration information;
step S6, the server (host) reestablishes a link with the network card;
and S7, loading network card resources, and enabling the network card to work normally.
Referring to fig. 5, fig. 5 shows a network card connection structure provided by the embodiment of the application, the network card includes a network port flow monitoring module and a network card signal control module, information corresponding to flow data is obtained by accessing a register, and is processed in the network card signal control module, so as to finally complete reconfiguration of a PCIE bus and realize network card design of automatically detecting data flow and intelligently adjusting power consumption.
In summary, in the embodiment of the application, historical flow information of a network port in a first preset time period is obtained; the historical flow information comprises flow values of all time points included in a first preset time period, and maximum flow values, minimum flow values and average flow values of all sub-time periods; determining a required flow threshold value in a second preset time period according to the historical flow information; determining configuration information of the network card according to the required flow threshold; adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the operating frequency of the network card and the link width between the network card and the server. The method acquires the historical flow information of the network card, evaluates the required flow threshold value of a second preset time period according to the historical flow information, determines the configuration information corresponding to the requirement of the network card meeting the required flow threshold value based on the required flow threshold value, and adjusts the working state of the network card based on the configuration information.
Referring to fig. 6, a device 30 for adjusting power consumption of a network card according to an embodiment of the present application is shown, where the device includes:
The acquiring module 301 is configured to acquire historical traffic information of a network port in a first preset time period;
a first determining module 302, configured to determine a required flow threshold in a second preset time period according to the historical flow information;
A second determining module 303, configured to determine configuration information of the network card according to the required flow threshold;
The adjusting module 304 is configured to adjust an operating state of the network card based on the configuration information; the working state comprises the following steps: the working frequency of the network card and the link width between the network card and the host end.
Optionally, the first determining module includes:
The first determining submodule is used for determining a flow gain coefficient according to the target historical flow information corresponding to the second preset time period;
The second determining submodule is used for determining a required flow threshold value in unit time according to the flow gain coefficient, the accumulated maximum flow corresponding to the second preset time period and the time length of the second preset time period; and the accumulated maximum flow is accumulated and determined through the flow values of all target time points corresponding to the second preset time period.
Optionally, the first determining sub-module includes:
The first determining unit is used for determining a target maximum flow value, a target minimum flow value and a target average flow value in the second preset time period according to the flow values of all target time points corresponding to the second preset time period;
And the second determining unit is used for determining a flow gain coefficient according to the target maximum flow value, the target minimum flow value and the target average flow value.
Optionally, the second determining module includes:
a third determining submodule, configured to determine a target bandwidth rate required by the network card according to the required flow threshold;
A fourth determining submodule, configured to determine a target operating frequency and a target link width of the network card according to the target bandwidth rate;
The adjustment module comprises:
the first adjusting sub-module is used for adjusting the working frequency of the network card to the target working frequency and adjusting the link width between the network card and the host end to the target link width.
Optionally, the apparatus further comprises:
The third determining module is used for determining a first target time period with the minimum flow value according to the historical flow information;
and the fourth determining module is used for taking the first target time period as a time period for adjusting the working state of the network card.
Optionally, the apparatus further comprises:
a fifth determining module, configured to determine a second target time period with a maximum flow value according to a maximum flow value distribution condition of each sub-time period in the historical flow information;
And a sixth determining module, configured to take the second target time period as a time period for evaluating a demand flow threshold.
Optionally, the adjusting module includes:
The communication sub-module is used for sending renegotiation signals to the host end based on a communication link between the network card and the host end;
And the release sub-module is used for adjusting the working state of the network card based on the configuration information under the condition that the host side releases the resources corresponding to the network card based on the renegotiation signal.
Optionally, the first adjustment sub-module includes:
The protocol switching unit is used for switching the default transmission rate protocol corresponding to the network card into a target transmission rate protocol; the transmission rate defined by the target transmission rate protocol is smaller than the transmission rate defined by the default transmission rate protocol;
And the receiving and transmitting pair closing unit is used for closing an idle receiving and transmitting pair channel between the network card and the host terminal based on the target link width.
Optionally, the adjusting module includes:
a restarting submodule, configured to restart the network card after updating the target operating frequency and the target link width to a register;
and the link establishment sub-module is used for reestablishing the data link between the network card and the host terminal based on the target working frequency and the target link width.
Optionally, the link establishment sub-module includes:
The negotiation unit is used for carrying out link negotiation between the network card and the host terminal based on the target working frequency and the target link width;
and the reconfiguration unit is used for reconfiguring resources corresponding to the network card based on the link negotiation result.
Optionally, the apparatus further comprises:
The data updating unit is used for acquiring actual flow information in the second preset time period, wherein the actual flow information comprises flow values of all time points included in the second preset time period, and maximum flow values, minimum flow values and average flow values of all sub-time periods;
And the configuration updating unit is used for adjusting the configuration information of the network card in the next time period according to the actual flow information in the second preset time period.
In summary, in the embodiment of the application, historical flow information of a network port in a first preset time period is obtained; the historical flow information comprises flow values of all time points included in a first preset time period, and maximum flow values, minimum flow values and average flow values of all sub-time periods; determining a required flow threshold value in a second preset time period according to the historical flow information; determining configuration information of the network card according to the required flow threshold; adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the operating frequency of the network card and the link width between the network card and the server. The method acquires the historical flow information of the network card, evaluates the required flow threshold value of a second preset time period according to the historical flow information, determines the configuration information corresponding to the requirement of the network card meeting the required flow threshold value based on the required flow threshold value, and adjusts the working state of the network card based on the configuration information.
Fig. 7 illustrates a block diagram of an electronic device 600, according to an example embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, an electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is used to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, multimedia, and so forth. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the electronic device 600. The power supply components 606 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen between the electronic device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense demarcations of touch or sliding actions, but also detect durations and pressures associated with the touch or sliding operations. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. When the electronic device 600 is in an operational mode, such as a shooting mode or a multimedia mode, the front-facing camera and/or the rear-facing camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is for outputting and/or inputting audio signals. For example, the audio component 610 includes a Microphone (MIC) for receiving external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor assembly 614 may detect an on/off state of the electronic device 600, a relative positioning of the components, such as a display and keypad of the electronic device 600, the sensor assembly 614 may also detect a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of a user's contact with the electronic device 600, an orientation or acceleration/deceleration of the electronic device 600, and a change in temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is utilized to facilitate communication between the electronic device 600 and other devices, either in a wired or wireless manner. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for implementing a method for adjusting power consumption of a network card as provided by an embodiment of the application.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of electronic device 600 to perform the above-described method. For example, the non-transitory storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Fig. 8 illustrates a block diagram of an electronic device 700, according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Referring to fig. 8, electronic device 700 includes a processing component 722 that further includes one or more processors and memory resources represented by memory 732 for storing instructions, such as application programs, executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform a method for adjusting power consumption of a network card according to an embodiment of the present application.
The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input output (I/O) interface 758. The electronic device 700 may operate based on an operating system stored in memory 732, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (15)

1. The method for adjusting the power consumption of the network card is characterized by comprising the following steps of:
acquiring historical flow information of a network port in a first preset time period;
determining a required flow threshold value in a second preset time period according to the historical flow information;
Determining configuration information of the network card according to the required flow threshold;
Adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the working frequency of the network card and the link width between the network card and the host end;
the determining the required flow threshold value in the second preset time period according to the historical flow information comprises the following steps:
determining a flow gain coefficient according to the target historical flow information corresponding to the second preset time period;
And determining a required flow threshold value in unit time according to the accumulated maximum flow corresponding to the second preset time period and the time length of the second preset time period.
2. The method of claim 1, wherein the cumulative maximum flow is determined by accumulating flow values at respective target time points corresponding to a second preset time period.
3. The method of claim 2, wherein determining a flow gain factor based on the target historical flow information corresponding to the second preset time period comprises:
determining a target maximum flow value, a target minimum flow value and a target average flow value in the second preset time period according to the flow values of all target time points corresponding to the second preset time period;
And determining a flow gain coefficient according to the target maximum flow value, the target minimum flow value and the target average flow value.
4. The method of claim 1, wherein determining the configuration information of the network card according to the demand traffic threshold comprises:
Determining a target bandwidth rate required by the network card according to the required flow threshold;
determining a target working frequency and a target link width of the network card according to the target bandwidth rate;
the adjusting the working state of the network card based on the configuration information comprises the following steps:
And adjusting the working frequency of the network card to the target working frequency, and adjusting the link width between the network card and the host end to the target link width.
5. The method of claim 1, wherein the adjusting the operating state of the network card based on the configuration information comprises:
transmitting renegotiation signals to a host terminal based on a communication link between the network card and the host terminal;
And under the condition that the host end releases the resources corresponding to the network card based on the renegotiation signal, adjusting the working state of the network card based on the configuration information.
6. The method of claim 1, wherein prior to adjusting the operating state of the network card based on the configuration information, the method further comprises:
according to the historical flow information, determining a first target time period with the minimum flow value;
And taking the first target time period as a time period for adjusting the working state of the network card.
7. The method according to claim 1, wherein the method further comprises:
determining a second target time period with the maximum flow value according to the maximum flow value distribution condition of each sub time period in the historical flow information;
And taking the second target time period as a time period for evaluating the required flow threshold.
8. The method of claim 4, wherein the adjusting the operating frequency of the network card to the target operating frequency comprises:
Switching a default transmission rate protocol corresponding to the network card into a target transmission rate protocol; the transmission rate defined by the target transmission rate protocol is smaller than the transmission rate defined by the default transmission rate protocol;
The adjusting the link width between the network card and the host to be the target link width includes:
and closing an idle transceiving pair channel between the network card and the host terminal based on the target link width.
9. The method of claim 8, wherein the adjusting the operating state of the network card based on the configuration information comprises:
Restarting the network card after updating the target working frequency and the target link width to a register;
and reestablishing the data link between the network card and the host terminal based on the target working frequency and the target link width.
10. The method of claim 9, wherein reestablishing the data link between the network card and the host based on the target operating frequency and a target link width comprises:
Carrying out link negotiation between the network card and the host terminal based on the target working frequency and the target link width;
And reconfiguring resources corresponding to the network card based on the link negotiation result.
11. The method according to claim 1, wherein the method further comprises:
Acquiring actual flow information in the second preset time period, wherein the actual flow information comprises flow values of all time points included in the second preset time period, and maximum flow values, minimum flow values and average flow values of all sub-time periods;
and adjusting the configuration information of the network card in the next time period according to the actual flow information in the second preset time period.
12. A network card, the network card comprising: the network interface flow monitoring module, the network card signal control module and the register;
the network port flow monitoring module is used for interacting with the register to acquire historical flow information of the network port in a first preset time period;
The network card signal control module is used for determining a required flow threshold value in a second preset time period according to the historical flow information;
the network card signal control module is also used for determining configuration information of the network card according to the required flow threshold;
the network card signal control module is also used for adjusting the working state of the network card based on the configuration information;
The network card signal control module is also used for: determining a flow gain coefficient according to the target historical flow information corresponding to the second preset time period;
And determining a required flow threshold value in unit time according to the accumulated maximum flow corresponding to the second preset time period and the time length of the second preset time period.
13. A network card power consumption adjustment device, the device comprising:
the acquisition module is used for acquiring historical flow information of the network port in a first preset time period;
The first determining module is used for determining a required flow threshold value in a second preset time period according to the historical flow information;
the second determining module is used for determining the configuration information of the network card according to the required flow threshold;
The adjusting module is used for adjusting the working state of the network card based on the configuration information; the working state comprises the following steps: the working frequency of the network card and the link width between the network card and the host end;
the first determining module includes:
The first determining submodule is used for determining a flow gain coefficient according to the target historical flow information corresponding to the second preset time period;
and the second determining submodule is used for determining a required flow threshold value in unit time according to the flow gain coefficient, the accumulated maximum flow corresponding to the second preset time period and the time length of the second preset time period.
14. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method of any one of claims 1 to 11.
15. A readable storage medium, characterized in that it has stored thereon a program or instructions which, when executed by a processor, implement the steps of the method according to any of claims 1 to 11.
CN202410074568.1A 2024-01-18 2024-01-18 Network card power consumption adjustment method and device, network card, electronic equipment and storage medium Active CN117729114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410074568.1A CN117729114B (en) 2024-01-18 2024-01-18 Network card power consumption adjustment method and device, network card, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410074568.1A CN117729114B (en) 2024-01-18 2024-01-18 Network card power consumption adjustment method and device, network card, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117729114A CN117729114A (en) 2024-03-19
CN117729114B true CN117729114B (en) 2024-05-07

Family

ID=90199970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410074568.1A Active CN117729114B (en) 2024-01-18 2024-01-18 Network card power consumption adjustment method and device, network card, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117729114B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458556A (en) * 2007-12-14 2009-06-17 联想(北京)有限公司 Dynamic control method and device for network card power consumption and connection mode
CN104065543A (en) * 2014-05-19 2014-09-24 浪潮电子信息产业股份有限公司 Network card drive design method based on data transmission management
CN108259376A (en) * 2018-04-24 2018-07-06 北京奇艺世纪科技有限公司 The control method and relevant device of server cluster service traffics
CN109194661A (en) * 2018-09-13 2019-01-11 网易(杭州)网络有限公司 Network attack alarm threshold configuration method, medium, device and calculating equipment
CN109284871A (en) * 2018-09-30 2019-01-29 北京金山云网络技术有限公司 Resource adjusting method, device and cloud platform
CN114143734A (en) * 2021-10-22 2022-03-04 广东省电信规划设计院有限公司 Data processing method and device for 5G Internet of things network card flow acquisition
CN114330099A (en) * 2021-11-30 2022-04-12 广东浪潮智慧计算技术有限公司 Network card power consumption adjusting method, device, equipment and readable storage medium
CN116633798A (en) * 2023-05-31 2023-08-22 齐犇科技集团有限公司 Internet of things card data flow monitoring and early warning system based on data analysis
CN116801286A (en) * 2023-05-17 2023-09-22 齐犇科技集团有限公司 Method and system for controlling disconnection of flow pool of Internet of things card
CN117641542A (en) * 2024-01-23 2024-03-01 南京信息工程大学 Method for online optimization of power consumption strategy of terminal of Internet of things

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331815B (en) * 2015-07-01 2019-07-12 青岛海信电器股份有限公司 A kind of method for routing and combination tv of combination tv

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458556A (en) * 2007-12-14 2009-06-17 联想(北京)有限公司 Dynamic control method and device for network card power consumption and connection mode
CN104065543A (en) * 2014-05-19 2014-09-24 浪潮电子信息产业股份有限公司 Network card drive design method based on data transmission management
CN108259376A (en) * 2018-04-24 2018-07-06 北京奇艺世纪科技有限公司 The control method and relevant device of server cluster service traffics
CN109194661A (en) * 2018-09-13 2019-01-11 网易(杭州)网络有限公司 Network attack alarm threshold configuration method, medium, device and calculating equipment
CN109284871A (en) * 2018-09-30 2019-01-29 北京金山云网络技术有限公司 Resource adjusting method, device and cloud platform
CN114143734A (en) * 2021-10-22 2022-03-04 广东省电信规划设计院有限公司 Data processing method and device for 5G Internet of things network card flow acquisition
CN114330099A (en) * 2021-11-30 2022-04-12 广东浪潮智慧计算技术有限公司 Network card power consumption adjusting method, device, equipment and readable storage medium
CN116801286A (en) * 2023-05-17 2023-09-22 齐犇科技集团有限公司 Method and system for controlling disconnection of flow pool of Internet of things card
CN116633798A (en) * 2023-05-31 2023-08-22 齐犇科技集团有限公司 Internet of things card data flow monitoring and early warning system based on data analysis
CN117641542A (en) * 2024-01-23 2024-03-01 南京信息工程大学 Method for online optimization of power consumption strategy of terminal of Internet of things

Also Published As

Publication number Publication date
CN117729114A (en) 2024-03-19

Similar Documents

Publication Publication Date Title
US11877242B2 (en) Bandwidth part switching method and apparatus
CN110166371B (en) Flow control method and device, electronic equipment and storage medium
EP3771261B1 (en) Paging synchronization indication method and device, paging synchronization method, and device and base station
EP3112980B1 (en) Circuit, method and device for waking up master mcu
US20170055221A1 (en) Method and apparatus for starting energy saving mode
US20230388070A1 (en) Trs/csi-rs configuration method and apparatus
CN110837343B (en) Snapshot processing method and device and terminal
US20220210705A1 (en) Method for determining network switching resource and method for configuring network switching resource
CN105578391B (en) Information processing method, device and system and terminal equipment
US11737022B2 (en) Delay adjustment method and device, electronic device and storage medium
JP7270719B2 (en) Terminal and Type C interface anti-corrosion method
CN108347718B (en) Method, device and storage medium for monitoring communication packet
CN114158018A (en) Data transmission method and device, Bluetooth slave device and Bluetooth master device
CN117729114B (en) Network card power consumption adjustment method and device, network card, electronic equipment and storage medium
CN110856196B (en) WLAN service optimization method, terminal device and storage medium
CN110933773B (en) Link monitoring method and device
RU2733065C1 (en) Method and apparatus for transmitting system messages, as well as method and apparatus for receiving system messages
CN109716850B (en) Downlink channel monitoring method, terminal and storage medium
CN114557050A (en) State control method, device, electronic equipment and computer readable storage medium
CN112187326A (en) Antenna control method, device, equipment and storage medium
CN112235834B (en) Data packet transmission method, data packet transmission device and storage medium
EP3849155A1 (en) Iot-based home device management
US20240219506A1 (en) Locating method and apparatus, electronic device, and storage medium
EP4398609A1 (en) Locating method and apparatus, electronic device, and storage medium
CN112673708B (en) Network allocation vector setting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant