Information processing device and control method for information processing device
The information processing device optimizes power efficiency by dynamically adjusting operating parameters based on power and performance measurements, addressing the challenge of increased power consumption with higher integration levels.
Patent Information
- Application Number
- JP2020118546
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-07-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-07-09
AI Technical Summary
As processors become more integrated, power consumption increases, making it challenging to improve performance while reducing power consumption, which is a common issue in both large-scale systems like data centers and HPC systems as well as smaller information processing devices.
An information processing device with an arithmetic processing unit that includes a power measurement section, performance measurement section, detection section, and determination section dynamically adjusts operating parameters to optimize power efficiency by measuring power consumption and performance, changing parameters when efficiency decreases, and determining optimal settings based on these measurements.
This approach improves power efficiency by dynamically adjusting operating parameters, reducing the need for manual resource adjustments and minimizing user workload, thus enhancing performance per unit of power consumption.
Smart Images

Figure 0007547817000004 
Figure 0007547817000009 
Figure 0007547817000006
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device and a control method for the information processing device. [Background technology]
[0002] Information processing devices (computers) are used in large-scale systems such as data centers and systems for HPC (High-Performance Computing). In information processing devices, technologies for improving parallel processing performance and technologies for improving individual processing performance have evolved in order to improve the performance of processors.
[0003] The performance of a processor is evaluated, for example, by the number of instructions executed per unit time. A processor is also called a CPU (Central Processing Unit). Technologies for improving parallel processing performance include multiprocessors, multicores, multithreads, etc., while technologies for improving individual processing performance include improvements in microarchitecture.
[0004] The scale of parallel processing using multiprocessors, multicores, multithreads, etc. is determined by the level of semiconductor miniaturization and the amount of material that can be mounted on a processor die. Increasing parallel processing performance improves the performance of the processor, but power consumption also increases. However, it is difficult to suppress power consumption while controlling parallel processing performance with hardware.
[0005] For individual processing, microarchitecture has been improved by increasing or improving out-of-order execution resources, speculative execution, hardware prefetching, software prefetching, etc. As with parallel processing performance, increasing individual processing performance increases the power consumption of the processor, making it difficult to meet power consumption requirements. However, unlike parallel processing performance, it is possible to reduce power consumption by controlling individual processing performance with hardware.
[0006] Fig. 1 shows an example of the configuration of a conventional multi-core processor. The processor 101 in Fig. 1 includes cores 111-1 to 111-3 and a cache memory 112. Each of the cores 111-p (p=1 to 3) includes an instruction control unit 121-p, an execution unit 122-p, and a cache memory 123-p. The instruction control unit 121-p includes a performance counter 131-p.
[0007] The instruction control unit 121-p fetches and decodes instructions included in the program, and the execution unit 122-p executes the decoded instructions. The performance counter 131-p counts performance events such as the execution of instructions and generates performance information indicating the performance of the core 111-p.
[0008] The cache memory 123-p is a dedicated cache memory for the core 111-p, and the cache memory 112 is a shared cache memory for the cores 111-1 to 111-3. The cache memory 123-p is a level 1 cache memory, and the cache memory 112 is a level 2 cache memory.
[0009] Each core 111-p supports multiple threads, thereby improving the performance of the processor 101. Furthermore, a multiprocessor system is constructed by connecting multiple processors 101. The performance of the multiprocessor system is improved compared to the performance of a single processor 101.
[0010] In relation to improving the performance of a processor, a method of controlling the operating speed of a processor is known that uses the number of user mode instructions executed by the processor per unit time and the total number of instructions executed by the processor per unit time (see, for example, Patent Document 1). A method of monitoring the performance of a microarchitecture and tuning the microarchitecture based on the monitored performance is also known (see, for example, Patent Document 2). [Prior art documents] [Patent documents]
[0011] [Patent Document 1] Japanese Patent Application Publication No. 11-353052 [Patent Document 2] JP 2012-178173 A Summary of the Invention [Problem to be solved by the invention]
[0012] As described above, by increasing the integration level of a processor or information processing device, the overall processing performance can be improved. However, since the power consumption increases with the increase in integration level, it is desirable to suppress the power consumption while improving the performance of the information processing device.
[0013] This problem is not limited to large-scale systems such as data centers and HPC systems, but occurs in information processing devices of various scales.
[0014] In one aspect, the present invention aims to improve the power efficiency of an information processing device. [Means for solving the problem]
[0015] In one embodiment, the information processing device includes a processor including a power measurement unit, a performance measurement unit, a detector, and a determiner.
[0016] The power measurement unit measures the power consumption of the arithmetic processing unit, and the performance measurement unit measures the performance of the arithmetic processing unit. The detection unit detects a decrease in power efficiency of the arithmetic processing unit based on the power consumption of the arithmetic processing unit measured while a program is being executed by the arithmetic processing unit.
[0017] When a decrease in power efficiency is detected, the determination unit causes the arithmetic processing unit to execute the program while changing the operating parameters of the arithmetic processing unit, and determines the setting values of the operating parameters based on the power consumption and performance of the arithmetic processing unit measured while the program is being executed while changing the operating parameters. Effect of the Invention
[0018] According to one aspect, it is possible to improve the power efficiency of an information processing device. [Brief description of the drawings]
[0019] [Figure 1] FIG. 1 is a configuration diagram of a conventional multi-core processor. [Diagram 2] FIG. 2 is a functional configuration diagram of an information processing device. [Diagram 3] FIG. 2 is a hardware configuration diagram of an information processing device. [Figure 4] FIG. 2 is a block diagram of a processor. [Diagram 5] FIG. 2 is a diagram showing the connections between components within a processor. [Figure 6] FIG. 2 is a diagram illustrating the configuration of a performance counter. [Figure 7] FIG. 2 is a diagram illustrating the configuration of a power monitor. [Figure 8] FIG. 2 is a block diagram of a control processor. [Figure 9] 13 is a flowchart of a control process. [Figure 10A] 13 is a flowchart (part 1) of a first operation parameter search process. [Figure 10B] 13 is a flowchart (part 2) of the first operation parameter search process. [Figure 11] FIG. [Figure 12] 13 is a flowchart of a second operation parameter search process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] Hereinafter, the embodiments will be described in detail with reference to the drawings.
[0021] In recent years, the power consumption of processors has increased with the increase in integration density and the addition of functions. On the other hand, there is a growing demand for high performance, and it is preferable to maximize the performance per unit of power consumption. The performance per unit of power consumption represents the ratio of the processor's performance to its power consumption.
[0022] There are many different types of user programs executed by information processing devices, and the behavior and characteristics of each user program are different. For this reason, the method of improving the processor performance and reducing power consumption cannot be determined uniformly, and the method of maximizing the performance per unit of power consumption differs depending on the user program.
[0023] One method for reducing power consumption is to adjust the operating frequency of the processor. For example, when no programs are running and the processor load is not high, the operating frequency can be kept low or functions that would increase the operating frequency above the rated frequency can be suppressed to reduce power consumption.
[0024] Although power consumption can be reduced by reducing cache size, out-of-order execution resources, etc., such adjustment of processor resources is often not open to users. Even if resource adjustment were open to users, there is no technology to dynamically change resources.
[0025] In the technology of Patent Document 1, only the operating speed of the processor is controlled, and the processor resources are not adjusted.
[0026] In the technology of Patent Document 2, the performance of the microarchitecture is monitored, and the microarchitecture is tuned based on the monitored performance. However, the tuning of the microarchitecture is limited to enhancing performance, and does not reduce power consumption or improve performance per unit of power consumption.
[0027] Furthermore, in a method in which the user statically changes processor resources to improve performance per unit of power consumption, the user's workload increases. For example, the memory throughput can be adjusted by changing the amount of memory installed in the information processing device. However, in order to change the amount of memory, the user must turn off the power to the information processing device and insert or remove a memory board.
[0028] If the user were to maximize performance per watt while repeatedly measuring power consumption by statically changing processor resources, the user's workload would increase even further.
[0029] Fig. 2 shows an example of a functional configuration of an information processing apparatus according to an embodiment. An information processing apparatus 201 in Fig. 2 includes a calculation processing unit 211. The calculation processing unit 211 includes a power measurement unit 221, a performance measurement unit 222, a detection unit 223, and a determination unit 224.
[0030] The power measurement unit 221 measures the power consumption of the arithmetic processing unit 211, and the performance measurement unit 222 measures the performance of the arithmetic processing unit 211. The detection unit 223 detects a decrease in the power efficiency of the arithmetic processing unit 211 based on the power consumption of the arithmetic processing unit 211 measured while the arithmetic processing unit 211 is executing a program.
[0031] When a decrease in power efficiency is detected, the determination unit 224 causes the arithmetic processing unit 211 to execute a program while changing the operation parameters of the arithmetic processing unit 211. Then, the determination unit 224 determines the setting values of the operation parameters based on the power consumption and performance of the arithmetic processing unit 211 measured while the program is being executed while changing the operation parameters.
[0032] According to the information processing device 201 in FIG. 2, the power efficiency of the information processing device 201 can be improved.
[0033] Fig. 3 shows an example of a hardware configuration of the information processing device 201 in Fig. 2. The information processing device 301 in Fig. 3 is, for example, a server used in a data center, a system for HPC, or the like, and includes a processor 311 and a memory 312. The information processing device 301 further includes a system board and a power supply, which are not shown. The processor 311 and the memory 312 are hardware.
[0034] The processor 311 corresponds to the arithmetic processing unit 211 in Fig. 2. The memory 312 is, for example, a semiconductor memory such as a RAM (Random Access Memory). The processor 311 uses the memory 312 to execute programs such as a user program.
[0035] The information processing device 301 may further include an I / O (Input / Output) controller, an auxiliary storage device, and the like.
[0036] Fig. 4 shows an example of the configuration of the processor 311 in Fig. 3. The processor 311 in Fig. 4 includes cores 411-1 to 411-3, a cache memory 412, a power monitor 413, and a control processor 414. Each core 411-p (p=1 to 3) includes an instruction control unit 421-p, an execution unit 422-p, and a cache memory 423-p. The instruction control unit 421-p includes a performance counter 431-p.
[0037] The instruction control unit 421-p fetches and decodes instructions included in the program, and the execution unit 422-p executes the decoded instructions. The performance counter 431-p corresponds to the performance measurement unit 222 in Fig. 2, and measures the performance of the core 411-p by counting performance events such as the execution of instructions by the core 411-p.
[0038] The cache memory 423-p is a dedicated cache memory for the core 411-p, and the cache memory 412 is a shared cache memory for the cores 411-1 to 411-3. The cache memory 423-p is a level 1 cache memory, and the cache memory 412 is a level 2 cache memory.
[0039] 2, and measures the power consumption of the cores 411-1 to 411-3 and the cache memory 412. The control processor 414 corresponds to the detection unit 223 and the determination unit 224 in FIG. 2, and controls the cores 411-1 to 411-3 and the cache memory 412. The control processor 414 then uses the performance measured by the performance counter 431-p and the power consumption measured by the power monitor 413 to determine optimal setting values for the operating parameters of the processor 311.
[0040] Although the processor 311 in FIG. 4 includes three cores 411-p, the number of cores 411-p included in the processor 311 may be one, two, four or more.
[0041] Fig. 5 shows an example of the connection relationship of the components in the processor 311 of Fig. 4. The instruction control unit 421-p and the execution unit 422-p in each core 411-p are connected to a cache memory 423-p, and the cache memory 423-p is connected to the cache memory 412.
[0042] The power monitor 413 is connected to the cores 411-1 to 411-3 and the cache memory 412. The control processor 414 is connected to the instruction control units 421-1 to 421-3, the execution units 422-1 to 422-3, the cache memories 423-1 to 423-3, and the cache memory 412. The control processor 414 is also connected to the performance counters 431-1 to 431-3 and the power monitor 413.
[0043] The control processor 414 uses the power consumption measured during program execution by the cores 411-1 to 411-3 to detect a decrease in power efficiency of the processor 311. When a decrease in power efficiency is detected, the control processor 414 changes the operating parameters of the processor 311 and has the cores 411-1 to 411-3 execute the programs.
[0044] Next, the control processor 414 searches for setting values of the operating parameters that maximize the performance per power consumption, using the power consumption and performance measured while the program is being executed. Then, the control processor 414 sets the found setting values in the processor 311, and causes the cores 411-1 to 411-3 to execute the program again.
[0045] The operating parameters of the processor 311 include parameters indicating the operating frequency of the processor 311 and parameters of the microarchitecture. The operating frequency of the processor 311 indicates the frequency of the clock signals of the cores 411-1 to 411-3. By lowering the operating frequency, the power consumption of the processor 311 can be reduced.
[0046] The microarchitecture parameters include a parameter indicating the size of the resources of the processor 311 and a parameter indicating whether or not the resources of the processor 311 are to be used.
[0047] The parameter indicating the size of the resource may be a parameter indicating a single instruction multiple data (SIMD) width, a last level cache size, or a memory throughput. In the case of the processor 311 in FIG. 4 and FIG. 5, the last level cache is the cache memory 412. The processor 311 can adjust the memory throughput by changing the width of a bus between a memory access controller (not shown) in the processor 311 and the memory 312.
[0048] The parameter indicating whether to use a resource may be a parameter indicating whether to use a pipeline, a branch prediction, or a prefetch. The pipeline and the prefetch are resources of the execution unit 422-p, and the branch prediction is a resource of the instruction control unit 421-p.
[0049] By reducing the size of the resources used or by stopping the use of any of the resources, the power consumption of the processor 311 can be reduced.
[0050] The frequency of use of each resource varies depending on the characteristics of the user program executed by the processor 311. Therefore, the combination of operating parameters that maximizes the performance per unit of power consumption is not uniformly determined, but differs for each user program.
[0051] 4 and 5, the control processor 414 automatically searches for a combination of operating parameters that maximizes performance per power consumption, and dynamically changes the operating parameters of the processor 311. This makes it possible to improve the power efficiency of the information processing device 301. When a user program executed by the processor 311 is changed, a search for the operating parameters is performed again, making it possible to find a combination of operating parameters suitable for each user program.
[0052] Dynamically changing the operation parameters eliminates the need to turn off the power of the information processing device 301, and reduces the user's workload associated with changing the operation parameters, thereby reducing the operation time.
[0053] Fig. 6 shows an example of the configuration of the performance counter 431-p of Fig. 4 and Fig. 5. The performance counter 431-p of Fig. 6 includes a comparator 601, an adder 602, a count register 603, and an event register 604.
[0054] The event register 604 stores a performance event to be measured. The performance event to be measured is the execution of an instruction by the core 411-p, the occurrence of an access to the cache memory 423-p, etc. The signal SE indicates a performance event that has occurred in the core 411-p. The count register 603 stores a count value that indicates the number of times the performance event to be measured has occurred. The initial value of the count value is 0.
[0055] Comparator 601 compares the performance event stored in event register 604 with the performance event indicated by signal SE, and if the two performance events match, outputs a count-up signal to adder 602. When the count-up signal is output from comparator 601, adder 602 increments the count value stored in count register 603 by 1.
[0056] The performance counter 431-p outputs a count value indicating the number of performance events that occurred within a predetermined period as performance information indicating the performance of the core 411-p to the control processor 414. For example, when the performance event to be measured is the execution of an instruction, the performance information of the core 411-p may be MIPS (Million Instructions Per Second).
[0057] Fig. 7 shows an example of the configuration of the power monitor 413 of Fig. 4 and Fig. 5. The power monitor 413 of Fig. 7 includes a calculation circuit 701 and a coefficient register 702. Signals S1 to S3 indicate the power consumption of the cores 411-1 to 411-3, respectively, and signal SC indicates the power consumption of the cache memory 412. The coefficient register 702 stores coefficients W1 to W3 and a coefficient WC.
[0058] Calculation circuit 701 uses signals S1 to S3, signal SC, coefficients W1 to W3, and coefficient WC to calculate power consumption P of processor 311 according to the following equation, and outputs the calculated power consumption P to control processor 414.
[0059] P=S1×W1+S2×W2+S3×W3+SC×WC+C (1)
[0060] C is a predetermined constant. For example, when W1=W2=W3=WC=1 and C=0, the power consumption P is calculated by the following formula.
[0061] P = S1 + S2 + S3 + SC (2)
[0062] It is also possible to place a power monitor on other hardware that consumes a large amount of power. For example, by placing a power monitor on the memory 312 in FIG.
[0063] Fig. 8 shows an example of the configuration of the control processor 414 in Fig. 4 and Fig. 5. The control processor 414 in Fig. 8 includes a status register 801, a performance register 802, a power consumption register 803, and a data register 804.
[0064] The status register 801 stores status information indicating the operation mode of the processor 311. The operation mode of the processor 311 is either a normal mode, a low-speed mode, or a search mode. The normal mode is an operation mode in which the processor 311 operates in synchronization with a clock signal having a normal frequency, and the low-speed mode is an operation mode in which the processor 311 operates in synchronization with a clock signal having a frequency lower than the normal frequency. The search mode is an operation mode in which the processor 311 searches for setting values of operation parameters that maximize the performance per power consumption.
[0065] The performance register 802 stores performance information output from the performance counter 431-p, and the power consumption register 803 stores the power consumption output from the power monitor 413. The data register 804 stores an evaluation value indicating the performance per unit of power consumption of the processor 311.
[0066] Fig. 9 is a flowchart showing an example of the control process performed by the control processor 414 in Fig. 4 and Fig. 5. The control process in Fig. 9 is performed while the cores 411-1 to 411-3 are executing programs.
[0067] First, the control processor 414 receives a power saving instruction to switch the operation mode of the information processing device 301 to a low power consumption mode from an OS (Operating System) (step 901). The OS runs in any of the cores 411-p, and outputs a power saving instruction to the control processor 414 when, for example, the power consumption or load of the information processing device 301 becomes smaller than a predetermined value.
[0068] Next, control processor 414 checks whether the status information stored in status register 801 indicates the normal mode (step 902). If the status information indicates the normal mode (step 902, YES), control processor 414 reduces the frequency of the clock signals of cores 411-1 to 411-3 by a predetermined value F (step 903). The predetermined value F may be a value in the range of 5% to 20% of the normal frequency of the clock signals.
[0069] Next, the control processor 414 changes the status information in the status register 801 from normal mode to low speed mode (step 904), obtains the power consumption output from the power monitor 413, and stores it in the power consumption register 803 (step 905). Then, the control processor 414 compares the power consumption stored in the power consumption register 803 with a threshold value TH (step 906). The threshold value TH may be a value in the range of 40% to 60% of the maximum power consumption of the processor 311.
[0070] Theoretically, by lowering the frequency of the clock signals of the cores 411-1 to 411-3, both the performance and power consumption of the processor 311 are reduced. However, if the power consumption does not decrease significantly even when the frequency is lowered by a predetermined value F, the performance per unit power consumption of the processor 311 may be reduced. Therefore, the power efficiency level of the processor 311 can be checked by comparing the power consumption measured after lowering the frequency of the clock signals with the threshold value TH.
[0071] If the power consumption is equal to or less than the threshold value TH (step 906, YES), the control processor 414 determines that the power efficiency of the processor 311 has not decreased. Then, the control processor 414 instructs the cores 411-1 to 411-3 and the cache memory 412 to maintain the operating parameters at the current setting values (step 907).
[0072] On the other hand, if the power consumption is greater than the threshold TH (step 906, NO), the control processor 414 determines that the power efficiency of the processor 311 has decreased. Then, the control processor 414 changes the status information in the status register 801 from the low-speed mode to the search mode (step 909).
[0073] Next, the control processor 414 performs an operation parameter search process to set optimal setting values of the operation parameters in the cores 411-1 to 411-3 and the cache memory 412 (step 910).
[0074] If the status information does not indicate the normal mode (step 902, NO), control processor 414 checks whether the status information indicates the low-speed mode (step 908). If the status information indicates the low-speed mode (step 908, YES), control processor 414 performs the processes from step 905 onwards. On the other hand, if the status information indicates the search mode (step 908, NO), control processor 414 performs the process of step 910.
[0075] Figures 10A and 10B are flowcharts showing an example of the first operation parameter search process in step 910 of Figure 9. First, the control processor 414 sets variables X, Y, E[i][j] (i = 0 to n, j = 0 to m), and MAX[j] (j = 0 to m) to 0 (step 1001).
[0076] X represents the performance of the processor 311, and Y represents the power consumption of the processor 311. The control variable j represents the jth operating parameter of the processor 311, and the control variable i represents the ith setting value of each operating parameter. n and m are integers equal to or greater than 0, where n changes depending on the operating parameter. The data register 804 stores the 0th to nth setting values of each operating parameter.
[0077] E[i][j] represents the performance per unit of power consumption when the jth operating parameter is set to the i-th setting value, and MAX[j] represents the maximum value of E[0][j] to E[n][j].
[0078] Next, the control processor 414 sets i and j to 0 (step 1002), and compares j with m (step 1003). If j is equal to or less than m (step 1003, NO), the control processor 414 compares i with n (step 1004). If i is equal to or less than n (step 1004, NO), the control processor 414 performs control to set the jth operating parameter to the ith setting value (step 1005).
[0079] 11 shows an example of operating parameters when m = 6. The 0th operating parameter indicates an operating frequency, and has 0th to nth setting values. For example, the 0th setting value is 2.0 GHz.
[0080] The first operational parameter indicates the SIMD width and has setting values 0th to 2nd (n=2). For example, the 0th setting value is 512 bits. The second operational parameter indicates the last level cache size and has setting values 0th to nth. For example, the 0th setting value is 32 MB. The third operational parameter indicates the memory throughput and has setting values 0th to nth. For example, the 0th setting value is 256 GB / sec.
[0081] The fourth operation parameter indicates whether or not a pipeline is used, and has 0th to nth setting values. EXA and EXB indicate a fixed-point arithmetic pipeline, FLA and FLB indicate a floating-point arithmetic pipeline, and EAGA and EAGB indicate a virtual address calculation pipeline for load / store instructions. "On" indicates that a pipeline is used, and "Off" indicates that a pipeline is not used. For example, the 0th setting value is "On" for all pipelines.
[0082] The fifth operation parameter indicates whether or not branch prediction is used, and has setting values of 0th and 1st (n=1). "On" indicates that branch prediction is used, and "Off" indicates that branch prediction is not used. The 0th setting value is "On", and the 1st setting value is "Off".
[0083] The sixth operation parameter indicates whether or not to use prefetching, and has setting values 0th to 3rd (n=3). HW indicates hardware prefetching, and SW indicates software prefetching. "On" indicates that prefetching is used, and "Off" indicates that prefetching is not used. For example, the 0th setting value is "On" for HW and SW.
[0084] The control processor 414 selects the i-th setting value of the j-th operating parameter stored in the data register 804, and outputs it to the cores 411-1 to 411-3 or the cache memory 412. Then, the cores 411-1 to 411-3 or the cache memory 412 change the operating parameter to the setting value output from the control processor 414 without stopping operation.
[0085] Next, the control processor 414 requests performance information from the performance counters 431-1 to 431-3, acquires the performance information output from the performance counters 431-1 to 431-3, and stores it in the performance register 802. Then, the control processor 414 obtains the statistical value of the performance information from the performance counters 431-1 to 431-3, and sets it in X (step 1006). As the statistical value, the average value, the median value, etc. are used.
[0086] Next, the control processor 414 requests the power consumption from the power monitor 413, acquires the power consumption output from the power monitor 413, and stores it in the power consumption register 803. Then, the control processor 414 sets the power consumption stored in the power consumption register 803 to Y (step 1007).
[0087] Next, the control processor 414 obtains the performance per unit of power consumption by dividing X by Y, and sets the performance per unit of power consumption as E[i][j] (step 1008). Then, the control processor 414 stores E[i][j] in the data register 804.
[0088] Next, control processor 414 increments i by 1 (step 1009), and repeats the processes from step 1004 onwards.
[0089] If i exceeds n (step 1004, YES), control processor 414 sets the maximum value of E[0][j] to E[n][j] stored in data register 804 to MAX[j] (step 1010). Then, control processor 414 stores MAX[j] and the value of i corresponding to MAX[j] in data register 804.
[0090] Next, control processor 414 sets i to 0 (step 1011), increments j by 1 (step 1012), and repeats the processes from step 1003 onwards.
[0091] If j exceeds m (step 1003, YES), control processor 414 sets j to 0 (step 1013) and compares j with m (step 1014). If j is equal to or less than m (step 1014, NO), control processor 414 performs control to set the jth operating parameter to a setting value corresponding to MAX[j] (step 1015). At this time, control processor 414 uses the value of i stored in data register 804 to select the setting value corresponding to MAX[j].
[0092] The control processor 414 outputs the setting value corresponding to MAX[j] to the cores 411-1 to 411-3 or the cache memory 412. Then, the cores 411-1 to 411-3 or the cache memory 412 change their operating parameters to the setting values output from the control processor 414 without stopping their operations.
[0093] Next, control processor 414 increments j by 1 (step 1016) and repeats the processes from step 1014 onwards. If j exceeds m (step 1014, YES), control processor 414 ends the process.
[0094] By the process of step 1015, for example, the operating parameters in FIG.
[0095] Operating frequency: 1.6GHz SIMD width: 128bit Last level cache size: 16MB Memory throughput: 128GB / sec Pipeline: EXA On, EXB On, FLA On, FLB On, EAGA On, EAGB On Branch prediction:On Prefetch:HW On,SW Off
[0096] Fig. 12 is a flowchart showing an example of the second operation parameter search process in step 910 in Fig. 9. In the operation parameter search process in Fig. 12, an optimal setting value is searched for for a specific operation parameter designated by the user among the 0th to mth operation parameters.
[0097] First, the control processor 414 sets variables X, Y, E[i] (i=0 to n), and MAX to 0 (step 1201). X represents the performance of the processor 311, and Y represents the power consumption of the processor 311. The control variable i represents the i-th setting value of a specific operating parameter. E[i] represents the performance per power consumption when the i-th setting value is set for the specific operating parameter, and MAX represents the maximum value of E[0] to E[n].
[0098] Next, the control processor 414 sets i to 0 (step 1202) and compares i with n (step 1203). If i is equal to or smaller than n (step 1203, NO), the control processor 414 performs control to set the i-th setting value to a specific operating parameter (step 1204).
[0099] The processes of steps 1205 and 1206 are the same as those of steps 1006 and 1007 in Fig. 10A. Next, the control processor 414 divides X by Y to obtain the performance per unit of power consumption, and sets the performance per unit of power consumption as E[i] (step 1207). Then, the control processor 414 stores E[i] in the data register 804.
[0100] Next, control processor 414 increments i by 1 (step 1208), and repeats the processes from step 1203 onwards.
[0101] If i exceeds n (step 1203, YES), control processor 414 sets the maximum value of E[0] to E[n] stored in data register 804 to MAX (step 1209). Then, control processor 414 stores MAX and the value of i corresponding to MAX in data register 804.
[0102] Next, control processor 414 performs control to set a set value corresponding to MAX to a specific operating parameter (step 1210). At this time, control processor 414 uses the value of i stored in data register 804 to select the set value corresponding to MAX.
[0103] For example, when a particular operating parameter is a SIMD width, increasing the SIMD width may not improve performance depending on the nature of the program executed by the processor 311. In this case, since an increase in the SIMD width leads to an increase in power consumption, decreasing the SIMD width may improve performance per power consumption. The process of step 1210 sets the SIMD width to, for example, 256 bits.
[0104] It is also possible for any of the cores 411-1 to 411-3, instead of the control processor 414, to perform the control process of FIG. 9, thereby dynamically changing the operating parameters of the processor 311.
[0105] The configurations of the information processing device 201 in Fig. 2 and the information processing device 301 in Fig. 3 are merely examples, and some of the components may be omitted or changed depending on the purpose or conditions of the information processing device. For example, the information processing device 301 in Fig. 3 may include an input device, an output device, or a communication device.
[0106] The configurations of processor 101 in Fig. 1 and processor 311 in Fig. 4 and Fig. 5 are merely examples, and some of the components may be omitted or changed depending on the configuration or conditions of the information processing device. For example, in processor 311 in Fig. 4 and Fig. 5, when any of cores 411-1 to 411-3 performs the control process in Fig. 9, control processor 414 can be omitted.
[0107] The configurations of the performance counter 431-p in Fig. 6 and the power monitor 413 in Fig. 7 are merely examples, and some of the components may be omitted or changed depending on the configuration or conditions of the information processing device. The configuration of the control processor 414 in Fig. 8 is merely an example, and some of the components may be omitted or changed depending on the configuration or conditions of the information processing device.
[0108] The flowcharts of Figures 9, 10A, 10B, and 12 are merely examples, and some of the processes may be omitted or changed depending on the configuration or conditions of the information processing device. The operation parameters shown in Figure 11 are merely examples, and some of the operation parameters may be omitted or changed depending on the configuration or conditions of the information processing device.
[0109] Although the disclosed embodiments and their advantages have been described in detail, it will be appreciated that those skilled in the art may make various modifications, additions and omissions therein without departing from the scope of the invention as clearly set forth in the claims.
[0110] The following notes are further disclosed regarding the embodiment described with reference to FIGS. (Appendix 1) An information processing device including a calculation processing unit, The arithmetic processing unit is a power measurement unit for measuring the power consumption of the arithmetic processing unit; a performance measurement unit for measuring the performance of the arithmetic processing unit; a detection unit that detects a decrease in power efficiency of the arithmetic processing unit based on power consumption of the arithmetic processing unit measured while a program is being executed by the arithmetic processing unit; a determination unit that, when a decrease in the power efficiency is detected, causes the arithmetic processing unit to execute the program while changing an operation parameter of the arithmetic processing unit, and determines a setting value of the operation parameter based on power consumption and performance of the arithmetic processing unit measured while the program is being executed while changing the operation parameter; 13. An information processing device comprising: (Appendix 2) 2. The information processing device according to claim 1, wherein the operational parameter is a parameter indicating a resource size of the arithmetic processing unit. (Appendix 3) 3. The information processing device according to claim 2, wherein the parameter indicating the size of the resource of the arithmetic processing unit is a parameter indicating a single instruction multiple data width, a last level cache size, or a memory throughput. (Appendix 4) 2. The information processing device according to claim 1, wherein the operational parameter is a parameter indicating whether or not to use resources of the arithmetic processing unit. (Appendix 5) 5. The information processing device according to claim 4, wherein the parameter indicating whether to use the resources of the arithmetic processing unit is a parameter indicating whether to use a pipeline, a branch prediction, or a prefetch. (Appendix 6) The information processing device described in any one of Appendix 1 to 5, characterized in that the detection unit reduces an operating frequency of the arithmetic processing unit by a predetermined value while the program is being executed, and determines that the power efficiency has decreased if the power consumption of the arithmetic processing unit measured after reducing the operating frequency by the predetermined value is greater than a threshold value. (Appendix 7) The information processing device according to any one of appendices 1 to 6, wherein the determination unit calculates a ratio of the performance of the arithmetic processing unit to the power consumption of the arithmetic processing unit measured while the program is being executed using each of a plurality of values of operating parameters of the arithmetic processing unit, and determines the value among the plurality of values corresponding to the maximum value of the ratio as the setting value. (Appendix 8) A control method for an information processing device including a calculation processing unit, Detecting a decrease in power efficiency of the arithmetic processing unit based on power consumption of the arithmetic processing unit measured while a program is being executed by the arithmetic processing unit; When the decrease in the power efficiency is detected, the processor executes the program while changing an operating parameter of the processor; determining setting values of the operation parameters based on power consumption and performance of the arithmetic processing unit measured while the program is being executed while changing the operation parameters; A control method comprising: (Appendix 9) 9. The control method according to claim 8, wherein the operational parameter is a parameter indicating a resource size of the arithmetic processing unit. (Appendix 10) The control method according to claim 9, wherein the parameter indicating the size of the resource of the arithmetic processing unit is a parameter indicating a single instruction multiple data width, a last level cache size, or a memory throughput. (Appendix 11) 9. The control method according to claim 8, wherein the operational parameter is a parameter indicating whether or not to use resources of the arithmetic processing unit. (Appendix 12) The control method according to claim 11, wherein the parameter indicating whether to use the resources of the arithmetic processing unit is a parameter indicating whether to use a pipeline, a branch prediction, or a prefetch. (Appendix 13) The control method according to any one of appendices 8 to 12, characterized in that the process of detecting a decrease in power efficiency of the arithmetic processing unit includes a process of lowering an operating frequency of the arithmetic processing unit by a predetermined value while the program is being executed, and a process of determining that the power efficiency has decreased if the power consumption of the arithmetic processing unit measured after lowering the operating frequency by the predetermined value is greater than a threshold value. (Appendix 14) The control method according to any one of appendices 8 to 13, characterized in that the process of determining the setting value of the operating parameter includes a process of calculating a ratio of the performance of the arithmetic processing unit to the power consumption of the arithmetic processing unit measured while the program is being executed using each of a plurality of values of the operating parameter of the arithmetic processing unit, and a process of determining the value among the plurality of values corresponding to the maximum value of the ratio as the setting value. [Explanation of symbols]
[0111] 101, 311 processors 111-1~111-3, 411-1~411-3 Core 112, 123-1 to 123-3, 412, 423-1 to 423-3 Cache memory 121-1 to 121-3, 421-1 to 421-3 Command control unit 122-1~122-3, 422-1~422-3 Executive Department 131-1 to 131-3, 431-1 to 431-3 Performance counters 201, 301 Information processing device 211 Processing unit 221 Power measurement section 222 Performance measurement section 223 Detection Unit 224 Decision Section 312 Memory 413 Power Monitor 414 Control Processor 601 Comparator 602 Adder 603 Count Register 604 Event Register 701 Calculation circuit 702 Coefficient Register 801 Status Register 802 Performance Register 803 Power Consumption Register 804 Data Register
Claims
1. An information processing device including a calculation processing unit, The arithmetic processing unit is a power measurement unit for measuring the power consumption of the arithmetic processing unit; a performance measurement unit for measuring the performance of the arithmetic processing unit; a detection unit that detects a decrease in power efficiency of the arithmetic processing unit when power consumption of the arithmetic processing unit measured after an operating frequency of the arithmetic processing unit is reduced by a predetermined value while a program is being executed by the arithmetic processing unit is greater than a threshold value; a determination unit that, when a decrease in the power efficiency is detected, causes the arithmetic processing unit to execute the program while changing an operation parameter of the arithmetic processing unit, and determines a setting value of the operation parameter based on power consumption and performance of the arithmetic processing unit measured while the program is being executed while changing the operation parameter; 13. An information processing device comprising:
2. 2. The information processing apparatus according to claim 1, wherein the operation parameter is a parameter indicating a resource size of the arithmetic processing unit.
3. 2. The information processing apparatus according to claim 1, wherein the operation parameter is a parameter indicating whether or not a resource of the arithmetic processing unit is to be used.
4. An information processing device as described in any one of claims 1 to 3, characterized in that the determination unit calculates a ratio of the performance of the arithmetic processing unit to the power consumption of the arithmetic processing unit measured while the program is being executed using each of a plurality of values of operating parameters of the arithmetic processing unit, and determines the value corresponding to the maximum value of the ratio among the plurality of values as the setting value.
5. A control method for an information processing device including a calculation processing unit, detecting a decrease in power efficiency of the arithmetic processing unit when power consumption of the arithmetic processing unit measured after reducing an operating frequency of the arithmetic processing unit by a predetermined value while a program is being executed by the arithmetic processing unit is greater than a threshold value; When the decrease in the power efficiency is detected, the processor executes the program while changing an operating parameter of the processor; determining setting values of the operation parameters based on power consumption and performance of the arithmetic processing unit measured while the program is being executed while changing the operation parameters; A control method comprising:
Citation Information
Patent Citations
Operation speed control method for processor inside computer and computer
JP1999353052A
Processor, its driving method, and electronic information processing apparatus
JP2004303206A
Method and apparatus for varying the energy per instruction according to the amount of available parallelism.
JP2008513912A
Performance monitoring architecture enhancement for critical path-based analysis
JP2012178173A
Techniques for self-tuning of computing systems
US20170242472A1
