CN109525446B - Processing method and electronic equipment - Google Patents

Processing method and electronic equipment Download PDF

Info

Publication number
CN109525446B
CN109525446B CN201811645949.1A CN201811645949A CN109525446B CN 109525446 B CN109525446 B CN 109525446B CN 201811645949 A CN201811645949 A CN 201811645949A CN 109525446 B CN109525446 B CN 109525446B
Authority
CN
China
Prior art keywords
network adapter
resource
configuration
transmission rate
resources
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
CN201811645949.1A
Other languages
Chinese (zh)
Other versions
CN109525446A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811645949.1A priority Critical patent/CN109525446B/en
Publication of CN109525446A publication Critical patent/CN109525446A/en
Application granted granted Critical
Publication of CN109525446B publication Critical patent/CN109525446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a processing method and electronic equipment, wherein if the transmission rate of a network adapter is lower than a first threshold value, a resource adjusting mode is started, the configured resource of the network adapter is adjusted, if the transmission rate of the network adapter is detected to reach a second threshold value, the resource adjusting mode is closed, the adjustment of the network adapter resource is stopped, and the resource configuration mode of the network adapter is determined, wherein the first threshold value is the same as or different from the second threshold value. According to the scheme, when the speed of the network adapter is detected to be lower than the first threshold value, the resource adjusting mode is automatically started, the adjustment of the configuration resources of the network adapter is realized, and when the transmission rate of the network adapter reaches the second threshold value, the adjustment of the configuration resources is automatically stopped, manual adjustment of a user is not needed, and the use experience of the user is improved.

Description

Processing method and electronic equipment
Technical Field
The present disclosure relates to the field of control, and in particular, to a processing method and an electronic device.
Background
At present, when the network adapter encounters the problem of performance degradation, the network adapter needs to be manually adjusted, which brings inconvenience to users.
Disclosure of Invention
In view of the above, the present application provides a processing method and an electronic device, and the specific scheme is as follows:
a method of processing, comprising:
if the transmission rate of the network adapter is lower than a first threshold value, starting a resource adjusting mode, and adjusting the configuration resources of the network adapter;
if the transmission rate of the network adapter reaches a second threshold value, closing the resource adjusting mode, stopping adjusting the configured resources of the network adapter, and determining the resource configuring mode of the network adapter, wherein the first threshold value is the same as the second threshold value, or the first threshold value is different from the second threshold value.
Further, wherein the adjusting the resources of the network adapter comprises:
determining the transmission rate of the network adapter in a plurality of resource configuration modes;
and determining a first resource configuration mode meeting a first condition in the plurality of resource configuration modes as the resource configuration mode of the network adapter according to the transmission rate in the plurality of resource configuration modes.
Further, the selecting, as the resource configuration mode of the network adapter, a first resource configuration mode that satisfies a first condition in the multiple resource configuration modes according to the transmission rates in the multiple resource configuration modes includes:
and comparing the transmission rates in the plurality of resource configuration modes, determining the resource configuration mode with the highest transmission rate as a first resource configuration mode, and taking the first resource configuration mode as the resource configuration mode of the network adapter.
Further, the adjusting the configuration resource of the network adapter includes:
determining a configured resource adjustment scheme for the network adapter based on the network adapter transceived queue resources.
Further, the adjusting the configuration resource of the network adapter includes:
adding transceiving queue resources, wherein the transceiving queue resources comprise: the size of the transceiving queue or the number of transceiving queues.
Further, the adjusting the configuration resource of the network adapter includes:
adjusting an interrupt configuration, the interrupt configuration being interrupted upon receipt or transmission of a predetermined number of packets, the interrupt configuration being adjusted to: adjusting the predetermined amount.
Further, the adjusting the configuration resource of the network adapter includes:
increasing the size of the data packet.
An electronic device, comprising: a memory and a processor, wherein:
the memory is used for storing a first threshold value and a second threshold value, wherein the first threshold value is the same as the second threshold value, or the first threshold value is different from the second threshold value;
the processor is used for starting a resource adjusting mode and adjusting the configuration resource of the network adapter if the transmission rate of the network adapter is lower than a first threshold value; and if the transmission rate of the network adapter reaches a second threshold value, closing the resource adjusting mode, stopping adjusting the configuration resources of the network adapter, and determining the resource configuration mode of the network adapter.
Further, wherein the processor adjusting the resources of the network adapter comprises:
the processor determines the transmission rate of the network adapter under a plurality of resource configuration modes; and determining a first resource configuration mode meeting a first condition in the plurality of resource configuration modes as the resource configuration mode of the network adapter according to the transmission rate in the plurality of resource configuration modes.
Further, the selecting, by the processor, a first resource configuration mode that satisfies a first condition among the plurality of resource configuration modes according to the transmission rate in the plurality of resource configuration modes as the resource configuration mode of the network adapter includes:
the processor compares the transmission rates in the plurality of resource configuration modes, determines the resource configuration mode with the highest transmission rate as a first resource configuration mode, and takes the first resource configuration mode as the resource configuration mode of the network adapter.
Further, after determining the resource configuration mode of the network adapter and adjusting the configuration resource of the network adapter, the network adapter may be restarted, where the restarting may specifically be: restarting a management path of a network adapter without affecting data transmission of the network adapter data path
According to the processing method and the electronic device disclosed by the application, if the transmission rate of the network adapter is lower than a first threshold, the resource adjusting mode is started, the configured resources of the network adapter are adjusted, if it is detected that the transmission rate of the network adapter reaches a second threshold, the resource adjusting mode is closed, the adjustment of the resources of the network adapter is stopped, and the resource configuring mode of the network adapter is determined, wherein the first threshold is the same as or different from the second threshold. According to the scheme, when the speed of the network adapter is detected to be lower than the first threshold value, the resource adjusting mode is automatically started, the adjustment of the configuration resources of the network adapter is realized, and when the transmission rate of the network adapter reaches the second threshold value, the adjustment of the configuration resources is automatically stopped, manual adjustment of a user is not needed, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a processing method disclosed in an embodiment of the present application;
FIG. 2 is a flow chart of a processing method disclosed in an embodiment of the present application;
FIG. 3 is a flow chart of a processing method disclosed in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application discloses a processing method, a flow chart of which is shown in fig. 1, comprising the following steps:
step S11, if the transmission rate of the network adapter is lower than the first threshold, starting a resource adjusting mode to adjust the configuration resource of the network adapter;
when the transmission rate of the network adapter is lower than the first threshold, the efficiency of data interaction through the network adapter is reduced to a certain specific threshold, such as a third threshold, which may bring a certain influence on the use of the user and reduce the user experience.
The transmission rate of the network adapter is reduced, which indicates that the current configuration parameters of the network adapter cannot meet the current data transmission quantity, and only when the data transmission quantity exceeds the data quantity range which can be normally carried by the current configuration parameters of the network adapter, the situation that the data transmission quantity cannot be quickly transmitted through the network adapter occurs, so that the transmission efficiency is reduced, and the transmission speed is reduced.
For example: the network adapter is provided with 5 data transmission channels, which can enable data of 0-10 units to be normally transmitted, and if data of 15 units needs to be transmitted at present, the data amount of the data to be normally transmitted exceeds the data amount of the data to be normally transmitted, so that the channels are crowded, the transmission speed is reduced, and the transmission efficiency is reduced.
When the transmission rate is lower than the first threshold value, the resource adjusting mode is started to adjust the configuration resources of the network adapter.
When the transmission rate is lower than the first threshold, it indicates that the current configuration resource of the network adapter cannot meet the normal transmission rate of the current data, which may affect the user usage, and at this time, the configuration resource of the network adapter may be adjusted.
The determination of the first threshold may be determined in advance according to the transmission rate in the history record and the total data amount corresponding to the transmission rate, or may be a rate value at which the user can obviously perceive that the speed reduction affects normal use in the history record.
In daily use, the first threshold value can be adjusted according to the use requirement of the user, or can be automatically adjusted according to the use habit of the user.
That is, when the amount of data to be transmitted exceeds the data range that can be normally carried by the network adapter, the portion of the data that exceeds the data range that can be normally carried by the network adapter can be classified. If the data volume needing to be transmitted is the first data volume, the maximum data volume of the normal load-bearing data range is the second data volume, the first data volume is larger than the second data volume, and when the ratio of the data volume exceeding the part to the maximum data volume in the normal load-bearing data range is smaller than the first ratio, the current configuration parameters of the network adapter are still adopted for data transmission, and the configuration resources of the network adapter are not adjusted. When the ratio of the excess part data quantity obtained by subtracting the second data quantity from the first data quantity to the second data quantity is smaller than the first ratio, the configuration resources of the network adapter still can ensure that the transmission speed of the network adapter to the data is higher, and the normal use of a user cannot be influenced;
when the ratio of the excess data amount to the maximum data amount in the normal data carrying range is greater than the first ratio, the configuration resource of the network adapter needs to be adjusted, that is, when the ratio of the excess data amount obtained by subtracting the second data amount from the first data amount to the second data amount is greater than the first ratio, the configuration resource of the network adapter is heavy in load during data transmission, and may affect the normal use of a user, and at this time, the transmission rate of the network adapter may be determined again, so as to further determine whether the current total data transmission amount affects the transmission rate. And when the transmission rate is lower than the first threshold value, the resource adjusting mode is started again to adjust the configuration resources of the network adapter.
Step S12, if it is detected that the transmission rate of the network adapter reaches the second threshold, closing the resource adjustment mode, adjusting the configuration resource of the network adapter, and determining the resource configuration mode of the network adapter, where the first threshold is the same as the second threshold, or the first threshold is different from the second threshold.
When the transmission rate of the network adapter is determined to be lower than the first threshold value, the configuration resources of the network adapter are adjusted, and the transmission rate of the network adapter is determined in the adjusting process.
Specifically, the determination of the transmission rate of the network adapter in the adjustment process is performed according to the data volume currently passing through the network adapter and the corresponding transmission rate determined by the adjusted configuration resource of the network adapter, and when the transmission rate reaches the second threshold, it indicates that the configuration resource of the network adapter corresponding to the current transmission rate can meet the transmission requirement of the data volume currently needing to be transmitted.
For example: the current configuration resource of the network adapter is in a first resource configuration mode, and in the first resource configuration mode, aiming at a first data volume, the transmission rate of the network adapter is a first rate, and if the first rate is smaller than a first threshold value, the configuration resource in the first resource configuration mode needs to be adjusted;
in the adjusting process, the configuration resource of the network adapter is adjusted to a second resource configuration mode, in the second resource configuration mode, aiming at the first data volume, the transmission rate of the network adapter is a second speed, if the second speed is less than a second threshold value, the configuration resource of the network adapter is continuously adjusted, if the second speed is greater than or equal to the second threshold value, the adjustment of the configuration resource of the network adapter is stopped, the corresponding configuration resource in the second resource configuration mode is determined as the configuration resource of the network adapter, so that after the configuration resource of the network adapter is adjusted to the configuration resource in the second resource configuration mode, aiming at the first data volume, the transmission rate can be improved, and even if the transmission rate cannot be improved to the first threshold value, the transmission rate can be improved to a rate which does not affect the normal use of a user.
Specifically, the first threshold may be the same as or different from the second threshold.
If the first threshold is the same as the second threshold, when the configuration resource of the network adapter is adjusted, the transmission rate of the network adapter in the adjustment process is adjusted to the first threshold, and then the adjustment is stopped, and if the transmission rate of the network adapter in the adjustment process reaches the first threshold, in the normal application process of data transmission through the network adapter, the transmission rate of the network adapter cannot be lower than the third threshold even if the transmission rate cannot reach the first threshold, and cannot be lower than the third threshold which can meet the normal use of a user;
if the first threshold is different from the second threshold, the first threshold may be greater than the second threshold or smaller than the second threshold.
When the first threshold is greater than the second threshold, when the configuration resource of the network adapter is adjusted, the transmission rate of the network adapter in the adjustment process is adjusted to the second threshold, the adjustment is stopped, and if the transmission rate of the network adapter in the adjustment process reaches the second threshold, the transmission rate of the network adapter in the normal application process of data transmission through the network adapter cannot be lower than the third threshold even if the transmission rate cannot reach the first threshold or the second threshold, and cannot be lower than the third threshold which can meet the normal use of a user. Wherein the first threshold is greater than the second threshold and greater than the third threshold;
when the first threshold is smaller than the second threshold, when the configuration resource of the network adapter is adjusted, the adjustment is stopped only when the transmission rate of the network adapter reaches the second threshold in the adjustment process, and the adjustment is not stopped even if the transmission rate of the network adapter reaches the first threshold in the adjustment process.
When the transmission rate of the network adapter is lower than a first threshold value, a resource adjusting mode is started, namely when the transmission rate of the network adapter is greater than or equal to the first threshold value, the network adapter is in a data transmission mode of the network adapter, but the resource adjusting mode is not started, and only when the current configuration resources of the network adapter cannot meet the data transmission requirement, namely the transmission rate is lower than the first threshold value, the resource adjusting mode is started;
in the adjusting process, as long as the transmission rate is detected to reach the second threshold value, the resource adjusting mode is closed, and the data transmission mode is continuously used.
When the transmission efficiency reaches the second threshold value, the adjustment of the network adapter resources is stopped, and the configuration resources of the network adapter when the transmission efficiency reaches the second threshold value in the resource adjustment mode are directly used as the configuration resources of the current network adapter for data transmission.
Further, after determining the resource configuration mode of the network adapter and adjusting the configuration resource of the network adapter, the network adapter may be restarted, where the restarting may specifically be: and restarting the management path of the network adapter under the condition of not influencing the data transmission of the data path of the network adapter. That is, the receiving or sending of the data by the network adapter is not affected, and only the configuration resource of the network adapter is adjusted, so that in the process of restarting the management channel of the network adapter, the data channel still performs data transmission according to the original configuration parameters of the network adapter, and after the management channel of the network adapter is restarted, the data is transmitted according to the adjusted configuration resource in the management channel, thereby realizing the increase of the transmission rate of the network adapter after the configuration resource is adjusted.
In the processing method disclosed in this embodiment, if the transmission rate of the network adapter is lower than a first threshold, a resource adjustment mode is started to adjust the configuration resource of the network adapter, and if it is detected that the transmission rate of the network adapter reaches a second threshold, the resource adjustment mode is closed, adjustment of the network adapter resource is stopped, and the resource configuration mode of the network adapter is determined, where the first threshold is the same as or different from the second threshold. According to the scheme, when the speed of the network adapter is detected to be lower than the first threshold value, the resource adjusting mode is automatically started, the adjustment of the configuration resources of the network adapter is realized, and when the transmission rate of the network adapter reaches the second threshold value, the adjustment of the configuration resources is automatically stopped, manual adjustment of a user is not needed, and the use experience of the user is improved.
The embodiment discloses a processing method, a flowchart of which is shown in fig. 2, and the processing method includes:
step S21, if the transmission rate of the network adapter is lower than the first threshold, starting the resource adjusting mode, and determining the transmission rate of the network adapter in various resource configuration modes;
step S22, determining, according to the transmission rate in the multiple resource allocation modes, a first resource allocation mode that satisfies a first condition in the multiple resource allocation modes as a resource allocation mode of the network adapter.
In this scheme, multiple resource configuration modes may be configured for the network adapter in advance, and the network adapter may have different transmission rates in different resource configuration modes, or different resource configuration modes are selected for different data types, and may have different transmission rates, for example: the same data type has different transmission efficiency under different resource configuration modes, one type of data has a faster transmission rate by adopting one resource configuration mode, and the other type of data has a slower transmission rate by adopting the resource configuration mode.
The transmission rate of the network adapter in each resource configuration mode in the multiple resource configuration modes is respectively determined, the first resource configuration mode is determined according to the determined transmission rate, and the network adapter performs data transmission by using the configuration resources of the first resource configuration mode.
Wherein, satisfying the first condition may be: and selecting one or more resource configuration modes with the transmission rate reaching a second threshold value from the multiple resource configuration modes, determining one resource configuration mode as a first resource configuration mode, and enabling the network adapter to transmit data by using the configuration resources of the first resource configuration mode.
If one resource configuration mode with the transmission rate reaching the second threshold value is determined from the plurality of resource configuration modes, directly determining the resource configuration mode as the first resource configuration mode; if there are a plurality of resource allocation patterns, which are determined from the plurality of resource allocation patterns and whose transmission rates reach the second threshold, one of the plurality of resource allocation patterns is selected as the first resource allocation pattern.
Specifically, selecting one of the multiple resource configuration modes whose transmission rate reaches the second threshold as the first resource configuration mode may be:
comparing the transmission rates in the multiple resource allocation modes, determining the resource allocation mode with the highest transmission rate as a first resource allocation mode, namely selecting the resource allocation mode with the highest transmission rate from the multiple resource allocation modes with the transmission rates reaching a second threshold as the first resource allocation mode;
alternatively, the following may be used: comparing a plurality of resource configuration modes with the transmission rates reaching a second threshold value, selecting the resource configuration mode with the lowest transmission rate as a first resource configuration mode, wherein even if the selected resource configuration mode with the lowest transmission rate is used as the first resource configuration mode, the transmission rate can reach the second threshold value, the data transmission requirement of a user is met, only the resource configuration mode just meeting the transmission rate requirement is selected, and the problem of reducing the resource utilization rate of the network adapter can be solved without selecting the resource configuration mode with the too fast transmission rate;
alternatively, it may be: and randomly selecting one resource configuration mode from a plurality of resource configuration modes with the transmission rate reaching a second threshold value as a first resource configuration mode.
In addition, satisfying the first condition may be: and directly comparing the transmission rates in all the resource configuration modes, and determining the resource configuration mode with the highest transmission rate as the first resource configuration mode.
Specifically, no matter whether the transmission rate corresponding to the resource configuration mode can reach the second threshold, the transmission rate can be determined as the first resource configuration mode as long as the transmission rate is the fastest among all the resource configuration modes, so that the problem caused by the fact that no resource configuration mode can be selected if the resource configuration mode with the transmission rate larger than the second threshold is still selected when the transmission rates corresponding to all the resource configuration modes cannot reach the second threshold is solved; as long as the fastest transmission rate of all the resource configuration modes is selected and determined as the first resource configuration mode, whether the resource configuration mode with the fastest transmission rate can enable the transmission rate to meet the use requirements of users can be determined, and if the resource configuration mode cannot meet the use requirements of the users, the resources are determined to be configured in a mode of independently configuring the resources of the network adapter; or, as long as the resource configuration mode with the fastest transmission rate is selected from all the resource configuration modes and determined as the first resource configuration mode, the current transmission rate can be ensured to be the resource configuration mode with the fastest transmission rate in all the resource configuration modes without limiting the limit value of the transmission rate.
In the processing method disclosed in this embodiment, if the transmission rate of the network adapter is lower than the first threshold, the resource adjustment mode is started, the transmission rates of the network adapter in the multiple resource configuration modes are determined, and a first resource configuration mode that meets the first condition in the multiple resource configuration modes is determined as the resource configuration mode of the network adapter according to the transmission rates in the multiple resource configuration modes. According to the scheme, when the speed of the network adapter is detected to be lower than the first threshold value, the resource adjusting mode is automatically started, the adjustment of the configuration resources of the network adapter is realized, and when the first condition is met, the adjustment of the configuration resources is automatically stopped, manual adjustment of a user is not needed, and the use experience of the user is improved.
The embodiment discloses a processing method, a flowchart of which is shown in fig. 3, and the processing method includes:
step S31, if the transmission rate of the network adapter is lower than the first threshold, starting a resource adjusting mode;
step S32, determining the configuration resource adjustment scheme of the network adapter based on the received and transmitted queue resource of the network adapter;
step S33, adjusting the configuration resources of the network adapter according to the configuration resource adjusting scheme, and determining the resource configuration mode of the network adapter.
When the transmission rate of the network adapter is lower than the first threshold, it indicates that the current configuration resource of the network adapter cannot meet the transmission requirement of the data volume to be transmitted currently, and at this time, the configuration resource of the network adapter needs to be adjusted.
When the configuration resources of the network adapter are adjusted, the current configuration resources of the network adapter can be obtained first, the current configuration resources are analyzed, and a specific one or more configuration resources in the current configuration resources are determined to be adjusted according to an analysis result, so that the adjusted configuration resources can meet the condition that the transmission rate of the network adapter reaches a first threshold value or reaches a second threshold value.
For example: the configuration resources of the network adapter include: the network adapter comprises a first resource, a second resource and a third resource, wherein configuration parameters of the current configuration resource of the network adapter are as follows: the first resource is first data, the second resource is second data, and the third resource is third data, and the first data of the first resource, the second data of the second resource, and the third data of the third resource are analyzed, so that it is determined whether the first data of the first resource needs to be adjusted, the second data of the second resource needs to be adjusted, the third data of the third resource needs to be adjusted, or two or three of the data need to be adjusted, so that the adjusted network adapter can meet the requirement of the transmission rate.
Further, analyzing the current configuration resource of the network adapter may specifically be: and applying each adjusted configuration resource to a network adapter for data transmission, and determining the transmission rate, thereby determining which adjustment mode of the configuration resource can meet the requirement of the transmission rate, namely directly applying the adjustment process of the configuration resource of the network adapter to the actual operation of the network adapter, and avoiding the problem that the use efficiency of the network adapter is reduced because the network adapter cannot perform data transmission when determining the adjustment scheme of the configuration resource of the network adapter.
The above example is taken as an example to continue the description: when analyzing the configured resource, in the process of adjusting the first data of the first resource, the configuration parameter of the first resource is adjusted to be fourth data, the fourth data is larger than the first data, and the adjustment is directly applied in the network adapter, that is, the configuration parameter of the network adapter is: the first resource is fourth data, the second resource is second data, the third resource is third data, data transmission is carried out through the configured resource, and the transmission rate is determined; then, adjusting the second data of the second resource, adjusting the configuration parameter of the second resource to be fifth data, the fifth data being larger than the second data, and directly applying the adjustment in the network adapter, that is, the configuration parameter of the network adapter is: the first resource is first data, the second resource is fifth data, the third resource is third data, data transmission is carried out through the configured resource, and the transmission rate is determined; determining the optimal configuration resource scheme, or selecting the configuration resource adjusting scheme with the transmission rate reaching the use requirement of the user as the final configuration resource adjusting scheme of the network adapter;
the method can also comprise the following steps: the current configuration resources of the network adapter are analyzed, each adjusted configuration resource is simulated and trained through the simulated network adapter, so that an optimal configuration resource adjusting scheme is obtained, or the configuration resource adjusting scheme of which the transmission rate meets the use requirement of a user is selected as the final configuration resource adjusting scheme of the network adapter.
Further, the method can also comprise the following steps: the configuration resource adjustment scheme of the network adapter is determined only by the received and transmitted queue resources of the network adapter.
The configuration resources at least comprise transceiving queue resources, and the configuration resources of the network adapter comprise the transceiving queue resources in the transceiving queue resources.
Specifically, there are a plurality of transceiving queue resources in the configuration resources, and the received and transmitted queue resources in the network adapter are only at least a part of all the transceiving queue resources, and it is possible to determine how many transceiving queue resources are in an unused state in all the current configuration resources through the current transceiving queue resources of the network adapter, and when determining the configuration resource adjustment scheme, one or more of the receiving queue resources added to the network adapter may be selected from the unused transceiving queues, so that the received and transmitted queue resources of the network adapter are increased, and the received and transmitted queue resources of the network adapter may transmit more data, thereby increasing the transmission rate, and enabling the transmission rate to meet the user requirement.
For example: all the transceiving queue resources in the resources are configured to be 100, the existing transceiving queue resources in the network adapter are 50, and the transmission rate can be increased by increasing part of the transceiving queue resources, such as: adjusting the number of the received/transmitted queue resources in the network adapter to 60, determining the transmission rate of the network adapter after the received/transmitted queue resources are adjusted, and if the transmission rate can meet the user use requirement, such as: when the first threshold value or the second threshold value is reached, directly determining 60 received and transmitted queue resources as a configuration resource adjusting scheme of the network adapter; or if the transmission rate at this time does not reach the first threshold or the second threshold, continuing to increase the resources of the receiving and sending queue until the transmission rate of the network adapter after the resources are configured can reach the use requirement;
or, if the transmission rate of the 60 received/transmitted queue resources can reach the first threshold and is significantly higher than the first threshold, reducing the received/transmitted queue resources, so as to reduce the available received/transmitted queue resources of the network adapter, and if the transmission rate of the network adapter after reducing the received/transmitted queue resources still can reach the first threshold but is no longer significantly higher than the first threshold, but is within the first range of the first threshold, determining the configuration scheme after reducing the received/transmitted queue resources as the configuration resource scheme of the network adapter.
Further, adjusting the transceiving queue resource of the network adapter may at least include: the size of the transceiving queue resource is adjusted, or the number of the transceiving queue resource is adjusted, specifically, the size or the number of the transceiving queue resource of the network adapter is adjusted.
Specifically, the network adapter includes the receive queue resources, and each receive queue resource, whether used or unused, has its corresponding resource size. If the resource of the receiving and sending queue is increased, the data volume passing through the network adapter in unit time is increased, namely, the transmission rate is increased; if the resource of the receiving and sending queue is reduced, the data volume passing through the network adapter in unit time is reduced, namely the transmission rate is reduced;
for the quantity of the receiving and sending queue resources, the quantity of the receiving and sending queue resources is increased, namely the quantity of the received and sent queue resources in the network adapter is increased, and the transmission rate is improved; the quantity of the receiving and sending queue resources is reduced, namely the quantity of the receiving and sending queue resources in the network adapter is reduced, and the transmission rate is reduced.
The transmission rate of the network adapter can be adjusted by adjusting the size of the received queue resource or the quantity of the received queue resource in the network adapter.
Further, adjusting the configuration resource of the network adapter may also be: and adjusting the interrupt configuration, wherein the interrupt configuration is interrupted when a preset number of data packets are received or sent, and the adjusting the interrupt configuration is that the preset number is adjusted.
Specifically, the interrupt configuration is adjusted by adjusting the interrupt when how many data packets are received or sent during data interaction, and the interrupt timing is different, which results in different transmission rates of the network adapter.
Further, adjusting the configuration resource of the network adapter may also be: increasing the size of the data packet. By adjusting the size of the data packet of the data which needs to be transmitted by the network adapter, the data amount transmitted by the network adapter in unit time can be increased or decreased, so that the total data flow is changed.
That is, the size of the data packet is increased, so that the data volume transmitted through the network adapter in unit time is increased, and the overall data flow is further reduced; reducing the size of the data packet can reduce the amount of data transmitted through the network adapter per unit time, further increasing the overall data traffic.
Further, when adjusting the configuration resource of the network adapter, only one of the transmission/reception queue resource, the interrupt configuration, and the size of the data packet may be adjusted, or two or three of the transmission/reception queue resource, the interrupt configuration, and the size of the data packet may be adjusted. In addition, the following may be also possible: and adjusting the configuration resources of the network adapter by adjusting other parameters.
In the processing method disclosed in this embodiment, if the transmission rate of the network adapter is lower than the first threshold, the resource adjustment mode is started, the configuration resource adjustment scheme of the network adapter is determined based on the received and transmitted queue resources of the network adapter, the configuration resources of the network adapter are adjusted according to the configuration resource adjustment scheme, and the resource configuration mode of the network adapter is determined. According to the scheme, when the speed of the network adapter is detected to be lower than the first threshold value, the resource adjusting mode is automatically started, the adjustment of the configured resources of the network adapter is realized, the resource adjusting scheme is determined according to the received and transmitted queue resources of the network adapter, the resource is configured, manual adjustment of a user is not needed, and the use experience of the user is improved.
The embodiment discloses an electronic device, a schematic diagram of a result of which is shown in fig. 4, including:
a memory 41 and a processor 42.
The memory 41 is configured to store a first threshold and a second threshold, where the first threshold is the same as the second threshold, or the first threshold is different from the second threshold;
the processor 42 is configured to start a resource adjusting mode and adjust the configuration resource of the network adapter if the transmission rate of the network adapter is lower than a first threshold; and if the transmission rate of the network adapter is detected to reach the second threshold value, closing the resource adjusting mode, stopping adjusting the configured resources of the network adapter, and determining the resource configuring mode of the network adapter.
The electronic device disclosed in this embodiment may be a network adapter, or may be other devices besides a network adapter.
When the transmission rate of the network adapter is lower than the first threshold, the efficiency of data interaction through the network adapter is reduced to a certain specific threshold, such as a third threshold, which may bring a certain influence on the use of the user and reduce the user experience.
The transmission rate of the network adapter is reduced, which indicates that the current configuration parameters of the network adapter cannot meet the current data transmission quantity, and only when the data transmission quantity exceeds the data quantity range which can be normally carried by the current configuration parameters of the network adapter, the situation that the data transmission quantity cannot be quickly transmitted through the network adapter occurs, so that the transmission efficiency is reduced, and the transmission speed is reduced.
For example: the network adapter is provided with 5 data transmission channels, which can enable data of 0-10 units to be normally transmitted, and if data of 15 units needs to be transmitted at present, the data amount of the data to be normally transmitted exceeds the data amount of the data to be normally transmitted, so that the channels are crowded, the transmission speed is reduced, and the transmission efficiency is reduced.
When the transmission rate is lower than the first threshold value, the resource adjusting mode is started to adjust the configuration resources of the network adapter.
When the transmission rate is lower than the first threshold, it indicates that the current configuration resource of the network adapter cannot meet the normal transmission rate of the current data, which may affect the user usage, and at this time, the configuration resource of the network adapter may be adjusted.
The determination of the first threshold may be determined in advance according to the transmission rate in the history record and the total data amount corresponding to the transmission rate, or may be a rate value at which the user can obviously perceive that the speed reduction affects normal use in the history record.
In daily use, the first threshold value can be adjusted according to the use requirement of the user, or can be automatically adjusted according to the use habit of the user.
That is, when the amount of data to be transmitted exceeds the data range that can be normally carried by the network adapter, the portion of the data that exceeds the data range that can be normally carried by the network adapter can be classified. If the data volume needing to be transmitted is the first data volume, the maximum data volume of the normal load-bearing data range is the second data volume, the first data volume is larger than the second data volume, and when the ratio of the data volume exceeding the part to the maximum data volume in the normal load-bearing data range is smaller than the first ratio, the current configuration parameters of the network adapter are still adopted for data transmission, and the configuration resources of the network adapter are not adjusted. When the ratio of the excess part data quantity obtained by subtracting the second data quantity from the first data quantity to the second data quantity is smaller than the first ratio, the configuration resources of the network adapter still can ensure that the transmission speed of the network adapter to the data is higher, and the normal use of a user cannot be influenced;
when the ratio of the excess data amount to the maximum data amount in the normal data carrying range is greater than the first ratio, the configuration resource of the network adapter needs to be adjusted, that is, when the ratio of the excess data amount obtained by subtracting the second data amount from the first data amount to the second data amount is greater than the first ratio, the configuration resource of the network adapter is heavy in load during data transmission, and may affect the normal use of a user, and at this time, the transmission rate of the network adapter may be determined again, so as to further determine whether the current total data transmission amount affects the transmission rate. And when the transmission rate is lower than the first threshold value, the resource adjusting mode is started again to adjust the configuration resources of the network adapter.
When the transmission rate of the network adapter is determined to be lower than the first threshold value, the configuration resources of the network adapter are adjusted, and the transmission rate of the network adapter is determined in the adjusting process.
Specifically, the determination of the transmission rate of the network adapter in the adjustment process is performed according to the data volume currently passing through the network adapter and the corresponding transmission rate determined by the adjusted configuration resource of the network adapter, and when the transmission rate reaches the second threshold, it indicates that the configuration resource of the network adapter corresponding to the current transmission rate can meet the transmission requirement of the data volume currently needing to be transmitted.
For example: the current configuration resource of the network adapter is in a first resource configuration mode, and in the first resource configuration mode, aiming at a first data volume, the transmission rate of the network adapter is a first rate, and if the first rate is smaller than a first threshold value, the configuration resource in the first resource configuration mode needs to be adjusted;
in the adjusting process, the configuration resource of the network adapter is adjusted to a second resource configuration mode, in the second resource configuration mode, aiming at the first data volume, the transmission rate of the network adapter is a second speed, if the second speed is less than a second threshold value, the configuration resource of the network adapter is continuously adjusted, if the second speed is greater than or equal to the second threshold value, the adjustment of the configuration resource of the network adapter is stopped, the corresponding configuration resource in the second resource configuration mode is determined as the configuration resource of the network adapter, so that after the configuration resource of the network adapter is adjusted to the configuration resource in the second resource configuration mode, aiming at the first data volume, the transmission rate can be improved, and even if the transmission rate cannot be improved to the first threshold value, the transmission rate can be improved to a rate which does not affect the normal use of a user.
Specifically, the first threshold may be the same as or different from the second threshold.
If the first threshold is the same as the second threshold, when the configuration resource of the network adapter is adjusted, the transmission rate of the network adapter in the adjustment process is adjusted to the first threshold, and then the adjustment is stopped, and if the transmission rate of the network adapter in the adjustment process reaches the first threshold, in the normal application process of data transmission through the network adapter, the transmission rate of the network adapter cannot be lower than the third threshold even if the transmission rate cannot reach the first threshold, and cannot be lower than the third threshold which can meet the normal use of a user;
if the first threshold is different from the second threshold, the first threshold may be greater than the second threshold or smaller than the second threshold.
When the first threshold is greater than the second threshold, when the configuration resource of the network adapter is adjusted, the transmission rate of the network adapter in the adjustment process is adjusted to the second threshold, the adjustment is stopped, and if the transmission rate of the network adapter in the adjustment process reaches the second threshold, the transmission rate of the network adapter in the normal application process of data transmission through the network adapter cannot be lower than the third threshold even if the transmission rate cannot reach the first threshold or the second threshold, and cannot be lower than the third threshold which can meet the normal use of a user. Wherein the first threshold is greater than the second threshold and greater than the third threshold;
when the first threshold is smaller than the second threshold, when the configuration resource of the network adapter is adjusted, the adjustment is stopped only when the transmission rate of the network adapter reaches the second threshold in the adjustment process, and the adjustment is not stopped even if the transmission rate of the network adapter reaches the first threshold in the adjustment process.
When the transmission rate of the network adapter is lower than a first threshold value, a resource adjusting mode is started, namely when the transmission rate of the network adapter is greater than or equal to the first threshold value, the network adapter is in a data transmission mode of the network adapter, but the resource adjusting mode is not started, and only when the current configuration resources of the network adapter cannot meet the data transmission requirement, namely the transmission rate is lower than the first threshold value, the resource adjusting mode is started;
in the adjusting process, as long as the transmission rate is detected to reach the second threshold value, the resource adjusting mode is closed, and the data transmission mode is continuously used.
When the transmission efficiency reaches the second threshold value, the adjustment of the network adapter resources is stopped, and the configuration resources of the network adapter when the transmission efficiency reaches the second threshold value in the resource adjustment mode are directly used as the configuration resources of the current network adapter for data transmission.
Further, after determining the resource configuration mode of the network adapter and adjusting the configuration resource of the network adapter, the network adapter may be restarted, where the restarting may specifically be: and restarting the management path of the network adapter under the condition of not influencing the data transmission of the data path of the network adapter. That is, the receiving or sending of the data by the network adapter is not affected, and only the configuration resource of the network adapter is adjusted, so that in the process of restarting the management channel of the network adapter, the data channel still performs data transmission according to the original configuration parameters of the network adapter, and after the management channel of the network adapter is restarted, the data is transmitted according to the adjusted configuration resource in the management channel, thereby realizing the increase of the transmission rate of the network adapter after the configuration resource is adjusted.
Processor 42 adjusts the resources of the network adapter, including:
processor 42 determines the transmission rate of the network adapter in the plurality of resource allocation modes; and determining a first resource configuration mode meeting a first condition in the multiple resource configuration modes as the resource configuration mode of the network adapter according to the transmission rate in the multiple resource configuration modes.
In this scheme, multiple resource configuration modes may be configured for the network adapter in advance, and the network adapter may have different transmission rates in different resource configuration modes, or different resource configuration modes are selected for different data types, and may have different transmission rates, for example: the same data type has different transmission efficiency under different resource configuration modes, one type of data has a faster transmission rate by adopting one resource configuration mode, and the other type of data has a slower transmission rate by adopting the resource configuration mode.
The transmission rate of the network adapter in each resource configuration mode in the multiple resource configuration modes is respectively determined, the first resource configuration mode is determined according to the determined transmission rate, and the network adapter performs data transmission by using the configuration resources of the first resource configuration mode.
Wherein, satisfying the first condition may be: and selecting one or more resource configuration modes with the transmission rate reaching a second threshold value from the multiple resource configuration modes, determining one resource configuration mode as a first resource configuration mode, and enabling the network adapter to transmit data by using the configuration resources of the first resource configuration mode.
If one resource configuration mode with the transmission rate reaching the second threshold value is determined from the plurality of resource configuration modes, directly determining the resource configuration mode as the first resource configuration mode; if there are a plurality of resource allocation patterns, which are determined from the plurality of resource allocation patterns and whose transmission rates reach the second threshold, one of the plurality of resource allocation patterns is selected as the first resource allocation pattern.
Specifically, selecting one of the multiple resource configuration modes whose transmission rate reaches the second threshold as the first resource configuration mode may be:
comparing the transmission rates in the multiple resource allocation modes, determining the resource allocation mode with the highest transmission rate as a first resource allocation mode, namely selecting the resource allocation mode with the highest transmission rate from the multiple resource allocation modes with the transmission rates reaching a second threshold as the first resource allocation mode;
alternatively, the following may be used: comparing a plurality of resource configuration modes with the transmission rates reaching a second threshold value, selecting the resource configuration mode with the lowest transmission rate as a first resource configuration mode, wherein even if the selected resource configuration mode with the lowest transmission rate is used as the first resource configuration mode, the transmission rate can reach the second threshold value, the data transmission requirement of a user is met, only the resource configuration mode just meeting the transmission rate requirement is selected, and the problem of reducing the resource utilization rate of the network adapter can be solved without selecting the resource configuration mode with the too fast transmission rate;
alternatively, it may be: and randomly selecting one resource configuration mode from a plurality of resource configuration modes with the transmission rate reaching a second threshold value as a first resource configuration mode.
In addition, satisfying the first condition may be: and directly comparing the transmission rates in all the resource configuration modes, and determining the resource configuration mode with the highest transmission rate as the first resource configuration mode.
Specifically, no matter whether the transmission rate corresponding to the resource configuration mode can reach the second threshold, the transmission rate can be determined as the first resource configuration mode as long as the transmission rate is the fastest among all the resource configuration modes, so that the problem caused by the fact that no resource configuration mode can be selected if the resource configuration mode with the transmission rate larger than the second threshold is still selected when the transmission rates corresponding to all the resource configuration modes cannot reach the second threshold is solved; as long as the fastest transmission rate of all the resource configuration modes is selected and determined as the first resource configuration mode, whether the resource configuration mode with the fastest transmission rate can enable the transmission rate to meet the use requirements of users can be determined, and if the resource configuration mode cannot meet the use requirements of the users, the resources are determined to be configured in a mode of independently configuring the resources of the network adapter; or, as long as the resource configuration mode with the fastest transmission rate is selected from all the resource configuration modes and determined as the first resource configuration mode, the current transmission rate can be ensured to be the resource configuration mode with the fastest transmission rate in all the resource configuration modes without limiting the limit value of the transmission rate.
Processor 42 conditions the configuration resources of the network adapter including:
processor 42 determines a configuration resource adjustment scheme for the network adapter based on the network adapter received and transmitted queue resources.
When the transmission rate of the network adapter is lower than the first threshold, it indicates that the current configuration resource of the network adapter cannot meet the transmission requirement of the data volume to be transmitted currently, and at this time, the configuration resource of the network adapter needs to be adjusted.
When the configuration resources of the network adapter are adjusted, the current configuration resources of the network adapter can be obtained first, the current configuration resources are analyzed, and a specific one or more configuration resources in the current configuration resources are determined to be adjusted according to an analysis result, so that the adjusted configuration resources can meet the condition that the transmission rate of the network adapter reaches a first threshold value or reaches a second threshold value.
For example: the configuration resources of the network adapter include: the network adapter comprises a first resource, a second resource and a third resource, wherein configuration parameters of the current configuration resource of the network adapter are as follows: the first resource is first data, the second resource is second data, and the third resource is third data, and the first data of the first resource, the second data of the second resource, and the third data of the third resource are analyzed, so that it is determined whether the first data of the first resource needs to be adjusted, the second data of the second resource needs to be adjusted, the third data of the third resource needs to be adjusted, or two or three of the data need to be adjusted, so that the adjusted network adapter can meet the requirement of the transmission rate.
Further, analyzing the current configuration resource of the network adapter may specifically be: and applying each adjusted configuration resource to a network adapter for data transmission, and determining the transmission rate, thereby determining which adjustment mode of the configuration resource can meet the requirement of the transmission rate, namely directly applying the adjustment process of the configuration resource of the network adapter to the actual operation of the network adapter, and avoiding the problem that the use efficiency of the network adapter is reduced because the network adapter cannot perform data transmission when determining the adjustment scheme of the configuration resource of the network adapter.
The above example is taken as an example to continue the description: when analyzing the configured resource, in the process of adjusting the first data of the first resource, the configuration parameter of the first resource is adjusted to be fourth data, the fourth data is larger than the first data, and the adjustment is directly applied in the network adapter, that is, the configuration parameter of the network adapter is: the first resource is fourth data, the second resource is second data, the third resource is third data, data transmission is carried out through the configured resource, and the transmission rate is determined; then, adjusting the second data of the second resource, adjusting the configuration parameter of the second resource to be fifth data, the fifth data being larger than the second data, and directly applying the adjustment in the network adapter, that is, the configuration parameter of the network adapter is: the first resource is first data, the second resource is fifth data, the third resource is third data, data transmission is carried out through the configured resource, and the transmission rate is determined; determining the optimal configuration resource scheme, or selecting the configuration resource adjusting scheme with the transmission rate reaching the use requirement of the user as the final configuration resource adjusting scheme of the network adapter;
the method can also comprise the following steps: the current configuration resources of the network adapter are analyzed, each adjusted configuration resource is simulated and trained through the simulated network adapter, so that an optimal configuration resource adjusting scheme is obtained, or the configuration resource adjusting scheme of which the transmission rate meets the use requirement of a user is selected as the final configuration resource adjusting scheme of the network adapter.
Further, the method can also comprise the following steps: the configuration resource adjustment scheme of the network adapter is determined only by the received and transmitted queue resources of the network adapter.
The configuration resources at least comprise transceiving queue resources, and the configuration resources of the network adapter comprise the transceiving queue resources in the transceiving queue resources.
Specifically, there are a plurality of transceiving queue resources in the configuration resources, and the received and transmitted queue resources in the network adapter are only at least a part of all the transceiving queue resources, and it is possible to determine how many transceiving queue resources are in an unused state in all the current configuration resources through the current transceiving queue resources of the network adapter, and when determining the configuration resource adjustment scheme, one or more of the receiving queue resources added to the network adapter may be selected from the unused transceiving queues, so that the received and transmitted queue resources of the network adapter are increased, and the received and transmitted queue resources of the network adapter may transmit more data, thereby increasing the transmission rate, and enabling the transmission rate to meet the user requirement.
For example: all the transceiving queue resources in the resources are configured to be 100, the existing transceiving queue resources in the network adapter are 50, and the transmission rate can be increased by increasing part of the transceiving queue resources, such as: adjusting the number of the received/transmitted queue resources in the network adapter to 60, determining the transmission rate of the network adapter after the received/transmitted queue resources are adjusted, and if the transmission rate can meet the user use requirement, such as: when the first threshold value or the second threshold value is reached, directly determining 60 received and transmitted queue resources as a configuration resource adjusting scheme of the network adapter; or if the transmission rate at this time does not reach the first threshold or the second threshold, continuing to increase the resources of the receiving and sending queue until the transmission rate of the network adapter after the resources are configured can reach the use requirement;
or, if the transmission rate of the 60 received/transmitted queue resources can reach the first threshold and is significantly higher than the first threshold, reducing the received/transmitted queue resources, so as to reduce the available received/transmitted queue resources of the network adapter, and if the transmission rate of the network adapter after reducing the received/transmitted queue resources still can reach the first threshold but is no longer significantly higher than the first threshold, but is within the first range of the first threshold, determining the configuration scheme after reducing the received/transmitted queue resources as the configuration resource scheme of the network adapter.
Further, adjusting the transceiving queue resource of the network adapter may at least include: the size of the transceiving queue resource is adjusted, or the number of the transceiving queue resource is adjusted, specifically, the size or the number of the transceiving queue resource of the network adapter is adjusted.
Specifically, the network adapter includes the receive queue resources, and each receive queue resource, whether used or unused, has its corresponding resource size. If the resource of the receiving and sending queue is increased, the data volume passing through the network adapter in unit time is increased, namely, the transmission rate is increased; if the resource of the receiving and sending queue is reduced, the data volume passing through the network adapter in unit time is reduced, namely the transmission rate is reduced;
for the quantity of the receiving and sending queue resources, the quantity of the receiving and sending queue resources is increased, namely the quantity of the received and sent queue resources in the network adapter is increased, and the transmission rate is improved; the quantity of the receiving and sending queue resources is reduced, namely the quantity of the receiving and sending queue resources in the network adapter is reduced, and the transmission rate is reduced.
The transmission rate of the network adapter can be adjusted by adjusting the size of the received queue resource or the quantity of the received queue resource in the network adapter.
Further, adjusting the configuration resource of the network adapter may also be: and adjusting the interrupt configuration, wherein the interrupt configuration is interrupted when a preset number of data packets are received or sent, and the adjusting the interrupt configuration is that the preset number is adjusted.
Specifically, the interrupt configuration is adjusted by adjusting the interrupt when how many data packets are received or sent during data interaction, and the interrupt timing is different, which results in different transmission rates of the network adapter.
Further, adjusting the configuration resource of the network adapter may also be: increasing the size of the data packet. By adjusting the size of the data packet of the data which needs to be transmitted by the network adapter, the data amount transmitted by the network adapter in unit time can be increased or decreased, so that the total data flow is changed.
That is, the size of the data packet is increased, so that the data volume transmitted through the network adapter in unit time is increased, and the overall data flow is further reduced; reducing the size of the data packet can reduce the amount of data transmitted through the network adapter per unit time, further increasing the overall data traffic.
Further, when adjusting the configuration resource of the network adapter, only one of the transmission/reception queue resource, the interrupt configuration, and the size of the data packet may be adjusted, or two or three of the transmission/reception queue resource, the interrupt configuration, and the size of the data packet may be adjusted. In addition, the following may be also possible: and adjusting the configuration resources of the network adapter by adjusting other parameters.
The embodiment discloses an electronic device, where a processor is configured to start a resource adjustment mode and adjust configuration resources of a network adapter if a transmission rate of the network adapter is lower than a first threshold, close the resource adjustment mode and stop adjusting the resources of the network adapter if it is detected that the transmission rate of the network adapter reaches a second threshold, and determine a resource configuration mode of the network adapter, where the first threshold is the same as or different from the second threshold. According to the scheme, when the speed of the network adapter is detected to be lower than the first threshold value, the resource adjusting mode is automatically started, the adjustment of the configuration resources of the network adapter is realized, and when the transmission rate of the network adapter reaches the second threshold value, the adjustment of the configuration resources is automatically stopped, manual adjustment of a user is not needed, and the use experience of the user is improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of processing, comprising:
if the transmission rate of the network adapter is lower than a first threshold value, starting a resource adjusting mode, and adjusting the configuration resources of the network adapter;
if the transmission rate of the network adapter reaches a second threshold value, closing the resource adjusting mode, stopping adjusting the configured resources of the network adapter, and determining the resource configuring mode of the network adapter, wherein the first threshold value is the same as the second threshold value, or the first threshold value is different from the second threshold value;
specifically, in the process of restarting the management path of the network adapter, the data path still performs data transmission according to the configuration resources before the adjustment of the network adapter, and after the restart of the management path of the network adapter is completed, the data is transmitted according to the configuration resources after the adjustment in the management path.
2. The method of claim 1, wherein the adjusting resources of the network adapter comprises:
determining the transmission rate of the network adapter in a plurality of resource configuration modes;
and determining a first resource configuration mode meeting a first condition in the plurality of resource configuration modes as the resource configuration mode of the network adapter according to the transmission rate in the plurality of resource configuration modes.
3. The method of claim 2, wherein the determining, according to the transmission rates in the plurality of resource configuration modes, a first resource configuration mode of the plurality of resource configuration modes that satisfies a first condition as the resource configuration mode of the network adapter comprises:
and comparing the transmission rates in the plurality of resource configuration modes, determining the resource configuration mode with the highest transmission rate as a first resource configuration mode, and taking the first resource configuration mode as the resource configuration mode of the network adapter.
4. The method of claim 1, wherein the adjusting configuration resources of the network adapter comprises:
determining a configured resource adjustment scheme for the network adapter based on the network adapter transceived queue resources.
5. The method of claim 1, wherein the adjusting configuration resources of the network adapter comprises:
adding transceiving queue resources, wherein the transceiving queue resources comprise: the size of the transceiving queue or the number of transceiving queues.
6. The method of claim 1, wherein the adjusting configuration resources of the network adapter comprises:
adjusting an interrupt configuration, the interrupt configuration being interrupted upon receipt or transmission of a predetermined number of packets, the interrupt configuration being adjusted to: adjusting the predetermined amount.
7. The method of claim 1, wherein the adjusting configuration resources of the network adapter comprises:
increasing the size of the data packet.
8. An electronic device, comprising: a memory and a processor, wherein:
the memory is used for storing a first threshold value and a second threshold value, wherein the first threshold value is the same as the second threshold value, or the first threshold value is different from the second threshold value;
the processor is used for starting a resource adjusting mode and adjusting the configuration resource of the network adapter if the transmission rate of the network adapter is lower than a first threshold value; if the transmission rate of the network adapter reaches a second threshold value, closing the resource adjusting mode, stopping adjusting the configured resources of the network adapter, and determining the resource configuring mode of the network adapter;
specifically, in the process of restarting the management path of the network adapter, the data path still performs data transmission according to the configuration resources before the adjustment of the network adapter, and after the restart of the management path of the network adapter is completed, the data is transmitted according to the configuration resources after the adjustment in the management path.
9. The electronic device of claim 8, wherein the processor adjusts resources of the network adapter, comprising:
the processor determines the transmission rate of the network adapter under a plurality of resource configuration modes; and determining a first resource configuration mode meeting a first condition in the plurality of resource configuration modes as the resource configuration mode of the network adapter according to the transmission rate in the plurality of resource configuration modes.
10. The electronic device of claim 9, wherein the processor selects, as the resource configuration mode of the network adapter, a first resource configuration mode that satisfies a first condition in the plurality of resource configuration modes according to the transmission rate in the plurality of resource configuration modes, and includes:
the processor compares the transmission rates in the plurality of resource configuration modes, determines the resource configuration mode with the highest transmission rate as a first resource configuration mode, and takes the first resource configuration mode as the resource configuration mode of the network adapter.
CN201811645949.1A 2018-12-29 2018-12-29 Processing method and electronic equipment Active CN109525446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811645949.1A CN109525446B (en) 2018-12-29 2018-12-29 Processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811645949.1A CN109525446B (en) 2018-12-29 2018-12-29 Processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN109525446A CN109525446A (en) 2019-03-26
CN109525446B true CN109525446B (en) 2021-09-14

Family

ID=65797691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811645949.1A Active CN109525446B (en) 2018-12-29 2018-12-29 Processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN109525446B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11817904B2 (en) * 2021-03-25 2023-11-14 Mellanox Technologies, Ltd. Optical transceiver with reduced lane utilization
CN116827390A (en) * 2023-06-09 2023-09-29 国网吉林省电力有限公司长春供电公司 Communication data regulation and control method and system based on analog optical fiber communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509011A (en) * 2002-12-20 2004-06-30 华为技术有限公司 Method for controlling network port flow
CN106201541A (en) * 2016-07-20 2016-12-07 浪潮电子信息产业股份有限公司 Method for adjusting network card starting mode by using baseboard management controller
CN106685719A (en) * 2016-12-30 2017-05-17 郑州云海信息技术有限公司 Network card performance optimization method and network card performance optimization system
CN108762922A (en) * 2018-05-23 2018-11-06 郑州云海信息技术有限公司 By improving the method and system of network interface card compatibility improving performance under a kind of Linux

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239150B (en) * 2014-09-15 2019-02-01 杭州华为数字技术有限公司 A kind of method and device of hardware resource adjustment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509011A (en) * 2002-12-20 2004-06-30 华为技术有限公司 Method for controlling network port flow
CN106201541A (en) * 2016-07-20 2016-12-07 浪潮电子信息产业股份有限公司 Method for adjusting network card starting mode by using baseboard management controller
CN106685719A (en) * 2016-12-30 2017-05-17 郑州云海信息技术有限公司 Network card performance optimization method and network card performance optimization system
CN108762922A (en) * 2018-05-23 2018-11-06 郑州云海信息技术有限公司 By improving the method and system of network interface card compatibility improving performance under a kind of Linux

Also Published As

Publication number Publication date
CN109525446A (en) 2019-03-26

Similar Documents

Publication Publication Date Title
US10757033B2 (en) Traffic control method, traffic control apparatus and server
KR101256293B1 (en) System and method for heartbeat signal generation
KR101576704B1 (en) Optimizing media content delivery based on user equipment determined resource metrics
EP1588576B1 (en) Resource allocation management
US9270556B2 (en) Flow control in packet processing systems
US10555311B2 (en) Data transmission method and apparatus based on networks of multiple communications standards
US20230171637A1 (en) Method And System For Application Aware Congestion Management
EP3229424A1 (en) Improved wred-based congestion control method and device
CN110505105B (en) Method, device, equipment and storage medium for controlling network service quality
WO2016089479A1 (en) Egress rate shaping to reduce burstiness in application data delivery
US11695629B2 (en) Method and apparatus for configuring a network parameter
CN109525446B (en) Processing method and electronic equipment
CN107800574B (en) Storage QOS adjusting method, system, equipment and computer readable memory
CN107395521B (en) Big data information processing method and system based on Internet of things
CN110674942A (en) Bandwidth management method and device, electronic equipment and readable storage medium
EP2907348B1 (en) Method, network device, computer program and computer program product for determining a set of power state parameters
Bouzouita et al. Estimating the number of contending IoT devices in 5G networks: Revealing the invisible
EP2445294A1 (en) Method and network device for adjusting transmission timing interval
CN108848536B (en) Bandwidth control method and device and communication equipment
EP3429263B1 (en) Method and apparatus for controlling traffic of terminal in mobile communication system
Maia et al. A dynamic lte uplink packet scheduler for machine-to-machine communication
CN104902570B (en) A kind of dynamics of channels configuration method and device
CN112188500A (en) Dynamic allocation method and device for frequency spectrum resources
CN115576698A (en) Network card interrupt aggregation method, device, equipment and medium
WO2022068209A1 (en) Random access method, device, storage medium, and electronic 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