CN114328327A - PCIe link processing method and device - Google Patents
PCIe link processing method and device Download PDFInfo
- Publication number
- CN114328327A CN114328327A CN202011079164.XA CN202011079164A CN114328327A CN 114328327 A CN114328327 A CN 114328327A CN 202011079164 A CN202011079164 A CN 202011079164A CN 114328327 A CN114328327 A CN 114328327A
- Authority
- CN
- China
- Prior art keywords
- pcie
- link
- service
- pcie link
- processing
- 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.)
- Granted
Links
Images
Landscapes
- Information Transfer Systems (AREA)
Abstract
本申请实施例提供一种PCIe链路处理方法和装置,涉及通信领域,方法包括:接收业务处理请求;获取PCIe系统的第一拓扑图;第一拓扑图中包括PCIe系统中的多条PCIe链路;显示包括第一拓扑图的界面;在接收到针对第一拓扑图的中任一条PCIe链路的触发操作的情况下,利用任一条PCIe链路处理业务处理请求对应的业务。本申请实施例中,用户能够根据自身对于PCIe链路的处理需求,选择合适的PCIe链路,因此能够满足用户对于PCIe链路多样化的使用场景。
Embodiments of the present application provide a PCIe link processing method and device, and relate to the field of communications. The method includes: receiving a service processing request; acquiring a first topology diagram of a PCIe system; the first topology diagram includes multiple PCIe chains in the PCIe system displaying the interface including the first topology map; in the case of receiving a trigger operation for any PCIe link in the first topology map, using any PCIe link to process the service corresponding to the service processing request. In the embodiment of the present application, the user can select an appropriate PCIe link according to his own processing requirements for the PCIe link, so that the user's diversified usage scenarios for the PCIe link can be satisfied.
Description
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种PCIe链路处理方法和装置。The present application relates to the field of communication technologies, and in particular, to a PCIe link processing method and apparatus.
背景技术Background technique
高速串行计算机扩展总线标准(peripheral component interconnect express,PCIe),具有良好的传输性能和较强的吞吐量,基于PCIe协议的设备在信息与通信技术领域得到了广泛的应用。The high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIe) has good transmission performance and strong throughput, and devices based on the PCIe protocol have been widely used in the field of information and communication technology.
通常情况下,PCIe设备可以利用PCIe链路执行业务的调度,例如,在调度场景中,PCIe设备可以随机选择一条或多条PCIe链路进行数据传输。Generally, a PCIe device can use a PCIe link to perform service scheduling. For example, in a scheduling scenario, a PCIe device can randomly select one or more PCIe links for data transmission.
然而上述链路的选择方式无法满足用户对于PCIe链路多样化的使用需求。However, the above link selection method cannot meet the user's diverse usage requirements for PCIe links.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种PCIe链路处理方法和装置,涉及通信领域,方法包括:用于接收业务处理请求,获取并显示PCIe系统的拓扑图,这样用户可以根据需求在界面中灵活的选择希望进行业务传输的链路,在接收到针对拓扑图中任一条PCIe链路的触发操作的情况下,利用任一条PCIe链路处理业务处理请求对应的业务。本申请实施例中,用户能够根据需求选择PCIe链路,因此能够满足用户对于PCIe链路多样化的使用需求。Embodiments of the present application provide a PCIe link processing method and device, which relate to the field of communications. The method includes: receiving a service processing request, acquiring and displaying a topology diagram of a PCIe system, so that a user can flexibly select a desired wish in an interface according to requirements The link for service transmission, in the case of receiving a trigger operation for any PCIe link in the topology diagram, uses any PCIe link to process the service corresponding to the service processing request. In the embodiment of the present application, the user can select the PCIe link according to the requirements, so the diversified usage requirements of the user for the PCIe link can be met.
第一方面,本申请实施例提供一种PCIe链路处理方法,包括:接收业务处理请求;获取PCIe系统的第一拓扑图;第一拓扑图中包括PCIe系统中的多条PCIe链路;显示包括第一拓扑图的界面;在接收到针对第一拓扑图的中任一条PCIe链路的触发操作的情况下,利用任一条PCIe链路处理业务处理请求对应的业务。这样,用户能够根据需求选择PCIe链路,能够满足用户对于PCIe链路多样化的使用需求。In a first aspect, an embodiment of the present application provides a PCIe link processing method, including: receiving a service processing request; acquiring a first topology diagram of a PCIe system; the first topology diagram including multiple PCIe links in the PCIe system; displaying Including an interface of the first topology map; in the case of receiving a trigger operation for any PCIe link in the first topology map, use any PCIe link to process the service corresponding to the service processing request. In this way, the user can select the PCIe link according to the requirements, which can meet the user's diversified usage requirements for the PCIe link.
一种示例性的方式中,获取PCIe系统的第一拓扑图,包括:获取PCIe系统的第二拓扑图;确定处理业务所需的目标设备;在第二拓扑图中为目标设备增加冗余设备,得到第一拓扑图。这样,冗余设备就可以在目标设备出现故障时,替代目标设备的功能,完成业务的传输,减少由于设备的故障对业务处理的影响,提高PCIe系统的可用性。In an exemplary manner, acquiring a first topology diagram of the PCIe system includes: acquiring a second topology diagram of the PCIe system; determining a target device required for processing services; adding redundant devices to the target device in the second topology diagram , to get the first topology map. In this way, when the target device fails, the redundant device can replace the function of the target device, complete service transmission, reduce the impact of the device failure on service processing, and improve the availability of the PCIe system.
一种示例性的方式中,在第二拓扑图中为目标设备增加冗余设备,得到第一拓扑图,包括:在第二拓扑图中,断开冗余设备与其他设备之间的部分链路关系,且将冗余设备作为目标设备的备用设备;其中,其他设备为与目标设备不同的设备。这样,就能够通过断开目标涉笔与其它设备间的链路关系,为目标设备增加冗余链路,减少由于设备的故障对业务处理的影响,从而为业务的传输增加安全保障。In an exemplary manner, adding a redundant device to the target device in the second topology map to obtain the first topology map includes: in the second topology map, disconnecting a partial chain between the redundant device and other devices and the redundant device is used as the backup device of the target device; the other devices are different from the target device. In this way, by disconnecting the link relationship between the target device and other devices, redundant links can be added to the target device to reduce the impact of device failure on service processing, thereby increasing security for service transmission.
一种示例性的方式中,确定处理业务所需的目标设备,包括:根据业务的业务类型确定处理业务所需的目标设备。这样,可以根据从业务获取的众多参数,直接获得处理该业务所需的目标设备,便于计算机利用该目标设备,进行其他PCIe链路处理。In an exemplary manner, determining the target device required for processing the service includes: determining the target device required for processing the service according to the service type of the service. In this way, the target device required for processing the service can be directly obtained according to numerous parameters obtained from the service, so that the computer can use the target device to process other PCIe links.
一种示例性的方式中,业务类型包括下述的一项或多项:业务的数据类型、业务的协议或业务的参数;业务的参数为业务进行调度时所需要的参数。这样,就能够根据更加确切的业务类型选择与业务类型更加匹配的PCIe链路。In an exemplary manner, the service type includes one or more of the following: the data type of the service, the protocol of the service, or the parameter of the service; the parameter of the service is the parameter required when the service is scheduled. In this way, a PCIe link that better matches the service type can be selected according to a more exact service type.
一种示例性的方式中,业务的参数包括下述的一项或多项:业务的执行时间要求、业务的响应要求或业务的需求带宽。这样,就能够根据更加确切的业务的参数选择更加匹配的PCIe链路。In an exemplary manner, the parameters of the service include one or more of the following: the execution time requirement of the service, the response requirement of the service, or the required bandwidth of the service. In this way, a more matching PCIe link can be selected according to more exact service parameters.
一种示例性的方式中,第一拓扑图中包括:多条PCIe链路的链路质量等级,和/或,多条PCIe链路的链路属性。这样,用户就可以在界面中,既能看到当前PCIe系统的拓扑结构,也能够看到每条PCIe链路的链路属性,能够直观展示PCIe系统的当前状态。In an exemplary manner, the first topology diagram includes: link quality levels of multiple PCIe links, and/or link attributes of multiple PCIe links. In this way, the user can see not only the topology of the current PCIe system, but also the link properties of each PCIe link on the interface, and can visually display the current state of the PCIe system.
一种示例性的方式中,根据多条PCIe链路的链路属性确定多条PCIe链路的链路质量等级;其中,界面中,各PCIe链路的显示状态与PCIe链路质量等级相关。这样,就可以根据复杂的PCIe链路的链路属性的各种参数,得到能够直观表示的PCIe链路的链路质量的链路质量等级,实现PCIe链路的链路质量等级的可视化。In an exemplary manner, link quality levels of the multiple PCIe links are determined according to link attributes of the multiple PCIe links; wherein, in the interface, the display status of each PCIe link is related to the quality level of the PCIe link. In this way, the link quality level of the link quality of the PCIe link that can be visually represented can be obtained according to various parameters of the link attribute of the complex PCIe link, so as to realize the visualization of the link quality level of the PCIe link.
一种示例性的方式中,PCIe链路的显示状态包括:PCIe链路的颜色和/或PCIe链路的尺寸。这样,用户可以直观的在拓扑图所在的界面中看到不同PCIe链路的链路质量等级,方便用户后续可以选择希望的PCIe链路调度业务。In an exemplary manner, the display state of the PCIe link includes: the color of the PCIe link and/or the size of the PCIe link. In this way, the user can intuitively see the link quality levels of different PCIe links on the interface where the topology diagram is located, so that the user can select the desired PCIe link scheduling service in the future.
一种示例性的方式中,PCIe链路的链路属性包括下述一项或多项:PCIe链路的连接状态、PCIe链路的级联关系、PCIe链路的带宽或PCIe链路的设备数。这样,就可以利用更加确切的链路属性得到准确的链路质量等级。In an exemplary manner, the link attribute of the PCIe link includes one or more of the following: the connection status of the PCIe link, the cascading relationship of the PCIe link, the bandwidth of the PCIe link, or the device of the PCIe link number. In this way, an accurate link quality level can be obtained by using more accurate link attributes.
一种示例性的方式中,利用任一条PCIe链路处理业务处理请求对应的业务,包括:利用PCIe系统中的链路开关,将业务调度到任一条PCIe链路上进行处理;或者,利用PCIe系统中的寄存器,将业务调度到任一条PCIe链路上进行处理。这样,当PCIe链路需要调整时,就可以根据实际的场景选择更加合适的链路处理方式。In an exemplary manner, using any PCIe link to process the service corresponding to the service processing request includes: using a link switch in the PCIe system to schedule the service to any PCIe link for processing; or, using PCIe A register in the system that schedules services to any PCIe link for processing. In this way, when the PCIe link needs to be adjusted, a more appropriate link processing method can be selected according to the actual scene.
一种示例性的方式中,在预设时间内没有接收到触发操作的情况下,利用业务的业务类型和多条PCIe链路的链路质量等级,为业务选择目标PCIe链路。这样,计算设备中设定的接收用户触发操作的预设时间,可以实现优化延迟,减少链路处理的耗能情况。In an exemplary manner, when no trigger operation is received within a preset time, the target PCIe link is selected for the service by using the service type of the service and the link quality levels of the multiple PCIe links. In this way, the preset time for receiving the user-triggered operation set in the computing device can optimize the delay and reduce the energy consumption of link processing.
一种示例性的方式中,利用业务的业务类型和多条PCIe链路的链路质量等级,为业务选择目标PCIe链路,包括:根据业务类型确定业务的带宽;根据PCIe链路的链路质量等级,在多条PCIe链路中选择满足业务的带宽的目标PCIe链路。这样,根据业务带宽和PCIe链路质量确选择PCIe链路的方法,能够解决不同业务场景下对链路带宽和质量的不同要求,提高了PCIe系统的可用性,实现PCIe链路的价值最大化。In an exemplary manner, using the service type of the service and the link quality levels of multiple PCIe links to select a target PCIe link for the service, including: determining the bandwidth of the service according to the service type; Quality level, select the target PCIe link that meets the bandwidth of the service among multiple PCIe links. In this way, the method of accurately selecting a PCIe link according to the service bandwidth and PCIe link quality can solve different requirements for link bandwidth and quality in different service scenarios, improve the availability of the PCIe system, and maximize the value of the PCIe link.
第二方面,本申请实施例提供一种PCIe链路处理装置。In a second aspect, an embodiment of the present application provides a PCIe link processing apparatus.
该PCIe链路处理装置可以是终端设备,也可以是终端设备内的芯片或者芯片系统。该PCIe链路处理装置可以包括处理单元和显示单元。当该PCIe链路处理装置是终端设备时,该处理单元可以是处理器。该PCIe链路处理装置还可以包括存储单元,该存储单元可以是存储器。该存储单元用于存储指令,该处理单元执行该存储单元所存储的指令,以使该终端设备实现第一方面或第一方面的任意一种可能的实现方式中描述的一种PCIe链路处理方法。当该PCIe链路处理装置是终端设备内的芯片或者芯片系统时,该处理单元可以是处理器。该处理单元执行存储单元所存储的指令,以使该终端设备实现第一方面或第一方面的任意一种可能的实现方式中描述的一种PCIe链路处理方法。该存储单元可以是该芯片内的存储单元(例如,寄存器、缓存等),也可以是该终端设备内的位于该芯片外部的存储单元(例如,只读存储器或随机存取存储器等)。The PCIe link processing apparatus may be a terminal device, or may be a chip or a chip system in the terminal device. The PCIe link processing apparatus may include a processing unit and a display unit. When the PCIe link processing apparatus is a terminal device, the processing unit may be a processor. The PCIe link processing apparatus may further include a storage unit, which may be a memory. The storage unit is used for storing instructions, and the processing unit executes the instructions stored in the storage unit, so that the terminal device implements a PCIe link processing described in the first aspect or any possible implementation manner of the first aspect method. When the PCIe link processing apparatus is a chip or a chip system in a terminal device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit, so that the terminal device implements the PCIe link processing method described in the first aspect or any possible implementation manner of the first aspect. The storage unit may be a storage unit in the chip (eg, a register, a cache, etc.), or a storage unit (eg, a read-only memory or a random access memory, etc.) in the terminal device located outside the chip.
示例性的,处理单元,用于接收业务处理请求;处理单元,用于获取PCIe系统的第一拓扑图;第一拓扑图中包括PCIe系统中的多条PCIe链路;显示单元,用于显示包括第一拓扑图的界面;处理单元,用于在接收到针对第一拓扑图的中任一条PCIe链路的触发操作的情况下,利用任一条PCIe链路处理业务处理请求对应的业务。Exemplarily, the processing unit is used to receive a service processing request; the processing unit is used to obtain a first topology diagram of the PCIe system; the first topology diagram includes a plurality of PCIe links in the PCIe system; the display unit is used to display An interface including a first topology map; a processing unit configured to process a service corresponding to a service processing request by using any PCIe link in the case of receiving a trigger operation for any PCIe link in the first topology map.
一种示例性的方式中,处理单元,具体用于获取PCIe系统的第二拓扑图;确定处理业务所需的目标设备;在第二拓扑图中为目标设备增加冗余设备,得到第一拓扑图。In an exemplary manner, the processing unit is specifically configured to obtain a second topology diagram of the PCIe system; determine a target device required for processing services; add redundant devices to the target device in the second topology diagram to obtain a first topology picture.
一种示例性的方式中,处理单元,具体用于在第二拓扑图中,断开冗余设备与其他设备之间的部分链路关系,且将冗余设备作为目标设备的备用设备;其中,其他设备为与目标设备不同的设备。In an exemplary manner, the processing unit is specifically configured to, in the second topology diagram, disconnect a partial link relationship between the redundant device and other devices, and use the redundant device as a backup device of the target device; wherein , other devices are different from the target device.
一种示例性的方式中,处理单元,具体用于根据业务的业务类型确定处理业务所需的目标设备。In an exemplary manner, the processing unit is specifically configured to determine the target device required for processing the service according to the service type of the service.
一种示例性的方式中,业务类型包括下述的一项或多项:业务的数据类型、业务的协议或业务的参数;业务的参数为业务进行调度时所需要的参数。In an exemplary manner, the service type includes one or more of the following: the data type of the service, the protocol of the service, or the parameter of the service; the parameter of the service is the parameter required when the service is scheduled.
一种示例性的方式中,业务的参数包括下述的一项或多项:业务的执行时间要求、业务的响应要求或业务的需求带宽。In an exemplary manner, the parameters of the service include one or more of the following: the execution time requirement of the service, the response requirement of the service, or the required bandwidth of the service.
一种示例性的方式中,第一拓扑图中包括:多条PCIe链路的链路质量等级,和/或,多条PCIe链路的链路属性。In an exemplary manner, the first topology diagram includes: link quality levels of multiple PCIe links, and/or link attributes of multiple PCIe links.
一种示例性的方式中,处理单元,具体用于根据多条PCIe链路的链路属性确定多条PCIe链路的链路质量等级;其中,界面中,各PCIe链路的显示状态与PCIe链路的链路质量等级相关。In an exemplary manner, the processing unit is specifically configured to determine the link quality levels of the multiple PCIe links according to the link attributes of the multiple PCIe links; wherein, in the interface, the display status of each PCIe link and the PCIe link The link quality level of the link is related.
一种示例性的方式中,PCIe链路的显示状态包括:PCIe链路的颜色和/或PCIe链路的尺寸。In an exemplary manner, the display state of the PCIe link includes: the color of the PCIe link and/or the size of the PCIe link.
一种示例性的方式中,PCIe链路的链路属性包括下述一项或多项:PCIe链路的连接状态、PCIe链路的级联关系、PCIe链路的带宽或PCIe链路的设备数。In an exemplary manner, the link attribute of the PCIe link includes one or more of the following: the connection status of the PCIe link, the cascading relationship of the PCIe link, the bandwidth of the PCIe link, or the device of the PCIe link number.
一种示例性的方式中,处理单元,具体用于利用PCIe系统中的链路开关,将业务调度到任一条PCIe链路上进行处理;或者,利用PCIe系统中的寄存器,将业务调度到任一条PCIe链路上进行处理。In an exemplary manner, the processing unit is specifically configured to use a link switch in the PCIe system to schedule services to any PCIe link for processing; or, use a register in the PCIe system to schedule services to any PCIe link. processed on a PCIe link.
一种示例性的方式中,处理单元,还用于在预设时间内没有接收到触发操作的情况下,利用业务的业务类型和多条PCIe链路的链路质量等级,为业务选择目标PCIe链路。In an exemplary manner, the processing unit is further configured to select a target PCIe for the service by using the service type of the service and the link quality level of the multiple PCIe links when the trigger operation is not received within a preset time. link.
一种示例性的方式中,处理单元,具体用于根据业务类型确定业务的带宽;根据PCIe链路的链路质量等级,在多条PCIe链路中选择满足业务的带宽的目标PCIe链路。In an exemplary manner, the processing unit is specifically configured to determine the bandwidth of the service according to the service type; and according to the link quality level of the PCIe link, select a target PCIe link that satisfies the bandwidth of the service from the multiple PCIe links.
第三方面,本申请实施例还提供一种系统,其包含本申请上述实施例提到的PCIe链路处理装置,该系统内的装置可以集成为一个整机或设备,或者该系统内的装置也可以独立设置为元件或装置。In a third aspect, an embodiment of the present application further provides a system, which includes the PCIe link processing device mentioned in the foregoing embodiments of the present application, and the device in the system can be integrated into a whole machine or device, or the device in the system It can also be provided independently as an element or device.
第四方面,本申请实施例还提供一种终端,终端包括本申请上述实施例提到的PCIe链路处理装置或上述任一系统。In a fourth aspect, an embodiment of the present application further provides a terminal, where the terminal includes the PCIe link processing apparatus mentioned in the above embodiment of the present application or any of the above systems.
第五方面,本申请实施例还提供一种芯片,包括至少一个处理器、至少一个显示屏和接口;接口,用于为至少一个处理器提供程序指令或者数据;至少一个处理器用于执行程序行指令,以实现第一方面或第一方面可能的实现方式中任一方法;至少一个显示屏,以实现第一方面或第一方面可能的实现方式中任一方法中显示的步骤。In a fifth aspect, an embodiment of the present application further provides a chip, including at least one processor, at least one display screen, and an interface; the interface is used to provide program instructions or data for at least one processor; at least one processor is used to execute program lines instructions to implement the first aspect or any method of possible implementations of the first aspect; at least one display screen to implement the steps displayed in the first aspect or any of the possible implementations of the first aspect.
第六方面,本申请实施例提供一种PCIe链路选择装置,包括,至少一个处理器和至少一个显示屏,至少一个处理器用于调用存储器中的程序,以实现第一方面或第一方面任意可能的实现方式中的任一方法;至少一个显示屏以实现第一方面或第一方面任意可能的实现方式中的任一方法的显示的步骤。In a sixth aspect, an embodiment of the present application provides a PCIe link selection device, including at least one processor and at least one display screen, and the at least one processor is configured to call a program in a memory to implement the first aspect or any of the first aspect. Any one of the possible implementations; at least one display screen is used to realize the steps of displaying the first aspect or any one of the possible implementations of the first aspect.
第七方面,本申请实施例提供一种PCIe链路选择装置,包括:至少一个处理器、至少一个显示屏和接口电路,接口电路用于为至少一个处理器提供信息输入和/或信息输出;至少一个处理器用于运行代码指令,以实现第一方面或第一方面任意可能的实现方式中的任一方法;至少一个显示屏以实现第一方面或第一方面任意可能的实现方式中的任一方法的显示的步骤。In a seventh aspect, an embodiment of the present application provides a PCIe link selection device, including: at least one processor, at least one display screen, and an interface circuit, where the interface circuit is configured to provide information input and/or information output for the at least one processor; At least one processor is used to run code instructions to implement any method in the first aspect or any possible implementation manner of the first aspect; at least one display screen is used to implement any of the first aspect or any possible implementation manner of the first aspect. Shown steps of a method.
第八方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质存储有指令,当指令被执行时,以实现第一方面或第一方面任意可能的实现方式中的任一方法。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where an instruction is stored in the computer-readable storage medium, and when the instruction is executed, any one of the first aspect or any possible implementation manner of the first aspect is implemented. a method.
应当理解的是,本申请的第二方面至第八方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second to eighth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manner are similar, and will not be repeated.
附图说明Description of drawings
图1为本申请实施例提供的一种计算设备的架构示意图;FIG. 1 is a schematic structural diagram of a computing device according to an embodiment of the present application;
图2为本申请实施例提供的一种PCIe链路处理方法的流程示意图;FIG. 2 is a schematic flowchart of a PCIe link processing method provided by an embodiment of the present application;
图3为本申请实施例提供的一种用户触发请求的界面示意图;3 is a schematic interface diagram of a user-triggered request provided by an embodiment of the present application;
图4为本申请实施例提供的一种显示拓扑图的界面示意图;4 is a schematic diagram of an interface for displaying a topology diagram according to an embodiment of the present application;
图5为本申请实施例提供的一种PCIe链路开关的示意图;FIG. 5 is a schematic diagram of a PCIe link switch according to an embodiment of the present application;
图6为本申请实施例提供的一种业务调度失败的界面示意图;FIG. 6 is a schematic interface diagram of a service scheduling failure provided by an embodiment of the present application;
图7为本申请实施例提供的一种PCIe链路处理装置的结构示意图;FIG. 7 is a schematic structural diagram of a PCIe link processing apparatus according to an embodiment of the present application;
图8为本申请实施例提供的一种PCIe链路处理装置的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of a PCIe link processing apparatus according to an embodiment of the present application.
具体实施方式Detailed ways
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first value and the second value are only used to distinguish different values, and do not limit their order. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like are not necessarily different.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiment or design described in this application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple .
在利用PCIe系统进行业务处理的可能方式中,计算设备将为该业务随机选择一条或多条PCIe链路进行处理。然而,PCIe系统中每条PCIe链路的实际状况不同,不同的链路状况就造就了PCIe链路间的差异性,这就导致了在实际业务的传输场景中,计算设备为业务随机选择的PCIe链路,可能会存在PCIe链路故障或PCIe链路的带宽较窄等情况,导致业务的传输过程受到影响。尤其是随着PCIe设备的广泛应用,使得用户对于PCIe链路提出了更高的使用需求。In a possible manner of using the PCIe system for service processing, the computing device will randomly select one or more PCIe links for processing the service. However, the actual conditions of each PCIe link in the PCIe system are different, and different link conditions create differences between PCIe links, which leads to the fact that in the actual service transmission scenario, computing devices are randomly selected for the service. For PCIe links, there may be a PCIe link failure or a narrow bandwidth of the PCIe link, which affects the service transmission process. Especially with the wide application of PCIe devices, users have put forward higher usage requirements for PCIe links.
因此,本申请实施例提供一种PCIe链路处理方法,用于接收业务处理请求,获取并显示PCIe系统的拓扑图,在接收到针对拓扑图中任一条或多条PCIe链路的触发操作的情况下,选择任一条或多条PCIe链路处理业务。这种PCIe链路处理方法,可以通过拓扑图展现PCIe系统的中的每条PCIe链路,根据用户对于PCIe链路的多样化需求选择相应的PCIe链路,进而能够提高用户利用计算设备处理业务的灵活度。Therefore, an embodiment of the present application provides a PCIe link processing method, which is used for receiving a service processing request, acquiring and displaying a topology diagram of a PCIe system, and after receiving a trigger operation for any one or more PCIe links in the topology diagram In this case, select any one or more PCIe links to process services. This PCIe link processing method can display each PCIe link in the PCIe system through a topology diagram, and select the corresponding PCIe link according to the user's diverse requirements for PCIe links, thereby improving the user's ability to use computing devices to process services. flexibility.
为了更好的理解本申请实施例的方法,下面首先对本申请实施例适用的计算设备进行描述。In order to better understand the methods of the embodiments of the present application, the following first describes the computing devices to which the embodiments of the present application are applicable.
本申请实施例的方法适用于使用PCIe协议的计算设备中。示例性的,图1为本申请实施例提供的一种计算设备的架构示意图。如图1所示,计算设备具体可以包括:软件层10和硬件层20。其中,软件层10包括计算设备的操作系统(operatingsystem,OS)101以及至少一个虚拟机,图1是以一个虚拟机102为例示出的。软件层10还可以包括基本输入输出系统(Basic Input Output System,BIOS)103。该操作系统101中部署有虚拟机管理器(virtualmachine monitor,VMM)1011和链路处理模块1012。硬件层20包括CPU201、内存202、根复合体(root complex)203、PCIe交换机204以及PCIe设备组205,该PCIe设备组中包括一个或多个PCIe设备,图1是以两个PCIe设备:GPU 2051以及GPU 2052为例示出的。GPU 2051与PCIe交换机204通信,GPU 2052直接与根复合体203通信。The methods of the embodiments of the present application are applicable to computing devices using the PCIe protocol. Exemplarily, FIG. 1 is a schematic structural diagram of a computing device according to an embodiment of the present application. As shown in FIG. 1 , the computing device may specifically include: a software layer 10 and a hardware layer 20 . The software layer 10 includes an operating system (operating system, OS) 101 of a computing device and at least one virtual machine, and FIG. 1 shows a virtual machine 102 as an example. The software layer 10 may further include a basic input output system (Basic Input Output System, BIOS) 103 . A virtual machine monitor (VMM) 1011 and a link processing module 1012 are deployed in the operating system 101 . The hardware layer 20 includes a
其中,虚拟机管理器1011用于实现虚拟机的管理,在实际应用中,该虚拟机管理器具体可由VMM、libirt、qemu以及nova等组件实现。Wherein, the virtual machine manager 1011 is used to implement the management of virtual machines. In practical applications, the virtual machine manager can be specifically implemented by components such as VMM, libirt, qemu, and nova.
可选的,虚拟机管理器1011可以访问PCIe总线系统,查询PCIe总线系统中各设备的相关参数,如设备标识、硬件规格或设备的物理地址等其他相关参数。该PCIe总线系统具体可包括图1示出的硬件层20中的所有设备。其中,PCIe总线系统中的每个设备都对应有一个寄存器。虚拟机管理器1011可对PCIe总线系统中各设备的寄存器进行配置,以获得寄存器中存储的状态信息。该状态信息用于记录设备运行时的信息,例如设备当前运行是否出现故障、设备运行时产生的数据信息等。Optionally, the virtual machine manager 1011 may access the PCIe bus system, and query related parameters of each device in the PCIe bus system, such as device identification, hardware specifications, or other related parameters such as the physical address of the device. Specifically, the PCIe bus system may include all devices in the hardware layer 20 shown in FIG. 1 . Among them, each device in the PCIe bus system corresponds to a register. The virtual machine manager 1011 may configure the registers of each device in the PCIe bus system to obtain state information stored in the registers. The status information is used to record information when the device is running, such as whether the device is currently running a fault, data information generated when the device is running, and so on.
进一步,虚拟机管理器1011可以查询到PCIe总线系统的拓扑结构,其拓扑结构具体如下:根复合体203下包括第一PCIe链路和第二PCIe链路,第一PCIe链路包括PCIe交换机204和GPU2051,第二PCIe链路包括GPU2052。由于虚拟机管理器1011可查询PCIe总线系统的所有PCIe设备的设备标识,因此根据一个PCIe设备的设备标识,可以获取该PCIe设备所在的PCIe链路的其他PCIe设备的设备标识。Further, the virtual machine manager 1011 can query the topology of the PCIe bus system, and the topology is as follows: the root complex 203 includes a first PCIe link and a second PCIe link, and the first PCIe link includes the PCIe switch 204 and GPU2051, the second PCIe link includes GPU2052. Since the virtual machine manager 1011 can query the device identifiers of all PCIe devices in the PCIe bus system, according to the device identifier of one PCIe device, the device identifiers of other PCIe devices of the PCIe link where the PCIe device is located can be obtained.
链路处理模块1012用于对计算设备中的PCIe链路进行处理。在实际应用中,当计算设备接收到用户对于任一条PCIe链路的触发操作的情况下,计算设备将选择任一条PCIe链路处理业务。The link processing module 1012 is configured to process the PCIe link in the computing device. In practical applications, when the computing device receives a user's trigger operation on any PCIe link, the computing device will select any PCIe link to process the service.
在一些示例中,虚拟机管理器1011和链路处理模块1012可以第三方软件的形式设置在操作系统101中,或者部分设置在操作系统101内、部分设置在操作系统101外,本申请实施例不做限定。In some examples, the virtual machine manager 1011 and the link processing module 1012 may be provided in the operating system 101 in the form of third-party software, or partially within the operating system 101 and partially outside the operating system 101. This embodiment of the present application Not limited.
可选地,链路处理模块1012也可设置在虚拟机管理器1011中,本申请实施例对此不做限定。Optionally, the link processing module 1012 may also be set in the virtual machine manager 1011, which is not limited in this embodiment of the present application.
虚拟机102具体可以为虚拟机管理器1011在接收到虚拟机创建指令而创建的,该虚拟机创建指令携带有所需创建的虚拟机的资源需求,该资源需求包括虚拟机所需的处理器、硬盘、内存或网络等要求,还需包括PCIe设备组中的PCIe设备的设备标识,例如图1中GPU 2051的设备标识或者GPU 2052的设备标识等,以将该PCIe设备分配给该虚拟机使用。该虚拟机的数量并不做限定,图1仅以一个虚拟机102为例示出的,并不构成限定。相应的,虚拟机管理器在完成每个虚拟机的创建后,还可保存该虚拟机和该虚拟机中部署的PCIe设备之间的对应关系,例如以表格的形式建立有PCIe设备的设备标识(BDF)和使用该PCIe设备的虚拟机的虚拟机标识(VM id)之间的对应关系等,便于后续虚拟机管理器根据该对应关系,确定使用该PCIe设备对应的一个或多个虚拟机。其中,一个PCIe设备可对应有一个或多个虚拟机,每个虚拟机对应部署一个或多个PCIe设备,本申请实施例并不做限定。The virtual machine 102 may be created by the virtual machine manager 1011 after receiving the virtual machine creation instruction, and the virtual machine creation instruction carries the resource requirements of the virtual machine to be created, and the resource requirements include the processors required by the virtual machine. , hard disk, memory or network and other requirements, also need to include the device identification of the PCIe device in the PCIe device group, such as the device identification of the
如图1所示,虚拟机102中包括处理器GPU 101’、硬盘(图1未示出)、内存(图1未示出)、网络(图1未示出)、操作系统1022以及基本输入输出系统(basic input outputsystem,BIOS)1023。其中,虚拟机管理器1011对PCIe设备进行虚拟化可获得虚拟化的PCIe设备。例如,图1中对GPU2051进行虚拟化可获得GPU 2051’。而硬盘、内存或网络也是由虚拟机管理器1011对计算设备的对应硬件进行虚拟化获得,操作系统1022以及BIOS1023则由虚拟机管理器1011模拟获得,本申请实施例不做限定。As shown in FIG. 1 , the virtual machine 102 includes a processor GPU 101 ′, a hard disk (not shown in FIG. 1 ), a memory (not shown in FIG. 1 ), a network (not shown in FIG. 1 ), an operating system 1022 and basic inputs The output system (basic input output system, BIOS) 1023. The virtual machine manager 1011 virtualizes the PCIe device to obtain a virtualized PCIe device. For example, GPU 2051' can be obtained by virtualizing
硬件层20中的各设备可通过PCIe总线连接,形成PCIe总线系统。例如图1中,CPU201、内存202、根复合体203、PCIe交换机204、GPU 2051以及GPU 2052之间通过PCIe总线连接,形成PCIe总线系统。硬件层20中的任意两个设备之间的通信的链路,也称为PCIe链路。Each device in the hardware layer 20 can be connected through a PCIe bus to form a PCIe bus system. For example, in FIG. 1 , the
PCIe设备组205包括至少一个PCIe设备,该PCIe设备作为PCIe协议中定义的PCIe终端(Endpoint,EP),其可包括但不限于现场可编程门阵列(field-programmablegatearray,FPGA)、图形处理器(graphics processing unit,GPU)以及芯片等设备。图1中以GPU 2051以及GPU 2052为例示出。The PCIe device group 205 includes at least one PCIe device, and the PCIe device serves as a PCIe endpoint (Endpoint, EP) defined in the PCIe protocol, which may include, but is not limited to, a field-programmable gate array (FPGA), a graphics processor ( graphics processing unit, GPU) and devices such as chips. In FIG. 1 , the
其中,PCIe设备组中的任一PCIe设备可通过PCIe交换机204与根复合体203通信。例如图1中GPU 2051可通过PCIe交换机204与根复合体203通信。可选的,PCIe设备组中的PCIe设备还可以直接与根复合体203通信,例如图1中GPU 2052可直接与根复合体203通信。可选的,当与PCIe交换机存在通信的PCIe设备有多个时,该多个PCIe设备中的任意两个PCIe设备可通过PCIe交换机204相互通信,图1中未示出。Wherein, any PCIe device in the PCIe device group can communicate with the root complex 203 through the PCIe switch 204 . For example,
进一步地,根复合体203还设置有根端口(root point,RP)2031和根端口2032,PCIe交换机204设置有上游端口2041以及下游端口2042。其中,根端口2031与上游端口2041连接,下游端口2042与GPU 2051连接,根端口2032与GPU 2052连接。本申请实施例中,PCIe交换机的数量并不做限定。图1是以一个PCIe交换机204为例示出的。PCIe交换机204连接一个PCIe设备组205。Further, the root complex 203 is further provided with a root port (root point, RP) 2031 and a root port 2032 , and the PCIe switch 204 is provided with an upstream port 2041 and a downstream port 2042 . The root port 2031 is connected to the upstream port 2041 , the downstream port 2042 is connected to the
本申请实施例中,如图1中还可以包括PCIe链路开关(图1中未示出),用于控制PCIe链路的通断。其中PCIe链路开关可以为控制PCIe链路通断的中继开关、磁吸开关或者控制多条PCIe链路通断的复用开关。可以理解的是,本申请实施例中对具体的PCIe链路开关不做限定。In the embodiment of the present application, as shown in FIG. 1 , a PCIe link switch (not shown in FIG. 1 ) may also be included, for controlling the on/off of the PCIe link. The PCIe link switch may be a relay switch that controls the on-off of the PCIe link, a magnetic switch, or a multiplexing switch that controls the on-off of multiple PCIe links. It can be understood that, a specific PCIe link switch is not limited in this embodiment of the present application.
可以理解的是,本申请实施例示意的架构并不构成对计算设备的具体限定。在本申请另一些实施例中,计算设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the architecture illustrated in the embodiments of the present application does not constitute a specific limitation on the computing device. In other embodiments of the present application, the computing device may include more or fewer components than shown, or combine some components, or separate some components, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
本申请实施例是适用于上述应用场景进行链路的处理。可以理解的是,本申请实施例只提供了一种可以实现的链路处理应用场景,对于其他可以实现链路处理的具体的应用场景不做限定。The embodiments of the present application are applicable to the above application scenarios for link processing. It can be understood that the embodiment of the present application only provides one application scenario of link processing that can be implemented, and does not limit other specific application scenarios that can implement link processing.
下面对本申请实施例中所描述的词汇进行说明。可以理解,该说明是为更加清楚的解释本申请实施例,并不必然构成对本申请实施例的限定。The vocabulary described in the embodiments of the present application will be described below. It can be understood that the description is for explaining the embodiments of the present application more clearly, and does not necessarily constitute a limitation on the embodiments of the present application.
本申请实施例所描述的PCIe可以是:一种高速串行计算机扩展总线标准,属于高速串行点对点双通道高带宽传输,所连接的设备分配独享通道带宽,不共享总线带宽,主要支持主动电源管理、错误报告、端对端的可靠性传输、热插拔以及服务质量等功能。其主要优势就是数据传输速率高,因此在信息与通信领域得到了广泛的应用。The PCIe described in the embodiments of the present application may be: a high-speed serial computer expansion bus standard, which belongs to high-speed serial point-to-point dual-channel high-bandwidth transmission, and the connected devices allocate exclusive channel bandwidth, do not share bus bandwidth, and mainly support active Features such as power management, error reporting, end-to-end reliable delivery, hot-plugging, and quality of service. Its main advantage is the high data transmission rate, so it has been widely used in the field of information and communication.
本申请实施例所描述的PCIe链路可以是:指由一个节点到另一个节点的通信通道。本实施例中的PCIe链路是PCIe系统中用于传输数据的通信通道。The PCIe link described in the embodiments of this application may refer to a communication channel from one node to another node. The PCIe link in this embodiment is a communication channel used to transmit data in the PCIe system.
本申请实施例所描述的拓扑图可以是:指由网络节点设备和通信介质构成的网络结构图。拓扑图能够更加清楚和形象的描述网络结构,有利于以后进行网络扩展、网络排障或链路选择等操作。例如,PCIe拓扑图可以是一种展示PCIe系统级联结构的树状图。The topology diagram described in the embodiments of the present application may refer to a network structure diagram composed of network node devices and communication media. The topology map can describe the network structure more clearly and vividly, which is helpful for network expansion, network troubleshooting or link selection in the future. For example, the PCIe topology diagram may be a tree diagram showing the cascaded structure of the PCIe system.
本申请实施例所描述的带宽可以是:单位时间能通过链路的数据量,可以用来标识数据传输能力。The bandwidth described in this embodiment of the present application may be: the amount of data that can pass through the link per unit time, and may be used to identify the data transmission capability.
本申请实施例所描述的高性能计算(high performance computing,HPC)可以是:计算机科学的一个分支,主要是指从体系结构、并行算法和软件开发等方面研究开发高性能计算机的技术。其通常情况下可以指使用很多处理器(作为单个机器的一部分)或者某一集群中组织的几台计算机(作为单个计算资源操作)的计算系统和环境。The high performance computing (high performance computing, HPC) described in the embodiments of the present application may be: a branch of computer science, which mainly refers to the technology of researching and developing high performance computers from the aspects of architecture, parallel algorithm and software development. It can generally refer to computing systems and environments that use many processors (as part of a single machine) or several computers organized in a cluster (operating as a single computing resource).
本申请实施例所描述的PCIe系统:可以是单个计算设备里的PCIE设备组成的系统,也可以多个计算设备组成的系统。The PCIe system described in the embodiments of this application may be a system composed of a PCIE device in a single computing device, or a system composed of multiple computing devices.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solutions of the present application and how the technical solutions of the present application solve the above-mentioned technical problems will be described in detail below with specific examples. The following specific embodiments can be implemented independently or combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
示例性的,图2为本申请实施例提供的一种PCIe链路处理方法的流程示意图。如图2中所示,该方法可以包括如下步骤:Exemplarily, FIG. 2 is a schematic flowchart of a PCIe link processing method provided by an embodiment of the present application. As shown in Figure 2, the method may include the following steps:
S201、接收业务处理请求。S201. Receive a service processing request.
本申请实施例中,业务处理请求可以为基于用户对业务的触发操作产生的,用于请求计算设备处理该业务的请求。In this embodiment of the present application, the service processing request may be a request generated based on a user's triggering operation on the service and used to request the computing device to process the service.
示例性的,当用户通过触发操作将业务放置到指定窗口区域,或者,将业务放置到指定的节点上时都能够发出该业务处理请求,响应于用户的触发操作,计算设备能够接收到该业务处理请求。Exemplarily, when the user places the service in the specified window area through a trigger operation, or when the service is placed on a specified node, the service processing request can be sent, and the computing device can receive the service in response to the user's trigger operation. Process the request.
其中,用户的触发操作可以包括单次点击操作、多次点击操作、触摸操作(其触摸操作的触摸信息可以包括触摸坐标、触摸力度或触摸操作的时间戳等其他类型的触摸信息)、滑动操作、拖拽操作和/或长按操作等类型的触发操作。可以理解的是,本申请实施例中对具体的触发操作不做限定。The user's trigger operation may include a single click operation, a multiple click operation, a touch operation (the touch information of the touch operation may include other types of touch information such as touch coordinates, touch strength or time stamp of the touch operation), sliding operation , drag operations, and/or long press operations. It can be understood that, the specific trigger operation is not limited in the embodiment of the present application.
示例性的,图3为本申请实施例提供的一种用户触发请求的界面示意图。Exemplarily, FIG. 3 is a schematic interface diagram of a user-triggered request provided by an embodiment of the present application.
如图3所示的界面,该界面可以包括业务处理窗口301和拓扑显示窗口302等其他窗口。业务处理窗口301中可以包括:业务上传控件303和业务需求控件305等其他功能控件。其中,业务上传控件303可以用于触发业务上传,业务需求控件305可以用于接收用户输入对业务的参数的设置。业务显示窗口302中可以包括CPU控件304等其他控件。As shown in FIG. 3 , the interface may include other windows such as a
根据用户需要处理的业务类型的不同,确定拖拽上传业务的方式。其中,当计算设备识别该业务类型是与非根节点相关时,则可以将业务拖拽至业务上传控件303或将业务拖拽至业务处理窗口301中;当计算设备识别该业务类型是与根节点相关时,则可以将业务拖拽至CPU控件304中。其中,非根节点业务表示为该业务在设备间进行传输;根节点业务表示为该业务在CPU与设备间进行传输。The method of dragging and uploading services is determined according to the different types of services that the user needs to process. Wherein, when the computing device recognizes that the service type is related to a non-root node, it can drag the service to the service upload control 303 or drag the service to the
示例性的,当用户需要处理视频业务、图像业务或文本业务等非根节点业务时,可以将该视频业务、图像业务或文本业务拖拽至业务上传控件303或业务处理窗口301;当用户需要处理高性能计算业务等根节点业务时,可以将该业务对应的主程序拖拽至CPU控件304。Exemplarily, when the user needs to process non-root node services such as video service, image service or text service, the video service, image service or text service can be dragged and dropped to the service upload control 303 or the
一种可能的实现方式中,当用户触发业务需求控件305时,可以显示该业务需求控件对应的配置参数的界面,用户可以在该界面中输入对业务调度过程需要的参数,例如对业务调度需要的带宽等其他参数。In a possible implementation manner, when the user triggers the business requirement control 305, an interface for configuring parameters corresponding to the business requirement control can be displayed, and the user can enter the parameters required for the business scheduling process in the interface, such as the business scheduling requirements. bandwidth and other parameters.
示例性的,如图3中,当用户触发业务需求控件305时,计算设备响应于用户的触发操作,可以在图3所示的界面中弹出业务需求窗口3051。用户可以在该业务需求窗口3051中的待输入3052中输入业务的执行时间、在待输入3053中输入业务的响应时间,或在待输入3054中输入业务的需求带宽等参数。计算设备可以利用用户设定的业务所需要的参数对业务进行适应处理。Exemplarily, as shown in FIG. 3 , when the user triggers the service requirement control 305 , the computing device may pop up a service requirement window 3051 in the interface shown in FIG. 3 in response to the user's trigger operation. The user can input the execution time of the service in the pending input 3052 in the service requirement window 3051, the response time of the service in the pending input 3053, or input parameters such as the required bandwidth of the service in the pending input 3054. The computing device can perform adaptive processing on the service by using the parameters required by the service set by the user.
需要说明的是,上述图3中所示的计算设备的操作界面仅用于举例,并不构成对本申请实施例的限定,在其他可行的实现方式中,用于触发业务处理请求的界面也可以接收本申请实施例中的用户操作。It should be noted that the operation interface of the computing device shown in FIG. 3 above is only used as an example, and does not constitute a limitation to the embodiments of the present application. In other feasible implementation manners, the interface for triggering the service processing request may also be The user operation in this embodiment of the present application is received.
S202、获取PCIe系统的第一拓扑图。S202. Obtain a first topology diagram of the PCIe system.
本申请实施例中,第一拓扑图中包括PCIe系统中的多条PCIe链路,PCIe链路中可以包括设备节点,以及各设备之间的通信关系,本申请实施例对第一拓扑图的具体形式不作限定。In the embodiment of the present application, the first topology diagram includes multiple PCIe links in the PCIe system, and the PCIe link may include device nodes and communication relationships between devices. The specific form is not limited.
一种可能的实现方式中,第一拓扑图可以是对PCIe系统进行链路扫描后得到的拓扑图。In a possible implementation manner, the first topology map may be a topology map obtained after link scanning is performed on the PCIe system.
示例性的,获取PCIe系统的第一拓扑图的方法可以为:利用类UNIX操作系统(linux),通过系统命令(lspci–v–t)查询PCIe系统上扫描到的PCIe设备,执行结果会以一个树的形式展示出系统中所有的PCIe设备,得到PCIe系统的第一拓扑图,该第一拓扑图包含PCIe系统中的多条PCIe链路。Exemplarily, the method for obtaining the first topology map of the PCIe system may be: using a UNIX-like operating system (linux), query the PCIe device scanned on the PCIe system through a system command (lspci –v –t), and the execution result will be in the form of: All PCIe devices in the system are displayed in the form of a tree, and a first topology diagram of the PCIe system is obtained, where the first topology diagram includes multiple PCIe links in the PCIe system.
另一种可能的实现方式中,第一拓扑图可以是:对PCIe系统进行链路扫描后得到的拓扑图,并进一步对该拓扑图进行调整得到的第一拓扑图。In another possible implementation manner, the first topology map may be: a topology map obtained after link scanning is performed on the PCIe system, and a first topology map obtained by further adjusting the topology map.
例如,可以根据业务需要对该拓扑图进行适应的链路调整,得到第一拓扑图,本申请实施例对调整的具体形式不作限定。For example, the first topology map may be obtained by performing adaptive link adjustment on the topology map according to service requirements, and the specific form of the adjustment is not limited in this embodiment of the present application.
可以理解的是,获取PCIe系统的第一拓扑图的方法也可以根据实际应用场景包括其他内容,本申请实施例中对于其他可以获取PCIe系统的第一拓扑图的方法不做限定。It can be understood that the method for obtaining the first topology map of the PCIe system may also include other contents according to actual application scenarios, and other methods for obtaining the first topology map of the PCIe system are not limited in this embodiment of the present application.
S203、显示包括第一拓扑图的界面。S203. Display an interface including the first topology map.
本申请实施例中,在得到第一拓扑图后,计算设备可以自动显示包括第一拓扑图的界面,或者,计算设备可以基于用户的指示显示包括第一拓扑图的界面,等。In this embodiment of the present application, after obtaining the first topology map, the computing device may automatically display an interface including the first topology map, or the computing device may display an interface including the first topology map based on a user's instruction, and so on.
示例性的,图4为本申请实施例提供的一种显示拓扑图的界面示意图。Exemplarily, FIG. 4 is a schematic diagram of an interface for displaying a topology map according to an embodiment of the present application.
如图4所示的界面,该界面中的拓扑显示窗口302中可以显示PCIe系统的第一拓扑图,该第一拓扑图可以包括:CPU304(可以作为PCIe系统的根节点)、PCIe交换机401、PCIe交换机402、PCIe交换机403、PCIe交换机404、PCIe交换机405和PCIe交换机406。该PCIe交换机402挂载PCIe设备415;该PCIe交换机403挂载PCIe设备406;该PCIe交换机404挂载PCIe设备410和PCIe设备411;该PCIe交换机405挂载PCIe设备412、PCIe设备413和PCIe设备414;该PCIe交换机406挂载PCIe设备407、PCIe设备408和PCIe设备409,各设备间通过线段连接。As shown in FIG. 4, the
一种可能的方式中,如图4所示的界面中,当用户想要处理视频业务时,可以将视频该业务拖拽至业务上传控件303或将业务上传窗口301内,并且用户可以触发业务需求控件305,将对业务调度所需要的参数输入其中。计算设备接收用户的上述触发操作,解析处理该业务所需要的PCIe设备。In a possible way, in the interface shown in FIG. 4, when the user wants to process the video service, the video service can be dragged and dropped to the service upload control 303 or the service upload
如图4所示的界面中,计算设备解析到需要在PCIe设备406中处理该视频业务后。计算设备将根据视频业务的类型和可以处理业务的PCIe链路的链路质量等级为业务推荐两条合适的PCIe链路。包括一条链路质量等级较高,且用深色标识的最优PCIe链路(CPU304-PCIe交换机401-PCIe交换机403–PCIe设备406),和一条链路等级略低于该最优PCIe链路的PCIe链路(CPU304-PCIe交换机401-PCIe交换机404–PCIe设备406)。可以理解的是,计算设备可以为用户推荐一条或多条PCIe链路,本实施例中对推荐的PCIe链路数量不做限定。In the interface shown in FIG. 4 , the computing device resolves that the video service needs to be processed in the
一种可能的方式中,如图4所示的界面中,当用户想要处理高性能计算业务时,可以将业务的主程序拖拽至CPU304,并且用户可以触发业务需求控件305,将对处理高性能计算业务所需要的参数输入其中。其中,该高性能计算业务的主程序中包含调度器。该调度器用于与其他服务器中的调度软件进行交互。在处理高性能计算业务的场景中,图4中的PCIe设备可以是遵循PCIe协议的服务器,该服务器中包含调度软件客户端(或称代理程序),该调度软件客户端可以与主程序中的调度器进行交互,从而主程序中就能够得到PCIe链路上所有服务器的情况。主程序就能够确定该高性能计算所需要的服务器以及在每个服务器中具体处理的内容。后续就可以利用本实施例中提供的方法进行链路处理。示例性的,该利用PCIe链路调度的业务可以包括:富媒体、流媒体、文本、简单计算或高性能计算或其他业务。可以理解的是,本申请实施例中对业务不做限制。In a possible way, in the interface shown in FIG. 4, when the user wants to process the high-performance computing service, he can drag the main program of the service to the CPU 304, and the user can trigger the service requirement control 305, and the processing will be processed. The parameters required by the high-performance computing business are entered in it. The main program of the high-performance computing service includes a scheduler. The scheduler is used to interact with scheduling software in other servers. In the scenario of processing high-performance computing services, the PCIe device in FIG. 4 may be a server that complies with the PCIe protocol. The server includes a scheduling software client (or an agent program), and the scheduling software client can communicate with the main program. The scheduler interacts, so that the main program can get the status of all servers on the PCIe link. The main program can determine the servers required for the high-performance computing and the specific processing content in each server. Subsequently, the link processing can be performed by using the method provided in this embodiment. Exemplarily, the services scheduled by using the PCIe link may include: rich media, streaming media, text, simple computing or high-performance computing or other services. It can be understood that, the embodiments of the present application do not limit services.
S204、在接收到针对第一拓扑图的中任一条PCIe链路的触发操作的情况下,利用任一条PCIe链路处理业务处理请求对应的业务。S204. In the case of receiving a trigger operation for any PCIe link in the first topology diagram, use any PCIe link to process the service corresponding to the service processing request.
本申请实施例中,当用户在第一拓扑图中通过点击操作、拖拽操作、长按操作或滑动操作等触发操作,触发第一拓扑图中的任一条PCIe链路时,响应于用户的触发操作,计算设备将利用该用户触发的那一条PCIe链路处理该业务处理请求对应的业务。例如,可以利用PCIe链路开关或者PCIe寄存器控制PCIe链路的通断,从而实现利用任一条PCIe链路处理业务。In this embodiment of the present application, when the user triggers any PCIe link in the first topology map by clicking, dragging, pressing, or sliding in the first topology map, the user's Triggering the operation, the computing device will use the PCIe link triggered by the user to process the service corresponding to the service processing request. For example, a PCIe link switch or a PCIe register may be used to control the on/off of the PCIe link, so that any one of the PCIe links can be used to process services.
示例性的,如图4所示的界面中,该界面中显示了为用户推荐的两条PCIe链路,当用户通过拖拽操作选择用深色标识的最优PCIe链路(CPU304-PCIe交换机401-PCIe交换机403–PCIe设备406)时,计算设备可以利用PCIe链路开关或者PCIe寄存器,断开CPU304与PCIe交换机402的之间链路、PCIe交换机401与PCIe交换机404的之间的链路,业务就可以沿着该深色标识的最优PCIe链路进行调度,实现在PCIe设备406中处理该业务。Exemplarily, in the interface shown in FIG. 4, the interface displays two PCIe links recommended for the user, when the user selects the optimal PCIe link (CPU304-PCIe switch) marked with a dark color by dragging and dropping. 401-PCIe switch 403-PCIe device 406), the computing device can use the PCIe link switch or the PCIe register to disconnect the link between the CPU 304 and the
本申请实施例提供的一种PCIe链路处理方法,计算设备可以接收业务处理请求,获取并显示PCIe系统的拓扑图,这样用户可以根据需求在界面中灵活的选择希望进行业务传输的链路,计算设备在接收到针对拓扑图中任一条PCIe链路的触发操作的情况下,利用任一条PCIe链路处理业务处理请求对应的业务。本申请实施例中,用户能够根据需求选择PCIe链路,因此能够满足用户对于PCIe链路多样化的使用需求。In a PCIe link processing method provided by an embodiment of the present application, a computing device can receive a service processing request, obtain and display a topology diagram of a PCIe system, so that a user can flexibly select a link for service transmission in an interface according to requirements, In the case that the computing device receives the trigger operation for any PCIe link in the topology diagram, the computing device processes the service corresponding to the service processing request by using any PCIe link. In the embodiment of the present application, the user can select the PCIe link according to the requirements, so the diversified usage requirements of the user for the PCIe link can be met.
在图2对应的实施例的基础上,一种可能的实现方式中,S202包括:获取PCIe系统的第二拓扑图;确定处理业务所需的目标设备;在第二拓扑图中为目标设备增加冗余设备,得到第一拓扑图。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, S202 includes: obtaining a second topology diagram of the PCIe system; determining a target device required for processing services; adding a target device to the second topology diagram Redundant equipment, to obtain the first topology diagram.
本申请实施例中,该冗余设备可以为,计算设备为处理该业务所需要的目标设备所增加的可以替换的设备。例如,当该目标设备出现故障时,计算设备可以利用该冗余设备形成的PCIe链路进行业务的传输。扫描PCIe系统,得到增加冗余设备后形成的第一拓扑图。用户就可以利用显示该第一拓扑图的界面,选择合适的PCIe链路传输业务。In this embodiment of the present application, the redundant device may be a replaceable device added by the computing device to the target device required for processing the service. For example, when the target device fails, the computing device can use the PCIe link formed by the redundant device to transmit services. Scan the PCIe system to obtain the first topology map formed by adding redundant devices. The user can then use the interface displaying the first topology diagram to select an appropriate PCIe link to transmit services.
示例性的,如图4所示的拓扑图的界面中,计算设备根据业务可以确定处理业务所需的目标设备为PCIe设备406、PCIe交换机401、PCIe交换机403。计算设备可以为目标设备中的PCIe交换机401增加冗余设备,该冗余设备可以为PCIe交换机404。Exemplarily, in the interface of the topology diagram shown in FIG. 4 , the computing device may determine, according to the service, that the target devices required for processing the service are the
当业务在经过PCIe链路(CPU304-PCIe交换机401-PCIe交换机403–PCIe设备406)传输过程中,计算设备检测到PCIe交换机401出现故障,则可以触发冗余设备(PCIe交换机404),业务可以将该故障的设备替换为PCIe交换机404,计算设备将利用另一条PCIe链路(CPU304-PCIe交换机401-PCIe交换机404–PCIe设备406)传输业务。扫描增加冗余设备后的PCIe系统,得到如图4所示的第一拓扑图的界面。When the service is transmitted through the PCIe link (CPU304-PCIe switch 401-PCIe switch 403-PCIe device 406), and the computing device detects that the PCIe switch 401 is faulty, it can trigger the redundant device (PCIe switch 404), and the service can be The faulty device is replaced with the
基于此,冗余设备就可以在目标设备出现故障时,替代目标设备的功能,完成业务的传输,减少由于设备的故障对业务处理的影响,提高PCIe系统的可用性。Based on this, the redundant device can replace the function of the target device when the target device fails, complete the service transmission, reduce the impact of the device failure on the service processing, and improve the availability of the PCIe system.
在图2对应的实施例的基础上,一种可能的实现方式中,在第二拓扑图中为目标设备增加冗余设备,得到第一拓扑图包括:在第二拓扑图中,断开冗余设备与其他设备之间的部分链路关系,且将冗余设备作为目标设备的备用设备。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, adding redundant devices to the target device in the second topology diagram, and obtaining the first topology diagram includes: in the second topology diagram, disconnecting redundant devices Part of the link relationship between the redundant device and other devices, and the redundant device is used as the backup device of the target device.
本申请实施例中,该其他设备为其他设备为与目标设备不同的设备。该断开余设备与其他设备之间的部分链路关系的方法可以为:利用PCIe链路开关,控制PCIe系统中设备间的PCIe链路的通断,或者,利用PCIe寄存器,更改该PCIe寄存器中端口的配置,控制PCIe系统中设备的端口的开闭。In this embodiment of the present application, the other device is a device different from the target device. The method for disconnecting part of the link relationship between the redundant device and other devices may be: using the PCIe link switch to control the on/off of the PCIe link between the devices in the PCIe system, or using the PCIe register to change the PCIe register The configuration of the ports in the PCIe system controls the opening and closing of the ports of the devices in the PCIe system.
示例性的,如图4所示的拓扑图的界面中,计算设备可以将PCIe交换机404作为PCIe交换机401的冗余设备。当计算设备检测到PCIe交换机401出现故障时,则可以触发PCIe交换机作为PCIe交换机401的冗余设备。计算设备可以通过PCIe链路开关,断开PCIe链路(CPU304–PCIe交换机404)之间的链路关系,或者,更改PCIe寄存器的配置来关闭PCIe交换机与CPU304传输的端口。Exemplarily, in the interface of the topology diagram shown in FIG. 4 , the computing device may use the
基于此,就能够通过断开目标涉笔与其它设备间的链路关系,为目标设备增加冗余链路,减少由于设备的故障对业务处理的影响,从而为业务的传输增加安全保障。Based on this, it is possible to add redundant links to the target device by disconnecting the link relationship between the target pen and other devices, reduce the impact of device failures on service processing, and thus increase security for service transmission.
在图2对应的实施例的基础上,一种可能的实现方式中,确定处理业务所需的目标设备,包括:根据业务的业务类型确定处理业务所需的目标设备。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, determining the target device required for processing the service includes: determining the target device required for processing the service according to the service type of the service.
本申请实施例中,该业务类型可以包括下述的一项或多项:业务的数据类型、业务的协议或业务的参数等其他业务类型。其中,业务的参数为业务进行调度时所需要的参数。该业务的参数可以包括下述的一项或多项:业务的执行时间要求、业务的响应要求或业务的需求带宽等其他业务的参数。该业务的执行时间要求为进行该业务调度所需要的时间。该业务的响应要求为触发该业务的处理请求后,计算设备收到该业务调度请求所需要的时间。该业务的需求带宽为运行该业务所要的带宽。In this embodiment of the present application, the service type may include one or more of the following: a data type of the service, a protocol of the service, or other service types such as parameters of the service. The parameters of the service are parameters required when the service is scheduled. The parameters of the service may include one or more of the following parameters: the execution time requirement of the service, the response requirement of the service, or the required bandwidth of the service and other service parameters. The execution time requirement of the service is the time required for scheduling the service. The response requirement of the service is the time required for the computing device to receive the service scheduling request after triggering the processing request of the service. The required bandwidth of the service is the bandwidth required for running the service.
根据业务的业务类型确定处理业务所需的目标设备的方法可以为,根据业务的业务类型对该业务进行业务建模,利用业务建模确定处理该业务所需要的目标设备。该业务建模的方法可以利用数学建模或神经网络模型等其他可以确定该业务所需要的目标设备的方法。可以理解的是,根据业务类型确定业务所需目标设备的方法可以根据实际应用场景包括其他内容,本申请实施例中对此不做限定。The method for determining the target device required for processing the service according to the service type of the service may be: performing a service modeling on the service according to the service type of the service, and using the service modeling to determine the target device required for processing the service. The business modeling method can utilize other methods such as mathematical modeling or neural network model, which can determine the target device required by the business. It can be understood that the method for determining the target device required by the service according to the service type may include other contents according to the actual application scenario, which is not limited in this embodiment of the present application.
基于此,可以根据从业务获取的众多参数,直接获得处理该业务所需的目标设备,便于计算机利用该目标设备,进行其他链路处理。Based on this, the target device required for processing the service can be directly obtained according to numerous parameters obtained from the service, so that the computer can use the target device to perform other link processing.
在图2对应的实施例的基础上,一种可能的实现方式中,第一拓扑图中包括:多条PCIe链路的链路质量等级,和/或,多条PCIe链路的链路属性。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, the first topology diagram includes: link quality levels of multiple PCIe links, and/or link attributes of multiple PCIe links .
本申请实施例中,PCIe链路的链路质量等级为评价PCIe链路质量的优劣所设定的等级。PCIe链路的链路属性可以展示PCIe链路的链路状态。该PCIe链路的链路属性包括下述一项或多项:PCIe链路的连接状态、PCIe链路的级联关系、PCIe链路的带宽或PCIe链路的设备数。In this embodiment of the present application, the link quality level of the PCIe link is a level set for evaluating the quality of the PCIe link. The link properties of the PCIe link can display the link status of the PCIe link. The link attribute of the PCIe link includes one or more of the following: the connection status of the PCIe link, the cascading relationship of the PCIe link, the bandwidth of the PCIe link, or the number of devices of the PCIe link.
其中,该PCIe链路的连接状态表示当前PCIe链路是否够能够传输业务的状态,若当前该PCIe链路的连接状态为正常时,则表示当前PCIe链路能够传输业务;若当前该PCIe链路的连接状态为故障,则表示当前PCIe链路不能够传输业务。该PCIe链路的级联关系为,传输业务时,业务数据所经过的设备形成的路径。该PCIe链路的带宽表示,为单位时间内该PCIe链路可以传输的数据量。该PCIe链路的设备数为,传输业务时业务数据所经过的PCIe链路上的设备数量。其中,该PCIe链路的链路属性可以从PCIe寄存器中读取。The connection status of the PCIe link indicates whether the current PCIe link can transmit services. If the current connection status of the PCIe link is normal, it indicates that the current PCIe link can transmit services; if the current PCIe link is capable of transmitting services If the connection status of the channel is faulty, it means that the current PCIe link cannot transmit services. The cascading relationship of the PCIe link is the path formed by the devices through which the service data passes when the service is transmitted. The bandwidth of the PCIe link represents the amount of data that can be transmitted by the PCIe link in a unit time. The number of devices on the PCIe link is the number of devices on the PCIe link through which service data passes during service transmission. Wherein, the link attribute of the PCIe link can be read from the PCIe register.
基于此,用户就可以在界面中,既能看到当前PCIe系统的拓扑结构,也能够看到每条PCIe链路的链路属性,能够直观展示PCIe系统的当前状态。Based on this, users can see not only the topology of the current PCIe system, but also the link properties of each PCIe link on the interface, and can visually display the current state of the PCIe system.
在图2对应的实施例的基础上,一种可能的实现方式中,根据多条PCIe链路的链路属性确定多条PCIe链路的链路质量等级;其中,界面中,各PCIe链路的显示状态与PCIe链路质量等级相关。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, the link quality levels of the multiple PCIe links are determined according to the link attributes of the multiple PCIe links; wherein, in the interface, each PCIe link The displayed status is related to the PCIe link quality level.
本申请实施例中,根据该链路属性确定链路质量等级的方法可以为,对获取的多条PCIe链路的链路属性进行建模,或者,根据PCIe链路的链路等级评分表确定多条PCIe链路的链路质量等级。根据PCIe链路的链路属性确定PCIe链路的链路质量等级的规则,可以遵循:PCIe链路的带宽越高、PCIe链路的设备数越少、PCIe链路的级联关系的路径越短、PCIe链路的带宽衰减越少,则该PCIe链路的链路质量等级越高。In this embodiment of the present application, the method for determining the link quality level according to the link attribute may be: modeling the acquired link attributes of multiple PCIe links, or determining according to the link level scoring table of the PCIe link Link quality level of multiple PCIe links. The rules for determining the link quality level of the PCIe link according to the link attribute of the PCIe link can be followed: the higher the bandwidth of the PCIe link, the fewer the number of devices in the PCIe link, and the higher the path of the cascading relationship of the PCIe link. Shorter, the less bandwidth attenuation of the PCIe link, the higher the link quality level of the PCIe link.
一种可能的实现方式中,可以对获取的多条PCIe链路的链路属性进行建模,确定PCIe链路的链路质量。In a possible implementation manner, the obtained link attributes of multiple PCIe links may be modeled to determine the link quality of the PCIe links.
示例性的,可以利用机器学习模型确定PCIe链路的链路质量。将获取的多条PCIe链路的链路属性作为训练机器学习模型所需要的样本;将该样本输入到机器学习模型中,可以输出PCIe链路的链路质量;利用损失函数,比较该模型输出预测的PCIe链路的链路质量与真实PCIe链路的链路质量的差距;当该预测的PCIe链路的链路质量与真实PCIe链路的链路质量的差距不满足损失函数时,则调整该模型的参数,继续训练;直到输出PCIe链路的链路质量与真实PCIe链路的链路质量的差距满足损失函数,则模型训练结束,得到能够确定PCIe链路的链路质量的机器学习模型。则可以利用该模型,输出PCIe链路的链路质量等级。Exemplarily, the link quality of the PCIe link may be determined by using a machine learning model. Use the obtained link attributes of multiple PCIe links as the samples required for training the machine learning model; input the samples into the machine learning model, and output the link quality of the PCIe link; use the loss function to compare the output of the model The gap between the link quality of the predicted PCIe link and the link quality of the real PCIe link; when the gap between the link quality of the predicted PCIe link and the link quality of the real PCIe link does not satisfy the loss function, then Adjust the parameters of the model and continue training; until the difference between the link quality of the output PCIe link and the link quality of the real PCIe link satisfies the loss function, then the model training ends, and a machine that can determine the link quality of the PCIe link is obtained Learning models. Then, the model can be used to output the link quality level of the PCIe link.
一种可能的实现方式中,可以根据获取的多条PCIe链路的链路属性对照PCIe链路的链路等级评分表,确定PCIe链路的链路质量。In a possible implementation manner, the link quality of the PCIe link may be determined according to the obtained link attributes of the multiple PCIe links by comparing with the link level scoring table of the PCIe link.
示例性,如表1所示,该链路等级评分表中可以包括多条PCIe链路的参数,该参数可以包括:PCIe链路的链路编号、链路说明、链路深度、链路带宽、设备数、链路质量和/或链路质量等级等其他链路的参数。该链路等级评分表可以是根据,计算设备中存储的PCIe链路业务传输的历史数据的统计计算得到的。该历史数据可以包括业务传输时PCIe链路的参数、业务的传输时间、业务的响应时间等数据。示例性的,当拓扑图中存在一条PCIe链路(SwitchA->SwitchA->End C1)时,可以通过查找链路等级评分表,得到该PCIe链路的链路质量为优以及链路质量等级为SS。可以理解的是,该PCIe链路的链路等级评分表中的参数可以根据实际应用场景包括其他内容,本申请实施例中对此不做限定。Exemplarily, as shown in Table 1, the link rating table may include parameters of multiple PCIe links, and the parameters may include: link number, link description, link depth, and link bandwidth of the PCIe link. , number of devices, link quality and/or link quality level and other link parameters. The link level scoring table may be obtained according to statistical calculation of historical data of PCIe link service transmission stored in the computing device. The historical data may include data such as parameters of the PCIe link during service transmission, service transmission time, and service response time. Exemplarily, when there is a PCIe link (SwitchA->SwitchA->End C1) in the topology diagram, it is possible to obtain the link quality of the PCIe link as excellent and the link quality level by looking up the link level score table. for SS. It can be understood that the parameters in the link level scoring table of the PCIe link may include other contents according to actual application scenarios, which are not limited in this embodiment of the present application.
表1Table 1
示例性的,该业务类型可以为当计算设备获取多条PCIe链路的链路属性后,可以将该链路属性的参数信息输入到链路等级评分表中。该链路等级评分表将根据输入的链路属性中的各种参数信息与链路等级评分表中记录的链路的参数信息做对照,为该参数信息对应的PCIe链路确定链路质量等级。Exemplarily, the service type may be that after the computing device acquires link attributes of multiple PCIe links, the parameter information of the link attributes may be input into the link level scoring table. The link level scoring table will compare various parameter information in the input link attribute with the parameter information of the link recorded in the link level scoring table, and determine the link quality level for the PCIe link corresponding to the parameter information .
可以理解的是,根据链路属性确定链路质量等级的方法可也以根据实际应用场景包括其他内容,本申请实施例中对于此不做限定。It can be understood that the method for determining the link quality level according to the link attribute may also include other contents according to the actual application scenario, which is not limited in this embodiment of the present application.
基于此,就可以根据复杂的PCIe链路的链路属性的各种参数,得到能够直观表示的PCIe链路的链路质量的链路质量等级,实现PCIe链路的链路质量等级的可视化。Based on this, the link quality level of the link quality of the PCIe link that can be visually represented can be obtained according to various parameters of the complex link attribute of the PCIe link, so as to realize the visualization of the link quality level of the PCIe link.
在图2对应的实施例的基础上,一种可能的实现方式中,该PCIe链路的显示状态可以包括:PCIe链路的颜色、PCIe链路的尺寸和/或PCIe链路的灰度等。PCIe链路的颜色可以为,在显示拓扑图的界面中可以利用不同的PCIe链路的颜色显示不同类型的业务调度过程。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, the display state of the PCIe link may include: the color of the PCIe link, the size of the PCIe link, and/or the grayscale of the PCIe link, etc. . The color of the PCIe link can be, in the interface for displaying the topology diagram, different types of service scheduling processes can be displayed by using different colors of the PCIe link.
示例性的,当利用PCIe链路同时调度视频业务、文本业务、图像业务时,可以用红色显示出视频业务传输所经过的PCIe链路,用绿色显示出文本业务传输所经过的PCIe链路,用黄色显示出文本业务传输所经过的PCIe链路。Exemplarily, when using the PCIe link to schedule video services, text services, and image services at the same time, the PCIe link through which the video service is transmitted can be displayed in red, and the PCIe link through which the text service is transmitted can be displayed in green. The PCIe link through which the text traffic is transmitted is shown in yellow.
该PCIe链路的尺寸,在显示拓扑图的界面中可以利用设备间连接线的不同宽度表示PCIe链路的链路质量等级,每个PCIe链路的链路质量等级可以对应于不同的PCIe链路的尺寸。示例性的,当PCIe链路的链路质量等级为优时,该PCIe链路的连接线显示较宽;当PCIe链路的链路质量等级为良时,该PCIe链路的连接线显示较窄。在实际应用场景中,当PCIe链路的链路质量等级相同时,则该PCIe链路的连接线显示的连接线宽度相同。The size of the PCIe link, in the interface displaying the topology diagram, the different widths of the connecting lines between devices can be used to indicate the link quality level of the PCIe link, and the link quality level of each PCIe link can correspond to different PCIe links dimensions of the road. Exemplarily, when the link quality level of the PCIe link is excellent, the connection line of the PCIe link is displayed as wider; when the link quality level of the PCIe link is good, the connection line of the PCIe link is displayed as wider. narrow. In an actual application scenario, when the link quality levels of the PCIe links are the same, the connecting lines of the PCIe links display the same width of the connecting lines.
PCIe链路的灰度可以为,PCIe链路也可以用不同深度的灰色表示PCIe链路的链路质量等级。示例性的,当PCIe链路的链路质量等级为优时,该PCIe链路的连接线显示的灰度较深;当PCIe链路的链路质量等级为良时,该PCIe链路的连接线显示的灰度较浅。在实际应用场景中,当PCIe链路的链路质量等级相同时,则该PCIe链路的连接线显示的灰度相同。The grayscale of the PCIe link may be, and the PCIe link may also use grayscale of different depths to represent the link quality level of the PCIe link. Exemplarily, when the link quality level of the PCIe link is excellent, the grayscale displayed by the connection line of the PCIe link is darker; when the link quality level of the PCIe link is good, the connection of the PCIe link is Lines appear lighter in gray. In a practical application scenario, when the link quality levels of the PCIe links are the same, the grayscales displayed by the connecting lines of the PCIe links are the same.
可以理解的是,PCIe链路的显示状态可以根据实际应用场景包括其他内容,本申请实施例中对此不做限定。It can be understood that the display state of the PCIe link may include other contents according to an actual application scenario, which is not limited in this embodiment of the present application.
基于此,用户可以直观的在拓扑图所在的界面中看到不同PCIe链路的链路质量等级,方便用户后续可以选择希望的PCIe链路调度业务。Based on this, the user can intuitively see the link quality levels of different PCIe links on the interface where the topology map is located, so that the user can select the desired PCIe link scheduling service in the future.
在图2对应的实施例的基础上,一种可能的实现方式中,S204包括:利用PCIe系统中的链路开关,将业务调度到任一条PCIe链路上进行处理;或者,利用PCIe系统中的寄存器,将业务调度到任一条PCIe链路上进行处理。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, S204 includes: using a link switch in the PCIe system to schedule services to any PCIe link for processing; register to schedule services to any PCIe link for processing.
本申请实施例中,可以利用PCIe系统的链路开关(或称PCIe链路开关),为PCIe链路开关所控制的硬件设备的管脚上输入0或1。其中,1为该PCIe链路开关的电路闭合,控制PCIe链路的通路状态,0为该PCIe链路开关的电路断开,控制PCIe链路的断路状态。该PCIe链路开关可以是控制链路通断的中继开关、磁吸开关等其他开关。In this embodiment of the present application, a link switch (or referred to as a PCIe link switch) of a PCIe system may be used to input 0 or 1 to a pin of a hardware device controlled by the PCIe link switch. Wherein, 1 indicates that the circuit of the PCIe link switch is closed to control the path state of the PCIe link, and 0 indicates that the circuit of the PCIe link switch is disconnected and controls the open circuit state of the PCIe link. The PCIe link switch may be a relay switch, a magnetic switch and other switches that control the link on and off.
示例性的,图5示出了一种PCIe链路开关的示意图。可以通过复杂可编程逻辑器件(Complex Programming logic device,CPLD)控制该PCIe链路开关的开闭,进而,该PCIe链路开关就能够控制该PCIe链路的通断状态。可以理解的是,PCIe链路开关可以根据实际应用场景的不同包括其他内容,本申请实施例中对PCIe链路开关的类型不做限制。Exemplarily, FIG. 5 shows a schematic diagram of a PCIe link switch. The on-off of the PCIe link switch can be controlled by a complex programmable logic device (Complex Programming Logic Device, CPLD), and further, the PCIe link switch can control the on-off state of the PCIe link. It can be understood that the PCIe link switch may include other contents according to different actual application scenarios, and the type of the PCIe link switch is not limited in this embodiment of the present application.
一种可能的实现方式中,可以更改PCIe系统中的寄存器的配置参数,控制PCIe系统中各设备端口的开闭状态,进而控制PCIe链路的通断。In a possible implementation manner, the configuration parameters of the registers in the PCIe system can be changed to control the opening and closing states of each device port in the PCIe system, thereby controlling the on-off of the PCIe link.
基于此,当PCIe链路需要调整时,就可以根据实际的场景选择更加合适的链路处理方式。Based on this, when the PCIe link needs to be adjusted, a more appropriate link processing method can be selected according to the actual scenario.
在图2对应的实施例的基础上,一种可能的实现方式中,在预设时间内没有接收到触发操作的情况下,利用业务的业务类型和多条PCIe链路的链路质量等级,为业务选择目标PCIe链路。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, when the trigger operation is not received within a preset time, the service type of the service and the link quality level of the multiple PCIe links are used, Select the target PCIe link for the service.
本申请实施例中,当计算设备在其预设时间内接收到用户的触发操作时,则可以执行本申请实施例中提供的链路处理方法。该根据业务类型和PCIe链路的链路质量等级确定目标PCIe链路的方法可以为根据业务调度运行时所需求的带宽、业务的执行时间要求、业务的响应要求等业务的参数,为业务选择合适的PCIe链路。In the embodiment of the present application, when the computing device receives the trigger operation of the user within the preset time, the link processing method provided in the embodiment of the present application may be executed. The method for determining the target PCIe link according to the service type and the link quality level of the PCIe link can be selected for the service according to the service parameters such as the bandwidth required during the service scheduling operation, the service execution time requirement, the service response requirement and so on. A suitable PCIe link.
基于此,计算设备中设定的接收用户触发操作的预设时间,可以优化延迟,减少链路处理的耗能情况。Based on this, the preset time for receiving the user-triggered operation set in the computing device can optimize the delay and reduce the energy consumption of link processing.
在图2对应的实施例的基础上,一种可能的实现方式中,利用业务的业务类型和多条PCIe链路的链路质量等级,为业务选择目标PCIe链路,包括:根据业务类型确定业务的带宽;根据PCIe链路的链路质量等级,在多条PCIe链路中选择满足业务的带宽的目标PCIe链路。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, using the service type of the service and the link quality levels of multiple PCIe links to select a target PCIe link for the service, including: determining according to the service type The bandwidth of the service; according to the link quality level of the PCIe link, select the target PCIe link that satisfies the bandwidth of the service among multiple PCIe links.
示例性的,当用户需要调度视频业务和文本业务时,计算设备可以解析该视频业务和文本业务所需求的带宽。当计算设备解析得到,该视频业务所需求的带宽高于该文本业务所需求的带宽时,则计算设备将根据PCIe链路的链路质量等级,为该视频业务选择高带宽的PCIe链路,为该文本业务选择较低带宽的PCIe链路。Exemplarily, when the user needs to schedule the video service and the text service, the computing device can analyze the bandwidth required by the video service and the text service. When the computing device parses and obtains that the bandwidth required by the video service is higher than the bandwidth required by the text service, the computing device will select a high-bandwidth PCIe link for the video service according to the link quality level of the PCIe link. Select a lower bandwidth PCIe link for this text service.
一种可能的实现方式中,计算设备还能够根据业务的优先级为该业务选择相应的PCIe链路。示例性的,当用户使用该业务的频率越高时,可以为该业务匹配链路质量较高的PCIe链路;当用户使用该业务的频率越低时,可以为该业务随意匹配一条链路状态正常的PCIe链路。In a possible implementation manner, the computing device can also select a corresponding PCIe link for the service according to the priority of the service. Exemplarily, when the user uses the service more frequently, a PCIe link with higher link quality can be matched for the service; when the user uses the service less frequently, a link can be randomly matched for the service. PCIe link in normal state.
基于此,根据业务带宽和PCIe链路质量确选择PCIe链路的方法,能够解决不同业务场景下对链路带宽和质量的不同要求,提高了PCIe系统的可用性,实现PCIe链路的价值最大化。Based on this, the method of accurately selecting a PCIe link according to the service bandwidth and PCIe link quality can solve the different requirements for link bandwidth and quality in different business scenarios, improve the availability of the PCIe system, and maximize the value of the PCIe link. .
在图2对应的实施例的基础上,一种可能的实现方式中,在该拓扑图的界面中,用户触发选择任一条PCIe链路进行业务调度,当用户选择的该PCIe链路在处理业务的过程中出现故障时,用户可以选择其他正常运行的PCIe链路进行业务调度。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, in the interface of the topology diagram, the user triggers the selection of any PCIe link for service scheduling, and when the PCIe link selected by the user is processing service When a fault occurs during the process, the user can select other normally running PCIe links for service scheduling.
示例性的,当该计算设备检测到正在处理业务的PCIe链路出现故障时,可以发送错误报告,并在该拓扑图所在的界面中弹出如图6所示的系统提示窗口601。该提示窗口601的内容可以为:业务调度失败,请选择其他PCIe链路。其中,该错误报告可以触发界面中的拓扑图的更新,计算设备将重新扫描PCIe链路,并利用本实施例中提供的链路处理方法再次根据业务类型推荐合适的链路,供用户选择。Exemplarily, when the computing device detects that the PCIe link processing the service is faulty, it can send an error report, and pop up a system
一种可能的实现方式中,若计算设备在预设时间内没有接收到用户选择链路的触发操作的情况下,计算设备将默认选择一条最优的PCIe链路执行业务调度。In a possible implementation manner, if the computing device does not receive a triggering operation for the user to select a link within a preset time, the computing device will select an optimal PCIe link by default to perform service scheduling.
基于此,当业务调度出现故障时,用户就可以选择其他正常链路进行调度,满足多场景下用户调度业务的需求。Based on this, when service scheduling fails, users can select other normal links for scheduling to meet the needs of users to schedule services in multiple scenarios.
在图2对应的实施例的基础上,一种可能的实现方式中,在该拓扑图的界面中,用户触发选择任一条PCIe链路进行业务调度,当用户增加需要调度的业务时,计算设备相应于用户增加业务的触发操作,为增加的业务选择另一条合适的PCIe链路进行该增加的业务的调度。On the basis of the embodiment corresponding to FIG. 2 , in a possible implementation manner, in the interface of the topology diagram, the user triggers the selection of any PCIe link for service scheduling, and when the user adds a service that needs to be scheduled, the computing device Corresponding to the user's triggering operation for adding a service, another appropriate PCIe link is selected for the added service to schedule the added service.
示例性的,如图4所示的界面,用户可以展开业务处理窗口301,将增加的业务拖拽至业务处理窗口301中。计算设备响应于用户的触发操作,可以为增加的业务推荐一条合适的PCIe链路,该PCIe链路将以不同于已经进行业务调度的那一条PCIe链路的颜色、尺寸和灰度进行标识。计算设备响应于用户触发操作,所执行的链路处理方法不再赘述。Exemplarily, in the interface shown in FIG. 4 , the user can expand the
基于此,当用户想要增加调度业务的需求时,就能够将该业务拖拽到界面上,满足多场景下用户调度业务的需求。Based on this, when the user wants to increase the demand for scheduling services, they can drag and drop the service onto the interface to meet the needs of users for scheduling services in multiple scenarios.
上面结合图1-图6对本申请实施例的方法进行说明,下面对本申请实施例提供的执行上述方法的装置进行描述。本领域技术人员应该很容易意识到,方法和装置可以相互结合和引用。The methods of the embodiments of the present application are described above with reference to FIG. 1 to FIG. 6 , and the apparatuses provided by the embodiments of the present application for executing the above methods are described below. It should be readily appreciated by those skilled in the art that methods and apparatus may be combined and referenced with each other.
下面以采用对应各个功能划分各个功能模块为例进行说明:The following is an example of dividing each function module corresponding to each function to illustrate:
如图7所示,图7示出了本申请实施例提供的一种PCIe链路处理装置的结构示意图。As shown in FIG. 7 , FIG. 7 shows a schematic structural diagram of a PCIe link processing apparatus provided by an embodiment of the present application.
该PCIe链路处理装置可以是本申请实施例中的终端设备,也可以是终端设备内的芯片或芯片系统。该PCIe链路处理装置包括:显示单元701和处理单元702,其中,处理单元702,用于接收业务处理请求;处理单元702,用于获取PCIe系统的第一拓扑图;第一拓扑图中包括PCIe系统中的多条PCIe链路;显示单元701,用于显示包括第一拓扑图的界面;处理单元702,用于在接收到针对第一拓扑图的中任一条PCIe链路的触发操作的情况下,利用任一条PCIe链路处理业务处理请求对应的业务。The PCIe link processing apparatus may be the terminal device in the embodiment of the present application, or may be a chip or a chip system in the terminal device. The PCIe link processing apparatus includes: a
示例性的,以该PCIe链路处理装置为终端设备或应用于终端设备中的芯片或芯片系统为例,该显示单元701用于支持PCIe链路处理装置执行上述实施例中的显示步骤,该处理单元702用于支持PCIe链路处理装置执行上述实施例中的处理步骤。Exemplarily, taking the PCIe link processing device as a terminal device or a chip or a chip system applied in the terminal device as an example, the
处理单元702可以和显示单元701集成在一起,处理单元702和显示单元701可能会发生通信。The
在一种可能的实现方式中,该PCIe链路处理装置还可以包括:存储单元703。其中,存储单元703可以包括一个或者多个存储器,存储器可以是一个或者多个设备、电路中用于存储程序或者数据的器件。In a possible implementation manner, the PCIe link processing apparatus may further include: a
存储单元703可以独立存在,通过通信总线与处理单元702相连。存储单元703也可以和处理单元702集成在一起。The
以PCIe链路处理装置可以是本申请实施例中的终端设备的芯片或芯片系统为例,存储单元703可以存储终端设备的方法的计算机执行指令,以使处理单元702执行上述实施例中终端设备的方法。存储单元703可以是寄存器、缓存或者随机存取存储器(randomaccess memory,RAM)等,存储单元703可以和处理单元702集成在一起。存储单元703可以是只读存储器(read-only memory,ROM)或者可存储静态信息和指令的其他类型的静态存储设备,存储单元703可以与处理单元702相独立。Taking the PCIe link processing apparatus as an example of a chip or a chip system of the terminal device in the embodiment of the present application, the
一种示例性的方式中,处理单元702,具体用于获取PCIe系统的第二拓扑图;确定处理业务所需的目标设备;在第二拓扑图中为目标设备增加冗余设备,得到第一拓扑图。In an exemplary manner, the
一种示例性的方式中,处理单元702,具体用于在第二拓扑图中,断开冗余设备与其他设备之间的部分链路关系,且将冗余设备作为目标设备的备用设备;其中,其他设备为与目标设备不同的设备。In an exemplary manner, the
一种示例性的方式中,处理单元702,具体用于根据业务的业务类型确定处理业务所需的目标设备。In an exemplary manner, the
一种示例性的方式中,业务类型包括下述的一项或多项:业务的数据类型、业务的协议或业务的参数;业务的参数为业务进行调度时所需要的参数。In an exemplary manner, the service type includes one or more of the following: the data type of the service, the protocol of the service, or the parameter of the service; the parameter of the service is the parameter required when the service is scheduled.
一种示例性的方式中,业务的参数包括下述的一项或多项:业务的执行时间要求、业务的响应要求或业务的需求带宽。In an exemplary manner, the parameters of the service include one or more of the following: the execution time requirement of the service, the response requirement of the service, or the required bandwidth of the service.
一种示例性的方式中,第一拓扑图中包括:多条PCIe链路的链路质量等级,和/或,多条PCIe链路的链路属性。In an exemplary manner, the first topology diagram includes: link quality levels of multiple PCIe links, and/or link attributes of multiple PCIe links.
一种示例性的方式中,处理单元702,具体用于根据多条PCIe链路的链路属性确定多条PCIe链路的链路质量等级;其中,界面中,各PCIe链路的显示状态与PCIe链路的链路质量等级相关。In an exemplary manner, the
一种示例性的方式中,PCIe链路的显示状态包括:PCIe链路的颜色和/或PCIe链路的尺寸。In an exemplary manner, the display state of the PCIe link includes: the color of the PCIe link and/or the size of the PCIe link.
一种示例性的方式中,PCIe链路的链路属性包括下述一项或多项:PCIe链路的连接状态、PCIe链路的级联关系、PCIe链路的带宽或PCIe链路的设备数。In an exemplary manner, the link attribute of the PCIe link includes one or more of the following: the connection status of the PCIe link, the cascading relationship of the PCIe link, the bandwidth of the PCIe link, or the device of the PCIe link number.
一种示例性的方式中,处理单元702,具体用于利用PCIe系统中的链路开关,将业务调度到任一条PCIe链路上进行处理;或者,利用PCIe系统中的寄存器,将业务调度到任一条PCIe链路上进行处理。In an exemplary manner, the
一种示例性的方式中,处理单元702,还用于在预设时间内没有接收到触发操作的情况下,利用业务的业务类型和多条PCIe链路的链路质量等级,为业务选择目标PCIe链路。In an exemplary manner, the
一种示例性的方式中,处理单元702,具体用于根据业务类型确定业务的带宽;根据PCIe链路的链路质量等级,在多条PCIe链路中选择满足业务的带宽的目标PCIe链路。In an exemplary manner, the
在一种可能的实现方式中,PCIe链路处理装置还可以包括:通信单元704。其中,通信单元704用于支持PCIe链路处理装置与其它设备交互。示例性的,当该PCIe链路处理装置是终端设备时,该通信单元704可以是通信接口或接口电路。当该PCIe链路处理装置是终端设备内的芯片或芯片系统时,该通信单元704可以是通信接口。例如通信接口可以为输入/输出接口、管脚或电路等。In a possible implementation manner, the PCIe link processing apparatus may further include: a
图8为本申请实施例提供的一种PCIe链路处理装置的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of a PCIe link processing apparatus according to an embodiment of the present application.
如图8所示,该网络管理装置包括:存储器801、处理器802和显示屏804。该通信装置还可以包括接口电路803,其中,存储器801、处理器802、接口电路803和显示屏804可以通信;示例性的,存储器801、处理器802、接口电路803和显示屏804可以通过通信总线通信,存储器801用于存储计算机执行指令,由处理器802来控制执行,并由显示屏804来执行显示,从而实现本申请下述实施例提供的分屏显示方法。As shown in FIG. 8 , the network management apparatus includes: a
可能的实现方式中,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。In a possible implementation manner, the computer-executed instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.
可选的,接口电路803还可以包括发送器和/或接收器。可选的,上述处理器802可以包括一个或多个CPU,还可以是其他通用处理器、数字信号处理器(digital signalprocessor,DSP)、专用集成电路(application specific integrated circuit,ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。Optionally, the
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,则功能可以作为一个或多个指令或代码存储在计算机可读介质上或者在计算机可读介质上传输。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。Embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media can include both computer storage media and communication media and also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.
一种可能的实现方式中,计算机可读介质可以包括RAM,ROM,只读光盘(compactdisc read-only memory,CD-ROM)或其它光盘存储器,磁盘存储器或其它磁存储设备,或目标于承载的任何其它介质或以指令或数据结构的形式存储所需的程序代码,并且可由计算机访问。而且,任何连接被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,数字用户线(Digital Subscriber Line,DSL)或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘,激光盘,光盘,数字通用光盘(Digital Versatile Disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。上述的组合也应包括在计算机可读介质的范围内。In one possible implementation, the computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or a Any other medium or the required program code in the form of instructions or data structures and can be accessed by the computer. Also, any connection is properly termed a computer-readable medium. For example, if you use coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies (such as infrared, radio, and microwave) to transmit software from a website, server, or other remote source, coaxial Cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc, as used herein, includes compact disc, laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processing unit of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processing unit of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
本申请结合多个流程图详细描述了多个实施例,但应理解,这些流程图及其相应的实施例的相关描述仅为便于理解而示例,不应对本申请构成任何限定。各流程图中的每一个步骤并不一定是必须要执行的,例如有些步骤是可以跳过的。并且,各个步骤的执行顺序也不是固定不变的,也不限于图中所示,各个步骤的执行顺序应以其功能和内在逻辑确定。The present application describes multiple embodiments in detail with reference to multiple flowcharts, but it should be understood that the related descriptions of these flowcharts and their corresponding embodiments are only examples for ease of understanding, and should not constitute any limitation to the present application. Every step in each flowchart is not necessarily required to be executed, for example, some steps can be skipped. Moreover, the execution sequence of each step is not fixed, nor limited to what is shown in the figures, and the execution sequence of each step should be determined by its function and internal logic.
本申请描述的多个实施例之间可以任意组合或步骤之间相互交叉执行,各个实施例的执行顺序和各个实施例的步骤之间的执行顺序均不是固定不变的,也不限于图中所示,各个实施例的执行顺序和各个实施例的各个步骤的交叉执行顺序应以其功能和内在逻辑确定。The multiple embodiments described in this application may be arbitrarily combined or the steps may be executed alternately. The execution sequence of each embodiment and the execution sequence of the steps in each embodiment are not fixed, nor are they limited to the drawings. As shown, the execution sequence of each embodiment and the cross execution sequence of each step of each embodiment should be determined by its functions and inherent logic.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包括这些改动和变型在内。Although the application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of the application. Accordingly, this specification and drawings are merely exemplary illustrations of the application as defined by the appended claims, and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011079164.XA CN114328327B (en) | 2020-10-10 | 2020-10-10 | PCIe link processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011079164.XA CN114328327B (en) | 2020-10-10 | 2020-10-10 | PCIe link processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114328327A true CN114328327A (en) | 2022-04-12 |
CN114328327B CN114328327B (en) | 2024-07-19 |
Family
ID=81031828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011079164.XA Active CN114328327B (en) | 2020-10-10 | 2020-10-10 | PCIe link processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114328327B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114584621A (en) * | 2022-04-18 | 2022-06-03 | 中国农业银行股份有限公司 | Data sending method and device |
TWI882555B (en) * | 2023-07-07 | 2025-05-01 | 大陸商蘇州倍昊電子科技有限公司 | Simplified pcie channel switchs, data transmission systems, electronic equipments and methods |
WO2025093940A1 (en) * | 2023-10-31 | 2025-05-08 | International Business Machines Corporation | Maximizing bandwidth utilization by selecting appropriate mode of operation for pcie card |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030147400A1 (en) * | 2002-02-01 | 2003-08-07 | Fujitsu Network Communications, Inc. | Optimizing path selection for multiple service classes in a network |
US20170093645A1 (en) * | 2015-09-21 | 2017-03-30 | Splunk Inc. | Displaying Interactive Topology Maps Of Cloud Computing Resources |
CN109002591A (en) * | 2018-06-26 | 2018-12-14 | 郑州云海信息技术有限公司 | A kind of method and system from server master board end adjustment PCIe topology |
-
2020
- 2020-10-10 CN CN202011079164.XA patent/CN114328327B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030147400A1 (en) * | 2002-02-01 | 2003-08-07 | Fujitsu Network Communications, Inc. | Optimizing path selection for multiple service classes in a network |
US20170093645A1 (en) * | 2015-09-21 | 2017-03-30 | Splunk Inc. | Displaying Interactive Topology Maps Of Cloud Computing Resources |
CN109002591A (en) * | 2018-06-26 | 2018-12-14 | 郑州云海信息技术有限公司 | A kind of method and system from server master board end adjustment PCIe topology |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114584621A (en) * | 2022-04-18 | 2022-06-03 | 中国农业银行股份有限公司 | Data sending method and device |
CN114584621B (en) * | 2022-04-18 | 2024-06-07 | 中国农业银行股份有限公司 | Data transmission method and device |
TWI882555B (en) * | 2023-07-07 | 2025-05-01 | 大陸商蘇州倍昊電子科技有限公司 | Simplified pcie channel switchs, data transmission systems, electronic equipments and methods |
WO2025093940A1 (en) * | 2023-10-31 | 2025-05-08 | International Business Machines Corporation | Maximizing bandwidth utilization by selecting appropriate mode of operation for pcie card |
Also Published As
Publication number | Publication date |
---|---|
CN114328327B (en) | 2024-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210208752A1 (en) | Apparatus and method for displaying chatroom associated with messenger application | |
CN114328327A (en) | PCIe link processing method and device | |
US9838294B2 (en) | Network development and testing as a cloud service | |
US10148556B2 (en) | Link aggregation group (LAG) support on a software-defined network (SDN) | |
CN110505675B (en) | Network connection method and device, storage medium and communication terminal | |
US10063427B1 (en) | Visualizing and interacting with resources of an infrastructure provisioned in a network | |
CN113890826A (en) | Method for computer network, network device and storage medium | |
CN107516090A (en) | Integrated face recognition method and system | |
US11237881B2 (en) | Message connector as a service to migrate streaming applications into cloud nativity | |
CN105094983A (en) | Computer, control device and data processing method | |
CN104836853A (en) | Method and apparatus for business arrangement | |
CN110377429A (en) | A kind of control method, device, server and storage medium that real-time task calculates | |
US20180012237A1 (en) | Inferring user demographics through categorization of social media data | |
CN115658301A (en) | Storage resource scheduling method, device, storage medium and electronic equipment | |
CN115767092A (en) | Image transmission method, cloud desktop and image transmission system, equipment and product | |
CN108737163B (en) | SDN controller application performance analysis method based on OpenFlow protocol | |
US9282041B2 (en) | Congestion profiling of computer network devices | |
CN110413675A (en) | A control method, device, server and storage medium for real-time task computing | |
US20180189090A1 (en) | Exposing Hardware Work Queues as Virtual Devices in Virtual Machines | |
CN113487041A (en) | Horizontal federal learning method, device and storage medium | |
TW201621698A (en) | Method of resource allocation in a server system | |
CN111786887A (en) | Data forwarding method, apparatus, computing device, and medium executed by control device | |
US11593279B2 (en) | Graph-based data flow control system | |
CN111274032A (en) | Task processing system and method, and storage medium | |
CN116405395A (en) | Method, device and storage medium for network hard slicing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |