A configuration method, configuration system and related devices for a server network card
By adjusting the server's CPU, virtualization and network port configuration information, the problem of limited transmission bandwidth of the server network is solved, and the network card performance is maximized and network transmission efficiency is improved.
Patent Information
- Application Number
- CN202211624390.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-12-15
AI Technical Summary
The network transmission bandwidth of existing servers is affected by configurations such as firewalls, resulting in a degradation of network transmission performance and affecting the high-speed transmission of data.
Provide a configuration method for server network card, by receiving configuration instructions, determining adjustment parameters, and adjusting the CPU, virtualization and network port configuration information of the server according to these parameters, thereby optimizing network transmission.
By adjusting multiple configurations of the server, the network card performance can be maximized, the network transmission efficiency of the server can be improved, and the time required for network performance tuning is reduced.
Smart Images

Figure CN115913936B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of servers, and particularly to a configuration method, a configuration system and related devices for a server network card. Background Art
[0002] Currently, due to being affected and restricted by many factors, such as configurations like firewalls, the network transmission bandwidth of servers has been greatly reduced, which is not conducive to high-speed data transmission and further affects the application performance of servers. Summary of the Invention
[0003] The purpose of this application is to provide a configuration method, a configuration system, a computer-readable storage medium and an electronic device for a server network card, which can improve the performance of the server network card.
[0004] To solve the above technical problems, this application provides a configuration method for a server network card, and the specific technical solution is as follows:
[0005] Receive a configuration instruction;
[0006] Determine the adjustment parameter in the configuration instruction;
[0007] Adjust the configuration information of the server according to the adjustment parameter; wherein, the configuration information includes at least one of CPU configuration information, virtualization configuration information and network port configuration information.
[0008] Optionally, after receiving the configuration instruction, it further includes:
[0009] Install a CPU frequency modulation tool, a numactl tool and an interface management tool on the server.
[0010] Optionally, if the configuration information includes CPU configuration information, adjusting the configuration information of the server according to the adjustment parameter includes:
[0011] Use the CPU frequency modulation tool to adjust the operating mode or the operating frequency of the CPU; the operating mode includes a performance mode and a power saving mode.
[0012] Optionally, if the configuration information includes virtualization configuration information, adjusting the configuration information of the server according to the adjustment parameter includes:
[0013] Use the interface management tool to turn off the virtualization settings of the server.
[0014] Optionally, before adjusting the configuration information of the server according to the adjustment parameter, it further includes:
[0015] Use the numactl tool to view the current numa node status of the server;
[0016] Determine the network interface node of the CPU according to the NUMA node status.
[0017] Optionally, if the configuration information includes network interface configuration information, adjusting the configuration information of the server according to the adjustment parameter further includes:
[0018] Bind the interrupt and process of the server to the network interface node.
[0019] Optionally, it further includes:
[0020] Configure the maximum transmission unit of the network card by using a network performance testing tool.
[0021] This application also provides a configuration system for a server network card, including:
[0022] An instruction receiving module, configured to receive a configuration instruction;
[0023] A parameter determining module, configured to determine the adjustment parameter in the configuration instruction;
[0024] A configuration module, configured to adjust the configuration information of the server according to the adjustment parameter; wherein, the configuration information includes at least one of CPU configuration information, virtualization configuration information, and network interface configuration information.
[0025] Optionally, it further includes:
[0026] A tool installation module, configured to install a CPU frequency modulation tool, a numactl tool, and an interface management tool on the server after receiving the configuration instruction.
[0027] Optionally, if the configuration information includes CPU configuration information, the configuration module includes:
[0028] A CPU configuration unit, configured to adjust the operating mode or the operating frequency of the CPU by using the CPU frequency modulation tool; the operating mode includes a performance mode and a power saving mode.
[0029] Optionally, if the configuration information includes virtualization configuration information, adjusting the configuration information of the server according to the adjustment parameter includes:
[0030] A virtualization configuration unit, configured to turn off the virtualization setting of the server by using the interface management tool.
[0031] Optionally, the configuration module further includes:
[0032] A network interface node determining unit, configured to view the current NUMA node status of the server by using the numactl tool; determine the network interface node of the CPU according to the NUMA node status.
[0033] Optionally, if the configuration information includes network interface configuration information, the configuration module includes:
[0034] A network interface configuration unit, configured to bind the interrupt and process of the server to the network interface node.
[0035] Optionally, it further includes:
[0036] A network card transmission configuration module, configured to configure the maximum transmission unit of the network card by using a network performance testing tool.
[0037] This application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described above are implemented.
[0038] This application also provides a server, including a memory and a processor. A computer program is stored in the memory. When the processor calls the computer program in the memory, the steps of the method described above are implemented.
[0039] This application provides a method for configuring a server network card, including: receiving a configuration instruction; determining an adjustment parameter in the configuration instruction; adjusting the configuration information of the server according to the adjustment parameter; where the configuration information includes at least one of CPU configuration information, virtualization configuration information, and network interface configuration information.
[0040] After this application receives a configuration instruction and determines the configuration information, it applies the configuration information to configure and adjust the CPU, virtualization service, and network interface in the server, optimizes the network transmission of the server from three perspectives, maximizes the network card performance, can realize automatic optimization of the network card performance of the server, reduces the time required to explore network performance optimization, quickly improves the network card performance, and is beneficial to the high-speed data transmission of the server.
[0041] This application also provides a server network card configuration system, a computer-readable storage medium, and an electronic device, which have the above beneficial effects and will not be elaborated here. Description of the Drawings
[0042] In order to more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of this application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.
[0043] Figure 1 It is a flowchart of a method for configuring a server network card provided by an embodiment of this application;
[0044] Figure 2 A structural schematic diagram of a configuration system for a server network card provided by an embodiment of the present application;
[0045] Figure 3 A structural diagram of a terminal provided by an embodiment of the present application. Detailed implementation manners
[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0047] Please refer to Figure 1 , Figure 1 A flowchart of a configuration method for a server network card provided by an embodiment of the present application. The configuration method includes:
[0048] S101: Receive a configuration instruction;
[0049] This step aims to obtain a configuration instruction. Here, the source of the configuration instruction is not limited. It can be obtained by converting other instructions. For example, it can be obtained by using a corresponding speech recognition system to recognize a voice instruction of a user. Or receive a control instruction from a server management device and parse the configuration instruction therefrom.
[0050] Meanwhile, there is no limitation on how to receive the configuration instruction here. It can receive the configuration instruction regularly or receive the configuration instruction immediately after detecting a relevant instruction.
[0051] The configuration instruction at least includes adjustment parameters related to the performance of the server network card. However, it should be noted that the parameters related to the network card performance are not limited to the relevant parameters of the network card. It can include any parameters that affect the network card performance.
[0052] S102: Determine the adjustment parameters in the configuration instruction;
[0053] This step aims to determine the adjustment parameters, which are used to adjust the server to improve the network card performance of the network cards in the server. Here, there is no limitation on how to determine the adjustment parameters. The parameters included in the configuration instructions can be directly parsed, and the components in the server to which each parameter applies can be determined one by one. The corresponding components to which they apply can be determined according to the parameter names. At the same time, the adjustment parameters should also include the specific content of each parameter. Of course, the specific content should vary depending on the corresponding components. For example, for the adjustment of the CPU frequency, the specific parameters of the CPU can be directly included in the adjustment parameters.
[0054] S103: Adjust the configuration information of the server according to the adjustment parameters; wherein, the configuration information includes at least one of CPU configuration information, virtualization configuration information, and network interface configuration information.
[0055] This step aims to adjust the configuration information of the server, and the configuration information includes at least one of CPU configuration information, virtualization configuration information, and network interface configuration information.
[0056] Taking the CPU configuration information as an example, it is mainly for configuring the operating frequency of the CPU. In order to improve the network card performance, it is necessary to increase the operating frequency of the CPU. Of course, there is no limitation on how much the CPU operating frequency is specifically increased here, which can be determined according to the specific model of the CPU used. Usually, the main thing increased is the main frequency of the CPU, which is the product of the external frequency and the multiplier. The external frequency is the operating speed between the CPU and the motherboard, and the main frequency is also called the clock frequency, which is used to directly represent the computing speed of the CPU. When specifically adjusting the CPU configuration information, it is not necessary to directly adjust the CPU operating frequency, but the CPU configuration information can be indirectly adjusted. For example, if the working mode of the CPU has been pre-configured, such as the power-saving mode and the performance mode, the power-saving mode can be directly turned off and the performance mode can be used for operation. The so-called power-saving mode means that some cores of the CPU are in the sleep state, thus reducing energy consumption. The performance mode ensures that all cores of the CPU are in the working state, thus ensuring the response efficiency and improving the working performance. Therefore, when it is necessary to improve the network card performance, the configuration of the CPU can be achieved by changing the working mode of the CPU.
[0057] For the virtualization configuration information, it mainly targets the virtualization services that may exist in the server, such as installed virtual machines, etc. When it is necessary to ensure the network card performance, the virtualization services will occupy a large amount of server resources, including CPU resources and memory resources, etc., thus affecting the network card performance. Therefore, when performing virtualization configuration, the virtualization services of the server can be directly turned off, the operation of the components corresponding to the virtualization services can be stopped, the occupation of the server resources by the virtualization services can be reduced, and the resources required by the network card can be ensured to be sufficient, thereby improving the network card performance.
[0058] For the network port configuration information, it is mainly used to optimize the interrupt allocation in the server. Therefore, during the adjustment process of the network port configuration, the numactl tool can be used to view the current NUMA node status of the server first, and then determine the network port node of the CPU according to the NUMA node status. Non-Uniform Memory Access (NUMA) is a computer memory design for multi-processors. The memory access time depends on the memory location of the processor. Under NUMA, the processor can access its own local memory faster than non-local memory (the memory shared between processors or memories from one location of the memory to another processor). NUMA tries to solve this problem by providing separate memories for each processor to avoid performance loss when multiple processors access the same memory. For applications involving scattered data, NUMA can improve the performance by n times through a shared memory, where n is approximately the number of processors (or separate memories). The NUMA technology divides CPUs into different groups (Nodes). Each Node consists of multiple CPUs and has independent local memory, I / O and other resources. The CPUs of each Node are connected and communicate through an interconnection module. Therefore, in addition to local memory, each CPU can still access the memory of the remote Node, but the efficiency will be worse than accessing local memory. Usually, the overhead of accessing resources between Nodes can be defined by the distance (an abstract concept) between Nodes. Therefore, by adjusting the network port configuration information, it is convenient to bind the process to the specified CPU core, and the specified CPU core processes the process, thereby reducing the overhead of accessing resources between Nodes.
[0059] It can be seen that this embodiment can actually be executed according to the following steps:
[0060] Step 1: Receive a configuration instruction;
[0061] Step 2: Determine the adjustment parameters in the configuration instruction;
[0062] Step 3: Adjust the configuration information of the server according to the adjustment parameters; where Step 3 includes the following three sub-steps:
[0063] a. Increase the CPU operating frequency according to the CPU configuration information;
[0064] b. Turn off the virtualization service of the server according to the virtualization configuration information;
[0065] c. Bind the process to the specified CPU core according to the network port configuration information.
[0066] It should also be noted that there is no established execution order relationship among steps a, b, and c. That is, during the actual process of adjusting the configuration information of the server, there is no
[0067] After receiving the configuration instruction and determining the configuration information, the embodiment of the present application applies the configuration information to adjust the CPU, virtualization service, and network interface in the server, optimizes the network transmission of the server from three perspectives, maximizes the network card performance, can realize the automatic tuning of the network card performance of the server, reduces the time required to explore network performance tuning, quickly improves the network card performance, and is beneficial to the high-speed data transmission of the server.
[0068] Based on the above embodiment, as a preferred embodiment, after receiving the configuration instruction, the server can also install a CPU frequency modulation tool, a numactl tool, and an interface management tool.
[0069] The CPU frequency modulation tool is used to adjust the CPU operating frequency. Here, there is no limitation on what kind of CPU frequency modulation tool to use. A feasible CPU frequency modulation tool is cpupower, which is a set of user space tools designed to assist CPU frequency modulation. For a server, generally keep the power connection and require relatively high performance. Therefore, it is recommended to turn off the dynamic adjustment function of the CPU, prohibit the CPU from sleeping, and fix the CPU frequency to the highest. At the same time, cpupower can also be used to modify the power management in the server BIOS to Performance, that is, the performance mode. If it is found that the CPU mode is conservative (power saving mode) or powersave, cpupower can be used to set the CPU Performance mode, and the effect is also remarkable.
[0070] The numactl tool can be used to view the NUMA node configuration and status of the current server, and the process can be bound to the specified CPU core through this tool, and the corresponding process is run by the specified CPU core.
[0071] The interface management tool is used to adjust the virtualization service. A feasible interface management tool can be ipmitool, which is a command-line ipmi (Intelligent Platform Management Interface) platform management tool available in the linux system. Through it, functions such as obtaining sensor information, displaying system log content, and remotely powering on and off the network can be realized. In this embodiment, it is mainly used to change the virtualization settings to turn off all virtualization services in the server.
[0072] Then the corresponding complete execution process of this embodiment can be as follows:
[0073] The first step: Receive the configuration instruction;
[0074] The second step: Install a CPU frequency modulation tool, a numactl tool, and an interface management tool in the server;
[0075] Step 3: Determine the adjustment parameters in the configuration instruction;
[0076] Step 4: Apply the CPU frequency scaling tool, numactl tool, and interface management tool respectively, and adjust the configuration information of the server according to the adjustment parameters; wherein, the configuration information includes at least one of CPU configuration information, virtualization configuration information, and network interface configuration information.
[0077] Based on the above embodiments, as a preferred embodiment, the adjustment parameters may further include the maximum transmission unit. The maximum transmission unit (MTU) is used to notify the other party of the maximum size of the data service unit that can be accepted, indicating the size of the payload that the sender can accept. It can be seen that the maximum transmission unit is the maximum length of a packet or frame, usually measured in bytes. If the MTU is too large, it will be rejected by the router when encountering it because it cannot process oversized packets. If it is too small, since the protocol must add a header to the packet (or frame), the actual data volume transmitted will be too small, resulting in low transmission efficiency. Usually, the default value of the maximum transmission unit is 1500. By increasing the maximum transmission unit, more data packets can be sent per unit time, thereby improving the data transmission performance of the network card. It should also be noted that after adjusting the maximum transmission unit on the server as the sender, in order to further improve the data transmission performance, the maximum transmission unit can also be adjusted for the data receiving end, that is, the peer device, that is, the set maximum transmission unit is also increased, so as to further increase the data transmission volume per unit time.
[0078] This embodiment aims to configure the maximum transmission unit of the network card using a network performance testing tool. Based on the adjustment of the server configuration information in the previous embodiment, the network card transmission performance of the server can be further improved, thereby realizing further optimization of the network card.
[0079] At this time, the complete implementation process corresponding to this embodiment can be as follows:
[0080] Step 1: Receive a configuration instruction;
[0081] Step 2: Determine the adjustment parameters in the configuration instruction;
[0082] Step 3: Adjust the configuration information of the server according to the adjustment parameters, which specifically includes the following steps:
[0083] a. Increase the CPU operating frequency according to the CPU configuration information;
[0084] b. Turn off the virtualization service of the server according to the virtualization configuration information;
[0085] c. Bind the process to the specified CPU core according to the network port configuration information;
[0086] d. Configure the maximum transmission unit of the network card using a network performance testing tool.
[0087] Similarly, there is no established execution order among the above steps a, b, c, and d. Those skilled in the art only need to complete all the above four adjustment processes during specific implementation.
[0088] Based on the above embodiments, as a preferred embodiment, during normal operation, interrupts in the system are randomly allocated to the CPU cores that are currently in the working state, which directly leads to a relatively large time delay in the interrupt handling process, not only consuming a large amount of energy but also increasing the occupation of server resources.
[0089] Therefore, this embodiment can apply an interrupt allocation tool to optimize interrupt allocation. There is no limitation on what kind of interrupt allocation optimization tool to use. Irqbalance can be used as the interrupt allocation optimization tool. Irqbalance is used to optimize interrupt allocation. It will automatically collect system data to analyze usage patterns and place the working state in Performance mode or Power - save mode according to the system load conditions.
[0090] When in Performance mode, irqbalance will distribute interrupts as evenly as possible to each CPU core to make full use of multiple CPU cores and improve performance.
[0091] When in Power - save mode, irqbalance will concentrate interrupts on a certain CPU core to ensure the sleep time of other idle CPU cores and reduce energy consumption.
[0092] Therefore, an interrupt allocation tool can be used to optimize interrupt allocation, concentrate all interrupts on the specified CPU core, and prohibit the system from automatically allocating, thereby reducing the time delay and improving performance.
[0093] At this time, the corresponding implementation process of this embodiment can be as follows:
[0094] Step 1: Receive a configuration instruction;
[0095] Step 2: Determine the adjustment parameters in the configuration instruction;
[0096] Step 3: Adjust the configuration information of the server according to the adjustment parameters, which specifically includes the following steps:
[0097] a. Increase the CPU operating frequency according to the CPU configuration information;
[0098] b. Turn off the virtualization service of the server according to the virtualization configuration information;
[0099] c. Bind the process to the specified CPU core according to the network interface configuration information;
[0100] d. Optimize the interrupt distribution of the server by using the interrupt distribution tool.
[0101] If combined with the previous embodiment, another execution process of the present application can be obtained as follows:
[0102] Step 1: Receive a configuration instruction;
[0103] Step 2: Determine the adjustment parameters in the configuration instruction;
[0104] Step 3: Adjust the configuration information of the server according to the adjustment parameters, which specifically includes the following steps:
[0105] a. Increase the CPU operating frequency according to the CPU configuration information
[0106] b. Turn off the virtualization service of the server according to the virtualization configuration information;
[0107] c. Bind the process to the specified CPU core according to the network interface configuration information;
[0108] d. Configure the maximum transmission unit of the network card by using the network performance test tool;
[0109] e. Optimize the interrupt distribution of the server by using the interrupt distribution tool.
[0110] Based on the above embodiments, as a preferred embodiment, the firewall in the server can also be configured. Since the firewall needs to perform security scans and other processes on the data incoming to the server, which affects the data interaction progress, therefore, when adjusting the configuration information of the server according to the adjustment parameters, the firewall of the server can also be turned off to avoid the impact of the firewall on the network card performance. Of course, this firewall refers to the software or hardware included in the server itself for security management and screening. At this time, the configuration method of the server network card provided by the present application can be specifically as follows:
[0111] Step 1: Receive a configuration instruction;
[0112] Step 2: Determine the adjustment parameters in the configuration instruction;
[0113] Step 3: Adjust the configuration information of the server according to the adjustment parameters, which specifically includes the following steps:
[0114] a. Increase the CPU operating frequency according to the CPU configuration information;
[0115] b. Shut down the virtualization service of the server according to the virtualization configuration information;
[0116] c. Bind the process to the specified CPU core according to the network interface configuration information;
[0117] d. Shut down the firewall of the server;
[0118] If combined with the above embodiments, there can be the following several implementation manners:
[0119] Step 1: Receive a configuration instruction;
[0120] Step 2: Determine the adjustment parameters in the configuration instruction;
[0121] Step 3: Adjust the configuration information of the server according to the adjustment parameters, which specifically includes the following steps:
[0122] a. Increase the CPU operating frequency according to the CPU configuration information;
[0123] b. Shut down the virtualization service of the server according to the virtualization configuration information;
[0124] c. Bind the process to the specified CPU core according to the network interface configuration information;
[0125] d. Shut down the firewall of the server;
[0126] e. Optimize the interrupt distribution of the server by using an interrupt distribution tool.
[0127] Or execute in the following manner:
[0128] Step 1: Receive a configuration instruction;
[0129] Step 2: Determine the adjustment parameters in the configuration instruction;
[0130] Step 3: Adjust the configuration information of the server according to the adjustment parameters, which specifically includes the following steps:
[0131] a. Increase the CPU operating frequency according to the CPU configuration information;
[0132] b. Shut down the virtualization service of the server according to the virtualization configuration information;
[0133] c. Bind the process to the specified CPU core according to the network interface configuration information;
[0134] d. Shut down the firewall of the server;
[0135] e. Configure the maximum transmission unit of the network card by using a network performance testing tool;
[0136] Or execute in the following manner:
[0137] Step 1: Receive a configuration instruction;
[0138] Step 2: Determine the adjustment parameters in the configuration instruction;
[0139] Step 3: Adjust the configuration information of the server according to the adjustment parameters, specifically including the following steps:
[0140] a. Increase the CPU operating frequency according to the CPU configuration information;
[0141] b. Turn off the virtualization service of the server according to the virtualization configuration information;
[0142] c. Bind the process to the specified CPU core according to the network interface configuration information;
[0143] d. Turn off the firewall of the server;
[0144] e. Configure the maximum transmission unit of the network card using a network performance testing tool;
[0145] f. Optimize the interrupt distribution of the server using an interrupt allocation tool.
[0146] The following uses a specific configuration process to illustrate the configuration method of the server network card provided by this application. Taking 4 25G dual optical port network cards as an example:
[0147] 1. Two machines with the same configuration (a certain dual-way CPU, 16 32G memories (half inserted), 4 identical 25G dual optical port network cards)
[0148] 2. Execute cpupower frequency-set -g performance / systemctl stop firewalld.service / systemctl stop irqbalance.service / ifconfig enp33s0f0 mtu 9000 under the system
[0149] In the above formula, cpupower frequency-set -g performance means applying cpupower to adjust the operating mode of the CPU in the server to the performance mode, systemctl stop firewalld.service means turning off the firewall of the server, systemctl stop irqbalance.service means applying the rqbalance software for interrupt distribution optimization, and ifconfig enp33s0f0 mtu 9000 is used to set the numa port as the network interface.
[0150] 3. Set the IP address of each optical port.
[0151] 4. Server side: numactl - C 80 - 83 iperf - s - p 5001 - P 3
[0152] 5. Execute the above command on all optical ports of the server side, paying attention to the CPU ID and ports
[0153] 6. Client side: numactl - C 16 - 19 iperf - c 192.168.1.2 - p 5001 - i 1 - P 3 - t 120
[0154] 7. Execute the above command on all optical ports of the client side, paying attention to the CPU ID, ports, and the corresponding IP addresses.
[0155] 8. After running for two minutes, the result shows that the bandwidth of each optical port can reach 24.7 / 24.8 Gbps, indicating a significant improvement in the network card performance.
[0156] Next, a configuration system for a server network card provided by an embodiment of the present application will be introduced. The configuration system described below can be mutually corresponding and referred to with the configuration system for a server network card described above.
[0157] See Figure 2 , Figure 2 which is a schematic structural diagram of a configuration system for a server network card provided by an embodiment of the present application. The present application also provides a configuration system for a server network card, including:
[0158] An instruction receiving module, configured to receive configuration instructions;
[0159] A parameter determination module, configured to determine adjustment parameters in the configuration instructions;
[0160] A configuration module, configured to adjust the configuration information of the server according to the adjustment parameters; wherein, the configuration information includes at least one of CPU configuration information, virtualization configuration information, and network port configuration information.
[0161] Based on the above embodiments, as a preferred embodiment, it further includes:
[0162] A tool installation module, configured to install a CPU frequency modulation tool, a numactl tool, and an interface management tool on the server after receiving the configuration instructions.
[0163] Based on the above embodiments, as a preferred embodiment, if the configuration information includes CPU configuration information, the configuration module includes:
[0164] A CPU configuration unit, configured to adjust the operating mode or the operating frequency of the CPU by using the CPU frequency modulation tool; the operating mode includes a performance mode and a power saving mode.
[0165] Based on the above embodiments, as a preferred embodiment, if the configuration information includes virtualization configuration information, adjusting the configuration information of the server according to the adjustment parameter includes:
[0166] A virtualization configuration unit, configured to use the interface management tool to turn off the virtualization settings of the server.
[0167] Based on the above embodiments, as a preferred embodiment, the configuration module further includes:
[0168] A network interface node determination unit, configured to use the numactl tool to view the current numa node status of the server; determine the network interface node of the CPU according to the numa node status.
[0169] Based on the above embodiments, as a preferred embodiment, if the configuration information includes network interface configuration information, the configuration module includes:
[0170] A network interface configuration unit, configured to bind the interrupt and process of the server to the network interface node.
[0171] Based on the above embodiments, as a preferred embodiment, it further includes:
[0172] A network card transmission configuration module, configured to use a network performance test tool to configure the maximum transmission unit of the network card.
[0173] The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps provided by the above embodiments can be implemented. The storage medium may include: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.
[0174] The present application also provides a server, which may include a memory and a processor. When the processor calls the computer program in the memory, the steps provided by the above embodiments can be implemented. Of course, the server may further include various network interfaces, power supplies, and other components.
[0175] The present application also provides a terminal. Refer to Figure 3 , a structural diagram of a terminal provided by an embodiment of the present application, as shown in Figure 3 , which may include a processor 1410 and a memory 1420.
[0176] Among them, the processor 1410 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1410 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1410 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 1410 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1410 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.
[0177] The memory 1420 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1420 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 1420 is at least used to store the following computer program 1421. After the computer program is loaded and executed by the processor 1410, it can implement the relevant steps in the configuration method of the server network card disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 1420 may further include an operating system 1422 and data 1423, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 1422 may include Windows, Linux, Android, etc.
[0178] In some embodiments, the terminal may further include a display screen 1430, an input / output interface 1440, a communication interface 1450, a sensor 1460, a power supply 1470, and a communication bus 1480.
[0179] Of course, Figure 3 The structure of the shown terminal does not constitute a limitation on the terminal in the embodiments of the present application. In practical applications, the terminal may include more or fewer components than Figure 3 shown, or combine some components.
[0180] The various embodiments in the specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other. For the system provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple. For the relevant parts, reference can be made to the description in the method section.
[0181] Specific examples are used in this article to elaborate on the principles and implementation manners of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of the present application, several improvements and modifications can still be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
[0182] It should also be noted that in this specification, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
Claims
1. A configuration method for a server network card, characterized in that, Including: Receiving a configuration instruction; Installing a CPU frequency modulation tool, a numactl tool, and an interface management tool on the server; Determining the adjustment parameters in the configuration instruction and determining one by one the components in the server to which each of the adjustment parameters applies; Adjusting the configuration information of the server according to the adjustment parameters; wherein, the configuration information includes CPU configuration information, virtualization configuration information, and network interface configuration information; If the configuration information includes CPU configuration information, using the CPU frequency modulation tool to modify the power management in the server to the performance mode; if the CPU mode is the power-saving mode, using the CPU frequency modulation tool to set the CPU mode to the performance mode; If the configuration information includes virtualization configuration information, using the interface management tool to change the virtualization settings, turning off the virtualization service of the server, and stopping the operation of the components corresponding to the virtualization service; If the configuration information includes network interface configuration information, using the numactl tool to view the current numa node status of the server; determining the network interface node of the CPU according to the numa node status; Binding the interrupts and processes of the server to the network interface node of the CPU; Using an interrupt distribution tool to optimize the interrupt distribution of the server, concentrating all interrupts and distributing them to the specified CPU cores, and setting the work to the performance mode or the power-saving mode according to the system data load condition.
2. The configuration method according to claim 1, characterized in that If the configuration information includes CPU configuration information, adjusting the configuration information of the server according to the adjustment parameters includes: Using the CPU frequency modulation tool to adjust the operation mode or the operation frequency of the CPU; the operation mode includes the performance mode and the power-saving mode.
3. The configuration method according to claim 1, characterized in that, Also including: Configuring the maximum transmission unit of the network card using a network performance test tool.
4. A configuration system for a server network card, characterized in that, Including: An instruction receiving module for receiving a configuration instruction; A tool installation module for installing a CPU frequency modulation tool, a numactl tool, and an interface management tool on the server after receiving the configuration instruction; A parameter determination module for determining the adjustment parameters in the configuration instruction and determining one by one the components in the server to which each of the adjustment parameters applies; A configuration module for adjusting the configuration information of the server according to the adjustment parameters; wherein, the configuration information includes CPU configuration information, virtualization configuration information, and network interface configuration information; The configuration module includes: A CPU configuration unit for, if the configuration information includes CPU configuration information, using the CPU frequency modulation tool to modify the power management in the server to the performance mode; if the CPU mode is the power-saving mode, using the CPU frequency modulation tool to set the CPU mode to the performance mode; A virtualization configuration unit for, if the configuration information includes virtualization configuration information, using the interface management tool to change the virtualization settings, turning off the virtualization service of the server, and stopping the operation of the components corresponding to the virtualization service; A network port node determination unit, configured to, if the configuration information includes network port configuration information, use the numactl tool to view the current NUMA node status of the server; and determine the network port node of the CPU according to the NUMA node status. A network port configuration unit, configured to bind the interrupts and processes of the server to the network port node of the CPU; optimize the interrupt distribution of the server by using an interrupt allocation tool, concentrate all interrupts to be allocated to a specified CPU core, and place the work in a performance mode or a power-saving mode according to the system data load condition.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the steps of the configuration method of the server network card according to any one of claims 1-3 are implemented.
6. A server, characterized in that, It includes a memory and a processor. A computer program is stored in the memory. When the processor calls the computer program in the memory, the steps of the configuration method of the server network card according to any one of claims 1-3 are implemented.
Citation Information
Patent Citations
Method for improving packet receiving capability of HANDLE identifier analysis system
CN110737530A
Method and system for controlling server frequency
CN110990064A
Zombie virtual machine detection method and device, computer device and storage medium
CN114003339A