Control program, information processing system, and control method
The control program optimizes machine learning model training by identifying bottlenecks in CPU and GPU resources without modifying customer programs, improving training efficiency and customer satisfaction.
Patent Information
- Application Number
- JP2023063659
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2043-04-10
AI Technical Summary
Training machine learning models is time-consuming and requires significant computational resources, and existing methods cannot effectively identify bottlenecks without modifying customer programs, making it difficult to optimize computer configurations for improved performance.
A control program that collects information on multiple types of calculation resources during training, measures loop periods by adjusting CPU and GPU frequencies, and identifies bottlenecks based on system load, allowing for improved computer configurations without modifying customer programs.
Enables better computer configurations for training machine learning models by identifying and addressing performance bottlenecks, enhancing training efficiency and customer satisfaction while reducing computational resource waste.
Smart Images

Figure 2024150304000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a control program, an information processing system, and a control method. [Background technology]
[0002] AI (Artificial Intelligence) technology is used in various fields, and future developments are expected. However, training machine learning models takes a lot of time, and there is an urgent need to shorten this time.
[0003] Training a machine learning model requires huge computing resources, so it is often run by temporarily procuring a cloud computer.
[0004] In general, the performance of a computer system is affected by a variety of complex factors, including the CPU (Central Processing Unit), GPU (Graphics Processing Unit), accelerator, memory, storage, and network. Therefore, the computer configuration procured may not necessarily be suitable for the training you are currently trying to perform.
[0005] From the perspective of cloud service providers, they can improve the added value of the services they provide by proposing better computer configurations to customers who train machine learning models.
[0006] For example, when a customer trains a machine learning model, the resources that are bottlenecks in the training can be identified, and the system can suggest to the customer how to improve the performance of the identified resources, thereby suggesting a better computer configuration to the customer. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] JP 2021-185469 A [Patent Document 2] JP 2012-168660 A Summary of the Invention [Problem to be solved by the invention]
[0008] The performance of a training program that trains a machine learning model is evaluated by the length of time it takes to execute the training. However, training a machine learning model generally takes time, so it is not realistic to wait until all training is complete.
[0009] On the other hand, since the training program is composed of many loops, the performance of the training program can be roughly estimated by knowing the period of one loop.
[0010] However, in order to measure the period of a loop, a program modification is generally required.
[0011] In addition, from the viewpoint of cloud service providers, controlling the clocks of CPUs and GPUs is permitted in terms of power restrictions and resource allocation, but tampering with programs executed by customers is not permitted, so programs cannot be modified to measure the period of a loop.
[0012] Therefore, there is a demand for cloud service providers to observe the loop period of a training program using observable data and identify bottleneck resources without modifying the training program executed by the customer.
[0013] In one aspect, the present invention aims to enable a better computer configuration to be realized in training a machine learning model. [Means for solving the problem]
[0014] For this reason, in a computer system having multiple types of computing resources, this control program calculates a loop period of the machine learning model when the operating frequency of a first type of computing resource among the multiple types of computing resources is reduced by a predetermined amount and a loop period of the machine learning model when the operating frequency of the second type of computing resource is reduced by the predetermined amount based on the system load when the operating frequency of a first type of computing resource among the multiple types of computing resources is reduced by a predetermined amount and the system load when the operating frequency of a second type of computing resource among the multiple types of computing resources is reduced by the predetermined amount, which are collected during training of a machine learning model using the multiple types of computing resources, and causes a processor to execute a process of determining which of the first type of computing resource and the second type of computing resource is to be improved based on a comparison result of the calculated loop periods. Effect of the Invention
[0015] According to one embodiment, a better computer configuration can be achieved in training a machine learning model. [Brief description of the drawings]
[0016] [Figure 1] FIG. 1 is a diagram illustrating a system configuration of an information processing system according to an embodiment. [Diagram 2] 1 is a diagram illustrating an example of a functional configuration of a bottleneck analysis unit of an information processing system according to an embodiment; [Diagram 3] FIG. 11 is a diagram illustrating a configuration of a bottleneck analysis program of the information processing system according to an embodiment. [Figure 4] FIG. 1 is a diagram illustrating an example of CPU usage during training of an AI learning model. [Diagram 5] FIG. 13 is a diagram illustrating an example of CPU load during training of an AI model. [Figure 6] FIG. 13 is a diagram showing a change in period caused by a CPU clock down. [Figure 7] 1 is a diagram illustrating an example of presentation information output by a presentation unit of an information processing system according to an embodiment; [Figure 8] 1 is a flowchart illustrating an overview of a process performed by a bottleneck analysis unit of an information processing system according to an embodiment. [Figure 9] 9 is a flowchart for explaining details of the process of step A1 in FIG. 8. [Figure 10] 9 is a flowchart for explaining details of the process of step A2 in FIG. 8. [Figure 11] 11 is a flowchart illustrating a loop period estimation process in an information processing system according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] Hereinafter, an embodiment of the present control program, information processing system, and control method will be described with reference to the drawings. However, the embodiment shown below is merely an example, and there is no intention to exclude the application of various modified examples and techniques not explicitly stated in the embodiment. In other words, this embodiment can be implemented with various modifications within the scope of its purpose. Furthermore, each figure is not intended to include only the components shown in the figure, but can include other functions, etc.
[0018] (A) Configuration FIG. 1 is a diagram illustrating a schematic system configuration of an information processing system 1 according to an embodiment.
[0019] The information processing system 1 includes a hardware platform 10 and a software platform 3. The information processing system 1 may be called a computer system.
[0020] The software platform 3 runs on the hardware platform 10. The software platform 3 includes, for example, an OS (Operating System), a library, and a framework.
[0021] The AI learning model training program 5 and the bottleneck analysis program 4s are executed on the software platform 3. The software platform 3 provides the AI learning model, and a software environment required for executing the AI learning model training program 5 and the bottleneck analysis program 4s.
[0022] 1, the hardware platform 10 may include, as a hardware configuration, a CPU 11, a GPU 12, a memory 13, a storage 14, and a communication interface 15. The CPU 11, the GPU 12, the memory 13, the storage 14, and the communication interface 15 included in the hardware platform 10 may be referred to as hardware elements.
[0023] The CPU 11 is an example of a processing unit that performs various controls and calculations, and is also an example of a calculation resource. The CPU 11 may be connected to each block in the hardware platform 10 via a bus (not shown) so that they can communicate with each other. The CPU 11 may be a multiprocessor including multiple processors, a multicore processor having multiple processor cores, or a configuration having multiple multicore processors.
[0024] The GPU 12 is an arithmetic processing device suitable for controlling screen display on an output device such as a monitor, and is an example of a computation resource. The GPU 12 is an example of an arithmetic processing device that performs various controls and computations. The GPU 12 may be connected to each block in the hardware platform 10 via a bus (not shown) so that they can communicate with each other. Among the hardware elements, the arithmetic processing device (processor) may be called a processor element. The CPU 11 and the GPU 12 are processor elements.
[0025] The memory 13 is an example of HW that stores various data, programs, and other information. The memory 13 may be, for example, one or both of a volatile memory such as a dynamic random access memory (DRAM) and a non-volatile memory such as a persistent memory (PM).
[0026] The storage 14 is an example of hardware that stores various data, programs, and other information. The storage 14 stores programs executed by the CPU 11 and the GPU 12, and data used when executing the programs. The programs include an AI learning model training program 5 and a bottleneck analysis program 4s.
[0027] Examples of the storage 14 include various storage devices such as a magnetic disk device such as a hard disk drive (HDD), a semiconductor drive device such as a solid state drive (SSD), and a non-volatile memory. Examples of the non-volatile memory include a flash memory, a storage class memory (SCM), and a read only memory (ROM).
[0028] The communication interface 15 controls the connection and communication between the hardware platform 10 and other information processing devices. For example, the communication interface 15 may include an adapter that complies with a LAN (Local Area Network) such as Ethernet (registered trademark) or optical communication such as FC (Fibre Channel). The adapter may support one or both of wireless and wired communication methods.
[0029] For example, the hardware platform 10 may be connected to a terminal device, a database, etc. (not shown) so as to be able to communicate with each other via the communication interface 15 and a network. The above-mentioned programs may be downloaded from the network via the communication interface 15 and stored in the storage 14.
[0030] The configuration of the hardware platform 10 can be changed as appropriate. For example, the example shown in Fig. 1 includes one each of the CPU 11, the GPU 12, the memory 13, the storage 14, and the communication interface 15, but may include two or more of each.
[0031] Additionally, these hardware elements may be replaced with different hardware elements, such as those with higher performance.
[0032] The cloud service provider may provide at least some of the hardware elements constituting the hardware platform 10. The user may configure the hardware platform 10 that achieves the desired performance by combining the hardware elements provided by the cloud service provider. For example, the user may configure the hardware platform 10 that has sufficient performance to execute the AI learning model training program 5 by combining the hardware elements.
[0033] The AI learning model training program 5 is a program for training an AI learning model (machine learning model). As the AI learning model training program 5, various known training programs may be used, and the description thereof will be omitted. The AI learning model training program 5 is executed using a hardware platform 10.
[0034] For example, while the AI learning model training program 5 is running, the CPU 11 issues a command to the GPU 12 to execute a calculation, and performs processing using the calculation result returned from the GPU 12.
[0035] The AI learning model training program 5 executes training of the machine learning model using multiple types of computing resources, namely a CPU 11 and a GPU 12.
[0036] The bottleneck analysis program 4s realizes a bottleneck analysis function that identifies whether the resource (hardware element) that becomes a bottleneck is the CPU 11 or the GPU 12, using information collected during the execution of the AI learning model training program 5 using the hardware platform 10. The CPU 11 and the GPU 12 correspond to arithmetic units that affect the execution performance of the AI learning model training program 5.
[0037] The CPU 11 executes the bottleneck analysis program 4s to realize the function of the bottleneck analysis unit 4 shown in FIG.
[0038] FIG. 2 is a diagram illustrating a functional configuration of the bottleneck analysis unit 4 of the information processing system 1 according to an embodiment, and FIG. 3 is a diagram illustrating a configuration of the bottleneck analysis program 4s thereof.
[0039] As shown in FIG. 2, the bottleneck analysis unit 4 has the functions of a CPU performance control unit 41, a GPU performance control unit 42, a CPU load measurement unit 43, a loop cycle estimation unit 44, and a presentation unit 45.
[0040] The CPU 11 executes the bottleneck analysis program 4s to function as the CPU performance control unit 41, the GPU performance control unit 42, the CPU load measurement unit 43, the loop cycle estimation unit 44, and the presentation unit 45.
[0041] More specifically, as shown in FIG. 3, the bottleneck analysis program 4s includes a CPU performance control program 41s, a GPU performance control program 42s, a CPU load measurement program 43s, a loop period estimation program 44s, and a presentation program 45s.
[0042] The CPU performance control program 41s realizes the function of the CPU performance control unit 41. The GPU performance control program 42s realizes the function of the GPU performance control unit 42. The CPU load measurement program 43s realizes the function of the CPU load measurement unit 43. The loop period estimation program 44s realizes the function of the loop period estimation unit 44. The presentation program 45s realizes the function of the presentation unit 45.
[0043] It is not necessary for the bottleneck analysis program 4s to include all of the CPU performance control program 41s, the GPU performance control program 42s, the CPU load measurement program 43s, the loop period estimation program 44s, and the presentation program 45s. For example, at least some of the CPU performance control program 41s, the GPU performance control program 42s, the CPU load measurement program 43s, the loop period estimation program 44s, and the presentation program 45s may be provided outside the bottleneck analysis program 4s, and the bottleneck analysis program 4s may call and execute such an externally provided program.
[0044] The program (bottleneck analysis program 4s) for implementing the functions of the CPU performance control unit 41, the GPU performance control unit 42, the CPU load measurement unit 43, the loop period estimation unit 44, and the presentation unit 45 is provided in a form recorded on a computer-readable recording medium such as a flexible disk, a CD (CD-ROM, CD-R, CD-RW, etc.), a DVD (DVD-ROM, DVD-RAM, DVD-R, DVD+R, DVD-RW, DVD+RW, HD DVD, etc.), a Blu-ray disk, a magnetic disk, an optical disk, a magneto-optical disk, etc. Then, the CPU 11 reads the program from the recording medium, transfers it to an internal storage device (for example, the memory 13) or an external storage device (for example, the storage 14), stores it, and uses it. Also, the program may be recorded in a storage device (recording medium) such as a magnetic disk, an optical disk, a magneto-optical disk, etc., and provided to the computer from the storage device via a communication path.
[0045] When realizing the functions of the CPU performance control unit 41, the GPU performance control unit 42, the CPU load measurement unit 43, the loop cycle estimation unit 44, and the presentation unit 45, a program stored in an internal storage device (memory 13 in this embodiment) is executed by a microprocessor (CPU 11 in this embodiment) of a computer. At this time, the computer may read and execute the program recorded on a recording medium.
[0046] The CPU performance control unit 41 controls the operating performance of the CPU 11. Specifically, the CPU performance control unit 41 realizes a function of changing (setting) the operating frequency of the CPU 11.
[0047] The CPU performance control unit 41 changes the operating frequency of the CPU 11, for example, by executing a command for setting the operating frequency of the CPU 11.
[0048] The CPU performance control unit 41 may set the operating frequency of the CPU 11 by using, for example, a cpupower frequency-set command in Linux (registered trademark).
[0049] For example, the CPU performance control unit 41 can set the operating frequency of the CPU 11 to 2100 MHz by executing the following command:
[0050] # cpupower frequency-set -g userspace # cpupower frequency-set -f 2100MHz
[0051] For example, the CPU performance control unit 41 performs control to lower (clock down) the operating frequency of the CPU 11 by a predetermined amount (for example, 20%) for a predetermined period (for example, 20 seconds). The state in which the CPU performance control unit 41 lowers the operating frequency of the CPU 11 may be called a CPU clock down state or a CPU clock down time. The CPU performance control unit 41 generates the CPU clock down state.
[0052] Moreover, the CPU performance control unit 41 can use a similar command to return the reduced operating frequency of the CPU 11 to the state before the change. In the case of an OS other than Linux, the CPU performance control unit 41 may generate the CPU clock-down state by executing other similar commands or driver programs.
[0053] The GPU performance control unit 42 controls the operating performance of the GPU 12. Specifically, the GPU performance control unit 42 realizes a function of changing (setting) the operating frequency of the GPU 12.
[0054] The GPU performance control unit 42 changes the operating frequency of the GPU 12 by, for example, executing a command for setting the operating frequency of the GPU 12 .
[0055] The GPU performance control unit 42 may set the operating frequency of the GPU 12 using, for example, the nvidia-smi command for the GPU 12 manufactured by NVIDIA (registered trademark).
[0056] For example, the GPU performance control unit 42 can set the operating frequency of the NVIDIA GPU 12 to 866 MHz by executing the following command:
[0057] # nvidia-smi -ac 1593,866
[0058] For example, the GPU performance control unit 42 performs control to reduce (clock down) the operating frequency of the GPU 12 by a predetermined amount (for example, 20%) for a predetermined period (for example, 20 seconds). The state in which the GPU performance control unit 42 reduces the operating frequency of the GPU 12 may be referred to as a GPU clock down state or a GPU clock down time. The GPU performance control unit 42 generates the GPU clock down state.
[0059] It is desirable for the CPU performance control unit 41 and the GPU performance control unit 42 to perform control so that the CPU clock down and the GPU clock down result in the same rate of performance degradation (clock down) (for example, 20%).
[0060] Furthermore, the GPU performance control unit 42 can use a similar command to return the reduced operating frequency of the GPU 12 to the state before the change. In the case of a GPU 12 manufactured by a company other than NVIDIA, the GPU performance control unit 42 may generate a GPU clock-down state by executing a similar other command or driver program.
[0061] The CPU load measuring unit 43 measures the load state of the CPU 11. The CPU load measuring unit 43 may measure, as the load state of the CPU 11, for example, the CPU usage rate of the entire system (information processing system 1).
[0062] The CPU load measurement unit 43 measures the CPU usage rate in a CPU clock-down state and the CPU usage rate in a GPU clock-down state.
[0063] The CPU load measurement unit 43 measures the CPU utilization rate (CPU load) at regular intervals. For example, in a CPU clock-down state, the CPU load measurement unit 43 measures the CPU utilization rate of the CPU 11 at 20 ms intervals for 20 seconds. In this way, the CPU load measurement unit 43 obtains 1000 samples of the CPU utilization rate (CPU load) in the CPU clock-down state.
[0064] Similarly, in the GPU clock-down state, the CPU load measurement unit 43 measures the CPU utilization rate of the CPU 11 for 20 seconds at 20 ms intervals. In this way, the CPU load measurement unit 43 obtains 1000 samples of the CPU utilization rate (CPU load) in the GPU clock-down state.
[0065] Figure 4 is a diagram illustrating CPU usage during training of an AI learning model.
[0066] Figure 4 shows the CPU usage of the entire system, the CPU usage of the main thread, the CPU usage of the sub-thread, and annotation information for one loop included in the training of an AI learning model.
[0067] The annotation information indicates the loop range (loop start position and loop end position) in the program. It can be seen that in one loop included in the training of the AI learning model, the CPU usage becomes high in order to send commands to the GPU 12. In addition, near the end of one loop, the CPU usage decreases in order to wait for the calculation result returned from the GPU 12 (inter-GPU communication).
[0068] The CPU utilization rate can be obtained by a known method, and the description thereof will be omitted.
[0069] The loop period estimation unit 44 estimates a period (loop period) of a loop that is repeatedly executed in the training of the AI learning model in the AI learning model training program 5.
[0070] The loop period estimation unit 44 calculates the loop period of the AI learning model training program 5 when the CPU clock is down, based on the CPU usage rate (CPU load) in the CPU clock down state measured by the CPU load measurement unit 43.
[0071] That is, the loop period estimation unit 44 calculates the loop period in the machine learning model when the operating frequency (CPU clock) of CPU 11 (a first type of computing resource) among multiple types of computing resources (CPU 11 and GPU 12) is reduced by a predetermined amount (CPU clock down state).
[0072] In addition, the loop period estimation unit 44 calculates the loop period of the AI learning model training program 5 when the GPU clock is down, based on the CPU usage (CPU load) in the GPU clock down state measured by the CPU load measurement unit 43.
[0073] That is, the loop period estimation unit 44 calculates the loop period of the machine learning model when the operating frequency (GPU clock) of GPU 12 (a second type of computing resource) among multiple types of computing resources (CPU 11 and GPU 12) is reduced by a predetermined amount (GPU clock down state).
[0074] Figure 5 shows an example of the CPU load during training of an AI model. rnnt is the name of the AI model.
[0075] In FIG. 5, the horizontal axis indicates the number of samples, and the vertical axis indicates the CPU load (rnnt CPU load).
[0076] In general, most of the training of AI models is done in a loop. If we know the interval of one iteration of the loop, we can estimate its performance (time required). And the cycle of the loop appears as a cycle of fluctuation of CPU load.
[0077] The CPU load measurement unit 43 measures the system load at regular intervals for a certain period of time, and the obtained measurement samples are denoted as s1, s2, . . . , s N For example, it is assumed that the CPU load measuring unit 43 measures for 20 seconds at 20 ms intervals and acquires 1000 samples (in this case, N=1000).
[0078] The loop period estimation unit 44 calculates the autocorrelation coefficient R k Here, the autocorrelation coefficient is a statistic calculated by the following formula (1). Note that s1, s2, . . . , s N is the measured sample, N is the number of samples, μ is the sample mean, σ 2 is the sample variance.
[0079]
number
[0080] Among the autocorrelation coefficients obtained for each lag k, the lag that is the largest coefficient in the range of k>0 is calculated. This is called k1. The loop period estimation unit 44 estimates the loop period (period of CPU load fluctuation) using the following equation (2).
[0081] Loop period = k1 × (load measurement interval) (2) The load measurement interval is 20 ms in the above example.
[0082] FIG. 6 is a diagram showing changes in the period caused by CPU clock down.
[0083] Figure 6 shows the relationship between lag and autocorrelation calculated based on the measurement results of the CPU load during execution of the AI learning model training program 5, comparing the relationship before and after the CPU clock down.
[0084] In FIG. 6, the relationship between lag and autocorrelation for the operating frequency (3.5 GHz) before the CPU clock down is shown by a solid line, and the relationship between lag and autocorrelation for the operating frequency (2.1 GHz) after the CPU clock down is shown by a dashed line.
[0085] The peak at any point other than k=0 represents the estimated period (loop period). In Figure 6, the waveform shifts to the right, indicating that the period is longer, and it can be seen that the period is longer by lowering the CPU operating frequency to 2.1GHz. As the loop period becomes longer, the loop execution time becomes longer, resulting in a decrease in processing performance.
[0086] Then, the loop cycle estimation unit 44 identifies a processor element (hardware element) that is a cause of performance degradation (bottleneck) based on the calculated loop cycle.
[0087] The loop period estimation unit 44 compares the loop period when the CPU clock is down and the loop period when the GPU clock is down, and determines that the processor element with the longer loop period when the clock is down, between the CPU 11 and the GPU 12, is the cause of the performance degradation (bottleneck). The computing resource determined to be the cause of the performance degradation (bottleneck) is the computing resource to be improved.
[0088] That is, the loop period estimation unit 44 determines the computation resource to be improved from the CPU 11 (first type of computation resource) and the GPU 12 (second type of computation resource) based on the comparison result of the calculated loop periods. At this time, the loop period estimation unit 44 determines the computation resource whose operating frequency has been lowered to obtain the slower loop period from the CPU 11 (first type of computation resource) and the GPU 12 (second type of computation resource) as the computation resource to be improved.
[0089] The presentation unit 45 presents the processor element that the loop cycle estimation unit 44 has identified as the cause (bottleneck) of the performance degradation.
[0090] For example, the presentation unit 45 outputs presentation information indicating the processor element identified as the bottleneck to the user. The presentation unit 45 presents the computing resource to be improved, which is determined by the loop period estimation unit 44, using the presentation information.
[0091] FIG. 7 is a diagram illustrating an example of presentation information output by the presentation unit 45 of the information processing system 1 according to an embodiment.
[0092] 7 shows a display screen 50 displayed on a monitor of a terminal device (not shown) connected to the hardware platform 10 via a network or the like. The display screen 50 corresponds to presentation information output by the presentation unit 45.
[0093] This display screen 50 shows that the bottleneck analysis program 4s has been executed by executing the command "analyze_training_performance" (see symbol P1).
[0094] The display screen 50 also shows the loop period when the CPU clock is down and the loop period when the GPU clock is down, which are calculated (estimated) by the loop period estimation unit 44 (see symbol P2).
[0095] In the example shown in FIG. 7, it is shown that the loop period when the CPU clock is down is 600 ms, and the loop period when the GPU clock is down is 540 ms.
[0096] Furthermore, the display screen 50 shows a message indicating the processor element that has been identified as the bottleneck (see symbol P3).
[0097] In the example shown in Figure 7, the loop period (600 ms) when the CPU clock is down is longer than the loop period (540 ms) when the GPU clock is down, so the message "CPU performance may limit the total performance" is displayed, indicating that CPU 11 is the bottleneck.
[0098] On the display screen 50, the loop period when the CPU clock is down and the loop period when the GPU clock is down, which are calculated (estimated) by the loop period estimation unit 44 and shown as symbol P2, represent the basis for determining that the CPU 11 is a bottleneck and contribute to improving the reliability of the presented information.
[0099] 7 is merely an example, and the presentation information output by the presentation unit 45 can be modified as appropriate. For example, the presentation information may include information other than that exemplified in Fig. 7. In addition, the loop period when the CPU clock is down and the loop period when the GPU clock is down, which are calculated (estimated) by the loop period estimation unit 44, may be omitted.
[0100] (B) Operation An overview of the processing by the bottleneck analysis unit 4 of the information processing system 1 according to the embodiment configured as described above will be described with reference to the flowchart (steps A1 to A4) shown in FIG.
[0101] In step A1, the loop period estimation unit 44 measures (calculates) the loop period when the CPU clock is down.
[0102] In step A2, the loop cycle estimation unit 44 measures (calculates) the loop cycle when the GPU clock is down.
[0103] In step A3, the loop period estimation unit 44 compares the loop period when the CPU clock is down with the loop period when the GPU clock is down. The loop period estimation unit 44 determines that the processor element with the longer loop period when the clock is down is the bottleneck.
[0104] In step A4, the presentation unit 45 outputs presentation information indicating the processor element identified as the bottleneck to the user, and then the process ends.
[0105] In the flowchart shown in Fig. 8, the order of steps A1 and A2 is not limited to this and can be changed as appropriate. That is, step A1 may be performed after step A2, or step A1 and step A2 may be performed in parallel.
[0106] Next, the details of the process of step A1 in the flowchart shown in FIG. 8 will be described with reference to the flowchart (steps B1 to B5) shown in FIG.
[0107] In step B1, the CPU performance control unit 41 reduces the CPU clock by a certain amount (for example, 20%) to generate a CPU clock down state.
[0108] In step B2, the CPU load measurement unit 43 measures the CPU usage rate (CPU load) when the CPU clock is down.
[0109] In step B3, the loop period estimation unit 44 estimates the loop period of the AI learning model training program 5 based on the CPU load (CPU usage rate) measured by the CPU load measurement unit 43.
[0110] In step B4, the CPU performance control unit 41 returns the CPU clock-down state of the CPU 11 to the state before the CPU clock-down.
[0111] In step B5, the loop period estimation unit 44 stores the estimated loop period in a predetermined storage area of the memory 13 or the storage 14. After that, the process ends and the process proceeds to step A2 in FIG.
[0112] 9, the processing order of step B4 is not limited to after step B3, and can be changed as appropriate. For example, step B4 may be performed after step B2, or step B5.
[0113] Next, the details of the process of step A2 in the flowchart shown in FIG. 8 will be described with reference to the flowchart (steps C1 to C5) shown in FIG.
[0114] In step C1, the GPU performance control unit 42 reduces the GPU clock by a certain amount (for example, 20%) to generate a GPU clock-down state.
[0115] In step C2, the CPU load measurement unit 43 measures the CPU usage rate (CPU load) when the GPU clock is down.
[0116] In step C3, the loop period estimation unit 44 estimates the loop period of the AI learning model training program 5 based on the CPU load (CPU usage rate) measured by the CPU load measurement unit 43.
[0117] In step C4, the CPU performance control unit 41 returns the GPU clock-down state of the GPU 12 to the state before the GPU clock-down.
[0118] In step C5, the loop period estimation unit 44 stores the estimated loop period in a predetermined storage area of the memory 13 or the storage 14. Thereafter, the process ends and the process proceeds to step A3 in FIG.
[0119] 10, the processing order of step C4 is not limited to after step C3, and can be changed as appropriate. For example, step C4 may be performed after step C2, or step C5.
[0120] Next, a loop period estimation process in the information processing system 1 according to an embodiment will be described with reference to a flowchart (steps D1 to D5) shown in Fig. 11. The process shown in Fig. 11 is a detailed example of the processes in steps B2 and B3 in Fig. 9 and steps C2 and C3 in Fig. 10.
[0121] In step D1, the CPU load measurement unit 43 measures a plurality of (N) system loads at regular time intervals for a fixed period of time.
[0122] In step D2, the loop cycle estimation unit 44 calculates the autocorrelation coefficient R k Get the.
[0123] In step D3, the loop cycle estimation unit 44 calculates the lag (k1) that is the largest coefficient in the range of k>0 from among the autocorrelation coefficients obtained for each lag k.
[0124] In step D4, the loop period estimation unit 44 estimates (calculates) the loop period using the above formula (2).
[0125] In step D5, the loop period estimation unit 44 stores the estimated loop period in a predetermined storage area such as the memory 13 or the storage 14. Then, the process ends.
[0126] (C) Effects Thus, according to the information processing system 1 as one embodiment of the present invention, during execution of the AI learning model training program 5, the CPU load measurement unit 43 measures the CPU usage rate in the CPU clock-down state generated by the CPU performance control unit 41. The CPU load measurement unit 43 also measures the CPU usage rate in the GPU clock-down state generated by the GPU performance control unit 42.
[0127] In addition, the loop period estimation unit 44 calculates the loop period of the AI learning model training program 5 when the CPU clock is down based on the CPU usage rate in the CPU clock down state. Furthermore, the loop period estimation unit 44 calculates the loop period of the AI learning model training program 5 when the GPU clock is down based on the measured CPU usage rate in the GPU clock down state.
[0128] Then, the loop period estimation unit 44 compares the loop period when the CPU clock is down with the loop period when the GPU clock is down, and determines that the processor element, CPU 11 or GPU 12, which has a longer loop period when the clock is down is the cause of performance degradation (bottleneck).
[0129] This makes it possible to easily identify the computational resources that cause performance degradation (bottleneck) in executing the AI learning model training program 5, and to construct an optimal computer configuration for executing the AI learning model training program 5. This makes it possible to improve the training efficiency of the machine learning model.
[0130] In addition, the presentation unit 45 outputs presentation information indicating the processor element that the loop period estimation unit 44 has identified as a bottleneck to the user. This allows the user to easily grasp the optimal computer configuration for executing the AI learning model training program 5.
[0131] From the viewpoint of cloud service providers, it is highly convenient because they can easily identify the computing resources that are the cause of performance degradation (bottlenecks) by using observable data (CPU load) without modifying the customer's programs. Also, by presenting the computing resources that are bottlenecks to the customer, it is possible to increase the added value of the service and improve customer satisfaction.
[0132] The loop period estimation unit 44 can easily estimate the loop period by using the autocorrelation coefficient.
[0133] (D) Other The disclosed technology is not limited to the above-described embodiment, and can be modified in various ways without departing from the spirit of the present embodiment. Each configuration and each process of the present embodiment can be selected as needed, or can be combined as appropriate.
[0134] For example, in the above-described embodiment, in a hardware platform 10 having two processor elements (computational resources), a CPU 11 and a GPU 12, it is determined whether the CPU 11 or the GPU 12 is a bottleneck (a target for improvement), but this is not limited to this.
[0135] The computing resources may include computing resources other than CPUs and GPUs, such as MPUs (Micro Processing Units) and APUs (Accelerated Processing Units). Also, three or more computing resources may be provided, and a computing resource that is a bottleneck (a target for improvement) may be determined from among these three or more computing resources. Furthermore, for example, the hardware platform 10 may include multiple different types of CPUs (or GPUs), and a bottleneck may be determined from among these multiple types of CPUs (or GPUs).
[0136] Furthermore, a similar method may be applied to hardware elements other than the computing elements to determine which hardware elements are bottlenecks.
[0137] In the above embodiment, the CPU 11 that executes the AI learning model training program 5 executes the bottleneck analysis program 4s, but this is not limited to this. The bottleneck analysis program 4s may be executed by a processor prepared separately from the CPU 11 or a processor installed in a computer provided separately from the hardware platform 10.
[0138] In the above embodiment, the loop period estimation unit 44 estimates the loop period of the AI learning model training program 5 using the autocorrelation coefficient, but the present invention is not limited to this. For example, the loop period may be estimated using other known methods such as a Fourier series. Furthermore, the above disclosure enables a person skilled in the art to implement and manufacture the present embodiment.
[0139] (E) Notes The following supplementary notes are further disclosed regarding the above embodiment.
[0140] (Appendix 1) In a computer system having a plurality of types of computing resources, Based on a system load when an operating frequency of a first type of computing resource among the multiple types of computing resources is reduced by a predetermined amount, and a system load when an operating frequency of a second type of computing resource among the multiple types of computing resources is reduced by the predetermined amount, the system load being collected during training of a machine learning model using the multiple types of computing resources, Calculating a loop period of the machine learning model when the operating frequency of the first type of computing resource is reduced by a predetermined amount and a loop period of the machine learning model when the operating frequency of the second type of computing resource is reduced by the predetermined amount; Based on a comparison result of the calculated loop cycle, a computing resource to be improved is determined from among the first type computing resource and the second type computing resource. A control program that causes a processor to execute a process.
[0141] (Appendix 2) The process of determining a computing resource to be improved includes: The method includes a process of determining, as the improvement target computing resource, a computing resource whose operating frequency has been reduced in order to obtain a slower loop period between the loop period in the machine learning model when the operating frequency of the first type computing resource is reduced by a predetermined amount and the loop period in the machine learning model when the operating frequency of the second type computing resource is reduced by the predetermined amount. 2. The control program according to claim 1,
[0142] (Appendix 3) Present the computing resource that has been determined to be an improvement target. 3. The control program according to claim 1 or 2, which causes the processor to execute a process.
[0143] (Appendix 4) 1. A computer system having multiple types of computing resources, comprising: Based on a system load when an operating frequency of a first type of computing resource among the multiple types of computing resources is reduced by a predetermined amount, and a system load when an operating frequency of a second type of computing resource among the multiple types of computing resources is reduced by the predetermined amount, the system load being collected during training of a machine learning model using the multiple types of computing resources, Calculating a loop period of the machine learning model when the operating frequency of the first type of computing resource is reduced by a predetermined amount and a loop period of the machine learning model when the operating frequency of the second type of computing resource is reduced by the predetermined amount; Based on a comparison result of the calculated loop cycle, a computing resource to be improved is determined from among the first type computing resource and the second type computing resource. An information processing system comprising a control unit that executes processing.
[0144] (Appendix 5) The process of determining a computing resource to be improved includes: The method includes a process of determining, as the improvement target computing resource, a computing resource whose operating frequency has been reduced in order to obtain a slower loop period between the loop period in the machine learning model when the operating frequency of the first type computing resource is reduced by a predetermined amount and the loop period in the machine learning model when the operating frequency of the second type computing resource is reduced by the predetermined amount. 5. An information processing system according to claim 4.
[0145] (Appendix 6) The control unit: Present the computing resource that has been determined to be an improvement target. 6. An information processing system according to claim 4 or 5, characterized in that it executes processing.
[0146] (Appendix 7) In a computer system having a plurality of types of computing resources, Based on a system load when an operating frequency of a first type of computing resource among the multiple types of computing resources is reduced by a predetermined amount, and a system load when an operating frequency of a second type of computing resource among the multiple types of computing resources is reduced by the predetermined amount, the system load being collected during training of a machine learning model using the multiple types of computing resources, Calculating a loop period of the machine learning model when the operating frequency of the first type of computing resource is reduced by a predetermined amount and a loop period of the machine learning model when the operating frequency of the second type of computing resource is reduced by the predetermined amount; Based on a comparison result of the calculated loop cycle, a computing resource to be improved is determined from among the first type computing resource and the second type computing resource. A control method characterized in that processing is executed by a processor.
[0147] (Appendix 8) The process of determining a computing resource to be improved includes: The method includes a process of determining, as the improvement target computing resource, a computing resource whose operating frequency has been reduced in order to obtain a slower loop period between the loop period in the machine learning model when the operating frequency of the first type computing resource is reduced by a predetermined amount and the loop period in the machine learning model when the operating frequency of the second type computing resource is reduced by the predetermined amount. 8. The control method according to claim 7,
[0148] (Appendix 9) Present the computing resource that has been determined to be an improvement target. 9. The control method according to claim 7 or 8, wherein the processing is executed by the processor. [Explanation of symbols]
[0149] 1. Information Processing Systems 3. Software Platform 4 Bottleneck Analysis Section 4S Bottleneck Analysis Program 5 AI learning model training program 10 Hardware Platform 11 CPU 12 GPU 13. Memory 14. Storage 15 Communication Interface 41 CPU performance control unit 42 GPU performance control unit 43 CPU load measurement section 44 Loop period estimation section 45 Presentation section 41s CPU performance control program 42s GPU performance control program 43s CPU load measurement program 44s Loop Period Estimation Program 45s Presentation Program 50 indicates the screen
Claims
1. In a computer system having a plurality of types of computing resources, Based on a system load when an operating frequency of a first type of computing resource among the plurality of types of computing resources is reduced by a predetermined amount, and a system load when an operating frequency of a second type of computing resource among the plurality of types of computing resources is reduced by the predetermined amount, the system load being collected during training of a machine learning model using the plurality of types of computing resources, Calculating a loop period of the machine learning model when the operating frequency of the first type of computing resource is reduced by a predetermined amount and a loop period of the machine learning model when the operating frequency of the second type of computing resource is reduced by the predetermined amount; Based on a comparison result of the calculated loop cycles, a computing resource to be improved is determined from the first type computing resource and the second type computing resource. A control program that causes a processor to execute a process.
2. The process of determining a computing resource to be improved includes: The method includes a process of determining, as the improvement target computing resource, a computing resource whose operating frequency has been reduced in order to obtain a slower loop period between the loop period in the machine learning model when the operating frequency of the first type computing resource is reduced by a predetermined amount and the loop period in the machine learning model when the operating frequency of the second type computing resource is reduced by the predetermined amount.
2. The control program according to claim 1 .
3. Present the computing resource that has been determined to be an improvement target.
3. The control program according to claim 1, wherein the control program causes the processor to execute a process.
4. 1. A computer system having multiple types of computing resources, comprising: Based on a system load when an operating frequency of a first type of computing resource among the plurality of types of computing resources is reduced by a predetermined amount, and a system load when an operating frequency of a second type of computing resource among the plurality of types of computing resources is reduced by the predetermined amount, the system load being collected during training of a machine learning model using the plurality of types of computing resources, Calculating a loop period of the machine learning model when the operating frequency of the first type of computing resource is reduced by a predetermined amount and a loop period of the machine learning model when the operating frequency of the second type of computing resource is reduced by the predetermined amount; Based on a comparison result of the calculated loop cycles, a computing resource to be improved is determined from the first type computing resource and the second type computing resource. An information processing system comprising a control unit that executes processing.
5. In a computer system having a plurality of types of computing resources, Based on a system load when an operating frequency of a first type of computing resource among the plurality of types of computing resources is reduced by a predetermined amount, and a system load when an operating frequency of a second type of computing resource among the plurality of types of computing resources is reduced by the predetermined amount, the system load being collected during training of a machine learning model using the plurality of types of computing resources, Calculating a loop period of the machine learning model when the operating frequency of the first type of computing resource is reduced by a predetermined amount and a loop period of the machine learning model when the operating frequency of the second type of computing resource is reduced by the predetermined amount; Based on a comparison result of the calculated loop cycles, a computing resource to be improved is determined from the first type computing resource and the second type computing resource. A control method characterized in that processing is executed by a processor.
Citation Information
Patent Citations
Model training system and method
JP2023184233A
Identification of GPU Phase To Determine GPU Scalability During Runtime
US20140184620A1
Information extraction program, information extraction method, and information extraction device
JP2012168660A
Performance analysis device and performance analysis method
JP2021185469A
Cited By
Control program, information processing apparatus, and control method
EP4752723A1
