CN115878327A - Bus reservation method, device, server, electronic equipment and storage medium - Google Patents

Bus reservation method, device, server, electronic equipment and storage medium Download PDF

Info

Publication number
CN115878327A
CN115878327A CN202211715587.5A CN202211715587A CN115878327A CN 115878327 A CN115878327 A CN 115878327A CN 202211715587 A CN202211715587 A CN 202211715587A CN 115878327 A CN115878327 A CN 115878327A
Authority
CN
China
Prior art keywords
target equipment
server
bus
identification information
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211715587.5A
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 CN202211715587.5A priority Critical patent/CN115878327A/en
Publication of CN115878327A publication Critical patent/CN115878327A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application discloses a bus reservation method, a device, a server, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring identification information of target equipment and the reserved number of bus numbers of the target equipment; under the condition that the identification information is matched with preset identification information, determining a plurality of access processors corresponding to the target equipment in a server and access ports of the target equipment under each access processor; determining the running state of the target equipment in the server based on the bandwidth of the target equipment in each access port; and respectively reserving the bus number for the target equipment in each access processor based on the reserved number of the bus numbers under the condition that the running state is normal, and determining the bus reservation configuration result of the target equipment. The method and the device can reasonably distribute the bus resources and improve the working efficiency of the target equipment.

Description

Bus reservation method, device, server, electronic equipment and storage medium
Technical Field
The present application relates to the field of database technologies, and in particular, to a bus reservation method, an apparatus, a server, an electronic device, and a storage medium.
Background
The BIOS (Basic Input Output System) is a set of programs that are solidified on a ROM (Read-Only Memory) chip on a main board in a computer, and stores the most important Basic Input and Output programs of the computer, a self-test program after power-on, and a System self-start program, and can Read and write specific information set by the System. Its primary function is to provide the lowest level, most direct hardware setup and control for the computer.
A Bus (Bus) is a set of signal buses that interconnect and transmit information, including instructions, data, and addresses, from module to module or device to device.
In the BIOS starting process of the server, the bus resources are distributed to Root ports (Root ports) in an average distribution manner, but in practical application, devices connected below each Root Port are different, and the required bus resources are also greatly different, so how to reserve a bus number to implement bus resource distribution becomes an urgent technical problem in the industry.
Disclosure of Invention
In a first aspect, the present application provides a bus reservation method, including:
acquiring identification information of target equipment and the reserved number of bus numbers of the target equipment;
under the condition that the identification information is matched with preset identification information, determining a plurality of corresponding access processors of the target equipment in a server and access ports of the target equipment under the access processors;
determining the running state of the target equipment in the server based on the bandwidth of the target equipment in each access port;
and respectively reserving the bus number for the target equipment in each access processor based on the reserved number of the bus numbers under the condition that the running state is normal, and determining a bus reservation configuration result of the target equipment.
In some embodiments, after determining the bus reservation configuration result of the target device, the method further comprises:
writing the bus reservation configuration result into a basic input and output configuration file of the server;
and restarting the server based on the basic input and output configuration file, so that the number of buses corresponding to the target equipment at each access port is equal to the reserved number of the bus numbers.
In some embodiments, the writing the bus reservation configuration result into the basic input and output configuration file of the server includes:
scanning all target devices accessed into the server, and determining a bus reservation configuration result of each target device;
and writing the bus reservation configuration result of each target device into the basic input and output configuration file of the server.
In some embodiments, the determining, in the case that the identification information matches preset identification information, a plurality of access processors corresponding to the target device in a server, and access ports of the target device under the respective access processors, includes:
matching the identification information of the target equipment with preset identification information in the server;
under the condition that the identification information is matched with the preset identification information, determining that the target equipment has accessed to the server, and acquiring access path information of the target equipment;
and determining a plurality of access processors corresponding to the target equipment and access ports of the target equipment under each access processor based on the access path information.
In some embodiments, the identification information includes a vendor identification and a device identification;
the matching the identification information of the target device with the preset identification information in the server includes:
matching the manufacturer identification mark of the target equipment with preset manufacturer information in preset identification information in the server;
and matching the equipment identification mark of the target equipment with preset equipment information in preset identification information in the server under the condition that the manufacturer identification mark is matched with the preset manufacturer information.
In some embodiments, the determining the operating status of the target device in the server based on the bandwidth of the target device at each access port includes:
performing secondary matching on the identification information of the target equipment and preset identification information in the server;
acquiring the bandwidth of the target equipment at each access port under the condition that the identification information is secondarily matched with the preset identification information;
and determining the running state of the target equipment in the server based on the bandwidth of the target equipment in each access port and the running bandwidth of the target equipment.
In a second aspect, the present application provides a bus reservation apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring identification information of target equipment and the reserved number of bus numbers of the target equipment;
the scanning unit is used for determining a plurality of corresponding access processors of the target equipment in the server and access ports of the target equipment under each access processor under the condition that the identification information is matched with preset identification information;
a determining unit, configured to determine, based on bandwidths of the target device in the access ports, an operating state of the target device in the server;
and the reservation unit is used for respectively reserving the bus numbers for the target equipment in each access processor based on the reserved number of the bus numbers under the condition that the running state is normal and determining the bus reservation configuration result of the target equipment.
In a third aspect, the present application provides a server, including a control board; the bus reservation device is arranged on the control board card.
In a fourth aspect, the present application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method as described in any one of the above when executing the program.
In a fifth aspect, the present application provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method as described in any of the above.
According to the bus reservation method, the device, the server, the electronic equipment and the storage medium provided by the embodiment of the application, the plurality of corresponding access processors of the target equipment in the server and the access ports of the target equipment under each access processor can be determined by acquiring the identification information of the target equipment and matching the identification information with the preset identification information; the running state of the target equipment in the server can be determined by acquiring the bandwidth of the target equipment in each access port; the bus number is reserved for the target equipment in each access processor through the reserved number of the bus numbers, the bus reservation configuration result of the target equipment can be determined, the bus resources can be reasonably distributed, and the working efficiency of the target equipment is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a bus reservation method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a bus reservation method according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of a bus reservation apparatus according to an embodiment of the present application;
FIG. 4 is a block diagram of a server according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but 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 shall fall within the protection scope of the present application.
It should be noted that the terms "first", "second", and the like in this application are used for distinguishing similar objects, and do not necessarily have to be used for describing a particular order or sequence. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a flowchart illustrating a bus reservation method according to an embodiment of the present application, where the method includes step 110, step 120, step 130, and step 140, as shown in fig. 1. The method flow steps are only one possible implementation of the present application.
And step 110, acquiring the identification information of the target device and the reserved number of the bus number of the target device.
In particular, the bus reservation method provided by the embodiment of the present application is applicable to a terminal device, which may be various electronic devices including, but not limited to, a server, a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like.
The main execution body of the bus reservation method provided by the embodiment of the application is a bus reservation device, and the device can be a hardware device arranged in a terminal device and also can be a software program running in the terminal device.
The target device is a Peripheral Component Interconnect (PCI) device that can be connected to the bus, such as a network card, a sound card, a network card, a video card, and the like.
The identification information may be used to identify the target device and determine whether the target device has accessed the server. The Identification information may include Identification information such as Vendor Identification (VID) and Device Identification (DID). And analyzing the identification information to obtain the target equipment corresponding to the identification information so as to determine whether the target equipment has accessed the server.
Different target devices are accessed under the access ports, and the required bus resources are different. In order to enable the target device to normally operate in the server, a bus number needs to be preset for the target device according to the attribute of the target device and the network environment, and the number of the preset bus numbers is the reserved number of the bus numbers of the target device. More bus numbers can be reserved under the access port with large demand of the target equipment, and less bus numbers can be reserved under the access port with small demand of the target equipment.
For example, an access port with a bandwidth of X16 has access to 1 target device with a bandwidth of X16, but the target device may virtualize nearly 100 network ports, and then the access port needs to reserve 100 bus numbers to support normal operation of the target device, and the reserved number of the bus numbers of the target device may be 100.
The bus reservation device acquires the identification information of the target device and the reserved number of the bus number of the target device so that the target device can normally operate in the server.
And step 120, determining a plurality of access processors corresponding to the target device in the server and access ports of the target device under each access processor under the condition that the identification information is matched with the preset identification information.
Specifically, the access processor is a processor accessed to the bus in the server. The access processor may communicate with the target device over a bus.
The server comprises a plurality of access processors, access ports are correspondingly arranged under the access processors, and the target equipment can be connected with the server through the access ports under the corresponding access processors.
The bus reservation device presets preset identification information of target equipment, matches the acquired identification information of the target equipment with the preset identification information of the target equipment, if the matching fails, the target equipment is not accessed into the server, and further processing is carried out after the target equipment is accessed into the server; if the matching is successful, the target equipment is indicated to have accessed to the server, a plurality of corresponding access processors of the target equipment in the server are determined, and access ports of the target equipment under each access processor are obtained.
Step 130, based on the bandwidth of the target device in each access port, determining the running state of the target device in the server.
Specifically, the bandwidth of the target device at each access port, that is, the data transmission amount of the target device per unit time at each access port, is obtained.
The operation state includes both normal and abnormal states. If the data transmission quantity of the target equipment in each access port in unit time is normal, indicating that the running state of the target equipment in the server is normal; if the data transmission quantity of the target equipment in the unit time of each access port is abnormal, the operation state of the target equipment in the server is abnormal.
And 140, respectively reserving the bus numbers for the target equipment in each access processor based on the reserved number of the bus numbers under the condition that the running state is normal, and determining the bus reservation configuration result of the target equipment.
Specifically, if the running state of the target device in the server is normal, that is, the current target device can run normally in the server, the bus numbers are respectively reserved for the target device in each access processor according to the preset number of reserved bus numbers, and the reserved result is the bus reservation configuration result of the target device.
According to the bus reservation method provided by the embodiment of the application, the identification information of the target equipment is obtained, and the identification information is matched with the preset identification information, so that a plurality of corresponding access processors of the target equipment in a server and access ports of the target equipment under each access processor can be determined; the running state of the target equipment in the server can be determined by acquiring the bandwidth of the target equipment in each access port; the bus number is reserved for the target equipment in each access processor respectively through the reserved number of the bus numbers, the bus reservation configuration result of the target equipment can be determined, the bus resources can be distributed reasonably, and the working efficiency of the target equipment is improved.
It should be noted that each embodiment of the present application can be freely combined, exchanged in sequence, or executed independently, and does not need to rely on or rely on a fixed execution sequence.
In some embodiments, after step 140, the method further comprises:
writing the bus reservation configuration result into a basic input/output configuration file of the server;
and restarting the server based on the basic input and output configuration file, so that the number of buses corresponding to the target equipment at each access port is equal to the number of reserved bus numbers.
Specifically, the bus reservation configuration result is written into a basic input and output configuration file of the server. The bus reservation configuration result may be stored in the basic input/output configuration file in a preset format, that is, the bus reservation configuration result of the target device may be stored in the basic input/output configuration file in a preset file manner.
Restarting the server according to the basic input and output configuration file to enable the bus number corresponding to each access port of the target equipment to be equal to the reserved bus number, namely after the server is restarted, reading the basic input and output configuration file by the BIOS, and distributing the bus number for the target equipment in each access processor according to the bus reserved configuration result in the basic input and output configuration file to enable the bus number corresponding to each access port of the target equipment to be equal to the reserved bus number.
According to the bus reservation method provided by the embodiment of the application, a bus reservation configuration result is written into a basic input/output configuration file of a server; and restarting the server according to the basic input and output configuration file, so that the bus reservation configuration in the basic input and output configuration file can be enabled to take effect, and the allocation of bus resources is realized.
In some embodiments, writing the bus reservation configuration result to a basic input output configuration file of the server comprises:
scanning all target devices in an access server, and determining a bus reservation configuration result of each target device;
and writing the bus reservation configuration result of each target device into the basic input and output configuration file of the server.
Specifically, a plurality of target devices are accessed into the server, and the bus reservation apparatus needs to scan all the target devices accessed into the server and determine a bus reservation configuration result of each target device.
And writing the bus reservation configuration result of each target device into the basic input and output configuration file of the server. The basic input/output configuration file may be one file or a plurality of files. The bus reservation configuration result of each target device can be obtained by analyzing the basic input and output configuration file of the server.
According to the bus reservation method provided by the embodiment of the application, the bus reservation configuration result of each target device is determined; the bus reservation configuration result of each target device is written into the basic input and output configuration file of the server, and the bus reservation configuration result of each target device can be obtained by analyzing the basic input and output configuration file of the server, so that the bus resource allocation efficiency is improved.
In some embodiments, step 120 comprises:
matching the identification information of the target equipment with preset identification information in the server;
under the condition that the identification information is matched with the preset identification information, determining that the target equipment has accessed to the server, and acquiring access path information of the target equipment;
and determining a plurality of access processors corresponding to the target equipment and access ports of the target equipment under each access processor based on the access path information.
Specifically, the access path information includes information of a plurality of access processors corresponding to the target device in the process of accessing the server, and access port information of the target device under each access processor.
The bus reservation device matches the identification information of the target equipment with the preset identification information in the server; if the identification information is matched with the preset identification information, the target device is indicated to have accessed the server, and the access path information of the target device can be obtained.
And analyzing the access path information of the target equipment to obtain a plurality of access processors corresponding to the target equipment and access ports of the target equipment under each access processor.
According to the bus reservation method provided by the embodiment of the application, the access path information of the target device is acquired under the condition that the identification information is matched with the preset identification information, a plurality of access processors corresponding to the target device and access ports of the target device under each access processor can be determined, and the distribution efficiency of bus resources is improved.
In some embodiments, the identification information includes a vendor identification and a device identification;
matching the identification information of the target equipment with preset identification information in the server, comprising:
matching the manufacturer identification mark of the target equipment with preset manufacturer information in preset identification information in the server;
and matching the equipment identification mark of the target equipment with preset equipment information in preset identification information in the server under the condition that the manufacturer identification mark is matched with the preset manufacturer information.
Specifically, in the embodiment of the present application, the identification information includes a manufacturer identification and an equipment identification; the preset identification information includes preset manufacturer information and preset device information. In order to determine whether the target device accesses the server, the manufacturer identification mark in the identification information of the target device is matched with preset manufacturer information in preset identification information in the server.
If the manufacturer identification mark is not matched with the preset manufacturer information, the target equipment is not accessed to the server; and if the manufacturer identification mark is matched with the preset manufacturer information, matching the equipment identification mark in the identification information of the target equipment with the preset equipment information in the preset identification information in the server. If the equipment identification mark is not matched with the preset equipment information, the target equipment is indicated to be not accessed to the server; and if the equipment identification mark is matched with the preset equipment information, indicating that the target equipment has accessed the server.
According to the bus reservation method provided by the embodiment of the application, whether the target equipment is accessed to the server or not can be determined by matching the manufacturer identification mark and the equipment identification mark of the target equipment with the preset manufacturer information and the preset equipment information in the server.
In some embodiments, step 130 comprises:
performing secondary matching on the identification information of the target equipment and the preset identification information in the server;
acquiring the bandwidth of the target equipment at each access port under the condition that the identification information is secondarily matched with the preset identification information;
and determining the running state of the target equipment in the server based on the bandwidth of the target equipment in each access port and the running bandwidth of the target equipment.
Specifically, matching the manufacturer identification mark and the equipment identification mark of the target equipment with preset manufacturer information and preset equipment information in the server again, and if matching is successful, acquiring the bandwidth of the target equipment in each access port and the running bandwidth of the target equipment; and acquiring the running state of the target equipment in the server according to the bandwidth of the target equipment in each access port and the running bandwidth of the target equipment, and determining whether the target equipment runs normally in the server.
According to the bus reservation method provided by the embodiment of the application, the identification information of the target device is secondarily matched with the preset identification information in the server, whether the target device is accessed to the server or not can be further confirmed, the running state of the target device in the server is determined under the condition that the matching is successful, and the accuracy of bus allocation can be improved.
In some embodiments, fig. 2 is a schematic flowchart of a bus reservation method provided in another embodiment of the present application, and as shown in fig. 2, the method includes step 210, step 220, step 230, and step 240.
Step 210, predefining VID and DID of the equipment needing to reserve the Bus number and the number of the Bus number needing to reserve; the device that needs to reserve Bus is the target device described above.
Step 220, scan all ports in the server, and confirm the maximum number of ports on each access processor. And acquiring the VID and the DID of the target device on the server, and judging whether the VID and the DID of the target device are matched with the preset VID and DID of the target device.
If the matching result shows that the target equipment has access to the server. And obtaining the Root Port according to the access path information of the target equipment. And scanning Bus Device Functions (BDFs) of all target devices, and acquiring the number of sockets (sockets), ports and Bus numbers to be reserved, which correspond to the target devices.
Step 230, determining whether the VID and DID of the target device match the predefined VID and DID again, and if so, obtaining the bandwidth of the target device to facilitate bus number allocation. For example, if the bandwidth of each Port on 2 access processors is x8, it means that 2 bus numbers can be reserved for 2 ports.
Step 240, acquiring a Bus number option from a Non-Volatile Random Access Memory (NVRAM), assigning a predefined value of the Bus number to a corresponding option, finally rewriting the change of the option into the NVRAM, and then restarting the server to enable the reserved Bus number to take effect.
The bus reservation method provided by the embodiment of the application scans all target devices and performs matching based on VID and DID of the target devices; the option of reserving the Bus number is set as the reserved Bus number, the change of the option is rewritten into the NVRAM, and then the server is restarted to take effect, so that the distribution efficiency of the Bus number can be improved.
The following describes a bus reservation device provided in an embodiment of the present application, and the bus reservation device described below and the bus reservation method described above may be referred to correspondingly.
Fig. 3 is a schematic structural diagram of a bus reservation apparatus provided in an embodiment of the present application, and as shown in fig. 3, the bus reservation apparatus is applied to a distributed data management system, and includes an obtaining unit 310, a scanning unit 320, a determining unit 330, and a reservation unit 340.
The acquisition unit is used for acquiring the identification information of the target equipment and the reserved number of the bus number of the target equipment;
the scanning unit is used for determining a plurality of access processors corresponding to the target equipment in the server and access ports of the target equipment under each access processor under the condition that the identification information is matched with the preset identification information;
the determining unit is used for determining the running state of the target equipment in the server based on the bandwidth of the target equipment in each access port;
and the reservation unit is used for respectively reserving the bus numbers for the target equipment in each access processor based on the reserved number of the bus numbers under the condition that the running state is normal and determining the bus reservation configuration result of the target equipment.
Specifically, according to the embodiment of the present application, any multiple units of the obtaining unit 310, the scanning unit 320, the determining unit 330, and the reserving unit 340 may be combined into one unit to be implemented, or any one unit thereof may be split into multiple units.
Alternatively, at least part of the functionality of one or more of these units may be combined with at least part of the functionality of other units and implemented in one unit.
According to an embodiment of the present application, at least one of the obtaining unit 310, the scanning unit 320, the determining unit 330, and the reserving unit 340 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or implemented by a suitable combination of any several of them.
Alternatively, at least one of the obtaining unit 310, the scanning unit 320, the determining unit 330 and the reserving unit 340 may be at least partly implemented as a computer program element, which, when being executed, may perform a corresponding function.
The bus reservation device provided by the embodiment of the application can determine a plurality of corresponding access processors of the target equipment in the server and access ports of the target equipment under each access processor by acquiring the identification information of the target equipment and matching the identification information with the preset identification information; the running state of the target equipment in the server can be determined by acquiring the bandwidth of the target equipment in each access port; the bus number is reserved for the target equipment in each access processor respectively through the reserved number of the bus numbers, the bus reservation configuration result of the target equipment can be determined, the bus resources can be distributed reasonably, and the working efficiency of the target equipment is improved.
In some embodiments, the bus reservation apparatus further includes a restart unit, configured to write the bus reservation configuration result into a basic input/output configuration file of the server;
and restarting the server based on the basic input and output configuration file, so that the number of buses corresponding to the target equipment at each access port is equal to the number of reserved buses.
The writing of the bus reservation configuration result into the basic input and output configuration file of the server comprises the following steps:
scanning all target devices in an access server, and determining a bus reservation configuration result of each target device;
and writing the bus reservation configuration result of each target device into the basic input and output configuration file of the server.
In some embodiments, the scanning unit is specifically configured to:
matching the identification information of the target equipment with preset identification information in the server;
under the condition that the identification information is matched with the preset identification information, determining that the target equipment has accessed to the server, and acquiring access path information of the target equipment;
and determining a plurality of access processors corresponding to the target equipment and access ports of the target equipment under the access processors based on the access path information.
The other information comprises a manufacturer identification mark and an equipment identification mark;
matching the identification information of the target equipment with preset identification information in the server, comprising:
matching the manufacturer identification mark of the target equipment with preset manufacturer information in preset identification information in the server;
and matching the equipment identification mark of the target equipment with preset equipment information in preset identification information in the server under the condition that the manufacturer identification mark is matched with the preset manufacturer information.
In some embodiments, the determining unit is specifically configured to:
performing secondary matching on the identification information of the target equipment and the preset identification information in the server;
acquiring the bandwidth of the target equipment at each access port under the condition that the identification information is secondarily matched with the preset identification information;
and determining the running state of the target equipment in the server based on the bandwidth of the target equipment in each access port and the running bandwidth of the target equipment.
It should be noted that the bus reservation apparatus provided in the embodiment of the present application can implement all the method steps implemented by the foregoing bus reservation method embodiment, and can achieve the same technical effect, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not described herein again.
FIG. 4 is a block diagram of a server according to an embodiment of the present application; as shown in fig. 4, an embodiment of the present application provides a server 400, which includes a control board 410; the control board 410 is provided with the bus reservation device 420.
The server provided by the embodiment of the present application is provided with the bus reservation apparatus, and the specific implementation manner of the server is consistent with the implementation manner of the foregoing method, and the same beneficial effects can be achieved, which are not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 5, the electronic device may include: a Processor (Processor) 510, a communication Interface (Communications Interface) 520, a Memory (Memory) 530, and a communication Bus (Communications Bus) 540, wherein the Processor 510, the communication Interface 520, and the Memory 530 communicate with each other via the communication Bus 540. Processor 510 may invoke logical operations in memory 530 to perform a bus reservation method comprising:
acquiring identification information of target equipment and the reserved number of bus numbers of the target equipment;
under the condition that the identification information is matched with preset identification information, determining a plurality of corresponding access processors of the target equipment in the server and access ports of the target equipment under the access processors;
determining the running state of the target equipment in the server based on the bandwidth of the target equipment in each access port;
and respectively reserving the bus numbers for the target equipment in each access processor based on the reserved number of the bus numbers under the condition that the running state is normal, and determining the bus reservation configuration result of the target equipment.
In addition, the logic operation in the memory may be implemented in the form of a software functional unit and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium, which includes several jobs for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The processor in the electronic device provided in the embodiment of the present application may call a logic instruction in a memory to implement the method, and a specific implementation manner of the method is consistent with that of the method, and the same beneficial effects may be achieved, which is not described herein again.
The embodiments of the present application also provide a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program is implemented by a processor to execute the methods provided by the above embodiments.
The specific implementation manner is the same as the implementation manner of the method, and the same beneficial effects can be achieved, which is not described herein again.
Embodiments of the present application provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method is implemented as described above.
The above-described embodiments of the apparatus are merely illustrative, and 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. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method of bus reservation, comprising:
acquiring identification information of target equipment and the reserved number of bus numbers of the target equipment;
under the condition that the identification information is matched with preset identification information, determining a plurality of corresponding access processors of the target equipment in a server and access ports of the target equipment under the access processors;
determining the running state of the target equipment in the server based on the bandwidth of the target equipment in each access port;
and respectively reserving the bus number for the target equipment in each access processor based on the reserved number of the bus numbers under the condition that the running state is normal, and determining a bus reservation configuration result of the target equipment.
2. The method of claim 1, wherein after determining the result of the bus reservation configuration of the target device, the method further comprises:
writing the bus reservation configuration result into a basic input/output configuration file of the server;
and restarting the server based on the basic input and output configuration file, so that the number of buses corresponding to the target equipment at each access port is equal to the reserved number of the bus numbers.
3. The bus reservation method of claim 2, wherein the writing the bus reservation configuration result into the basic input output configuration file of the server comprises:
scanning all target devices accessed into the server, and determining a bus reservation configuration result of each target device;
and writing the bus reservation configuration result of each target device into the basic input and output configuration file of the server.
4. The bus reservation method according to claim 1, wherein determining a plurality of access processors of the target device in a server and access ports of the target device under each access processor in case that the identification information matches with preset identification information comprises:
matching the identification information of the target equipment with preset identification information in the server;
under the condition that the identification information is matched with the preset identification information, determining that the target equipment has accessed to the server, and acquiring access path information of the target equipment;
and determining a plurality of access processors corresponding to the target equipment and access ports of the target equipment under each access processor based on the access path information.
5. The bus reservation method of claim 4, wherein the identification information comprises a vendor identification and a device identification;
the matching the identification information of the target device with the preset identification information in the server includes:
matching the manufacturer identification mark of the target equipment with preset manufacturer information in preset identification information in the server;
and matching the equipment identification mark of the target equipment with preset equipment information in preset identification information in the server under the condition that the manufacturer identification mark is matched with the preset manufacturer information.
6. The bus reservation method of claim 1, wherein the determining the operation status of the target device in the server based on the bandwidth of the target device in each access port comprises:
performing secondary matching on the identification information of the target equipment and preset identification information in the server;
acquiring the bandwidth of the target equipment at each access port under the condition that the identification information is secondarily matched with the preset identification information;
and determining the running state of the target equipment in the server based on the bandwidth of the target equipment in each access port and the running bandwidth of the target equipment.
7. A bus reservation apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring identification information of target equipment and the reserved number of bus numbers of the target equipment;
the scanning unit is used for determining a plurality of access processors corresponding to the target equipment in the server and access ports of the target equipment under each access processor under the condition that the identification information is matched with preset identification information;
a determining unit, configured to determine an operating state of the target device in the server based on bandwidths of the target device in the access ports;
and the reservation unit is used for respectively reserving the bus number for the target equipment in each access processor based on the reserved number of the bus numbers under the condition that the running state is normal and determining the bus reservation configuration result of the target equipment.
8. A server is characterized by comprising a control board card; the control board is provided with the bus reservation device of claim 7.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the bus reservation method of any of claims 1 to 6 when executing the program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the bus reservation method of any of claims 1 to 6.
CN202211715587.5A 2022-12-29 2022-12-29 Bus reservation method, device, server, electronic equipment and storage medium Pending CN115878327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211715587.5A CN115878327A (en) 2022-12-29 2022-12-29 Bus reservation method, device, server, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211715587.5A CN115878327A (en) 2022-12-29 2022-12-29 Bus reservation method, device, server, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115878327A true CN115878327A (en) 2023-03-31

Family

ID=85757285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211715587.5A Pending CN115878327A (en) 2022-12-29 2022-12-29 Bus reservation method, device, server, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115878327A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303148A (en) * 2023-05-17 2023-06-23 北京中科网威信息技术有限公司 Multi-slot device network card detection method and device, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303148A (en) * 2023-05-17 2023-06-23 北京中科网威信息技术有限公司 Multi-slot device network card detection method and device, electronic device and storage medium
CN116303148B (en) * 2023-05-17 2023-08-22 北京中科网威信息技术有限公司 Multi-slot device network card detection method and device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN109324991B (en) Hot plug device, method, medium and system of PCIE (peripheral component interface express) equipment
CN110096314B (en) Interface initialization method, device, equipment and computer readable storage medium
US10572434B2 (en) Intelligent certificate discovery in physical and virtualized networks
CN110119623A (en) A kind of credible main board implementation method for realizing that firmware is actively measured using TPCM
CN113849272A (en) Method and device for adding GPU (graphics processing Unit) resources in virtual machine
CN115878327A (en) Bus reservation method, device, server, electronic equipment and storage medium
CN111104178A (en) Dynamic library loading method, terminal device and storage medium
CN114185607A (en) Starting control method, device and equipment for PCI (peripheral component interconnect) equipment in ARM (advanced RISC machines) server
CN110502282B (en) Loading method, device and equipment of multi-channel NTB card and readable storage medium
US7725806B2 (en) Method and infrastructure for recognition of the resources of a defective hardware unit
CN113204384A (en) Equipment starting method and device and computer readable storage medium
CN116627472A (en) Firmware program upgrading method and server of high-speed peripheral component equipment
CN108985402B (en) RAID card information acquisition method and related device
CN117077221A (en) Hard disk screen printing distribution method and device, computer equipment and medium
CN114185720B (en) Method, device, equipment and storage medium for dynamic hot backup of server
CN113704177B (en) Storage method, system and related components of server firmware upgrade file
CN112860595B (en) PCI (peripheral component interconnect express) equipment or PCIE (peripheral component interconnect express) equipment, data access method and related assembly
CN110119625A (en) A kind of trusted computing method
CN113849269A (en) Method and device for adding GPU (graphics processing Unit) resources in virtual machine
CN111158733A (en) BMC upgrading method, device, equipment and computer readable storage medium
CN113849233A (en) BIOS null boot entry deleting method, system, terminal and storage medium
CN112580086A (en) Access protection method, device, equipment and storage medium for configuration file
CN110119624A (en) A kind of security measure method
CN115664953B (en) Resource allocation method and related device of external equipment

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