CN111897409A - Network card protection method and device and computer equipment - Google Patents
Network card protection method and device and computer equipment Download PDFInfo
- Publication number
- CN111897409A CN111897409A CN202010752855.5A CN202010752855A CN111897409A CN 111897409 A CN111897409 A CN 111897409A CN 202010752855 A CN202010752855 A CN 202010752855A CN 111897409 A CN111897409 A CN 111897409A
- Authority
- CN
- China
- Prior art keywords
- network card
- cpu temperature
- cpu
- temperature
- closed
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000001174 ascending effect Effects 0.000 claims abstract description 17
- 230000008859 change Effects 0.000 claims abstract description 16
- 230000002093 peripheral effect Effects 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000009423 ventilation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Power Sources (AREA)
Abstract
The application provides a network card protection method, a network card protection device and computer equipment. The network card protection method provided by the application is applied to computer equipment integrated with a network card, and comprises the following steps: acquiring the CPU temperature of the network card; judging whether the currently acquired CPU temperature is greater than an alarm threshold value; if yes, continuously acquiring the CPU temperature of the network card, and judging whether the change trend of the CPU temperature is an ascending trend according to the acquired CPU temperature; if so, closing the appointed component in the network card to reduce the power consumption of the network card. The network card protection method, the network card protection device and the computer equipment can protect the network card at high temperature and prevent hardware devices on the network card from being burnt out due to high temperature.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a network card protection method, apparatus, and computer device.
Background
In recent years, with the rapid development of cloud technology, various data centers have come into operation. Data centers are typically comprised of servers integrated with high performance network cards. In order to ensure the safe operation of the server, the temperature of the machine room needs to be kept in a proper range.
In practice, it is found that even if the temperature of the machine room is kept good, the inside of the server may be locally overheated due to fan failure or poor ventilation conditions, and the network card may be burned out. At present, the purpose of reducing the CPU temperature of the network card is often achieved by adjusting the fan speed of the network card.
However, if the rotation speed of the fan is adjusted to the maximum, but the CPU temperature of the network card cannot be reduced to a reasonable range, at this time, the CPU of the network card is burned out due to the local over-high temperature. Therefore, how to protect the network card from being burned out becomes a problem to be solved urgently at present.
Disclosure of Invention
In view of this, the present application provides a network card protection method to protect the network card from being beaker due to over-high temperature.
A first aspect of the present application provides a network card protection method, where the method is applied to a computer device integrated with a network card, and the method includes:
acquiring the CPU temperature of the network card;
judging whether the currently acquired CPU temperature is greater than an alarm threshold value;
if yes, continuously acquiring the CPU temperature of the network card, and judging whether the change trend of the CPU temperature is an ascending trend according to the acquired CPU temperature;
if so, closing the appointed component in the network card to reduce the power consumption of the network card.
A second aspect of the present application provides a network card protection device, which is applied to a computer device integrated with a network card, and comprises an obtaining module, a judging module and a processing module, wherein,
the acquisition module is used for acquiring the CPU temperature of the network card;
the judging module is used for judging whether the currently acquired CPU temperature is greater than an alarm threshold value;
the acquisition module is further used for continuously acquiring the CPU temperature of the network card when the judgment module judges that the currently acquired CPU temperature is greater than the alarm threshold value;
the judging module is also used for judging whether the change trend of the CPU temperature is an ascending trend according to the acquired CPU temperature;
and the processing module is used for judging that the change trend of the CPU temperature is an ascending trend at the judging module and closing the specified component in the network card so as to reduce the power consumption of the network card.
A third aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the network card protection methods provided in the present application.
A fourth aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any network card protection method of the present application when executing the program.
According to the network card protection method, the network card protection device and the computer equipment, the CPU temperature of the network card is obtained, whether the currently obtained CPU temperature is larger than the alarm threshold value or not is judged, then when the currently obtained CPU temperature is judged to be larger than the alarm threshold value, the CPU temperature of the network card is continuously obtained, whether the change trend of the CPU temperature is an ascending trend or not is judged according to the obtained CPU temperature, and therefore when the change trend of the CPU temperature is judged to be the ascending trend, the designated component in the network card is closed. Therefore, the power consumption of the network card can be reduced, the temperature of the network card is reduced, the CPU of the network card is protected, the purpose of protecting the network card is achieved, and hardware devices on the network card are prevented from being burnt out due to high temperature.
Drawings
Fig. 1 is a flowchart of a first embodiment of a network card protection method provided in the present application;
fig. 2 is a flowchart of a second embodiment of a network card protection method provided in the present application;
fig. 3 is a flowchart of a third embodiment of a network card protection method provided in the present application;
fig. 4 is a flowchart illustrating a network card protection method according to an exemplary embodiment of the present application;
fig. 5 is a hardware structure diagram of a computer device in which a network card protection device according to an exemplary embodiment of the present application is located;
fig. 6 is a schematic structural diagram of a first embodiment of a network card protection device provided in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The application provides a network card protection method for protecting a network card from being burnt out due to overhigh temperature.
The network card protection method and device provided by the application can be applied to computer equipment integrated with the network card, for example, can be applied to embedded equipment integrated with a PCIE network card.
Several specific embodiments are given below to describe the technical solutions of the present application in detail, and these specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a flowchart of a first embodiment of a network card protection method provided in the present application. Referring to fig. 1, the method provided in this embodiment may include:
s101, acquiring the CPU temperature of the network card.
Specifically, the CPU temperature of the network card may be obtained in real time, or may be periodically obtained according to the first period. In the present embodiment, this is not limited.
Further, when the CPU temperature of the network card is acquired according to the first period, the specific value of the first period is set according to actual needs, which is not limited in this application. For example, the specific value of the first period may be 10min, 8min, etc., and the following description will take the example of acquiring the CPU temperature of the network card every 5 min.
It should be noted that, the CPU temperature of the network card may be acquired through a temperature detection thread, and the running priority of the temperature detection thread is set to be higher than the running priorities of other threads. In addition, when the CPU temperature of the network card is obtained, the temperature data in the CPU temperature register can be obtained, and the obtained temperature data is converted into a temperature value.
And S102, judging whether the currently acquired CPU temperature is greater than an alarm threshold value.
Specifically, the alarm threshold is set according to actual needs, and in the present application, the specific value of the alarm threshold is not limited. For example, it may be 90% of the maximum temperature resistance value of the CPU, or 95% of the maximum temperature resistance value of the CPU, or the like.
And S103, if yes, continuously acquiring the CPU temperature of the network card, and judging whether the change trend of the CPU temperature is an ascending trend according to the acquired CPU temperature.
Specifically, in this step, when the CPU temperature of the network card continues to be obtained, the CPU temperature of the network card may be obtained in real time, or the CPU temperature of the network card may also be obtained according to the second period.
It should be noted that the second period may be the same as or different from the first period. Optionally, in order to protect the network card to the maximum extent, in a possible implementation manner of the present application, the second period is smaller than the first period.
In addition, when the CPU temperature of the network card is acquired according to the second period, the specific value of the second period is set according to actual needs, and in this embodiment, the specific value of the second period is not limited. For example, in one embodiment, the specific value of the second period may be 50s, 45s, 20s, and the like. The specific value of the second period is 30s as an example.
In addition, in an embodiment, when the CPU temperature of the network card is acquired according to the second cycle, when the CPU temperature values acquired N times in succession are all greater than the alarm threshold value and are all greater than the CPU temperature value acquired last time, it may be determined that the variation trend of the CPU temperature is an increasing trend.
In the present embodiment, the specific value of N is not limited. For example, in one embodiment, N is 2.
And S104, if so, closing the designated component in the network card to reduce the power consumption of the network card.
Specifically, the designated components are set according to actual needs. For example, it may be an ethernet interface, a CPU peripheral component or operating system, etc. It should be noted that before the designated component of the network card is turned off, it may be determined whether the fan of the network card operates at the maximum rotation speed, and then when the fan does not operate at the maximum rotation speed, the rotation speed of the fan is adjusted to operate at the maximum rotation speed.
In the method provided by this embodiment, the CPU temperature of the network card is obtained, and whether the currently obtained CPU temperature is greater than the alarm threshold is judged, so that when the currently obtained CPU temperature is judged to be greater than the alarm threshold, the CPU temperature of the network card is continuously obtained, and whether the variation trend of the CPU temperature is an increasing trend is judged according to the obtained CPU temperature, so that when the variation trend of the CPU temperature is judged to be an increasing trend, the designated component in the network card is closed. Therefore, the power consumption of the network card can be reduced, the temperature of the network card is reduced, the CPU of the network card is protected, the purpose of protecting the network card is achieved, and hardware devices on the network card are prevented from being burnt out due to high temperature.
Optionally, in a possible implementation manner of the present application, after the specific component of the network card is closed, the method further includes:
continuously acquiring the CPU temperature of the network card;
and when the acquired CPU temperature is determined to be less than the preset threshold value and the variation trend of the CPU temperature is a descending trend, starting the closed designated component.
Specifically, in an embodiment, when the CPU temperatures obtained m times in succession are all less than the preset threshold and are all less than the CPU temperature obtained last time, it may be determined that the variation trend of the CPU temperature is a decreasing trend. In the present embodiment, the specific value of m is not limited. For example, in one example, m may be 3.
In the method provided by this embodiment, after the designated component of the network card is turned off, the CPU temperature of the network card is continuously acquired, and when the acquired CPU temperature is less than the alarm threshold and the variation trend of the CPU temperature is a downward trend, the turned-off designated component is turned on. Therefore, when the temperature returns to normal, the closed designated component can be started in time, so that the network card can normally process data.
Fig. 2 is a flowchart of a second embodiment of a network card protection method provided in the present application. Based on the foregoing embodiment, the method provided in this embodiment, in step S104, may include:
s201, judging whether the Ethernet interface of the network card is closed.
Specifically, the operation parameters of the network card may be obtained, and then whether the ethernet interface of the network card is closed is determined based on the operation parameters. For example, the operation parameter includes a status parameter of the ethernet interface, and when the status parameter is in an off state, it is determined that the ethernet interface is turned off, otherwise, it is determined that the ethernet interface is not turned off.
S202, when the Ethernet interface is not closed, the Ethernet interface is closed, and when the Ethernet interface is closed, whether the CPU peripheral component of the network card is closed or not is judged.
Specifically, whether the CPU peripheral component of the network card is turned off may be determined based on the operating parameter of the network card. For example, the operating parameter may include a status parameter of the CPU peripheral component, and when the status parameter is in an off state, the CPU peripheral component is determined to be turned off, otherwise, the CPU peripheral component is determined not to be turned off.
S203, when the CPU peripheral component is not closed, closing the CPU peripheral component, and when the CPU peripheral component is closed, closing the operating system of the network card.
For example, in an embodiment, the acquired operation parameters include: the state parameter of the ethernet interface is in the off state, and the state parameter of the CPU peripheral component is in the off state, in this example, in step S201, it is determined that the ethernet interface is turned off through judgment, further, in step S202, it is determined that the CPU peripheral component is turned off through judgment, and at this time, the operating system of the network card is directly turned off.
For another example, in another possible implementation manner, the acquired operation parameters include: in this example, in step S201, it is determined that the ethernet interface is turned off, and further, in step S202, it is determined that the CPU peripheral component is not turned off, and at this time, the CPU peripheral component is turned off to reduce the power consumption of the network card.
In the method provided by this embodiment, when it is determined that the CPU temperature of the network card is greater than the alarm threshold and the variation trend of the CPU temperature is an ascending trend, the load of the network card is reduced by first closing the ethernet interface, and the power consumption of the network card is reduced, so as to try to reduce the CPU temperature of the network card. Further, if the temperature of the CPU still cannot be reduced, the peripheral components of the CPU are closed to reduce the temperature; and if the temperature of the CPU can not be reduced to a reasonable range, the operating system of the network card is closed. Therefore, the hardware chip of the network card can be protected to the greatest extent, and the network card is prevented from being burnt out due to high temperature.
Optionally, in a possible implementation manner of the present application, after the specified component is closed, the risk level of the network card may be determined according to the type of the currently closed component, and the determined risk level is presented to the user to instruct the user to maintain the network card.
During specific implementation, when the type of the currently closed component is an Ethernet interface, the danger level of the network card is determined to be in a first-level early warning state, when the type of the currently closed component is a CPU peripheral component, the danger level of the network card is determined to be in a second-level emergency state, and when the type of the currently closed component is an operating system, the danger level of the network card is determined to be in a third-level emergency state.
Therefore, the danger level of the network card can be reported to the user in time so as to indicate the user to maintain and protect the network card to the maximum extent.
Fig. 3 is a flowchart of a third embodiment of a network card protection method provided in the present application. The method provided by the embodiment may include:
s301, obtaining operation parameters of the network card, wherein the operation parameters comprise state parameters of the specified component.
Specifically, the operation parameters of the network card may be obtained at regular time or periodically, which is not limited in this embodiment. The following description will take an example of acquiring the operation parameters of the network card every 1 h.
In addition, the operation parameters of the network card may include state parameters of the ethernet interface, state parameters of the CPU peripheral components, state parameters of the operating system, and the like.
S302, determining the danger level of the network card according to the operation parameters.
Specifically, in an embodiment, the risk level of the network card may be determined according to the acquired operation parameters and the corresponding relationship between the preset operation parameters and the risk level. For example, table 1 illustrates the correspondence between operating parameters and hazard levels for an exemplary embodiment:
TABLE 1 correspondence of operating parameters to hazard level
For example, in an embodiment, when the network card runs in a minimum system, at this time, the state parameter of the ethernet interface acquired by the network card is in an off state, the state parameter of the CPU peripheral component is in an off state, and the state parameter of the operating system is in an on state, and at this time, the risk level of the network card is determined to be level two.
And S303, generating an alarm log according to the danger level, and presenting the alarm log to a user.
Specifically, the alarm log can be reported to a log system of the device, and then the alarm log is presented to the user through the log system. Therefore, the user can correspondingly maintain the network card based on the alarm log.
According to the method provided by the embodiment, the operation parameters of the network card are obtained, the danger level of the network card is determined according to the operation parameters, the alarm log is generated according to the danger level, and the alarm log is presented to the user. Therefore, the user can be reminded of correspondingly maintaining the network card in time.
A more specific embodiment is provided below to describe in detail the network card protection method provided in the present application. Fig. 4 is a flowchart of a network card protection method according to an exemplary embodiment of the present application. Referring to fig. 4, the network card protection method provided in this embodiment may include:
s401, acquiring the CPU temperature of the network card according to a first period.
Specifically, the first period is set according to actual needs. In the present embodiment, specific values thereof are not limited. For example, in one embodiment, the first period may be 5 min.
In addition, the temperature data in the CPU temperature register can be acquired, and the acquired temperature data can be converted into a temperature value.
S402, judging whether the currently acquired CPU temperature is larger than an alarm threshold value, if not, continuing to execute the step S401, and if so, executing the step S403.
Specifically, the alarm threshold is set according to actual needs, for example, in one embodiment, the alarm threshold is 90% of the maximum temperature resistance value of the CPU.
And S403, acquiring the CPU temperature of the network card according to the second period.
Specifically, the second period is set according to actual needs, and in this embodiment, specific values thereof are not limited. It should be noted that, in order to protect the network card to the maximum, the second period may be smaller than the first period. For example, in one embodiment, the second period may be 30 s.
S404, judging whether the currently acquired CPU temperature is larger than the alarm threshold, if not, updating the alarm frequency to 0 and then continuing to execute the step S401, and if so, executing the step S404.
S405, judging whether the current acquired CPU temperature is larger than the last acquired CPU temperature, if not, updating the alarm frequency to 0, and then continuing to execute the step S403, and if so, executing the step S406.
For example, in an embodiment, the current value of the number of alarms is 1, and in step S405, it is determined that the currently acquired CPU temperature is less than the CPU temperature acquired last time, at this time, the CPU temperature of the network card is continuously acquired according to the second period after the number of alarms is updated to 0, that is, after the number of alarms is updated to 0, the CPU temperature of the network card is acquired again after an interval of 30.
And S406, updating the alarm frequency to a current value plus 1.
For example, in an embodiment, the current value of the number of alarms is 1, in step S405, it is determined that the currently acquired CPU temperature is greater than the last acquired CPU temperature, and in this step, the number of alarms is updated to 2.
And S407, judging whether the updated alarm frequency is greater than or equal to a preset threshold value, if so, executing a step S408, otherwise, continuing to execute the step S403.
For example, in the step S406, it is determined that the updated alarm frequency (2) is smaller than the preset threshold (3) by judgment, and at this time, the CPU temperature of the network card continues to be acquired according to the second cycle, that is, the CPU temperature of the network card is acquired again after the interval 30.
S408, determining that the change trend of the CPU temperature is an ascending trend, and closing the specified component of the network card.
Specifically, after the designated component is turned off, step S401 may be further performed after the number of times of alarm is updated to 0.
A more specific example is given below for explaining the technical solution of the present embodiment in detail:
for example, in a possible implementation manner, after the temperature detection thread is started to operate, the CPU temperature of the network card is acquired according to a first period, the CPU temperature acquired for the first time is T1, it is determined that T1 is greater than the alarm threshold value, at this time, the CPU temperature of the network card is acquired according to a second period, for example, the second period is 30S, the CPU temperature acquired for the second time after an interval of 30S is T2, in step S404, it is determined that T2 is greater than the alarm threshold value through determination, further, in step S405, it is determined that T2 is greater than the CPU temperature acquired for the last time (T1), at this time, the alarm time is updated to 1. Further, when the time (equal to 1) is less than 3, the CPU temperature of the network card continues to be acquired according to the second period, for example, the CPU temperature acquired for the third time after the interval of 30s is T3, and after the judgment, T3 is greater than the alarm threshold and greater than T2, and the time is updated to 2. Further, when the time (equal to 2) is less than 3, the CPU temperature of the network card continues to be acquired according to the second period, for example, the CPU temperature acquired for the fourth time after the interval of 30s is T4, and after the judgment, T4 is greater than the alarm threshold and greater than T3, at this time, the time is updated to 3, the time is equal to the preset threshold, the change trend of the CPU temperature is determined to be an ascending trend, and the designated component of the network card is turned off.
According to the method provided by the embodiment, through the temperature confirmation mechanism, when the CPU temperatures obtained continuously for N times are all larger than the alarm threshold value and are all larger than the last obtained CPU temperature, the change trend of the CPU temperature is determined to be an ascending trend.
In the method provided by this embodiment, the CPU temperature of the network card is acquired, and when the detected CPU temperature is greater than the alarm threshold and the variation trend of the CPU temperature is an increasing trend, the designated component of the network card is turned off. Therefore, the power consumption of the network card can be reduced, the temperature of the network card is reduced, the CPU of the network card is protected, the purpose of protecting the network card is achieved, and hardware devices on the network card are prevented from being burnt out due to high temperature.
Corresponding to the embodiment of the network card protection method, the application also provides an embodiment of the network card protection device.
The embodiment of the network card protection device can be applied to computer equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the memory into the memory for operation through the processor of the computer device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 5, a hardware structure diagram of a computer device where a network card protection device is located in an exemplary embodiment of the present application is shown, except for the storage 510, the processor 520, the memory 530, and the network interface 540 shown in fig. 5, the computer device where the device is located in the embodiment may also include other hardware according to an actual function of the network card protection device, which is not described again.
Fig. 6 is a schematic structural diagram of a first embodiment of a network card protection device provided in the present application. Referring to fig. 6, the apparatus provided in this embodiment is applied to a computer device integrated with a network card, and the apparatus includes an obtaining module 610, a determining module 620 and a processing module 630, wherein,
the obtaining module 610 is configured to obtain a CPU temperature of the network card;
the judging module 620 is configured to judge whether the currently acquired CPU temperature is greater than an alarm threshold;
the obtaining module 610 is further configured to continue to obtain the CPU temperature of the network card when the determining module 620 determines that the currently obtained CPU temperature is greater than the alarm threshold;
the determining module 620 is further configured to determine whether the variation trend of the CPU temperature is an increasing trend according to the acquired CPU temperature;
the processing module 630 is configured to close the designated component in the network card when the determining module 620 determines that the variation trend of the CPU temperature is an ascending trend, so as to reduce the power consumption of the network card.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, the processing module 630 is specifically configured to:
judging whether the Ethernet interface of the network card is closed or not;
when the Ethernet interface is not closed, closing the Ethernet interface, and when the Ethernet interface is closed, judging whether a CPU peripheral component of the network card is closed;
and when the CPU peripheral component is not closed, closing the CPU peripheral component, and when the CPU peripheral component is closed, closing the operating system of the network card.
The present application further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any of the network card protection methods provided in the present application.
In particular, computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disk or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks.
With reference to fig. 5, the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any network card protection method provided in the present application when executing the computer program.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (10)
1. A network card protection method is applied to computer equipment integrated with a network card, and comprises the following steps:
acquiring the CPU temperature of the network card;
judging whether the currently acquired CPU temperature is greater than an alarm threshold value;
if yes, continuously acquiring the CPU temperature of the network card, and judging whether the change trend of the CPU temperature is an ascending trend according to the acquired CPU temperature;
if so, closing the appointed component in the network card to reduce the power consumption of the network card.
2. The method of claim 1, wherein said shutting down a designated component in the network card comprises:
judging whether the Ethernet interface of the network card is closed or not;
when the Ethernet interface is not closed, closing the Ethernet interface, and when the Ethernet interface is closed, judging whether a CPU peripheral component of the network card is closed;
and when the CPU peripheral component is not closed, closing the CPU peripheral component, and when the CPU peripheral component is closed, closing the operating system of the network card.
3. The method of claim 1, wherein after the shutting down the designated component of the network card, the method further comprises:
continuously acquiring the CPU temperature of the network card;
and when the acquired CPU temperature is determined to be smaller than the alarm threshold and the change trend of the CPU temperature is a descending trend, the closed designated component is opened.
4. The method of claim 1, wherein the obtaining the CPU temperature of the network card comprises:
and acquiring the CPU temperature of the network card according to a first period.
5. The method according to claim 4, wherein the continuously acquiring the CPU temperature of the network card and judging whether the change trend of the CPU temperature is an ascending trend according to the acquired CPU temperature comprises:
acquiring the CPU temperature of the network card according to a second period, and judging whether the currently acquired CPU temperature is greater than the alarm threshold value;
if the currently acquired CPU temperature is larger than the alarm threshold, judging whether the currently acquired CPU temperature is larger than the last acquired CPU temperature, and if not, updating the alarm frequency to be 0 and then continuously acquiring the CPU temperature of the network card according to the first period;
if the current acquired CPU temperature is larger than the last acquired CPU temperature, updating the alarm frequency to a current value plus 1, otherwise, updating the alarm frequency to 0 and continuing to acquire the CPU temperature of the network card according to the second period;
judging whether the updated alarm times are greater than or equal to a preset threshold value or not;
and if the updated alarm frequency is greater than or equal to a preset threshold value, determining that the change trend of the CPU temperature is an ascending trend, and otherwise, continuously acquiring the CPU temperature of the network card according to the second detection period.
6. The method of claim 1, further comprising:
acquiring the operating parameters of the network card; wherein the operating parameters include state parameters of the specified component;
determining the danger level of the network card according to the operation parameters;
and generating an alarm log according to the danger level, and presenting the alarm log to a user.
7. The network card protection device is characterized by being applied to computer equipment integrated with a network card and comprising an acquisition module, a judgment module and a processing module, wherein,
the acquisition module is used for acquiring the CPU temperature of the network card;
the judging module is used for judging whether the currently acquired CPU temperature is greater than an alarm threshold value;
the acquisition module is further used for continuously acquiring the CPU temperature of the network card when the judgment module judges that the currently acquired CPU temperature is greater than the alarm threshold value;
the judging module is also used for judging whether the change trend of the CPU temperature is an ascending trend according to the acquired CPU temperature;
and the processing module is used for closing the designated component in the network card when the judging module judges that the change trend of the CPU temperature is an ascending trend so as to reduce the power consumption of the network card.
8. The apparatus of claim 7, wherein the processing module is specifically configured to:
judging whether the Ethernet interface of the network card is closed or not;
when the Ethernet interface is not closed, closing the Ethernet interface, and when the Ethernet interface is closed, judging whether a CPU peripheral component of the network card is closed;
and when the CPU peripheral component is not closed, closing the CPU peripheral component, and when the CPU peripheral component is closed, closing the operating system of the network card.
9. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the steps of any of the network card protection methods provided herein.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of any network card protection method of the present application when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010752855.5A CN111897409A (en) | 2020-07-30 | 2020-07-30 | Network card protection method and device and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010752855.5A CN111897409A (en) | 2020-07-30 | 2020-07-30 | Network card protection method and device and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111897409A true CN111897409A (en) | 2020-11-06 |
Family
ID=73182674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010752855.5A Pending CN111897409A (en) | 2020-07-30 | 2020-07-30 | Network card protection method and device and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111897409A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112987891A (en) * | 2021-03-26 | 2021-06-18 | 杭州迪普科技股份有限公司 | Method for protecting special network card from overheating, electronic equipment and machine-readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704053A (en) * | 2017-08-24 | 2018-02-16 | 深圳天珑无线科技有限公司 | Mobile terminal method for regulating temperature, mobile terminal and storage device |
CN109618546A (en) * | 2019-01-30 | 2019-04-12 | 郑州云海信息技术有限公司 | Heat dissipating method and system under a kind of server NCSI standby mode |
-
2020
- 2020-07-30 CN CN202010752855.5A patent/CN111897409A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704053A (en) * | 2017-08-24 | 2018-02-16 | 深圳天珑无线科技有限公司 | Mobile terminal method for regulating temperature, mobile terminal and storage device |
CN109618546A (en) * | 2019-01-30 | 2019-04-12 | 郑州云海信息技术有限公司 | Heat dissipating method and system under a kind of server NCSI standby mode |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112987891A (en) * | 2021-03-26 | 2021-06-18 | 杭州迪普科技股份有限公司 | Method for protecting special network card from overheating, electronic equipment and machine-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103403674B (en) | Execute the change process based on strategy | |
US7454631B1 (en) | Method and apparatus for controlling power consumption in multiprocessor chip | |
US7337339B1 (en) | Multi-level power monitoring, filtering and throttling at local blocks and globally | |
TW202046099A (en) | Detecting security threats by monitoring chains of configuration changes made to basic input/output system (bios) or unified extensible firmware interface (uefi) attributes | |
CN104932963B (en) | The method and device of management terminal | |
CN111159762B (en) | Subject credibility verification method and system under mandatory access control | |
US8448168B2 (en) | Recording medium having virtual machine managing program recorded therein and managing server device | |
CN109409087A (en) | It is anti-to propose power detection method and equipment | |
WO2020005450A1 (en) | Heuristic and machine-learning based methods to prevent fine-grained cache side-channel attacks | |
CN105955850A (en) | Abnormal reset processing method and system for vehicle control unit | |
CN108983922A (en) | Working frequency adjusting method, device and server | |
Dadvar et al. | Potential thermal security risks | |
CN111897409A (en) | Network card protection method and device and computer equipment | |
TW201610672A (en) | Debugging in a data processing apparatus | |
CN107390852B (en) | Control method, electronic device and computer readable storage medium | |
CN111752481A (en) | Memory monitoring and service life prediction method and system based on SPD | |
US20150261979A1 (en) | Method for monitoring an arithmetic unit | |
CN114443441A (en) | Storage system management method, device, equipment and readable storage medium | |
CN106326060A (en) | Baseplate management control system and method for same | |
CN114676019A (en) | Method, device, equipment and storage medium for monitoring state of central processing unit | |
JP2011159125A (en) | Event clustering system, computer program therefor, and data processing method | |
WO2017027023A1 (en) | Intelligent logging | |
CN111274098B (en) | Storage device alarm method and device based on internet of things (IoT) | |
CN111465150A (en) | Control method and device for ultraviolet L ED lamp | |
CN109634796A (en) | A kind of method for diagnosing faults of computer, apparatus and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201106 |