Bandwidth configuration method, system and device and computer readable storage medium

The method automatically generates and configures server bandwidth configurations to optimize device compatibility, addressing the inflexibility of current server bandwidth allocation methods by determining the optimal bandwidth based on maximum device count, thus enhancing server adaptability and user flexibility.

CN119728438AActive Publication Date: 2025-03-28INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202412000534.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-28
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

Current server bandwidth configuration methods require manual intervention by suppliers, limiting flexibility and efficiency in adapting to user demands for server functionality expansion.

Method used

A method and system for automatically determining and configuring server bandwidth by generating all initial bandwidth configurations based on total bandwidth, identifying device numbers for each configuration, and selecting the configuration with the maximum device count to determine the optimal bandwidth configuration, thereby eliminating supplier dependency.

Benefits of technology

This approach allows for flexible and efficient bandwidth configuration of servers, enabling automatic identification of all devices and optimal bandwidth allocation without relying on supplier intervention, enhancing server functionality and user adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728438A_ABST
    Figure CN119728438A_ABST
Patent Text Reader

Abstract

The invention discloses a bandwidth configuration method, system and device and a computer readable storage medium, relates to the technical field of servers, and is applied to system firmware to determine the total bandwidth of a target slot position; generating all initial bandwidth configuration modes of the target slot according to the total bandwidth; performing bandwidth configuration on the target slot according to the initial bandwidth configuration mode, and performing equipment identification on the target slot to obtain an initial equipment quantity value of the target slot in each initial bandwidth configuration mode; determining the maximum initial equipment quantity value as a target equipment quantity value; determining a target bandwidth configuration mode according to an initial bandwidth configuration mode corresponding to the target device number value; and performing bandwidth configuration on the target slot according to the target bandwidth configuration mode. According to the method, all bandwidth configuration modes are exhausted, and the target bandwidth configuration mode is screened according to the identified equipment number, so that the limitation of a supplier on bandwidth allocation is eliminated, and the flexibility is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and more specifically, to a bandwidth configuration method, system, device, and computer-readable storage medium. Background Art

[0002] During the use of the server, the server needs to be expanded according to user needs, such as by connecting the server to target devices with different functions. In this process, the target device supplier needs to customize the firmware or manually set the bandwidth allocation of the server to ensure that the target device can be used by the server. However, this bandwidth configuration method needs to rely on the supplier and has poor flexibility.

[0003] In summary, how to flexibly configure bandwidth for a server is a problem that currently needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] The purpose of this application is to provide a bandwidth configuration method, which can solve the technical problem of how to flexibly configure the bandwidth of a server to a certain extent. This application also provides a bandwidth configuration system, an electronic device and a computer-readable storage medium.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A bandwidth configuration method, applied to system firmware, includes:

[0007] Determine the total bandwidth of the target slot;

[0008] Generate all initial bandwidth configuration modes of the target slot according to the total bandwidth;

[0009] Performing bandwidth configuration on the target slot according to the initial bandwidth configuration mode, and performing device identification on the target slot to obtain an initial device quantity value of the target slot under each initial bandwidth configuration mode;

[0010] Determine the maximum initial device quantity value as the target device quantity value;

[0011] Determining a target bandwidth configuration method according to an initial bandwidth configuration method corresponding to the target device quantity value;

[0012] The bandwidth of the target slot is configured according to the target bandwidth configuration method.

[0013] In an exemplary embodiment, generating all initial bandwidth configuration modes of the target slot according to the total bandwidth includes:

[0014] Determining an optional bandwidth setting value for the target slot;

[0015] The optional bandwidth setting values ​​are combined to obtain each initial bandwidth configuration mode in which the bandwidth value is equal to the total bandwidth.

[0016] In an exemplary embodiment, the system firmware includes a basic input output system.

[0017] In an exemplary embodiment, generating all initial bandwidth configuration modes of the target slot according to the total bandwidth includes:

[0018] In the initialization phase, all initial bandwidth configuration modes of the target slot are generated according to the total bandwidth.

[0019] In an exemplary embodiment, determining the target bandwidth configuration mode according to the initial bandwidth configuration mode corresponding to the target device quantity value includes:

[0020] Taking each initial bandwidth configuration mode corresponding to the target device quantity value as a candidate bandwidth configuration mode;

[0021] Count the number of candidate bandwidth configuration methods;

[0022] Detecting whether the number of candidate bandwidth configuration modes is one;

[0023] In response to the number of candidate bandwidth configuration modes being one, determining the candidate bandwidth configuration mode as the target bandwidth configuration mode;

[0024] In response to the number of candidate bandwidth configuration modes being greater than one, reading a rated bandwidth of each of the target devices;

[0025] The largest candidate bandwidth configuration mode whose maximum bandwidth value is not greater than the rated bandwidth is determined as the target bandwidth configuration mode.

[0026] In an exemplary embodiment, the step of configuring bandwidth for the target slot according to the initial bandwidth configuration mode, identifying devices for the target slot, and obtaining an initial device quantity value for the target slot under each initial bandwidth configuration mode includes:

[0027] Selecting an initial bandwidth configuration mode that is not recorded in the non-volatile memory as the bandwidth configuration mode to be tested;

[0028] The target slot is configured with bandwidth according to the bandwidth configuration mode to be tested, and the target slot is identified with equipment to obtain an initial equipment quantity value of the target slot under the bandwidth configuration mode to be tested;

[0029] Storing the bandwidth configuration mode to be tested and the corresponding initial device quantity value in the non-volatile memory;

[0030] Detecting whether all types of initial bandwidth configuration modes are stored in the non-volatile memory;

[0031] In response to the non-volatile memory not storing all types of initial bandwidth configuration modes, the control server is restarted to execute the step of selecting an initial bandwidth configuration mode not recorded in the non-volatile memory as the bandwidth configuration mode to be tested;

[0032] In response to all kinds of initial bandwidth configuration modes being stored in the non-volatile memory, the process ends.

[0033] In an exemplary embodiment, after configuring the bandwidth of the target slot according to the target bandwidth configuration method, the method further includes:

[0034] Generate a correspondence between the target slot and the target bandwidth configuration mode;

[0035] The corresponding relationship is stored in the non-volatile memory.

[0036] A bandwidth configuration system, applied to system firmware, includes:

[0037] A first determination module, used to determine the total bandwidth of the target slot;

[0038] A first generating module, configured to generate all initial bandwidth configuration modes of the target slot according to the total bandwidth;

[0039] A first configuration module is used to configure bandwidth for the target slot according to the initial bandwidth configuration mode, and identify devices for the target slot to obtain an initial device quantity value for the target slot under each initial bandwidth configuration mode;

[0040] A second determination module is used to determine that the maximum value of the initial number of devices is the target number of devices;

[0041] A third determination module is used to determine a target bandwidth configuration mode according to an initial bandwidth configuration mode corresponding to the target device quantity value;

[0042] The second configuration module is used to configure the bandwidth of the target slot according to the target bandwidth configuration method.

[0043] An electronic device, comprising:

[0044] Memory for storing computer programs;

[0045] A processor is used to implement the steps of any of the above bandwidth configuration methods when executing the computer program.

[0046] A computer-readable storage medium stores a computer program, wherein the computer program implements the steps of any of the above bandwidth configuration methods when executed by a processor.

[0047] The present application provides a bandwidth configuration method, which is applied to system firmware to determine the total bandwidth of a target slot; generate all initial bandwidth configuration modes of the target slot according to the total bandwidth; configure the bandwidth of the target slot according to the initial bandwidth configuration mode, and identify the device of the target slot to obtain the initial device quantity value of the target slot under each initial bandwidth configuration mode; determine that the initial device quantity value with the largest value is the target device quantity value; determine the target bandwidth configuration mode according to the initial bandwidth configuration mode corresponding to the target device quantity value; and configure the bandwidth of the target slot according to the target bandwidth configuration mode. The system firmware in this application only needs to know the total bandwidth of the target slot, and can generate all the initial bandwidth configuration methods of the target slot according to the total bandwidth, that is, exhaustively enumerate all the initial bandwidth configuration methods of the target slot, and then consider that the initial bandwidth configuration method is compatible with the device on the target slot, and then identify all the devices on the target slot, that is, get the maximum number of devices, so the initial device quantity value of the target slot under each initial bandwidth configuration method can be determined, and the final target bandwidth configuration method of the target slot can be determined according to the initial bandwidth configuration method corresponding to the initial device quantity value with the largest value, so that all bandwidth configuration methods are exhausted and the target bandwidth configuration method is screened according to the number of identified devices, thus getting rid of the supplier's restrictions on bandwidth allocation, and having high flexibility. A bandwidth configuration system, electronic device and computer-readable storage medium provided by this application also solve corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0049] Figure 1 A flow chart of a bandwidth configuration method provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of the structure of a bandwidth configuration system provided in an embodiment of the present application;

[0051] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0052] Figure 4Another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0054] See also Figure 1 , Figure 1 A flowchart of a bandwidth configuration method provided in an embodiment of the present application.

[0055] A bandwidth configuration method provided in an embodiment of the present application, applied to system firmware, may include the following steps:

[0056] Step S101: Determine the total bandwidth of the target slot.

[0057] Step S102: Generate all initial bandwidth configuration modes of the target slot according to the total bandwidth.

[0058] In actual applications, the bandwidth allocated to each slot has an upper limit, that is, the total bandwidth of the slot is fixed, and the bandwidth allocated to the slot by the system firmware must be equal to the total bandwidth. Therefore, the system firmware needs to determine the total bandwidth of the target slot and generate all initial bandwidth configuration methods for the target slot based on the total bandwidth. Each initial bandwidth configuration method makes the bandwidth of the target slot equal to the total bandwidth.

[0059] Step S103: bandwidth is configured for the target slot according to the initial bandwidth configuration mode, and device identification is performed on the target slot to obtain an initial device quantity value of the target slot under each initial bandwidth configuration mode.

[0060] In actual applications, after obtaining all initial bandwidth configuration modes of the target slot, the system firmware can configure the bandwidth of the target slot according to each initial bandwidth configuration mode. Since the target slot can be identified after the bandwidth is configured, the target slot can be identified next to obtain the initial device quantity value of the target slot under each initial bandwidth configuration mode, so as to subsequently apply the initial device quantity value of the target slot under each initial bandwidth configuration mode to determine the final bandwidth configuration mode of the target slot.

[0061] Step S104: Determine the maximum initial device quantity value as the target device quantity value.

[0062] Step S105: Determine a target bandwidth configuration mode according to the initial bandwidth configuration mode corresponding to the target device quantity value.

[0063] Step S106: performing bandwidth configuration on the target slot according to the target bandwidth configuration method.

[0064] In practical applications, it is considered that the bandwidth configuration mode of the target slot will affect the number of devices identified. For example, if the total bandwidth of the target slot is x16 and the initial bandwidth configuration mode is x8x8, assuming that the target devices are two x8 devices, then the initial device quantity value under this configuration mode is 2. Assuming that the initial bandwidth configuration mode is x16, only one device can be detected, that is, the initial device quantity value under this configuration mode is 1. By comparison, it can be seen that the initial bandwidth configuration mode corresponding to the largest initial device quantity value matches the target bandwidth configuration mode, so the largest initial device quantity value can be determined as the target device quantity value. According to the initial bandwidth configuration mode corresponding to the target device quantity value, the target bandwidth configuration mode is determined, and finally the bandwidth of the target slot is configured according to the target bandwidth configuration mode.

[0065] In a specific application scenario, in the process of generating all initial bandwidth configuration modes of a target slot according to the total bandwidth, considering that the total bandwidth only limits the total bandwidth of the target slot, and the bandwidth of the target slot is composed of multiple setting values, the optional bandwidth setting value of the target slot can be determined; the optional bandwidth setting values ​​are combined to obtain each initial bandwidth configuration mode whose bandwidth value is equal to the total bandwidth.

[0066] In a specific application scenario, in the process of combining the optional bandwidth setting values ​​to obtain each initial bandwidth configuration mode in which the bandwidth value is equal to the total bandwidth, the optional bandwidth setting values ​​can be randomly combined to obtain each initial bandwidth configuration mode in which the bandwidth value is equal to the total bandwidth, or each initial bandwidth configuration mode can be obtained by combining and calculating the optional bandwidth setting values. For example, each optional bandwidth setting value can be used as a reference bandwidth setting value, and an unselected reference bandwidth setting value can be selected as the selected bandwidth setting value; the difference between the total bandwidth and the selected bandwidth setting value is generated, and an optional bandwidth setting value that is not greater than the difference is used as a candidate bandwidth setting value, and an unselected candidate bandwidth setting value is selected as the selected bandwidth setting value, and it is detected whether the selected bandwidth setting value is equal to the total bandwidth. If the selected bandwidth setting value is less than the total bandwidth, the selection is returned and the execution is performed. a step of selecting a candidate bandwidth setting value that has not been selected as the selected bandwidth setting value; if the selected bandwidth setting value is equal to the total bandwidth, using the selected bandwidth setting value as an initial bandwidth configuration mode, detecting whether there is a candidate bandwidth setting value that has not been combined with the benchmark bandwidth setting value; if there is a candidate bandwidth setting value that has not been combined with the benchmark bandwidth setting value, returning to execute the step of generating the difference between the total bandwidth and the selected bandwidth setting value to generate a new initial bandwidth configuration mode based on the benchmark bandwidth setting value; if all candidate bandwidth setting values ​​have been combined with the benchmark bandwidth setting value, returning to execute the step of selecting a benchmark bandwidth setting value that has not been selected as the selected bandwidth setting value to generate a new initial bandwidth configuration mode based on the new benchmark bandwidth setting value, until all benchmark bandwidth setting values ​​have participated in the selection, and all initial bandwidth configuration modes are obtained.

[0067] It can be seen from the implementation process that in the present application, in the process of combining the optional bandwidth setting values ​​to obtain each initial bandwidth configuration mode in which the bandwidth value is equal to the total bandwidth, each optional bandwidth setting value is first used as the reference bandwidth setting value, and the initial bandwidth configuration mode based on various optional bandwidth setting values ​​can be obtained by selecting the reference bandwidth setting value, and after selecting a reference bandwidth setting value that has not been selected as the selected bandwidth setting value, the candidate bandwidth setting value can be determined according to the difference between the total bandwidth and the selected bandwidth setting value, and various initial bandwidth configuration modes under the reference bandwidth setting value are obtained by combining the candidate bandwidth setting value and the current reference bandwidth setting value. In addition, other initial bandwidth configuration modes can be obtained by simply updating the reference bandwidth setting value, so that all initial bandwidth configuration modes can be exhaustively enumerated by updating and combining the reference bandwidth setting value and the corresponding candidate bandwidth setting value, and there is no situation where the initial bandwidth configuration mode is omitted, thereby ensuring the exhaustive accuracy of the initial bandwidth configuration mode.

[0068] In a specific application scenario, when the system firmware generates all initial bandwidth configuration modes of the target slot according to the total bandwidth, the system firmware can generate all initial bandwidth configuration modes of the target slot according to the total bandwidth during the initialization (PEI) phase, that is, the method of the present application can be applied to the initialization phase of the system firmware. In addition, the type of system firmware can be flexibly determined according to actual needs, for example, the system firmware can be a basic input output system (BIOS), etc.

[0069] In a specific application scenario, in the process of determining the target bandwidth configuration mode according to the initial bandwidth configuration mode corresponding to the target device quantity value, the system firmware can further determine the target bandwidth configuration mode according to the rated bandwidth of the target device, that is, each initial bandwidth configuration mode corresponding to the target device quantity value can be used as a candidate bandwidth configuration mode; count the number of candidate bandwidth configuration modes; detect whether the number of candidate bandwidth configuration modes is one; in response to the number of candidate bandwidth configuration modes being one, determine the candidate bandwidth configuration mode as the target bandwidth configuration mode; in response to the number of candidate bandwidth configuration modes being greater than one, read the rated bandwidth of each target device; determine the candidate bandwidth configuration mode whose maximum bandwidth value is not greater than the rated bandwidth and is the largest as the target bandwidth configuration mode, that is, determine the candidate bandwidth configuration mode whose bandwidth value is not greater than the rated bandwidth and has the largest bandwidth value as the target bandwidth configuration mode. For ease of understanding, assuming that the total bandwidth of the target slot is x16, there are three initial bandwidth configuration modes, namely x16, x8x8 and x4x4x4. Assuming that there are two target devices with a rated bandwidth of x8, the initial device quantity values ​​corresponding to the three initial bandwidth configuration modes of x16, x8x8 and x4x4x4 are 1, 2 and 0 respectively. At this time, the candidate bandwidth configuration mode is only x8x8, so the target bandwidth configuration mode can be determined to be x8x8. Assuming that there is a target device with a rated bandwidth of x16, the initial device quantity values ​​corresponding to the three initial bandwidth configuration modes of x16, x8x8 and x4x4x4 are 1, 1 and 0 respectively. At this time, the candidate bandwidth configuration modes are x16 and x8x8, so the target bandwidth configuration mode needs to be determined as x16 according to the rated bandwidth of the target device.

[0070] In a specific application scenario, the system firmware configures the bandwidth of the target slot according to the initial bandwidth configuration mode, identifies the device of the target slot, and obtains the initial device quantity value of the target slot under each initial bandwidth configuration mode. In the process, an initial bandwidth configuration mode not recorded in the non-volatile memory can be selected as the bandwidth configuration mode to be tested; the bandwidth of the target slot is configured according to the bandwidth configuration mode to be tested, and the device of the target slot is identified to obtain the initial device quantity value of the target slot under the bandwidth configuration mode to be tested. For example, a depth-first strategy can be used to traverse the device. If the device can be identified normally, the BDF (Bu s / Device / Function) and the parent slot ID, obtain the design generation table of each slot and store the table in the non-volatile memory; store the bandwidth configuration mode to be tested and the corresponding initial device quantity value in the non-volatile memory; detect whether all kinds of initial bandwidth configuration modes are stored in the non-volatile memory; in response to not storing all kinds of initial bandwidth configuration modes in the non-volatile memory, control the server to select an initial bandwidth configuration mode not recorded in the non-volatile memory as the bandwidth configuration mode to be tested after restarting; in response to all kinds of initial bandwidth configuration modes being stored in the non-volatile memory, end.

[0071] From this implementation process, it can be known that the present application uses a non-volatile memory to record the initial device quantity value of the target slot under each initial bandwidth configuration mode. In this way, after the bandwidth of the target slot is configured according to a bandwidth configuration mode to be tested, and the device of the target slot is identified, and the initial device quantity value of the target slot under the bandwidth configuration mode to be tested is obtained, the bandwidth configuration mode to be tested and the corresponding initial device quantity value can be stored in the non-volatile memory. In this way, if there are still bandwidth configuration modes to be tested that have not been recorded in the non-volatile memory, it indicates that the recording of the initial device quantity values ​​corresponding to all initial bandwidth configuration modes has not been completed, and it is necessary to continue to count the initial device quantity values ​​corresponding to the bandwidth configuration mode to be tested, thereby achieving the effect of systematically counting the initial device quantity values ​​corresponding to the initial bandwidth configuration mode with the help of a non-volatile memory, avoiding the situation of missing the initial device quantity value corresponding to the initial bandwidth configuration mode, and ensuring the statistical accuracy of the initial device quantity value.

[0072] In a specific application scenario, after the system firmware configures the bandwidth of the target slot according to the target bandwidth configuration method, it can also generate a correspondence between the target slot and the target bandwidth configuration method; store the correspondence in a non-volatile memory so that the corresponding relationship stored in the non-volatile memory can be directly applied next time to configure the bandwidth of the target slot.

[0073] The present application provides a bandwidth configuration method, which is applied to system firmware to determine the total bandwidth of a target slot; generate all initial bandwidth configuration modes of the target slot according to the total bandwidth; configure the bandwidth of the target slot according to the initial bandwidth configuration mode, and identify the device of the target slot to obtain the initial device quantity value of the target slot under each initial bandwidth configuration mode; determine that the initial device quantity value with the largest value is the target device quantity value; determine the target bandwidth configuration mode according to the initial bandwidth configuration mode corresponding to the target device quantity value; and configure the bandwidth of the target slot according to the target bandwidth configuration mode. The system firmware in the present application only needs to know the total bandwidth of the target slot, and then it can generate all the initial bandwidth configuration methods of the target slot according to the total bandwidth, that is, exhaustively enumerate all the initial bandwidth configuration methods of the target slot, and then consider that if the initial bandwidth configuration method is compatible with the device on the target slot, all the devices on the target slot will be identified, that is, the maximum number of devices will be obtained, so the initial device quantity value of the target slot under each initial bandwidth configuration method can be determined, and the final target bandwidth configuration method of the target slot can be determined according to the initial bandwidth configuration method corresponding to the initial device quantity value with the largest value, thereby realizing the screening of the target bandwidth configuration method by exhaustively enumerating all bandwidth configuration methods and according to the number of identified devices, getting rid of the supplier's restrictions on bandwidth allocation, and having high flexibility.

[0074] To facilitate understanding of the bandwidth configuration scheme of the present application, it is now assumed that the system firmware is a basic input and output system. In the process of configuring the bandwidth of the target slot, the baseboard input and output system can perform the following steps:

[0075] After entering the initialization phase, check whether the bandwidth configuration switch of the target slot is turned on through the user interface;

[0076] If enabled, the total bandwidth of the target slot is determined;

[0077] Generate all initial bandwidth configuration modes for the target slot based on the total bandwidth;

[0078] The value of the initialization flag is 1;

[0079] Select an initial bandwidth configuration mode that has not been selected to configure the bandwidth of the target slot, identify the device of the target slot, obtain the initial device quantity value of the target slot under this initial bandwidth configuration mode, and increase the value of the flag bit by 1;

[0080] Check whether the flag value is greater than the total number of initial bandwidth configuration modes;

[0081] If the value of the flag bit is less than or equal to the total number of initial bandwidth configuration methods, return to the step of selecting an initial bandwidth configuration method that has not been selected to configure the bandwidth of the target slot;

[0082] If the value of the flag bit is greater than the total number of initial bandwidth configuration methods, the initial device quantity value with the largest value is determined as the target device quantity value;

[0083] Each initial bandwidth configuration method corresponding to the target device quantity value is used as a candidate bandwidth configuration method;

[0084] Count the number of candidate bandwidth configuration methods;

[0085] Detecting whether the number of candidate bandwidth configuration modes is one;

[0086] In response to the number of candidate bandwidth configuration modes being one, determining the candidate bandwidth configuration mode as the target bandwidth configuration mode;

[0087] In response to the number of candidate bandwidth configuration modes being greater than one, reading the rated bandwidth of each target device; determining the largest candidate bandwidth configuration mode having a maximum bandwidth value not greater than the rated bandwidth as the target bandwidth configuration mode;

[0088] Write the target bandwidth configuration mode into the non-volatile memory and set a restart;

[0089] After restarting, the target bandwidth configuration mode in the non-volatile memory is read, and the bandwidth of the target slot is configured according to the target bandwidth configuration mode.

[0090] See also Figure 2 , Figure 2 A schematic diagram of the structure of a bandwidth configuration system provided in an embodiment of the present application.

[0091] A bandwidth configuration system provided in an embodiment of the present application is applied to system firmware and may include:

[0092] A first determination module 101 is used to determine the total bandwidth of a target slot;

[0093] The first generating module 102 is used to generate all initial bandwidth configuration modes of the target slot according to the total bandwidth;

[0094] The first configuration module 103 is used to configure bandwidth for the target slot according to the initial bandwidth configuration mode, and identify the device for the target slot to obtain the initial device quantity value of the target slot under each initial bandwidth configuration mode;

[0095] The second determination module 104 is used to determine that the maximum value of the initial number of devices is the target number of devices;

[0096] The third determination module 105 is used to determine the target bandwidth configuration mode according to the initial bandwidth configuration mode corresponding to the target device quantity value;

[0097] The second configuration module 106 is used to configure bandwidth for the target slot according to the target bandwidth configuration method.

[0098] An embodiment of the present application provides a bandwidth configuration system, which is applied to system firmware. The first generation module may include:

[0099] A first determining unit, configured to determine an optional bandwidth setting value of a target slot;

[0100] The first combining unit is used to combine the optional bandwidth setting values ​​to obtain each initial bandwidth configuration mode in which the bandwidth value is equal to the total bandwidth.

[0101] A bandwidth configuration system provided by an embodiment of the present application is applied to system firmware, and the system firmware includes a basic input and output system.

[0102] An embodiment of the present application provides a bandwidth configuration system, which is applied to system firmware. The first generation module may include:

[0103] The first generating unit is used to generate all initial bandwidth configuration modes of the target slot according to the total bandwidth in the initialization phase.

[0104] A bandwidth configuration system provided by an embodiment of the present application is applied to system firmware, and the third determination module may include:

[0105] A first setting unit is used to use each initial bandwidth configuration mode corresponding to the target device quantity value as a candidate bandwidth configuration mode;

[0106] A first statistical unit, used to count the number of candidate bandwidth configuration modes;

[0107] The first detection unit is used to detect whether the number of candidate bandwidth configuration methods is one; in response to the number of candidate bandwidth configuration methods being one, the candidate bandwidth configuration method is determined as the target bandwidth configuration method; in response to the number of candidate bandwidth configuration methods being greater than one, the rated bandwidth of each target device is read, and the candidate bandwidth configuration method whose maximum bandwidth value is not greater than the rated bandwidth is determined as the target bandwidth configuration method.

[0108] An embodiment of the present application provides a bandwidth configuration system, which is applied to system firmware. The first configuration module may include:

[0109] A first selection unit is used to select an initial bandwidth configuration mode that is not recorded in the non-volatile memory as the bandwidth configuration mode to be tested;

[0110] The first configuration unit is used to configure bandwidth for the target slot according to the bandwidth configuration mode to be tested, and to identify the device of the target slot to obtain an initial device quantity value of the target slot under the bandwidth configuration mode to be tested;

[0111] A first storage unit, used to store the bandwidth configuration mode to be tested and the corresponding initial device quantity value in a non-volatile memory;

[0112] The second detection unit is used to detect whether all kinds of initial bandwidth configuration methods are stored in the non-volatile memory; in response to not storing all kinds of initial bandwidth configuration methods in the non-volatile memory, the control server is restarted to execute the step of selecting an initial bandwidth configuration method not recorded in the non-volatile memory as the bandwidth configuration method to be tested; in response to all kinds of initial bandwidth configuration methods being stored in the non-volatile memory, the process ends.

[0113] A bandwidth configuration system provided in an embodiment of the present application is applied to system firmware and may further include:

[0114] A second generating module, configured to generate a corresponding relationship between the target slot and the target bandwidth configuration mode after the second configuration module configures the bandwidth of the target slot according to the target bandwidth configuration mode;

[0115] The first storage module is used to store the corresponding relationship in a non-volatile memory.

[0116] The present application also provides an electronic device and a computer-readable storage medium, both of which have the corresponding effects of the bandwidth configuration method provided in the embodiment of the present application. Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0117] An electronic device provided in an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program, the steps of the bandwidth configuration method described in any of the above embodiments are implemented.

[0118] See also Figure 4, another electronic device provided in the embodiment of the present application may also include: an input port 203 connected to the processor 202, for transmitting commands input from the outside to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing results of the processor 202 to the outside; a communication module 205 connected to the processor 202, for realizing communication between the electronic device and the outside. The display unit 204 can be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (Mobile High-Definition Link, MHL), Universal Serial Bus (Universal Serial Bus, USB), High-Definition Multimedia Interface (High-DefinitionMultimedia Interface, HDMI), wireless connection: wireless fidelity technology (WIreless Fidelity, WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.

[0119] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the bandwidth configuration method described in any of the above embodiments are implemented.

[0120] The computer-readable storage medium involved in this application includes random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs (Compact Disc Read-Only Memory), or any other form of storage medium known in the technical field.

[0121] A computer program product provided in an embodiment of the present application includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the bandwidth configuration method described in any of the above embodiments are implemented.

[0122] For the description of the relevant parts of a bandwidth configuration system, an electronic device, and a computer-readable storage medium provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in a bandwidth configuration method provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.

[0123] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0124] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A bandwidth configuration method, characterized in that: Applied to system firmware, including: Determine the total bandwidth of the target slot; Generate all initial bandwidth configuration modes of the target slot according to the total bandwidth; Performing bandwidth configuration on the target slot according to the initial bandwidth configuration mode, and performing device identification on the target slot to obtain an initial device quantity value of the target slot under each initial bandwidth configuration mode; Determine the maximum initial device quantity value as the target device quantity value; Determining a target bandwidth configuration method according to an initial bandwidth configuration method corresponding to the target device quantity value; The bandwidth of the target slot is configured according to the target bandwidth configuration method.

2. The method according to claim 1, characterized in that The generating all initial bandwidth configuration modes of the target slot according to the total bandwidth includes: Determining an optional bandwidth setting value for the target slot; The optional bandwidth setting values ​​are combined to obtain each initial bandwidth configuration mode in which the bandwidth value is equal to the total bandwidth.

3. The method according to claim 1, characterized in that The system firmware includes a basic input and output system.

4. The method according to claim 1, characterized in that The generating all initial bandwidth configuration modes of the target slot according to the total bandwidth includes: In the initialization phase, all initial bandwidth configuration modes of the target slot are generated according to the total bandwidth.

5. The method according to claim 1, characterized in that The determining the target bandwidth configuration mode according to the initial bandwidth configuration mode corresponding to the target device quantity value includes: Taking each initial bandwidth configuration mode corresponding to the target device quantity value as a candidate bandwidth configuration mode; Count the number of candidate bandwidth configuration methods; Detecting whether the number of candidate bandwidth configuration modes is one; In response to the number of candidate bandwidth configuration modes being one, determining the candidate bandwidth configuration mode as the target bandwidth configuration mode; In response to the number of candidate bandwidth configuration modes being greater than one, reading a rated bandwidth of each of the target devices; The largest candidate bandwidth configuration mode whose maximum bandwidth value is not greater than the rated bandwidth is determined as the target bandwidth configuration mode.

6. The method according to claim 1, characterized in that The step of configuring the bandwidth of the target slot according to the initial bandwidth configuration mode, and identifying the device of the target slot to obtain the initial device quantity value of the target slot under each initial bandwidth configuration mode includes: Selecting an initial bandwidth configuration mode that is not recorded in the non-volatile memory as the bandwidth configuration mode to be tested; The target slot is configured with bandwidth according to the bandwidth configuration mode to be tested, and the target slot is identified with equipment to obtain an initial equipment quantity value of the target slot under the bandwidth configuration mode to be tested; Storing the bandwidth configuration mode to be tested and the corresponding initial device quantity value in the non-volatile memory; Detecting whether all types of initial bandwidth configuration modes are stored in the non-volatile memory; In response to the non-volatile memory not storing all types of initial bandwidth configuration modes, the control server is restarted to execute the step of selecting an initial bandwidth configuration mode not recorded in the non-volatile memory as the bandwidth configuration mode to be tested; In response to all kinds of initial bandwidth configuration modes being stored in the non-volatile memory, the process ends.

7. The method according to claim 6, characterized in that After configuring the bandwidth of the target slot according to the target bandwidth configuration method, the method further includes: Generate a correspondence between the target slot and the target bandwidth configuration mode; The corresponding relationship is stored in the non-volatile memory.

8. A bandwidth configuration system, characterized in that: Applied to system firmware, including: A first determination module, used to determine the total bandwidth of the target slot; A first generating module, configured to generate all initial bandwidth configuration modes of the target slot according to the total bandwidth; A first configuration module is used to configure bandwidth for the target slot according to the initial bandwidth configuration mode, and identify devices for the target slot to obtain an initial device quantity value for the target slot under each initial bandwidth configuration mode; A second determination module is used to determine that the maximum value of the initial number of devices is the target number of devices; A third determination module is used to determine a target bandwidth configuration mode according to an initial bandwidth configuration mode corresponding to the target device quantity value; The second configuration module is used to configure the bandwidth of the target slot according to the target bandwidth configuration method.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the bandwidth configuration method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the bandwidth configuration method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Server slot bandwidth allocation method and device, terminal and storage medium

    CN115118605A

  • Bandwidth adjustment method and device, electronic equipment and storage medium

    CN116150067A

  • PCIe bandwidth allocation method, server mainboard and server

    CN116366450A

  • PCIe bandwidth allocation method and server

    CN116827797A

  • Bandwidth adjustment method and device, program product, medium and server

    CN119011406A