CN115118605A - Server slot bandwidth allocation method, device, terminal and storage medium - Google Patents

Server slot bandwidth allocation method, device, terminal and storage medium Download PDF

Info

Publication number
CN115118605A
CN115118605A CN202210901089.3A CN202210901089A CN115118605A CN 115118605 A CN115118605 A CN 115118605A CN 202210901089 A CN202210901089 A CN 202210901089A CN 115118605 A CN115118605 A CN 115118605A
Authority
CN
China
Prior art keywords
bandwidth
configuration
server
slot
fru
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202210901089.3A
Other languages
Chinese (zh)
Inventor
周春芬
徐胜军
田卓
周炳荫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210901089.3A priority Critical patent/CN115118605A/en
Publication of CN115118605A publication Critical patent/CN115118605A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

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

Abstract

The invention relates to the field of slot bandwidth allocation of a server, and particularly discloses a slot bandwidth allocation method, a slot bandwidth allocation device, a slot bandwidth allocation terminal and a storage medium for the server, wherein a server FRU configuration file is obtained through a BMC, and a bandwidth configuration identifier is added in the server FRU configuration file; the bandwidth configuration identifier comprises a slot position to be configured and a bandwidth to be allocated on the slot position to be configured; in the system starting-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification. According to the characteristics of the FRU information memory, the convenience of modifying the FRU information by the BMC is combined, the setting requirement of the slot position bandwidth can be judged by reading the numerical value of the field of the FRU according to the characteristics of modifying the FRU information in batches of operation and maintenance machines, the setting requirement of a client is greatly facilitated, and meanwhile, the later-stage production maintenance, the service expansion of the client and the convenience of the operation and maintenance are facilitated.

Description

Server slot bandwidth allocation method, device, terminal and storage medium
Technical Field
The invention relates to the field of slot bandwidth allocation of a server, in particular to a slot bandwidth allocation method and device of the server, a terminal and a storage medium.
Background
With the development of the internet era in recent years, the demand for mass data processing capacity is rapidly increasing, so that higher requirements are put forward on a server, and new demands for customers to increase after the hardware of a server mainboard is fixed are more and more common.
At present, in order to meet the requirements of different configurations for bandwidths, GPIOs pulled from the inside of a CPU are connected to slot screen pin pins with different bandwidths in a hardware manner, different GPIO potentials are configured with different bandwidths, and the BIOS implements the configurations of different bandwidths according to the combinations specified by the hardware.
However, the problem of bandwidth allocation is easily solved in the planned slot, but in the newly added demand of the client, the slot has no required bandwidth allocation, and the client is unable to realize bandwidth allocation.
Disclosure of Invention
In order to solve the problems, the invention provides a slot bandwidth allocation method, a device, a terminal and a storage medium for a server, which are used for judging the setting requirement of the slot bandwidth by reading the numerical value of the field of an FRU according to the characteristics of an FRU information memory and the convenience of modifying the FRU information by combining with a BMC (baseboard management controller), and can modify the characteristics of the FRU information of operation and maintenance machine batches, thereby greatly facilitating the setting requirement of a client, and being beneficial to later-stage production maintenance, service expansion of the client and the convenience of operation and maintenance.
In a first aspect, a technical solution of the present invention provides a method for allocating slot bandwidth of a server, including the following steps:
s1, acquiring a server FRU configuration file through the BMC, and adding a bandwidth configuration identifier in the server FRU configuration file; the bandwidth configuration identifier comprises a slot position to be configured and a bandwidth to be allocated on the slot position to be configured;
s2, at the system start-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification.
Further, step S1 specifically includes:
s11, acquiring a server FRU configuration file through the BMC;
s12, selecting a certain field in the server FRU configuration file as a bandwidth configuration identification field;
s13, setting the field value of the bandwidth configuration identification field as the bandwidth configuration identification.
Further, step S2 specifically includes:
s21, reading the server FRU configuration file by the BIOS in the system startup stage;
s22, detecting whether the server FRU configuration file contains a bandwidth configuration identifier;
s23, if the bandwidth configuration identification is not included, the system is directly and normally started;
and S24, if the bandwidth configuration identifier is included, allocating corresponding bandwidth to the slot to be configured according to the bandwidth configuration identifier.
Further, in step S24, allocating a corresponding bandwidth to the slot to be configured according to the bandwidth configuration identifier specifically includes:
s24_1, detecting the configuration value of the bandwidth configuration option in the BIOS setting item, wherein the configuration value of the bandwidth configuration option identifies the current allocated bandwidth of each slot position;
s24_2, judging whether the bandwidth to be allocated corresponding to the bandwidth configuration identification obtained from the server FRU configuration file is the same as the configuration value of the corresponding slot position in the bandwidth configuration selection;
s24_3, if the two are the same, the starting is directly and normally carried out;
and S24_4, if not, allocating corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identifier, modifying the corresponding configuration value in the bandwidth configuration option, and executing system restart operation after modification is completed.
In a second aspect, an aspect of the present invention provides a server slot bandwidth allocation apparatus, including,
an identification configuration module: acquiring a server FRU configuration file through a BMC (baseboard management controller), and adding a bandwidth configuration identifier in the server FRU configuration file; the bandwidth configuration identifier comprises a slot position to be configured and a bandwidth to be allocated on the slot position to be configured;
a bandwidth allocation module: in the system starting-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification.
Further, the identity configuration module is specifically configured to,
acquiring a server FRU configuration file through a BMC (baseboard management controller);
selecting a certain field in the server FRU configuration file as a bandwidth configuration identification field;
and setting the field value of the bandwidth configuration identification field as the bandwidth configuration identification.
Further, the bandwidth allocation module is specifically configured to:
in the system starting stage, reading a server FRU configuration file by a BIOS;
detecting whether a server FRU configuration file contains a bandwidth configuration identifier or not;
if the bandwidth configuration identifier is not included, the system is directly and normally started;
and if the bandwidth configuration identifier is included, distributing corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identifier.
Further, allocating a corresponding bandwidth to the slot to be configured according to the bandwidth configuration identifier specifically includes:
detecting the configuration value of a bandwidth configuration option in the BIOS setting item, wherein the configuration value of the bandwidth configuration option identifies the current bandwidth allocation of each slot position;
judging whether the bandwidth to be allocated corresponding to the bandwidth configuration identification acquired from the server FRU configuration file is the same as the configuration value of the corresponding slot position in the bandwidth configuration selection;
if the two are the same, the starting is directly and normally carried out;
if the bandwidth configuration options are different, distributing corresponding bandwidth to the slot positions to be configured according to the bandwidth configuration identifiers, modifying the corresponding configuration values in the bandwidth configuration options, and executing system restarting operation after modification is completed.
In a third aspect, a technical solution of the present invention provides a terminal, including:
the memory is used for storing a slot bandwidth allocation program of the server;
and the processor is used for realizing the steps of the server slot bandwidth allocation method when executing the server slot bandwidth allocation program.
In a fourth aspect, an aspect of the present invention provides a computer-readable storage medium, where a server slot bandwidth allocation program is stored on the computer-readable storage medium, and when executed by a processor, the server slot bandwidth allocation program implements the steps of the server slot bandwidth allocation method according to any one of the above.
Compared with the prior art, the slot bandwidth allocation method, the slot bandwidth allocation device, the slot bandwidth allocation terminal and the storage medium for the server provided by the invention have the following beneficial effects: according to the characteristics of the FRU information memory, the convenience of modifying the FRU information by combining the BMC is realized, the setting requirement of the slot bandwidth can be judged by reading the numerical value of the field of the FRU according to the characteristics of modifying the FRU information in batches of the operation and maintenance machines, the setting requirement of a client is greatly facilitated, and meanwhile, the convenience of later-stage production maintenance, service expansion of the client and operation and maintenance is facilitated.
Drawings
For a clearer explanation of the embodiments or technical solutions of the prior art of the present application, the drawings needed for the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for allocating slot bandwidth of a server according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a method for allocating slot bandwidth of a server according to a second embodiment of the present invention.
Fig. 3 is a flowchart illustrating a method for allocating slot bandwidth of a server according to a second embodiment of the present invention.
Fig. 4 is a schematic block diagram of a structure of a server slot bandwidth allocation apparatus according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention.
Detailed Description
The following explains some of the english terms related to the present invention.
BIOS: basic Input Output System, Basic Input Output System.
BMC: a Basebard Management Controller, a Baseboard Management Controller.
FRU: field replaceable units.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The core of the invention is to provide a slot bandwidth allocation method for a server, based on the characteristic that BMC can write FRU field information in batch through scripts, BIOS reads the value of the FRU field information, judges the bandwidth allocation of the slot through the value of the field information, preferably, in order to prevent setting the bandwidth after each start, the synchronization function of the bandwidth is added in BIOS setup, and the requirement of bandwidth allocation is realized on the slot which is not subjected to bandwidth allocation in early planning.
Example one
Fig. 1 is a flowchart illustrating a method for allocating slot bandwidth of a server according to an embodiment of the present invention, where as shown in fig. 1, the method includes the following steps.
S1, obtaining the server FRU configuration file through the BMC, and adding the bandwidth configuration identification in the server FRU configuration file.
The bandwidth configuration identifier includes a slot to be configured and a bandwidth to be allocated in the slot to be configured, for example, if a client requires two bandwidth bits of x8x8 of slot1, the bandwidth configuration identifier is marked as S1x8x8, and if the client requires the bandwidth bits of x4x4x4x4 of slot1, the bandwidth configuration identifier is marked as S1x4x4x4x 4.
It should be noted that, the BMC may obtain the server FRU configuration file through the script, add the bandwidth configuration identifier to the server FRU configuration file in batch, and implement the bandwidth configuration of multiple slot positions, where one slot position to be configured corresponds to one bandwidth to be allocated.
S2, at the system start-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification.
Because the I2C channels of the BMC and the BIOS are connected to the FRU information memory, the BIOS can execute the read-write operation of the FRU information to the FRU information memory at the system boot stage. In a system boot stage, the BIOS acquires a bandwidth configuration identifier, such as S1x8x8, from the server FRU configuration file, and allocates a x8x8 bandwidth to the slot1 slot.
According to the slot bandwidth allocation method for the server, provided by the embodiment of the invention, according to the characteristics of an FRU information memory, the convenience of modifying the FRU information by the BMC is combined, the characteristic of modifying the FRU information in batches for operation and maintenance machines can be realized, and the setting requirement of the slot bandwidth is judged by reading the numerical value of the field of the FRU, so that the setting requirement of a client is greatly facilitated, and meanwhile, the later-stage production maintenance, the service expansion of the client and the convenience of the operation and maintenance are facilitated.
Example two
Fig. 2 is a flowchart illustrating a method for allocating slot bandwidth allocation in a server according to a second embodiment of the present invention, where as shown in fig. 2, the method includes the following steps.
S1, acquiring a server FRU configuration file through the BMC, and adding a bandwidth configuration identifier in the server FRU configuration file; the bandwidth configuration identifier comprises a slot position to be configured and a bandwidth to be allocated in the slot position to be configured. The method specifically comprises the following steps:
s11, acquiring a server FRU configuration file through the BMC;
s12, selecting a certain field in the server FRU configuration file as a bandwidth configuration identification field;
s13, setting the field value of the bandwidth configuration identification field as the bandwidth configuration identification.
Acquiring a configuration file corresponding to an FRU field of a server according to the BMC; retrieving the configuration file to obtain each FRU field and a field value corresponding to each FRU field; according to the client requirement, the value of one of the fields a is used as a judgment condition for setting the bandwidth, if the client requires the bandwidth of slot1 to be divided into two x8x8, the value of the field can be labeled as S1x8x8, and if the client requires the bandwidth of slot1 to be divided into x4x4x4x4, the value of the field can be labeled as S1x4x4x 4. The bandwidth requirements of other slots can be analogized in turn.
S2, at the system start-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification. The method specifically comprises the following steps:
s21, reading the server FRU configuration file by the BIOS in the system startup stage;
s22, detecting whether the server FRU configuration file contains bandwidth configuration identification;
s23, if the bandwidth configuration identification is not included, the system is directly and normally started;
and S24, if the bandwidth configuration identifier is included, allocating corresponding bandwidth to the slot to be configured according to the bandwidth configuration identifier.
Because the I2C channels of the BMC and the BIOS are connected to the FRU information memory, the BIOS can execute the read-write operation of the FRU information to the FRU information memory at the system boot stage. And the BIOS reads the value of the field A of the judgment condition of the bandwidth setting required by the customer, if the value can be read, the bandwidth is allocated to the corresponding slot position according to the read value of the field A, if the value is not read, the bandwidth is not allocated to the customer, and the BIOS can be started directly and normally.
In step S24, allocating a corresponding bandwidth to the slot to be configured according to the bandwidth configuration identifier specifically includes:
s24_1, detecting the configuration value of the bandwidth configuration option in the BIOS setting item, wherein the configuration value of the bandwidth configuration option identifies the current allocated bandwidth of each slot position;
s24_2, judging whether the bandwidth to be allocated corresponding to the bandwidth configuration identification obtained from the server FRU configuration file is the same as the configuration value of the corresponding slot position in the bandwidth configuration selection;
s24_3, if the two are the same, the starting is directly and normally carried out;
and S24_4, if not, allocating corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identifier, modifying the corresponding configuration value in the bandwidth configuration option, and executing system restart operation after modification is completed.
And adding an option D for setting the slot bandwidth in the BIOS setup, wherein the option D has all bandwidth configuration options such as x8x8, x4x4x4, x16 and the like, and the configuration value of the option D identifies the currently allocated bandwidth of each slot. The setting option D is mainly used to prevent the problem that the initial state cannot be recovered when the client wants to recover the initial configuration or optimize the default setting.
In the BIOS starting process, firstly, the value of the field A is obtained from the FRU, then whether the value of the option D at the moment is the same as the value of the field A or not is judged, if the value of the option D is the same as the value of the field A, the BIOS is directly and normally started, if the value of the option D is different from the value of the field A, the bandwidth in the value of the field A is distributed to the corresponding slot position, and meanwhile, the option D is updated to be the value of the field A.
To further understand the present invention, a specific embodiment is provided below to further describe the present invention, in which a Slot1 is allocated with a bandwidth of x8x8, and fig. 3 is a schematic flow chart of the method of the specific embodiment, which includes the following steps.
S101, the BMC writes a field A into an FRU configuration file in an FRU information memory according to the requirement of a client.
S102, starting up the BIOS.
S103, whether the FRU information containing field A is acquired from the FRU information storage or not is judged, if yes, the next step is carried out, and if not, the step S106 is carried out for normal starting.
And S104, judging whether the value of the field A is S1x8x8, if so, entering the next step, otherwise, entering the step S106 for normal starting.
S105, judging whether the value of the option D of the BIOS setup is x8x8, if so, entering step S106 for normal starting, otherwise, setting the bandwidth of the slot1 as x8x8, setting the value of the option D as x8x8, restarting and returning to step S102.
And S106, starting normally.
EXAMPLE III
The above embodiment of the slot bandwidth allocation method for the server is described in detail, and based on the slot bandwidth allocation method for the server described in the above embodiment, the embodiment of the present invention further provides a slot bandwidth allocation device for the server corresponding to the slot bandwidth allocation method.
Fig. 4 is a schematic block diagram of a structure of a server slot bandwidth allocation apparatus according to a third embodiment of the present invention, and as shown in fig. 4, the apparatus includes an identification configuration module 101 and a bandwidth allocation module 102.
The identity configuration module 101: acquiring a server FRU configuration file through a BMC (baseboard management controller), and adding a bandwidth configuration identifier in the server FRU configuration file; the bandwidth configuration identifier comprises a slot position to be configured and a bandwidth to be allocated in the slot position to be configured.
The bandwidth allocation module 102: in the system starting-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification.
The identifier configuration module 101 is specifically configured to:
acquiring a server FRU configuration file through a BMC (baseboard management controller);
selecting a certain field in the server FRU configuration file as a bandwidth configuration identification field;
and setting the field value of the bandwidth configuration identification field as the bandwidth configuration identification.
The bandwidth allocation module 102 is specifically configured to:
in the system starting stage, reading a server FRU configuration file by a BIOS;
detecting whether a server FRU configuration file contains a bandwidth configuration identifier or not;
if the bandwidth configuration identifier is not included, the system is directly and normally started;
and if the bandwidth configuration identifier is included, distributing corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identifier.
The allocating, according to the bandwidth configuration identifier, a corresponding bandwidth to the slot to be configured specifically includes:
detecting the configuration value of a bandwidth configuration option in a BIOS setting item, wherein the configuration value of the bandwidth configuration option identifies the current allocated bandwidth of each slot position;
judging whether the bandwidth to be allocated corresponding to the bandwidth configuration identification acquired from the server FRU configuration file is the same as the configuration value of the corresponding slot position in the bandwidth configuration selection;
if the two are the same, the starting is directly and normally carried out;
if the bandwidth configuration options are different, distributing corresponding bandwidth to the slot positions to be configured according to the bandwidth configuration identifiers, modifying the corresponding configuration values in the bandwidth configuration options, and executing system restarting operation after modification is completed.
The server slot bandwidth allocation apparatus of this embodiment is used to implement the aforementioned server slot bandwidth allocation method, and therefore, a specific implementation manner of the apparatus may be found in the foregoing embodiment section of the server slot bandwidth allocation method, and therefore, reference may be made to the description of the corresponding respective partial embodiments for the specific implementation manner, and a description thereof will not be provided herein.
In addition, since the server slot bandwidth allocation apparatus of this embodiment is used to implement the foregoing server slot bandwidth allocation method, its role corresponds to that of the foregoing method, and details are not described here again.
Example four
Fig. 5 is a schematic structural diagram of a terminal device 500 according to an embodiment of the present invention, including: a processor 510, a memory 520, and a communication unit 530. The processor 510 is configured to implement the server slot bandwidth allocation procedure stored in the memory 520, and implement the following steps:
s1, acquiring a server FRU configuration file through the BMC, and adding a bandwidth configuration identifier in the server FRU configuration file; the bandwidth configuration identifier comprises a slot position to be configured and a bandwidth to be allocated on the slot position to be configured;
s2, at the system start-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification.
According to the characteristics of the FRU information memory, the convenience of modifying the FRU information by the BMC is combined, the setting requirement of the slot position bandwidth can be judged by reading the numerical value of the field of the FRU according to the characteristics of modifying the FRU information in batches of operation and maintenance machines, the setting requirement of a client is greatly facilitated, and meanwhile, the later-stage production maintenance, the service expansion of the client and the convenience of the operation and maintenance are facilitated.
The terminal apparatus 500 includes a processor 510, a memory 520, and a communication unit 530. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 520 may be used for storing instructions executed by the processor 510, and the memory 520 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as a Static Random Access Memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk. The executable instructions in memory 520, when executed by processor 510, enable terminal 500 to perform some or all of the steps in the method embodiments described below.
The processor 510 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, processor 510 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 530 for establishing a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
EXAMPLE five
The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
A computer storage medium storing a server slot bandwidth allocation program that when executed by a processor performs the steps of:
s1, acquiring a server FRU configuration file through the BMC, and adding a bandwidth configuration identifier in the server FRU configuration file; the bandwidth configuration identifier comprises a slot position to be configured and a bandwidth to be allocated on the slot position to be configured;
s2, at the system start-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification.
According to the characteristics of the FRU information memory, the convenience of modifying the FRU information by the BMC is combined, the setting requirement of the slot position bandwidth can be judged by reading the numerical value of the field of the FRU according to the characteristics of modifying the FRU information in batches of operation and maintenance machines, the setting requirement of a client is greatly facilitated, and meanwhile, the later-stage production maintenance, the service expansion of the client and the convenience of the operation and maintenance are facilitated.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be substantially or partially embodied in the form of a software product, the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes include several instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method in the embodiments of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for allocating slot bandwidth of a server is characterized by comprising the following steps:
s1, acquiring a server FRU configuration file through the BMC, and adding a bandwidth configuration identifier in the server FRU configuration file; the bandwidth configuration identifier comprises a slot position to be configured and a bandwidth to be allocated on the slot position to be configured;
s2, at the system start-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification.
2. The method according to claim 1, wherein step S1 specifically includes:
s11, acquiring a server FRU configuration file through the BMC;
s12, selecting a certain field in the server FRU configuration file as a bandwidth configuration identification field;
s13, setting the field value of the bandwidth configuration identification field as the bandwidth configuration identification.
3. The method according to claim 2, wherein step S2 specifically includes:
s21, reading the server FRU configuration file by the BIOS in the system startup stage;
s22, detecting whether the server FRU configuration file contains a bandwidth configuration identifier;
s23, if the bandwidth configuration identification is not included, the system is directly and normally started;
and S24, if the slot configuration identifier is included, allocating corresponding bandwidth to the slot to be configured according to the bandwidth configuration identifier.
4. The method according to claim 3, wherein the allocating, according to the bandwidth configuration identifier, the bandwidth to the slot to be configured in step S24 specifically includes:
s24_1, detecting the configuration value of the bandwidth configuration option in the BIOS setting item, wherein the configuration value of the bandwidth configuration option identifies the current allocated bandwidth of each slot position;
s24_2, judging whether the bandwidth to be allocated corresponding to the bandwidth configuration identification obtained from the server FRU configuration file is the same as the configuration value of the corresponding slot position in the bandwidth configuration selection;
s24_3, if the two are the same, the starting is directly and normally carried out;
and S24_4, if not, allocating corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identifier, modifying the corresponding configuration value in the bandwidth configuration option, and executing system restart operation after modification is completed.
5. A slot bandwidth allocation device for a server, comprising,
an identification configuration module: acquiring a server FRU configuration file through a BMC (baseboard management controller), and adding a bandwidth configuration identifier in the server FRU configuration file; the bandwidth configuration identifier comprises a slot position to be configured and a bandwidth to be allocated on the slot position to be configured;
a bandwidth allocation module: in the system starting-up stage, the BIOS reads the server FRU configuration file, obtains the bandwidth configuration identification from the server FRU configuration file, and allocates the corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identification.
6. The server slot bandwidth allocation apparatus of claim 5, wherein the identification configuration module is specifically configured to:
acquiring a server FRU configuration file through a BMC;
selecting a certain field in the server FRU configuration file as a bandwidth configuration identification field;
and setting the field value of the bandwidth configuration identification field as the bandwidth configuration identification.
7. The server slot bandwidth allocation apparatus of claim 6, wherein the bandwidth allocation module is specifically configured to:
in the system starting stage, reading a server FRU configuration file by a BIOS;
detecting whether a server FRU configuration file contains a bandwidth configuration identifier or not;
if the bandwidth configuration identifier is not included, the system is directly and normally started;
and if the bandwidth configuration identifier is included, distributing corresponding bandwidth to the slot position to be configured according to the bandwidth configuration identifier.
8. The apparatus according to claim 7, wherein allocating the corresponding bandwidth to the slot to be configured according to the bandwidth configuration identifier specifically includes:
detecting the configuration value of a bandwidth configuration option in a BIOS setting item, wherein the configuration value of the bandwidth configuration option identifies the current allocated bandwidth of each slot position;
judging whether the bandwidth to be allocated corresponding to the bandwidth configuration identification acquired from the server FRU configuration file is the same as the configuration value of the corresponding slot position in the bandwidth configuration selection;
if the two are the same, the starting is directly and normally carried out;
if the bandwidth configuration options are different, distributing corresponding bandwidth to the slot positions to be configured according to the bandwidth configuration identifiers, modifying the corresponding configuration values in the bandwidth configuration options, and executing system restarting operation after modification is completed.
9. A terminal, comprising:
the memory is used for storing a slot bandwidth allocation program of the server;
a processor configured to perform the steps of the server slot bandwidth allocation method according to any one of claims 1 to 4 when executing the server slot bandwidth allocation program.
10. A computer-readable storage medium, wherein a server slot bandwidth allocation program is stored on the readable storage medium, and when executed by a processor, implements the steps of the server slot bandwidth allocation method according to any one of claims 1 to 4.
CN202210901089.3A 2022-07-28 2022-07-28 Server slot bandwidth allocation method, device, terminal and storage medium Withdrawn CN115118605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210901089.3A CN115118605A (en) 2022-07-28 2022-07-28 Server slot bandwidth allocation method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210901089.3A CN115118605A (en) 2022-07-28 2022-07-28 Server slot bandwidth allocation method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115118605A true CN115118605A (en) 2022-09-27

Family

ID=83334488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210901089.3A Withdrawn CN115118605A (en) 2022-07-28 2022-07-28 Server slot bandwidth allocation method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115118605A (en)

Similar Documents

Publication Publication Date Title
US10162646B2 (en) System for programmably configuring a motherboard
CN109683968B (en) Switch quick start method, switch and storage medium
CN111669284B (en) OpenStack automatic deployment method, electronic device, storage medium and system
CN111143256B (en) Method and device for reading field replaceable unit information
CN110119623A (en) A kind of credible main board implementation method for realizing that firmware is actively measured using TPCM
CN114185607B (en) Starting control method, device and equipment for PCI (peripheral component interconnect) equipment in ARM (advanced RISC machines) server
CN111159090B (en) Information processing method and device and electronic equipment
CN112162794B (en) Single board starting method, device, single board and network equipment
CN112003730A (en) Method, system, terminal and storage medium for rapid cluster deployment
CN112540817A (en) Method, device and equipment for displaying startup logo picture and storage medium
CN115878327A (en) Bus reservation method, device, server, electronic equipment and storage medium
CN115118605A (en) Server slot bandwidth allocation method, device, terminal and storage medium
CN107562440B (en) Eeprom version updating method and device
CN110119625A (en) A kind of trusted computing method
CN115150268A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN113849233A (en) BIOS null boot entry deleting method, system, terminal and storage medium
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN110058866B (en) Cluster component installation method and device
CN111694587A (en) Server PNOR firmware upgrading method, device, equipment and storage medium
CN117234544B (en) Method and device for recovering system of server equipment
CN111475349B (en) Method, system, terminal and storage medium for testing stability of cluster DPDK
CN115454536A (en) Method, device, terminal and medium for rapidly and thoroughly restoring factory settings of BMC
CN114281799A (en) PCIe equipment asset information dynamic management method, system, terminal and storage medium
CN113900934A (en) Multi-mirror mixed refresh test method, system, terminal and storage medium
CN105740067A (en) Cloud computing based virtual machine batch starting method and control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220927