Topological graph generation method and computing device
By generating a target topology map, we can quickly understand the performance impact of preset tasks in distributed clusters on target processing components, solve the problem of time-consuming analysis in the existing technology and improve the performance optimization efficiency.
Patent Information
- Application Number
- CN202410993326.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-01
AI Technical Summary
The prior art is time-consuming to analyze the performance impact of preset tasks on multiple target processing components in a distributed cluster, resulting in low performance optimization efficiency.
By generating the target topology map corresponding to the preset task, based on multiple operating performance information and cluster network information, we can clearly and quickly understand the operating performance information of each target processing component, so as to quickly determine the performance impact and speed up performance optimization processing.
Save time to determine the performance impact of each target processing component, and improve the performance optimization efficiency of multiple target processing components.
Smart Images

Figure CN118890282A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of computing devices, and in particular to a topology map generation method and a computing device. Background Art
[0002] Distributed clusters can use distributed training methods to execute preset tasks, for example, the preset tasks can be model training tasks. In this process, it is usually necessary to analyze the impact of the execution process of the preset tasks on the performance of the cluster in order to reduce the execution cost of the preset tasks.
[0003] Typically, a cluster may include multiple processing components, and multiple target processing components may be determined from the multiple processing components to execute a preset task. However, currently, it usually takes a long time to analyze the performance impact of the execution process of the preset task on the multiple target processing components, resulting in a long time spent on performance optimization of the multiple target processing components based on the performance impact, and a low performance optimization efficiency. Summary of the invention
[0004] The embodiments of the present application provide a topology map generation method and computing device, which can save time in determining the performance impact of each target processing component, speed up the performance optimization processing of each target processing component, and improve the performance optimization efficiency of multiple target processing components.
[0005] In a first aspect, an embodiment of the present application provides a method for generating a topology map, the method comprising:
[0006] Determine a plurality of target processing components among the plurality of processing components of the cluster, wherein the plurality of target processing components are used to execute preset tasks;
[0007] Acquire multiple operation performance information of multiple target processing components, the multiple operation performance information including performance information of each target processing component when executing a preset task;
[0008] Based on multiple operating performance information and cluster networking information of the cluster, a target topology map corresponding to the preset task is generated. The cluster networking information includes component identifiers of multiple processing components and connection relationships between multiple processing components. The target topology map is used to perform performance optimization processing on multiple target processing components.
[0009] In the above technical scheme, by generating a target topology map corresponding to a preset task, the user can clearly and quickly understand the operating performance information of each target processing component when executing the preset task based on the target topology map, which is convenient for the user to quickly determine the performance impact of the execution process of the preset task on each target processing component, saving the time for determining the performance impact of each target processing component, thereby speeding up the performance optimization processing of each target processing component and improving the performance optimization efficiency of these multiple target processing components.
[0010] In a possible implementation, determining multiple target processing components among multiple processing components of a cluster includes:
[0011] Obtaining task information of a preset task, the task information includes multiple task processes of the preset task;
[0012] For any task process, determining a first processing component corresponding to the task process from among multiple processing components, the first processing component being used to execute the task process;
[0013] According to the connection relationship between the first processing component corresponding to the task process and the multiple processing components in the cluster networking information, a second processing component corresponding to the task process is determined from the multiple processing components, the second processing component is associated with the first processing component, and the second processing component is used to assist the first processing component in executing the task process;
[0014] According to the first processing component and the second processing component corresponding to each task process, a plurality of target processing components are obtained.
[0015] In the above technical scheme, the task information of the preset task can be obtained, and the target processing component corresponding to each task process in the task information can be quickly and accurately determined, so that based on the correspondence between the task process and the target processing component, a target topology map of the task perspective corresponding to the preset task can be quickly generated, so that the user can intuitively see the target processing components corresponding to each task process when the preset task is executed, as well as the communication link status of each task process based on the target topology map.
[0016] In a possible implementation, determining a first processing component corresponding to a task process among a plurality of processing components includes:
[0017] Determine the target environment for executing the mission process;
[0018] Determining a target component identifier for running a first processing component of the target environment according to the target environment and the mapping relationship, the mapping relationship being used to indicate a component identifier for running a processing component of each environment;
[0019] A first processing component corresponding to the task process is determined based on the target component identifier.
[0020] In the above technical scheme, the target environment for executing each task process can be determined, and the first processing component corresponding to the target environment can be quickly found based on the mapping relationship, thereby improving the efficiency of determining the first processing component of each task process, and further facilitating improving the efficiency of determining multiple target processing components.
[0021] In a possible implementation manner, the task information further includes task distribution information of preset tasks; and the method further includes:
[0022] Generate a task distribution diagram corresponding to the preset task according to the task distribution information;
[0023] Among them, the task distribution diagram is used to indicate the distributed processing type corresponding to each task process of the preset task, and the distributed processing type includes at least one of the following: data parallelism, pipeline parallelism and model parallelism.
[0024] In the above technical solution, by generating a task distribution graph of the preset task, the user can clearly and quickly understand the distributed processing process of the preset task based on the task distribution graph.
[0025] In a possible implementation, generating a target topology map corresponding to a preset task according to a plurality of operation performance information and cluster networking information of a cluster includes:
[0026] Determine, among the plurality of target processing components, a plurality of feature processing components corresponding to the plurality of task processes, wherein the feature processing components include a first processing component and / or a second processing component corresponding to the task process;
[0027] Generate a target topology map according to the process identifier of the task process corresponding to each feature processing component, multiple operation performance information and cluster networking information;
[0028] The target topology diagram includes the connection relationship between multiple target processing components, the component identification and operation performance information of each target processing component, and the process identification of the task process corresponding to each feature processing component.
[0029] In the above technical scheme, multiple feature processing components corresponding to multiple task processes can be determined, and a target topology map corresponding to the preset task can be generated according to the process identifier of the task process corresponding to each feature processing component, multiple operating performance information and cluster networking information, so that the user can intuitively see the mapping relationship between each task process and the target processing component in the cluster based on the target topology map, and thus can intuitively see the operating performance information of the target processing component corresponding to the task process when each task process is running, so that the user can accurately analyze the performance impact of each task process on each target processing component, which is conducive to improving the accuracy of performance optimization of multiple target processing components, and is conducive to speeding up the speed of performance optimization processing of each target processing component, thereby improving the performance optimization efficiency of these multiple target processing components.
[0030] In a possible implementation, generating a target topology map corresponding to a preset task according to a plurality of operation performance information and cluster networking information of a cluster includes:
[0031] Generate a hardware topology diagram of the cluster according to component identifiers of the multiple processing components and connection relationships between the multiple processing components in the cluster networking information;
[0032] A target topology map is generated according to the multiple operation performance information and the hardware topology map. The target topology map includes the connection relationship between the multiple target processing components, the component identification of each target processing component and the operation performance information.
[0033] In the above technical solution, a target topology map of a preset task can be quickly and easily generated based on the hardware topology map and multiple operation performance information, so that users can intuitively view the operation performance information of each target processing component.
[0034] In a possible implementation, generating a target topology map according to a plurality of operation performance information and a hardware topology map includes:
[0035] determining initial performance information for a plurality of processing components;
[0036] generating an initial topology map based on initial performance information of the plurality of processing components and the hardware topology map;
[0037] A target topology map is obtained according to the initial topology map and multiple operation performance information.
[0038] In the above technical solution, the hardware topology of multiple processing components in the cluster can be obtained, and the initial performance information of each processing component can be determined, and based on the hardware topology and the initial performance information of each processing component, the initial topology of the cluster is generated. Through the initial topology, it is easy to compare the performance changes of each target processing component in the cluster before and after the execution of the preset task, so that the user can optimize the performance of each target processing component based on the performance changes of each target processing component.
[0039] In a possible implementation, the cluster includes a switch and a server; determining initial performance information of a plurality of processing components includes:
[0040] receiving initial performance information of each processing component in the server reported by the server;
[0041] Collect initial performance information of the switch;
[0042] Based on the initial performance information of each component in the server and the initial performance information of the switch, initial performance information of the plurality of processing components is determined.
[0043] In the above technical solution, the multiple processing components of the cluster include the processing components (CPU, GPU, NIC, PCIe switch or memory, etc.) in the servers in the cluster and the switches in the cluster. Based on the initial performance information of the processing components in the servers reported by the servers and the initial performance information of the switches, the initial performance information of the multiple processing components in the cluster can be obtained, so that the impact of the execution process of the preset task on the performance of each processing component in the cluster can be analyzed based on the initial performance information of the multiple processing components in the cluster.
[0044] In a possible implementation, generating a target topology map corresponding to a preset task according to a plurality of operation performance information and cluster networking information of a cluster includes:
[0045] In the cluster networking information, target networking information corresponding to the multiple target processing components is determined, where the target networking information includes a component identifier of each target processing component and a connection relationship between the multiple target processing components;
[0046] A target topology map is generated according to the target networking information and the multiple operation performance information. The target topology map includes the connection relationship between the multiple target processing components, the component identification of each target processing component and the operation performance information.
[0047] In the above technical solution, the target networking information corresponding to multiple target processing components can be extracted from the cluster networking information, and a target topology map can be generated based on the target networking information and multiple operation performance information. By screening the cluster networking information, the amount of calculation for the management server to subsequently generate the target topology map can be reduced, and the efficiency of the management server in generating the target topology map can be improved. Based on the target topology map, the user can clearly and quickly understand the operation performance information of each target processing component when executing a preset task, which is convenient for the user to quickly determine the performance impact of the execution process of the preset task on each target processing component, saving the time to determine the performance impact of each target processing component, thereby speeding up the speed of performance optimization processing of each target processing component and improving the performance optimization efficiency of these multiple target processing components.
[0048] In a second aspect, an embodiment of the present application provides a topology map generating device, including:
[0049] A determination module, used to determine a plurality of target processing components among a plurality of processing components of the cluster, wherein the plurality of target processing components are used to execute a preset task;
[0050] An acquisition module, used to acquire multiple operation performance information of multiple target processing components, wherein the multiple operation performance information includes performance information of each target processing component when executing a preset task;
[0051] A generation module is used to generate a target topology map corresponding to a preset task based on multiple operating performance information and cluster networking information of the cluster. The cluster networking information includes component identifiers of multiple processing components and connection relationships between multiple processing components. The target topology map is used to perform performance optimization processing on multiple target processing components.
[0052] In a possible implementation manner, the determination module is specifically configured to:
[0053] Obtaining task information of a preset task, the task information includes multiple task processes of the preset task;
[0054] For any task process, determining a first processing component corresponding to the task process from among multiple processing components, the first processing component being used to execute the task process;
[0055] According to the connection relationship between the first processing component corresponding to the task process and the multiple processing components in the cluster networking information, a second processing component corresponding to the task process is determined from the multiple processing components, the second processing component is associated with the first processing component, and the second processing component is used to assist the first processing component in executing the task process;
[0056] According to the first processing component and the second processing component corresponding to each task process, a plurality of target processing components are obtained.
[0057] In a possible implementation manner, the determination module is further specifically configured to:
[0058] Determine the target environment for executing the mission process;
[0059] Determining a target component identifier for running a first processing component of the target environment according to the target environment and the mapping relationship, the mapping relationship being used to indicate a component identifier for running a processing component of each environment;
[0060] A first processing component corresponding to the task process is determined based on the target component identifier.
[0061] In a possible implementation manner, the task information further includes task distribution information of preset tasks; and the generating module is specifically used for:
[0062] Generate a task distribution diagram corresponding to the preset task according to the task distribution information;
[0063] Among them, the task distribution diagram is used to indicate the distributed processing type corresponding to each task process of the preset task, and the distributed processing type includes at least one of the following: data parallelism, pipeline parallelism and model parallelism.
[0064] In a possible implementation manner, the generating module is further specifically used for:
[0065] Determine, among the plurality of target processing components, a plurality of feature processing components corresponding to the plurality of task processes, wherein the feature processing components include a first processing component and / or a second processing component corresponding to the task process;
[0066] Generate a target topology map according to the process identifier of the task process corresponding to each feature processing component, multiple operation performance information and cluster networking information;
[0067] The target topology diagram includes the connection relationship between multiple target processing components, the component identification and operation performance information of each target processing component, and the process identification of the task process corresponding to each feature processing component.
[0068] In a possible implementation manner, the generating module is further specifically used for:
[0069] Generate a hardware topology diagram of the cluster according to component identifiers of the multiple processing components and connection relationships between the multiple processing components in the cluster networking information;
[0070] A target topology map is generated according to the multiple operation performance information and the hardware topology map. The target topology map includes the connection relationship between the multiple target processing components, the component identification of each target processing component and the operation performance information.
[0071] In a possible implementation manner, the generating module is further specifically used for:
[0072] determining initial performance information for a plurality of processing components;
[0073] generating an initial topology map based on initial performance information of the plurality of processing components and the hardware topology map;
[0074] A target topology map is obtained according to the initial topology map and multiple operation performance information.
[0075] In a possible implementation, the cluster includes a switch and a server; and the generating module is further configured to:
[0076] receiving initial performance information of each processing component in the server reported by the server;
[0077] Collect initial performance information of the switch;
[0078] Based on the initial performance information of each component in the server and the initial performance information of the switch, initial performance information of the plurality of processing components is determined.
[0079] In a possible implementation manner, the generating module is further specifically used for:
[0080] In the cluster networking information, target networking information corresponding to the multiple target processing components is determined, where the target networking information includes a component identifier of each target processing component and a connection relationship between the multiple target processing components;
[0081] A target topology map is generated according to the target networking information and the multiple operation performance information. The target topology map includes the connection relationship between the multiple target processing components, the component identification of each target processing component and the operation performance information.
[0082] The topology map generating device provided in the embodiment of the present application can execute the technical solution as described in any one of the first aspects, and its beneficial effects are similar, which will not be repeated here.
[0083] In a third aspect, an embodiment of the present application provides a computing device, including: a processor and a memory; the processor and the memory are coupled;
[0084] The memory is used to store computer instructions;
[0085] The processor is used to execute computer instructions stored in the memory to perform the method as described in any one of the first aspects.
[0086] The computing device provided in the embodiment of the present application can execute the technical solution as described in any one of the first aspects, and its beneficial effects are similar, which will not be repeated here.
[0087] In a fourth aspect, an embodiment of the present application provides a chip, wherein the chip is used to implement the method as described in any one of the first aspects.
[0088] The chip provided in the embodiment of the present application can execute the technical solution as described in any one of the first aspects, and its beneficial effects are similar, which will not be repeated here.
[0089] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a computer, a method as described in any one of the first aspects is implemented.
[0090] The computer-readable storage medium provided in the embodiment of the present application can execute the technical solution as described in any one of the first aspects, and its beneficial effects are similar and will not be repeated here.
[0091] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in any one of the first aspects.
[0092] The computer program product provided in the embodiment of the present application can execute the technical solution as described in any one of the first aspects, and its beneficial effects are similar and will not be repeated here.
[0093] The topology map generation method and computing device provided in the embodiments of the present application can determine multiple target processing components for executing preset tasks from multiple processing components in a cluster, obtain multiple operating performance information of the multiple target processing components when executing the preset tasks, and generate a target topology map based on the multiple operating performance information and cluster networking information of the cluster, so that users can clearly and quickly understand the operating performance information of each target processing component when executing the preset task based on the target topology map, which is convenient for users to quickly determine the performance impact of the execution process of the preset task on each target processing component, saving time in determining the performance impact of each target processing component, thereby speeding up the speed of performance optimization processing of each target processing component and improving the performance optimization efficiency of these multiple target processing components. BRIEF DESCRIPTION OF THE DRAWINGS
[0094] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0095] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0096] Figure 2 Schematic diagram of the process of generating a topology map provided in the embodiment of the present application Figure 1 ;
[0097] Figure 3 Schematic diagram of the process of generating a topology map provided in the embodiment of the present application Figure 2 ;
[0098] Figure 4 A schematic diagram of a task distribution diagram provided in an embodiment of the present application;
[0099] Figure 5 A schematic diagram of a process for generating a target topology map provided in an embodiment of the present application;
[0100] Figure 6 Schematic diagram of the process of generating a topology map provided in the embodiment of the present application Figure 3 ;
[0101] Figure 7 A schematic diagram of another process for generating a target topology map provided in an embodiment of the present application;
[0102] Fig. 8A A schematic diagram of a process for generating a target topology map based on method 1 provided in an embodiment of the present application;
[0103] Figure 8B A schematic diagram of a process for generating a target topology map based on method 2 provided in an embodiment of the present application;
[0104] Fig. 9 Schematic diagram of the process of generating a topology map provided in the embodiment of the present application Figure 4 ;
[0105] Fig.10 A schematic diagram of another process for generating a target topology map provided in an embodiment of the present application;
[0106] Fig.11 A schematic diagram of the structure of a topology map generating device provided in an embodiment of the present application;
[0107] Fig.12 A schematic diagram of the hardware structure of a computing device provided in an embodiment of the present application.
[0108] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0109] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.
[0110] First, the relevant terms involved in the embodiments of the present application are introduced.
[0111] Distributed training: Distributed training refers to the use of multiple machines to process training data in parallel, thereby accelerating the training process of deep learning models.
[0112] Data parallelism: Data parallelism is a technique that divides data into small chunks and then processes these chunks simultaneously on multiple processors.
[0113] Model parallelism: Model parallelism is the process of splitting a large model into multiple parts and distributing these parts across different processors or computing devices.
[0114] Pipeline parallelism: Pipeline parallelism is a technique that breaks down a computational process into multiple stages and distributes these stages to different processors for simultaneous execution.
[0115] Rank: used to represent each process or node involved in the calculation.
[0116] The embodiment of the present application provides a topology map generation method, the method comprising: determining multiple target processing components among multiple processing components of a cluster, the multiple target processing components are used to perform preset tasks; obtaining multiple operation performance information of the multiple target processing components, the multiple operation performance information including the performance information of each target processing component when performing the preset task; generating a target topology map according to the multiple operation performance information and the cluster networking information of the cluster, the cluster networking information including the component identification of the multiple processing components and the connection relationship between the multiple processing components, the target topology map is used to perform performance optimization processing on the multiple target processing components. In this method, based on the target topology map, it is convenient for users to clearly and quickly understand the operation performance information of each target processing component when performing the preset task, so that users can quickly determine the performance impact of the execution process of the preset task on each target processing component based on the performance information of each target processing component, and quickly perform performance optimization processing on each target processing component, saving the time of determining the performance impact of each target processing component and the time of performing performance optimization on each target processing component, which is conducive to improving the performance optimization efficiency of these multiple target processing components.
[0117] In order to facilitate understanding of the topology map generation method provided in the embodiment of the present application, Figure 1 , the application scenarios provided by the embodiments of the present application are introduced.
[0118] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 The system architecture corresponding to this application scenario may include a management server and a cluster. A switch collector and a performance visualization system are deployed in the management server. The cluster includes multiple servers and multiple switches. A server collector and a task information collector are deployed in each server.
[0119] Exemplarily, the cluster may be an artificial intelligence (AI) cluster. Of course, the cluster may also be other clusters.
[0120] When the performance visualization system in the management server is started, the management server can interact with the server collector in each server in the cluster through the performance visualization system to obtain the internal networking information and performance information of each server through the server collector in each server. The server collector in each server can collect the performance information of the server in real time and report the performance information of the server to the performance visualization system in real time.
[0121] The internal networking information of the server includes the identification of multiple processing components of the server and the connection relationship between the multiple processing components, and the performance information of the server includes the performance information of each processing component in the server. The multiple processing components of the server may include a central processing unit (CPU), a graphics processing unit (GPU), a network interface card (NIC), a high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIe) switch and memory.
[0122] The management server can also control the switch collector to collect the connection relationship and performance information of each switch in the cluster through the performance visualization system. Optionally, when the performance visualization system is started, a collection instruction can be sent to the switch collector, and the switch collector reports the connection relationship and performance information of each switch in the cluster to the performance visualization system based on the collection instruction. The switch collector can be used to receive the performance information reported by each switch in real time.
[0123] A task scheduling system may be deployed in the cluster, and a calling interface of the task information collector may be provided to the task scheduling system, so that when the task scheduling system schedules the server to execute a preset task, the task information collector in the server may be called based on the calling interface. The task information collector may obtain the task information of the preset task in response to the calling instruction, and report the task information to the performance visualization system in the management server. Exemplarily, the task information collector may be a software development kit (SDK).
[0124] When executing preset tasks based on a cluster, the management server can also use the performance visualization system to generate a target topology map corresponding to the preset task based on the internal networking information of each server and the server's operating performance information reported by the server collector in each server, the connection relationship and operating performance information of each switch reported by the switch collector, and the task information of the preset task reported by the task information collector.
[0125] The management server may determine multiple target processing components for executing the preset task from multiple processing components of the cluster based on the task information reported by the task information collector. When executing the preset task based on multiple target processing components, the management server may also generate a target topology map of the preset task based on the information reported by the server collector and the switch collector of each server. The target topology map may include the connection relationship between the multiple target processing components, the component identification and operation performance information of each target processing component.
[0126] It should be noted that in the embodiment of the present application and the following embodiments, the multiple processing components of the cluster include Figure 1 Each processing component (CPU, GPU, NIC, PCIe switch or memory, etc.) in each server in the cluster and each switch in the cluster are shown.
[0127] In the system architecture provided by the embodiment of the present application, the management server can determine the cluster networking information of the cluster based on the internal networking information of each server and the connection relationship between each switch, and can also generate a hardware topology diagram of the cluster based on the cluster networking information of the cluster, so that users can clearly and directly understand the connection relationship between each processing component in the cluster, and facilitate later maintenance personnel to maintain each processing component in the cluster based on the connection relationship.
[0128] The management server can also generate a target topology map corresponding to each preset task when the cluster executes the preset task, so that the user can clearly and quickly understand the operating performance information of each target processing component when executing the preset task based on the target topology map, so that the user can quickly determine the impact of the execution process of the preset task on the performance of each target processing component based on the performance information of each target processing component, and quickly optimize the performance of each target processing component, which is conducive to improving the performance optimization efficiency of these multiple target processing components.
[0129] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0130] Figure 2 Schematic diagram of the process of generating a topology map provided in the embodiment of the present application Figure 1 . See Figure 2 , the method comprising:
[0131] S201. Determine multiple target processing components among multiple processing components in a cluster.
[0132] The topology map generation method provided in the embodiment of the present application can be Figure 1 The management server (or the performance visualization system in the management server) in the embodiment is executed. It should be noted that the multiple processing components of the cluster in the embodiment of the present application include Figure 1 Multiple switches in the embodiment, and CPU, GPU, network card, PCIe switch and memory in each server.
[0133] The plurality of target processing components are used to perform preset tasks. In one example, the preset task may be a model training task.
[0134] The multiple target processing components may be some or all of the multiple processing components.
[0135] It should be noted that the detailed process of determining multiple target processing components will be described in Figure 3 The details are described in the examples.
[0136] S202: Acquire multiple operation performance information of multiple target processing components.
[0137] The multiple operation performance information includes the performance information of each target processing component when executing the preset task. The management server can receive the operation performance information of each server reported by each server collector in the cluster, and receive the operation performance information of each switch reported by each switch through the switch collector, and determine the multiple operation performance information of the multiple target processing components through the operation performance information of each server and the operation performance information of each switch.
[0138] Target processing components can include switches, GPUs, CPUs, network cards, PCIe switches, and memory.
[0139] The performance information may include basic performance information. The basic performance information may be used to reflect the performance information that has a significant impact on each processing component. In some embodiments, the performance information may also include customized performance information, which may be used to reflect the performance information customized by the user for each processing component. The performance information corresponding to each processing component may be as shown in Table 1:
[0140] Table 1
[0141] Target processing components Basic performance information Custom performance information switch Switch ID, bandwidth and utilization of each port on the switch Switch throughput CPU CPU ID, CPU utilization CPU memory usage GPU GPU ID, GPU utilization GPU memory usage Network Card NIC ID, bandwidth and utilization of each port of the NIC Network card throughput PCIe Switch Switch ID, bandwidth and utilization of each port on the switch Switch throughput Memory Memory usage /
[0142] It should be noted that the data in Table 1 is used to exemplarily illustrate the performance information corresponding to each target processing component. In some examples, the performance information corresponding to each target processing component may also include other performance information. The embodiments of the present application do not limit the type of performance information corresponding to each target processing component.
[0143] In Table 1, the throughput of the switch may include but is not limited to the data volume of the received traffic and the data volume of the sent traffic of the switch, and the throughput of the network card may include but is not limited to the data volume of the received traffic and the data volume of the sent traffic of the network card.
[0144] S203: Generate a target topology map corresponding to a preset task according to the plurality of operation performance information and cluster networking information of the cluster.
[0145] The cluster networking information may include component identifiers of multiple processing components and connection relationships between the multiple processing components.
[0146] The cluster networking information may be presented in a table. For example, the cluster networking information may be as shown in Table 2:
[0147] Table 2
[0148]
[0149] As shown in Table 2, CPU1, GPU1, and GPU2 in server 1 are connected to PCIe switch 1 in server 1 respectively, and PCIe switch 1 is also connected to NIC1 in server 1 through port 1 and to NIC2 in server 1 through port 2. NIC1 in server 1 is connected to switch 1 (port 1), NIC2 in server 1 is connected to switch 2 (port 1), and switch 1 is also connected to switch 3.
[0150] The target topology map may include the connection relationship between multiple target processing components, the component identification and operation performance information of each target processing component. It should be noted that the detailed process of generating the target topology map will be described in Figures 3 to 10 The details are described in the examples.
[0151] After the target topology map is generated, the target topology map may be displayed, or sent to a target client, which is a client for monitoring the execution status of a preset task.
[0152] By displaying the target topology map, the user can clearly and quickly understand the operating performance information of each target processing component when executing the preset task. By sending the target topology map to the target client, the target client can monitor the execution status of the preset task based on the target topology map.
[0153] The target topology map can be used to perform performance optimization processing on multiple target processing components.
[0154] In a possible implementation, based on the operating performance information of each target processing component in the target topology diagram, a processing component to be optimized can be determined from multiple target processing components; prompt information is generated, and the prompt information is used to prompt the processing component to be optimized to perform performance optimization processing.
[0155] The processing component to be optimized may be a target processing component having alarm performance information, and the alarm performance information is used to indicate that the index value of the performance index of the target processing component is greater than a preset threshold. For example, for a CPU in the target processing component, the performance index includes CPU utilization and CPU memory occupancy. If the CPU utilization is higher than the utilization threshold, and / or the CPU memory occupancy is higher than the memory occupancy threshold, then the CPU utilization and / or the CPU memory occupancy is alarm performance information.
[0156] In one implementation, the alarm performance information can be marked in the target topology map so that the user can quickly determine the alarm performance information based on the target topology map, and then quickly determine the components to be optimized, and perform performance optimization processing on the components to be optimized based on the alarm performance information, which is beneficial to improving the performance optimization efficiency of the target processing components.
[0157] It is understandable that the preset task may be one or more. If there are multiple preset tasks, the management server may execute steps S201 to S203 for each preset task respectively to obtain a target topology map corresponding to each preset task.
[0158] The topology map generation method provided in the embodiment of the present application can determine multiple target processing components for executing preset tasks from multiple processing components of a cluster, obtain multiple operating performance information of the multiple target processing components when executing the preset tasks, and generate a target topology map based on the multiple operating performance information and the cluster networking information of the cluster. By generating a target topology map corresponding to the preset task, the method enables the user to clearly and quickly understand the operating performance information of each target processing component when executing the preset task based on the target topology map, which facilitates the user to quickly determine the performance impact of the execution process of the preset task on each target processing component, saves the time of determining the performance impact of each target processing component, thereby speeding up the speed of performance optimization processing of each target processing component and improving the performance optimization efficiency of these multiple target processing components.
[0159] The topology map generation method provided in the embodiment of the present application also involves a process of generating a target topology map corresponding to a preset task according to a plurality of operation performance information and cluster networking information of the cluster. Figures 3 to 10 , several methods of generating the target topology map are described in detail.
[0160] Figure 3 Schematic diagram of the process of generating a topology map provided in the embodiment of the present application Figure 2 . See Figure 3 , the method comprising:
[0161] S301, obtaining task information of a preset task.
[0162] The task information includes multiple task processes of the preset task, and each task process can be identified as a Rank.
[0163] This method can be Figure 1 The management server (or the performance visualization system in the management server) in the embodiment is executed, and the management server can receive the task information of the preset task reported by the task information collector through the performance visualization system.
[0164] The task information may also include task distribution information of the preset task, and the management server may also generate a task distribution map corresponding to the preset task according to the task distribution information. The task distribution map is used to indicate the distributed processing type corresponding to each task process of the preset task, and the distributed processing type may include at least one of the following: data parallelism, pipeline parallelism, and model parallelism.
[0165] Typically, a preset task can use at least one of the following three types of distributed processing: data parallelism, model parallelism, and pipeline parallelism to perform distributed processing on multiple task processes. Among them:
[0166] Data parallelism: The data to be processed by the preset task can be split into multiple sub-data, and these multiple sub-data can be processed in parallel. Multiple task processes can be used to process each sub-data.
[0167] Pipeline parallelism: The execution process of a preset task can be split into multiple sub-execution processes, and these multiple sub-execution processes can be executed in parallel. Multiple task processes can be used to execute each sub-execution process.
[0168] Model parallelism: Each sub-execution process of a preset task can be processed using multiple models, each model can be applied to multiple sub-execution processes, and these multiple models can be processed in parallel.
[0169] The task information may also include task distribution information, which is used to indicate the distributed processing types corresponding to the multiple task processes. The task distribution information may include: a data identifier, a pipeline identifier, and a model identifier corresponding to each task process.
[0170] A task distribution graph corresponding to the preset task may be generated according to the task distribution information. Optionally, a generation template corresponding to the task distribution graph may be determined; and the task distribution graph may be generated based on the generation template and the task distribution information.
[0171] Figure 4 A schematic diagram of a task distribution diagram provided in an embodiment of the present application. Figure 4 The task distribution diagram is used to illustrate that the preset task includes 12 task processes (Rank0~Rank11).
[0172] The task distribution diagram is used to indicate the task progress required for each sub-data processing, for example, Figure 4 In the task distribution diagram shown, Rank0 to Rank3, Rank8 and Rank9 are task processes required for the first data processing, and Rank4 to Rank7, Rank10 and Rank11 are task processes required for the second data processing.
[0173] It is understandable that each task process that performs the first data processing and each task process that performs the second data processing can exchange data. In the task distribution diagram, the task processes that can exchange data can be marked, so that the user can quickly and directly understand the task processes that can exchange data in different data training processes based on the task distribution diagram. Exemplarily, the task processes that can exchange data can be marked with the same color. Figure 4 If the filling colors of Rank0 and Rank4 are the same, it means that Rank0 and Rank4 can exchange data.
[0174] The task distribution diagram is also used to indicate the task progress corresponding to each sub-execution process. For example, Figure 4 In the task distribution diagram shown, Rank0, Rank2, and Rank8 are task processes corresponding to a sub-execution process.
[0175] The task distribution diagram is also used to indicate the corresponding task progress in each model processing process, for example, Figure 4 In the task distribution diagram shown, the task processes corresponding to the first model are Rank0 and Rank1, and the task processes corresponding to the second model are Rank2 and Rank3. The first model and the second model can be executed in parallel.
[0176] By generating a task distribution graph of the preset task, the user can clearly and quickly understand the distributed processing process of the preset task based on the task distribution graph.
[0177] S302: For any task process, determine a first processing component corresponding to the task process from among multiple processing components.
[0178] The first processing component is used to execute the task process. In the model training scenario, the preset task can be a model training task, and the task process of the model training task can be executed by the GPU in the server, so the GPU is the first processing component.
[0179] In one implementation scenario, multiple task processes of preset tasks can be called based on the K8s system, and the K8s system executes each task process of the preset task based on the Docker environment. In this scenario, for any task process, the first processing component corresponding to the task process can be determined in the following manner: determine the target environment for executing the task process; determine the target component identifier of the first processing component for running the target environment based on the target environment and the mapping relationship; determine the first processing component corresponding to the task process based on the target component identifier.
[0180] The mapping relationship is used to indicate the component identification of the processing component used to run each environment. Based on the mapping relationship, the first processing component corresponding to the target environment can be quickly found, which improves the efficiency of determining the first processing component of each task process, thereby facilitating the efficiency of determining multiple target processing components.
[0181] The environment may be a Docker environment, and the Docker environment may be run in a processing component of a server. For example, a Docker environment may be built based on a GPU. When the Docker environment is deployed based on a processing component, a mapping relationship between the Docker environment and the processing component may be established.
[0182] The component identifier may include a server identifier of a server where the GPU is located and a serial number of the GPU in the server.
[0183] The server identification may include a serial number of the server mainboard, and the serial number of the server mainboard may be determined based on a commonly used hardware information command. For example, the hardware information command may include a dmidecode instruction.
[0184] S303: Determine a second processing component corresponding to the task process from among the multiple processing components according to a connection relationship between the first processing component corresponding to the task process and the multiple processing components in the cluster networking information.
[0185] The second processing component is associated with the first processing component, and the second processing component is used to assist the first processing component in executing the task process.
[0186] There may be multiple second task processing components, and the second processing components of the task process and the first processing component may form a complete communication link.
[0187] The management server can perform this step through the performance visualization system. Specifically, the performance visualization system can receive the internal networking information of each server reported by the server collector and the connection relationship of each switch reported by the switch collector, and determine the cluster networking information of the cluster based on the internal networking information of each server and the connection relationship of each switch, and determine the second processing component of each task process based on the cluster networking information and the first processing component of the task process.
[0188] In the cluster networking information shown in Table 2, assuming that the first processing component of the task process is server 1-GPU2, the second processing component corresponding to server 1-GPU2 can be determined based on the cluster networking information and may include: server 1-CPU1, server 1-PCIe switch 1, server 1-NIC2, switch 2 and switch 3.
[0189] The correspondence between each task process and the first processing component and the second processing component may be stored in a table. The storage form of the correspondence may be a table. Exemplarily, the correspondence may be as shown in Table 3.
[0190] Table 3
[0191]
[0192]
[0193] S304: Obtain multiple target processing components according to the first processing component and the second processing component corresponding to each task process.
[0194] The topology map generation method provided in the embodiment of the present application can obtain the task information of the preset task, and quickly and accurately determine the target processing component corresponding to each task process in the task information, so that based on the correspondence between the task process and the target processing component, a target topology map of the task perspective corresponding to the preset task can be quickly generated, so that the user can intuitively see the target processing components corresponding to each task process when the preset task is executed, as well as the communication link status of each task process based on the target topology map.
[0195] S305: Acquire multiple operation performance information of multiple target processing components.
[0196] It should be noted that the specific execution process of step S305 can refer to the specific execution process of step S202, which will not be repeated here.
[0197] S306. Determine, among the multiple target processing components, multiple feature processing components corresponding to the multiple task processes.
[0198] The feature processing component includes a first processing component and / or a second processing component corresponding to the task process.
[0199] For example, for task process 1 in Table 3, the feature processing component may include server 1-GPU1; or, the feature processing component may include server 1-CPU1, server 1-PCIe switch 1, server 1-NIC2, switch 2 and switch 3; or, the feature processing component may include server 1-GPU1, server 1-CPU1, server 1-PCIe switch 1, server 1-NIC2, switch 2 and switch 3.
[0200] S307: Generate a target topology map according to the process identifier of the task process corresponding to each feature processing component, multiple pieces of operation performance information and cluster networking information.
[0201] The target topology diagram includes the connection relationship between multiple target processing components, the component identification and operation performance information of each target processing component, and the process identification of the task process corresponding to each feature processing component.
[0202] It is understandable that if the feature processing component includes a second processing component of the task process, each feature processing component may correspond to the process identifiers of multiple task processes. For example, in Table 3, switch 1 and switch 3 may correspond to task process 1 and task process 2 at the same time.
[0203] In a possible implementation, a hardware topology map of the cluster can be generated based on component identifiers of multiple processing components in cluster networking information and connection relationships between multiple processing components; a target topology map can be generated based on the corresponding relationship, multiple operating performance information and the hardware topology map.
[0204] Figure 5 A schematic diagram of a process for generating a target topology map provided in an embodiment of the present application. Figure 5 , a hardware topology diagram of the cluster can be generated according to the cluster networking information, and the hardware topology diagram includes component identifiers of multiple processing components in the cluster and connection relationships of the multiple processing components. The multiple processing components may include 3 switches, and 4 NICs, 2 PCIe switches, 4 GPUs and 2 CPUs in each server.
[0205] A target topology map may be generated based on the hardware topology map according to the process identifier of the task process corresponding to each feature processing component and multiple pieces of operation performance information.
[0206] The target topology map may include the following multiple target processing components: CPU1, GPU2, PCIe switch 1 and NIC2 in server 1; CPU1, GPU1, GPU3, PCIe switch 1, PCIe switch 2, NIC1 and NIC4 in server 2; and switch 1, switch 2 and switch 3, and may also include the following multiple non-target processing components: CPU2, GPU1, GPU3, GPU4, PCIe switch 2, NIC1, NIC3 and NIC4 in server 1, and CPU2, GPU2, GPU4, NIC2 and NIC3 in server 2.
[0207] In the target topology diagram, the component identification and operation performance information of the multiple target processing components can be displayed. The operation performance information of the CPU and GPU can include the target utilization rate (UR) and the target occupancy rate (OR). Figure 5 In the target utilization ratio, UR is 目标 , the target occupancy is marked as OR 目标 The operating performance information of PCIe switches, switches and network cards can include target utilization (UR 目标 ) and throughput (thruput, T), the throughput can include target throughput and maximum throughput, where the target throughput represents the actual current throughput of the switch or network card when performing the preset task. Figure 5 The target throughput can be denoted as T 目标 , the maximum throughput can be identified as T 最大 .
[0208] It should be noted that the embodiments of the present application use the operating performance information of the CPU and GPU including the initial utilization rate (UR) and the initial occupancy rate (OR), and the operating performance information of the PCIe switch, switch and network card including the initial utilization rate (UR) and throughput (T) as examples for illustration. In some other examples, the operating performance information of each processing component may also include other types of information. The present application does not limit the type of the operating performance information of each processing component.
[0209] The target topology map may also display the process identifier of the task process corresponding to the first processing component in the target processing component. Figure 5 In the example, the first processing component corresponding to the task process 1 is the server 1 - GPU 2, and the task process 1 is displayed in the display area of the server 1 - GPU 2.
[0210] It should be noted that in this embodiment and subsequent embodiments, an example is given in which the cluster includes 3 switches and 2 servers, each server includes 4 NICs, 2 PCIe switches, 4 GPUs and 2 CPUs. This application does not limit the number of switches and servers in the cluster, and the number of processing components in the server.
[0211] The topology map generation method provided by the embodiment of the present application can determine multiple task processes of the preset task according to the task information of the preset task, and determine the first processing component and the second processing component corresponding to each task process in the multiple processing components of the cluster. The method can generate a target topology map corresponding to the preset task according to the first processing component and / or the second processing component corresponding to each task process, multiple operation performance information and cluster networking information, so that the user can intuitively see the mapping relationship between each task process and the target processing component in the cluster based on the target topology map, so that the operation performance information of the target processing component corresponding to the task process can be intuitively seen when each task process is running, so that the user can accurately analyze the performance impact of each task process on each target processing component, which is conducive to improving the accuracy of the performance optimization of multiple target processing components, and is conducive to accelerating the speed of performance optimization processing of each target processing component, and improving the performance optimization efficiency of these multiple target processing components.
[0212] Figure 6 Schematic diagram of the process of generating a topology map provided in the embodiment of the present application Figure 3 . See Figure 6 , the method comprising:
[0213] S601. Determine multiple target processing components among multiple processing components in a cluster.
[0214] Multiple target processing components are used to perform preset tasks.
[0215] It should be noted that the specific execution process of step S601 may refer to the specific execution process of steps S301 to S304, which will not be described in detail here.
[0216] S602: Acquire multiple operation performance information of multiple target processing components.
[0217] S603: Generate a hardware topology diagram of the cluster according to the component identifiers of the multiple processing components and the connection relationships between the multiple processing components in the cluster networking information.
[0218] The hardware topology diagram is used to indicate the connection relationship between multiple processing components.
[0219] Optionally, cluster networking information of the cluster may be obtained; and a hardware topology diagram may be generated according to the cluster networking information.
[0220] After the hardware topology map is generated, the hardware topology map may be displayed or sent to a target client.
[0221] By generating a hardware topology diagram, users can intuitively understand the connection relationship between the processing components within the cluster, so as to facilitate the subsequent maintenance of the processing components within the cluster.
[0222] After the hardware topology map is generated, there are two ways to generate the target topology map. The first way is described below in conjunction with step S604, and the second way is described in conjunction with steps S605 to S607.
[0223] S604: Generate a target topology map according to the multiple operation performance information and the hardware topology map.
[0224] Optionally, a performance display area corresponding to each target processing component may be added to the hardware topology diagram, and the performance display area corresponding to each target processing component may be filled with the operating performance information of each target processing component.
[0225] Figure 7 This is another schematic diagram of the process of generating a target topology map provided by an embodiment of the present application. Figure 7 , a hardware topology map of the cluster can be generated according to the cluster networking information, and then a target topology map can be generated according to the hardware topology map and the operating performance information of multiple target processing components.
[0226] exist Figure 7 In the target topology diagram shown, the operating performance information corresponding to each target processing component can be displayed, and the performance information of each non-target processing component does not need to be displayed, so that the user can quickly and intuitively see the multiple target processing components corresponding to the preset task.
[0227] In the first method, a target topology map of a preset task can be quickly and easily generated based on the hardware topology map and multiple operation performance information, so that users can intuitively view the operation performance information of each target processing component.
[0228] S605: Determine initial performance information of multiple processing components.
[0229] It can be understood that the initial performance information is the performance information of each processing component before executing the preset task.
[0230] The cluster includes switches and servers. In one implementation, the initial performance information of multiple processing components can be determined in the following manner: receiving initial performance information of each component in the server reported by the server; collecting initial performance information of the switch; and determining the initial performance information of the multiple processing components based on the initial performance information of each component in the server and the initial performance information of the switch.
[0231] A server collector is deployed in the server, and the management server can receive performance information of each component in the corresponding server reported by each server collector through the performance visualization system.
[0232] The management server may be deployed with a switch collector, and the management server may receive performance information reported by each switch through the switch collector.
[0233] The initial performance information of multiple processing components in the cluster can be obtained based on the initial performance information of each processing component in the server reported by each server and the initial performance information of the switch, so that the impact of the execution process of the preset task on the performance of each processing component in the cluster can be analyzed later based on the initial performance information of the multiple processing components in the cluster.
[0234] S606: Generate an initial topology map according to the initial performance information of the multiple processing components and the hardware topology map.
[0235] A performance display area corresponding to each processing component may be added to the hardware topology map, and initial performance information of each processing component may be filled into the corresponding performance display area to obtain an initial topology map.
[0236] S607: Obtain a target topology map according to the initial topology map and multiple pieces of operation performance information.
[0237] Optionally, the initial topology map and multiple pieces of operating performance information may be used to generate a target topology map using the following two methods.
[0238] Method 1: In the initial topology map, the initial performance information of the target processing component can be determined, and the initial performance information of the target processing component can be updated to the running performance information of the target processing component to obtain the target topology map.
[0239] The initial topology map may include topology information of target processing components and topology information of non-target processing components. The topology information may include component identification of each processing component, initial performance information, and connection relationships between each processing component and other processing components.
[0240] Method 2: The topology information of non-target processing components can be deleted in the initial topology map to obtain the initial topology map corresponding to the target processing component; in the initial topology map corresponding to the target processing component, the initial performance information of the target processing component can be updated to the operating performance information of the target processing component to obtain the target topology map.
[0241] For ease of understanding, below, combined Fig. 8A and Figure 8B , the process of generating the target topology graph is explained.
[0242] Fig. 8AA schematic diagram of a process for generating a target topology map based on method 1 provided in an embodiment of the present application. Fig. 8A The cluster includes 3 switches and 2 servers. The initial topology diagram of the cluster includes component identifications of multiple processing components and initial performance information of each processing component. The multiple processing components may include 3 switches, and 4 NICs, 2 PCIe switches, 4 GPUs and 2 CPUs in each server.
[0243] In the initial topology diagram of the cluster, each processing component can display corresponding operating performance information, where the operating performance information of the CPU and GPU can include the initial utilization rate UR 初始 and initial occupancy OR 初始 The operating performance information of PCIe switches, switches and network cards can include the initial utilization rate UR 初始 , including the initial throughput T 初始 and the maximum throughput T 最大 The initial throughput indicates the actual current throughput of the switch or network card before executing the preset task.
[0244] The target topology diagram of the cluster includes component identifiers of multiple target processing components and operation performance information of each target processing component, and the target processing components include: CPU1, GPU2, PCIe switch 1 and NIC2 in server 1; CPU1, GPU1, GPU3, PCIe switch 1, PCIe switch 2, NIC1 and NIC4 in server 2; and switch 1, switch 2 and switch 3. These multiple target processing components are used to execute preset tasks.
[0245] It is understandable that when executing the preset task, the operating performance information of the target component may change, and the operating performance information of the target processing component can be updated in the target topology diagram of the cluster. Among them, the performance indicators of CPU and GPU can include target utilization (UR 目标 ) and target occupancy (OR 目标 ), the performance indicators of PCIe switches, switches, and network cards can include target utilization (UR 目标 ) and target throughput (T 目标 ).
[0246] The target topology map of the cluster also includes component identifiers of multiple non-target processing components and initial performance information of each non-target processing component. The non-target processing components include: CPU2, GPU1, GPU3, GPU4, PCIe switch 2, NIC1, NIC3 and NIC4 in server 1, and CPU2, GPU2, GPU4, NIC2 and NIC3 in server 2.
[0247] Figure 8B A schematic diagram of a process for generating a target topology map based on method 2 provided in an embodiment of the present application. Figure 8B ,and Fig. 8A The target topology of the cluster is different. Figure 8B The target topology diagram of the cluster only includes component identifiers of multiple target processing components and operation performance information of each target processing component.
[0248] In the second method, the hardware topology of multiple processing components in the cluster can be obtained, and the initial performance information of each processing component can be determined, and based on the hardware topology and the initial performance information of each processing component, the initial topology of the cluster is generated. Through the initial topology, it is easy to compare the performance changes of each target processing component in the cluster before and after the execution of the preset task, so that the user can optimize the performance of each target processing component based on the performance changes of each target processing component.
[0249] Fig. 9 Schematic diagram of the process of generating a topology map provided in the embodiment of the present application Figure 4 . See Fig. 9 , the method comprising:
[0250] S901. Determine multiple target processing components among multiple processing components in a cluster.
[0251] S902: Acquire multiple operation performance information of multiple target processing components.
[0252] S903: Determine target networking information corresponding to multiple target processing components in the cluster networking information.
[0253] The target networking information includes a component identifier of each target processing component and a connection relationship between multiple target processing components.
[0254] The target networking information may be extracted from the cluster networking information according to component identifiers of multiple target processing components.
[0255] S904: Generate a target topology map according to the target networking information and multiple operation performance information.
[0256] The target topology diagram includes the connection relationship between multiple target processing components, the component identification and operation performance information of each target processing component.
[0257] Fig.10 This is another schematic diagram of the process of generating a target topology map provided by an embodiment of the present application. Fig.10, a target hardware topology map of multiple target processing components can be generated based on the target networking information, and a target topology map can be generated based on the target hardware topology map and multiple operating performance information.
[0258] The topology map generation method provided in the embodiment of the present application can extract the target networking information corresponding to multiple target processing components from the cluster networking information, and generate the target topology map based on the target networking information and multiple operation performance information. By screening the cluster networking information, the amount of calculation for the subsequent generation of the target topology map by the management server can be reduced, and the efficiency of the management server in generating the target topology map can be improved. Based on the target topology map, the user can clearly and quickly understand the operation performance information of each target processing component when executing the preset task, which is convenient for the user to quickly determine the performance impact of the execution process of the preset task on each target processing component, saving the time to determine the performance impact of each target processing component, thereby speeding up the speed of performance optimization processing of each target processing component and improving the performance optimization efficiency of these multiple target processing components.
[0259] Fig.11 This is a schematic diagram of the structure of the topology map generation device provided in the embodiment of the present application. Fig.11 The topology map generating device 10 may be a chip, and the topology map generating device 10 includes:
[0260] A determination module 11, used to determine a plurality of target processing components among a plurality of processing components of the cluster, wherein the plurality of target processing components are used to execute a preset task;
[0261] An acquisition module 12, used to acquire multiple operation performance information of multiple target processing components, wherein the multiple operation performance information includes performance information of each target processing component when executing a preset task;
[0262] The generation module 13 is used to generate a target topology map corresponding to a preset task based on multiple operating performance information and cluster networking information of the cluster. The cluster networking information includes component identifiers of multiple processing components and connection relationships between multiple processing components. The target topology map is used to perform performance optimization processing on multiple target processing components.
[0263] In a possible implementation manner, the determination module 11 is specifically configured to:
[0264] Obtaining task information of a preset task, the task information includes multiple task processes of the preset task;
[0265] For any task process, determining a first processing component corresponding to the task process from among multiple processing components, the first processing component being used to execute the task process;
[0266] According to the connection relationship between the first processing component corresponding to the task process and the multiple processing components in the cluster networking information, a second processing component corresponding to the task process is determined from the multiple processing components, the second processing component is associated with the first processing component, and the second processing component is used to assist the first processing component in executing the task process;
[0267] According to the first processing component and the second processing component corresponding to each task process, a plurality of target processing components are obtained.
[0268] In a possible implementation manner, the determination module 11 is further configured to:
[0269] Determine the target environment for executing the mission process;
[0270] Determining a target component identifier for running a first processing component of the target environment according to the target environment and the mapping relationship, the mapping relationship being used to indicate a component identifier for running a processing component of each environment;
[0271] A first processing component corresponding to the task process is determined based on the target component identifier.
[0272] In a possible implementation manner, the task information further includes task distribution information of preset tasks; the generating module 13 is specifically used for:
[0273] Generate a task distribution diagram corresponding to the preset task according to the task distribution information;
[0274] Among them, the task distribution diagram is used to indicate the distributed processing type corresponding to each task process of the preset task, and the distributed processing type includes at least one of the following: data parallelism, pipeline parallelism and model parallelism.
[0275] In a possible implementation manner, the generating module 13 is further specifically configured to:
[0276] Determine, among the plurality of target processing components, a plurality of feature processing components corresponding to the plurality of task processes, wherein the feature processing components include a first processing component and / or a second processing component corresponding to the task process;
[0277] Generate a target topology map according to the process identifier of the task process corresponding to each feature processing component, multiple operation performance information and cluster networking information;
[0278] The target topology diagram includes the connection relationship between multiple target processing components, the component identification and operation performance information of each target processing component, and the process identification of the task process corresponding to each feature processing component.
[0279] In a possible implementation manner, the generating module 13 is further specifically configured to:
[0280] Generate a hardware topology diagram of the cluster according to component identifiers of the multiple processing components and connection relationships between the multiple processing components in the cluster networking information;
[0281] A target topology map is generated according to the multiple operation performance information and the hardware topology map. The target topology map includes the connection relationship between the multiple target processing components, the component identification of each target processing component and the operation performance information.
[0282] In a possible implementation manner, the generating module 13 is further specifically configured to:
[0283] determining initial performance information for a plurality of processing components;
[0284] generating an initial topology map based on initial performance information of the plurality of processing components and the hardware topology map;
[0285] A target topology map is obtained according to the initial topology map and multiple operation performance information.
[0286] In a possible implementation manner, the cluster includes a switch and a server; the generating module 13 is further configured to:
[0287] receiving initial performance information of each processing component in the server reported by the server;
[0288] Collect initial performance information of the switch;
[0289] Based on the initial performance information of each component in the server and the initial performance information of the switch, initial performance information of the plurality of processing components is determined.
[0290] In a possible implementation manner, the generating module 13 is further specifically configured to:
[0291] In the cluster networking information, target networking information corresponding to the multiple target processing components is determined, where the target networking information includes a component identifier of each target processing component and a connection relationship between the multiple target processing components;
[0292] A target topology map is generated according to the target networking information and the multiple operation performance information. The target topology map includes the connection relationship between the multiple target processing components, the component identification of each target processing component and the operation performance information.
[0293] The topology map generating device provided in the embodiment of the present application can execute the technical solution described in the above embodiment, and its beneficial effects are similar, which will not be repeated here.
[0294] Fig.12 A hardware structure diagram of a computing device provided in an embodiment of the present application. Fig.12The computing device 20 may be the management server in the above embodiment, and may include a processor 21 and a memory 22. The processor 21 and the memory 22 may communicate with each other; illustratively, the processor 21 and the memory 22 communicate with each other via a communication bus 23.
[0295] The memory 22 is used to store computer-executable instructions;
[0296] The processor 21 is used to execute the computer-executable instructions stored in the memory 22, so that the processor 21 executes the technical solution shown in the above method embodiment.
[0297] Optionally, the computing device 20 may further include a communication interface, which may include a transmitter and / or a receiver.
[0298] Optionally, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0299] An embodiment of the present application provides a computer-readable storage medium, on which computer-executable instructions are stored; when the computer-executable instructions are executed by a processor, they are used to implement the topology map generation method as described in the above embodiment.
[0300] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the computer executes the topology map generating method described in the above embodiment.
[0301] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviated: ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
[0302] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable terminal device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0303] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0304] These computer program instructions can also be loaded onto a computer or other programmable terminal device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0305] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. Although the embodiments of the present application have been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating a topological map, characterized in that: The method comprises: Determine a plurality of target processing components among a plurality of processing components of the cluster, wherein the plurality of target processing components are used to execute preset tasks; Acquire multiple operation performance information of the multiple target processing components, wherein the multiple operation performance information includes performance information of each target processing component when executing the preset task; A target topology map corresponding to the preset task is generated based on the multiple operating performance information and the cluster networking information of the cluster, wherein the cluster networking information includes component identifiers of the multiple processing components and connection relationships between the multiple processing components, and the target topology map is used to perform performance optimization processing on the multiple target processing components.
2. The method according to claim 1, characterized in that The step of determining a plurality of target processing components from a plurality of processing components in the cluster comprises: Acquire task information of the preset task, wherein the task information includes multiple task processes of the preset task; For any task process, determining a first processing component corresponding to the task process from among the multiple processing components, the first processing component being used to execute the task process; According to the connection relationship between the first processing component corresponding to the task process and the multiple processing components in the cluster networking information, determining a second processing component corresponding to the task process from the multiple processing components, the second processing component being associated with the first processing component, and the second processing component being used to assist the first processing component in executing the task process; The multiple target processing components are obtained according to the first processing component and the second processing component corresponding to each task process.
3. The method according to claim 2, characterized in that The determining a first processing component corresponding to the task process among the plurality of processing components includes: determining a target environment for executing said task process; Determining a target component identifier for running a first processing component of the target environment according to the target environment and a mapping relationship, wherein the mapping relationship is used to indicate a component identifier for running a processing component of each environment; A first processing component corresponding to the task process is determined based on the target component identifier.
4. The method according to claim 2 or 3, characterized in that: The task information also includes task distribution information of the preset task; the method also includes: Generate a task distribution map corresponding to the preset task according to the task distribution information; The task distribution graph is used to indicate the distributed processing type corresponding to each task process of the preset task, and the distributed processing type includes at least one of the following: data parallelism, pipeline parallelism and model parallelism.
5. The method according to any one of claims 2 to 4, characterized in that: The generating, according to the plurality of operation performance information and the cluster networking information of the cluster, a target topology map corresponding to the preset task comprises: Determine, among the multiple target processing components, multiple feature processing components corresponding to the multiple task processes, wherein the feature processing components include first processing components and / or second processing components corresponding to the task processes; Generate the target topology map according to the process identifier of the task process corresponding to each feature processing component, the multiple operation performance information and the cluster networking information; The target topology diagram includes the connection relationship between the multiple target processing components, the component identification and operation performance information of each target processing component, and the process identification of the task process corresponding to each feature processing component.
6. The method according to any one of claims 1 to 4, characterized in that: The generating, according to the plurality of operation performance information and the cluster networking information of the cluster, a target topology map corresponding to the preset task comprises: generating a hardware topology diagram of the cluster according to the component identifiers of the multiple processing components in the cluster networking information and the connection relationships between the multiple processing components; The target topology map is generated according to the multiple operation performance information and the hardware topology map, and the target topology map includes the connection relationship between the multiple target processing components, the component identification of each target processing component and the operation performance information.
7. The method according to claim 6, characterized in that The step of generating the target topology map according to the plurality of operation performance information and the hardware topology map comprises: determining initial performance information for the plurality of processing components; generating an initial topology map according to the initial performance information of the plurality of processing components and the hardware topology map; The target topology map is obtained according to the initial topology map and the plurality of operation performance information.
8. The method according to claim 7, characterized in that The cluster includes a switch and a server; and the determining of initial performance information of the plurality of processing components includes: receiving initial performance information of each processing component in the server reported by the server; Collecting initial performance information of the switch; Based on the initial performance information of each component in the server and the initial performance information of the switch, initial performance information of the plurality of processing components is determined.
9. The method according to any one of claims 1 to 4, characterized in that: The generating, according to the plurality of operation performance information and the cluster networking information of the cluster, a target topology map corresponding to the preset task comprises: In the cluster networking information, target networking information corresponding to the multiple target processing components is determined, wherein the target networking information includes a component identifier of each target processing component and a connection relationship between the multiple target processing components; The target topology map is generated according to the target networking information and the multiple operation performance information. The target topology map includes the connection relationship between the multiple target processing components, the component identification of each target processing component and the operation performance information.
10. A computing device, characterized in that include: Processor and memory; The processor is coupled to the memory; The memory is used to store computer instructions; The processor is configured to execute computer instructions stored in the memory to perform the method according to any one of claims 1 to 9.
Citation Information
Cited By
Cluster information processing method and device, storage medium and program product
CN120386691A
