Performance evaluation method and device of central processing unit, storage medium and computer program product
By obtaining application environment parameters and detecting data copy delay parameters, the central processor performance is evaluated, solving the problem of low CPU performance matching and achieving more efficient CPU selection and performance satisfaction.
Patent Information
- Application Number
- CN202410370153.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, CPU performance evaluation methods are difficult to accurately match the scenario to be used and the selected CPU, resulting in poor performance.
By obtaining the application environment parameters, determining the simulation data source, and detecting the data copy delay parameters, we can evaluate the performance of the central processor and select a matching CPU.
It improves the matching between the scenario to be used and the selected CPU, ensuring that the CPU performance meets the needs, reducing production risks and improving production efficiency.
Smart Images

Figure CN118796631A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a performance evaluation method and device for a central processing unit, a storage medium, and a computer program product. Background Art
[0002] The central processing unit (CPU) is the brain of the computer, mainly responsible for executing program instructions and temporarily storing the CPU's computing data. The CPU cache is used to resolve the contradiction between the CPU's computing speed and the memory's read and write speed. As the CPU has evolved from a single core to multiple cores (such as quad-core, octa-core, etc.), its cache has also evolved into three levels of cache: L1 Cache, L2 Cache, and L3 Cache.
[0003] In the related art, the CPU required in the use scenario is selected based on the relevant parameters of the CPU performance. In this way, the L3Cache of the selected CPU may not match the demand for L3Cache in the use scenario, thereby reducing the matching degree between the use scenario and the selected CPU. Summary of the invention
[0004] In order to solve the above technical problems, the embodiments of the present application hope to provide a performance evaluation method and device for a central processing unit, a storage medium, and a computer program product, which can improve the matching degree between the scenario to be used and the selected CPU.
[0005] The technical solution of this application is implemented as follows:
[0006] The present application provides a method for evaluating the performance of a central processing unit, the method comprising:
[0007] Get application environment parameters;
[0008] Determine a simulated data source for testing a central processing unit according to the application environment parameters;
[0009] Detecting a delay parameter when the analog data source and the central processing perform data copying;
[0010] The performance of the central processing unit is evaluated according to the delay parameter to obtain an evaluation result.
[0011] The present application provides a central processing unit performance evaluation device, the device comprising:
[0012] An acquisition unit, used for acquiring application environment parameters;
[0013] A determination unit, used to determine a simulated data source for testing a central processing unit according to the application environment parameters;
[0014] A detection unit, used for detecting a delay parameter when the analog data source and the central processing perform data copying;
[0015] The evaluation unit is used to evaluate the performance of the central processing unit according to the delay parameter to obtain an evaluation result.
[0016] The present application provides a central processing unit performance evaluation device, the device comprising:
[0017] A memory, a processor and a communication bus, wherein the memory communicates with the processor via the communication bus, and the memory stores a central processing unit performance evaluation program executable by the processor. When the central processing unit performance evaluation program is executed, the central processing unit performance evaluation method described above is executed by the processor.
[0018] An embodiment of the present application provides a storage medium having a computer program stored thereon, which is applied to a performance evaluation device for a central processing unit, and is characterized in that when the computer program is executed by a processor, the central processing unit performance evaluation method described above is implemented.
[0019] The embodiment of the present application also provides a computer program product, including a computer program, which can be executed by a processor in a performance evaluation device of a central processing unit to complete the steps of the aforementioned central processing unit performance evaluation method.
[0020] The embodiment of the present application provides a performance evaluation method and device for a central processing unit, a storage medium, and a computer program product. The performance evaluation method for a central processing unit includes: obtaining application environment parameters; determining a simulated data source for testing a central processing unit according to the application environment parameters; detecting the delay parameters when the simulated data source and the central processing unit copy data; and evaluating the performance of the central processing unit according to the delay parameters to obtain an evaluation result. The above method is implemented in that the performance evaluation device for the central processing unit obtains the environment parameters when the central processing unit is applied in the scenario to be used, and uses the environment parameters to determine the simulated data source for testing the central processing unit; detects the delay parameters when the simulated data source and the central processing unit copy data, that is, uses the delay parameters to determine the performance of the third-level cache, thereby evaluating the performance of the central processing unit according to the delay parameters, and selecting a central processing unit that matches the scenario to be used from multiple central processing units, thereby improving the matching degree between the scenario to be used and the selected central processing unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1A flow chart of a method for evaluating the performance of a central processing unit provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of an exemplary CPU performance evaluation method provided in an embodiment of the present application Figure 1 ;
[0023] Figure 3 A schematic diagram of an exemplary CPU performance evaluation method provided in an embodiment of the present application Figure 2 ;
[0024] Figure 4 A schematic diagram of a performance evaluation structure of a central processing unit provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of a CPU performance evaluation device provided in an embodiment of the present application Figure 1 ;
[0026] Figure 6 A schematic diagram of the structure of a CPU performance evaluation device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
[0028] The embodiment of the present application provides a performance evaluation method for a central processing unit, and the performance evaluation method for a central processing unit is applied to a performance evaluation device for a central processing unit. Figure 1 A flow chart of a performance evaluation method for a central processing unit provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the performance evaluation method of the CPU may include:
[0029] S101. Obtain application environment parameters.
[0030] A performance evaluation method for a central processing unit provided in an embodiment of the present application is suitable for evaluating the performance of a central processing unit or guiding the design of a central processing unit.
[0031] In the embodiments of the present application, the performance evaluation device of the central processing unit can be implemented in various forms. For example, the performance evaluation device of the central processing unit described in the present application can include mid-end equipment, servers and other devices.
[0032] It should be noted that the performance evaluation device for a central processing unit is used to evaluate the performance of the L3 Cache of a central processing unit (CPU).
[0033] In the embodiment of the present application, the application environment parameters are environment parameters when the central processing unit is applied, and are also parameters required for testing the performance of the L3 Cache of the central processing unit.
[0034] In the embodiment of the present application, the application environment parameters may be parameters input into the performance evaluation device of the central processing unit, or may be parameters transmitted from other devices to the performance evaluation device of the central processing unit, or may be parameters obtained by the performance evaluation device of the central processing unit through other means. The specific manner in which the performance evaluation device of the central processing unit obtains the application environment parameters may be determined based on actual conditions, and the embodiment of the present application does not limit this.
[0035] S102: Determine a simulated data source for testing a central processing unit according to application environment parameters.
[0036] In the embodiment of the present application, after the performance evaluation device of the central processing unit obtains the application environment parameters, it can determine the simulated data source for testing the central processing unit according to the application environment parameters.
[0037] In the embodiment of the present application, the performance of L3 Cache can be reflected by the time-consuming data of Memcpy. There is a large amount of data interaction between the CPU and the forward transmission processing module (forward transmission processing interface) and the FEC acceleration interface (acceleration interface) and the data return interface, especially the forward transmission processing interface and the FEC acceleration interface have high speed, large data volume, and relatively strict requirements on real-time performance. The performance test of L3 Cache can be obtained by testing the performance of the forward transmission processing interface, the FEC acceleration interface and the data return interface in the CPU, thereby obtaining the performance evaluation result of the CPU.
[0038] It should be noted that determining the simulated data source of the central processing unit is to determine the simulated data source for testing the fronthaul processing interface, the FEC acceleration interface and the data return interface.
[0039] In the embodiment of the present application, a simulated data source can be firstly produced according to the total bandwidth requirements of the interaction interfaces between the fronthaul processing interface, the FEC acceleration interface and the data return interface and the CPU respectively; then, a simulated source is used on a pre-silicon verification platform or a CPU chip to simulate the working state of the CPU data interface when the base station is working normally to perform data transmission and reception; finally, a comparative test is performed to evaluate the processing time consumption of L3 caches of different sizes, and the performance satisfaction of different L3 caches is compared and analyzed through the time consumption data (the performance evaluation result of the central processing unit is obtained). The shorter the time consumption data of each indicator, the better the performance, and if the processing delay requirements of the wireless device are met, it means that the L3 cache meets the performance requirements of the wireless device.
[0040] In an embodiment of the present application, a process in which a performance evaluation device for a central processing unit determines a simulated data source for testing the central processing unit according to application environment parameters includes: determining a communication interface bandwidth of the central processing unit according to the application environment parameters; and determining a simulated data source according to the communication interface bandwidth.
[0041] In the embodiment of the present application, after determining the communication interface bandwidth of the central processing unit, the performance evaluation device of the central processing unit configures a simulation data source whose bandwidth is the communication interface bandwidth.
[0042] It should be noted that the simulated data source includes three types. The first type of simulated data source is a simulated data source used to test the fronthaul processing interface; the second type of simulated data source is a simulated data source used to test the FEC acceleration interface; and the third type of simulated data source is a simulated data source used to test the data backhaul interface.
[0043] In an embodiment of the present application, the communication interface bandwidth also includes three types. The first type is the first bandwidth, which is used to determine the interface bandwidth of the simulated data source for testing the fronthaul processing interface; the second type is the second bandwidth, which is used to determine the interface bandwidth of the simulated data source for testing the FEC acceleration interface; the third type is the third bandwidth, which is used to determine the interface bandwidth of the simulated data source for testing the data backhaul interface.
[0044] In the embodiment of the present application, the communication interface bandwidth may also be determined according to the communication standard. The specific method of determining the communication interface bandwidth may be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0045] It can be understood that the communication interface bandwidth of the central processing unit is determined according to the application environment parameters, so as to configure a simulated data source that matches the communication interface bandwidth, and the delay parameters when the simulated data source and the central processing unit copy data are detected, that is, the performance of the three-level cache is determined by using the delay parameters, so as to evaluate the performance of the central processing unit according to the delay parameters, select a central processing unit that matches the scenario to be used from multiple central processing units, and improve the matching degree between the scenario to be used and the selected central processing unit.
[0046] In an embodiment of the present application, the process of the performance evaluation device of the central processing unit determining the communication interface bandwidth of the central processing unit according to the application environment parameters includes: obtaining the number of cells, the number of transceiver antennas, the bandwidth, the data packet format and the bandwidth speed from the application environment parameters; determining the communication interface bandwidth according to the number of cells, the number of transceiver antennas, the bandwidth, the data packet format and the bandwidth speed.
[0047] In the embodiment of the present application, the application environment parameters include the number of cells, the number of transmitting and receiving antennas, bandwidth, data packet format and bandwidth speed, etc. The specific application environment parameters can be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0048] It can be understood that by obtaining the number of cells, the number of transmitting and receiving antennas, the bandwidth, the data packet format and the bandwidth speed from the application environment parameters, that is, obtaining the environmental parameters when the central processor is applied, the performance of the central processor is evaluated according to the environmental parameters, and thus a central processor matching the scenario to be used is selected from multiple central processors, thereby improving the matching degree between the scenario to be used and the selected central processor.
[0049] In an embodiment of the present application, the performance evaluation device of the central processing unit determines the process of the communication interface bandwidth according to the number of cells, the number of transceiver antennas, the bandwidth, the data packet format and the bandwidth speed, including: determining the first bandwidth of the fronthaul processing interface of the central processing unit, the second bandwidth of the acceleration interface of the central processing unit and the third bandwidth of the data backhaul interface of the central processing unit according to the number of cells, the number of transceiver antennas, the bandwidth, the data packet format and the bandwidth speed; determining the communication interface bandwidth according to the first bandwidth, the second bandwidth and the third bandwidth.
[0050] In an embodiment of the present application, the process of determining the first bandwidth of the fronthaul processing interface according to the number of cells, the number of transceiver antennas, the bandwidth, the data packet format and the bandwidth speed includes: if there are 4 2T2R cells, the communication interface bandwidth of 1CC 2T2R is as shown in formula (1),
[0051] 273RB*12RE*14SYMB*2ANT*4BYTE=366,912Byte / Slot / Cell=358KB / Slot / Cell (1)
[0052] The communication interface bandwidth of 4CC 2T2R is shown in formula (2):
[0053] 4*366, 912=1,467,648Byte / Slot (1Slot=500μs) (2)
[0054] That is, the first bandwidth is 1467648 Byte / slot.
[0055] Exemplarily, the process of determining the second bandwidth of the acceleration interface according to the number of cells, the number of transceiver antennas, the bandwidth, the data packet format and the bandwidth speed includes: the data bandwidth requirement before 4CC 2T2R downlink FEC encoding is: 2,568,192bit / slot=313.5kB / slot; the data bandwidth requirement after 4CC 2T2R downlink FEC encoding is: 7,938,048bit / slot=969kB / slot; the data bandwidth requirement before 4CC 2T2R uplink FEC decoding is: 63,504,384bit / slot=7,752kB / slot; the data bandwidth requirement after 4CC 2T2R uplink FEC decoding is: 2,568,192=313.5kB / slot.
[0056] It should be noted that 1 Slot = 500 μs. During the test, the length of the downstream simulated data is greater than 10 slots, and the length of the upstream simulated data is greater than 10 slots.
[0057] Exemplarily, the return data of the data return interface is transmitted in Ethernet packet format with a packet length of 1200 bytes. The process of determining the third bandwidth of the data return interface according to the number of cells, the number of transmitting and receiving antennas, the bandwidth, the data packet format and the bandwidth speed includes: downlink data bandwidth of 3.4 Gbps and uplink data bandwidth of 1.2 Gbps.
[0058] In the embodiment of the present application, the performance evaluation device of the central processing unit determines the communication interface bandwidth according to the first bandwidth, the second bandwidth and the third bandwidth, and the first bandwidth, the second bandwidth and the third bandwidth are used as the communication interface bandwidth.
[0059] It can be understood that the performance of the L3 Cache of the central processing unit can be reflected by the time-consuming data of Memcpy. There is a large amount of data interaction between the CPU and the forward transmission processing interface, the FEC acceleration interface and the data return interface. These interfaces have high speeds, large data volumes and relatively strict requirements on real-time performance. By determining the first bandwidth of the forward transmission processing interface, the second bandwidth of the acceleration interface and the third bandwidth of the data return interface, a simulated data source matching the first bandwidth, the second bandwidth and the third bandwidth is configured, so as to detect the delay parameters when the simulated data source and the central processing unit copy data, that is, to determine the performance of the three-level cache by using the delay parameters, so as to evaluate the performance of the central processing unit according to the delay parameters, select a central processing unit matching the scenario to be used from multiple central processing units, and improve the matching degree between the scenario to be used and the selected central processing unit.
[0060] S103, detecting the delay parameters when the simulated data source and the central processing unit copy data.
[0061] In the embodiment of the present application, after the performance evaluation device of the central processing unit determines the simulated data source for testing the central processing unit according to the application environment parameters, it can detect the delay parameters when the simulated data source and the central processing unit copy data.
[0062] In an embodiment of the present application, a performance evaluation device of a central processing unit detects a process of delay parameters when a simulated data source and a central processing unit copy data, including: using a simulated data source to start a signal sending thread and a signal receiving thread; starting a preset timer; in the simulated data source, configuring a sending buffer corresponding to the signal sending thread and a receiving buffer corresponding to the signal receiving thread; determining an information transmission time slot type according to the timer; determining the delay parameters when copying data with the central processing unit according to the information transmission time slot type, the signal sending thread, the signal receiving thread, the sending buffer, and the receiving buffer.
[0063] In the embodiment of the present application, the delay parameters when the simulated data source and the central processing unit copy data can be detected through the Playback simulation program.
[0064] It should be noted that a 10ms radio frame has two half frames. Taking the DDDDD DDSUU 5ms single cycle as an example, there are about 8 downlink slots and 2 uplink slots. The uplink and downlink simulated data length needs to be greater than a 5ms half frame, that is, 10 slots.
[0065] For example, for the fronthaul processing interface, the process of detecting the delay parameters when the simulated data source and the central processing perform data copying is as follows: Figure 2As shown: first calculate the communication interface bandwidth size (i.e. determine the first bandwidth); then start two threads, the Tx thread (signal sending thread) and the Rx thread (signal receiving thread), respectively, and start a 500us timer; open up a TX ring buf (4*10*358kB) with a size of 10 cycles in 4 cells for Tx; open up an RX ring buf (4*10*358kB) with a size of 10 cycles in 4 cells for Rx; execute the working logic of the Tx / Rx / Timer thread when the working time of the Tx / Rx / Timer thread is not less than 1 hour, and obtain the delay parameter.
[0066] It should be noted that the working logic of the Tx / Rx / Timer thread includes steps ac:
[0067] Step a: Determine whether the current time slot is D (downlink time slot) or U (uplink time slot) based on the 500us timer. If it is D, notify the Tx thread; if it is U, notify the Rx thread.
[0068] Step b: Tx thread logic: copy the local bufs of the four cells to the Tx Ring buf (358KB) step by step, and record the time taken before and after the copy;
[0069] Step c: Rx thread logic: copy the Rx Ring buf (358KB) of the four cells to the local buf step by step, and record the time consumed before and after the copy.
[0070] For example, for the acceleration interface, the process of detecting the delay parameter when the simulated data source and the central processing unit copy data is as follows: Figure 2 As shown: first calculate the communication interface bandwidth size (determine the second bandwidth); then start two threads, Tx thread (signal sending thread) and Rx thread (signal receiving thread), respectively, and start a 500us timer; open 4 cells and 10 cycle sizes of TX ring buf (10*969kB) for Tx; open 4 cells and 10 cycle sizes of RX ringbuf (10*7752kB) for Rx; execute the working logic of Tx / Rx / Timer thread when the working time of Tx / Rx / Timer thread is not less than 1 hour, and obtain the delay parameter.
[0071] It should be noted that the working logic of the Tx / Rx / Timer thread includes steps ac:
[0072] Step a: Determine whether the current state is D or U based on the 500us timer. If it is D, notify the Tx thread; if it is U, notify the Rx thread.
[0073] Step b: Tx thread logic: copy the local bufs of the four cells to the Tx Ring buf (9.69MB) step by step, and record the time taken before and after the copy;
[0074] Step c: Rx thread logic: copy the Rx Ring buf (77.52MB) of the four cells to the local buf step by step, and record the time consumed before and after the copy.
[0075] It can be understood that the performance evaluation device of the central processing unit sets a signal sending thread and a signal receiving thread, and configures a sending buffer corresponding to the signal sending thread and a receiving buffer corresponding to the signal receiving thread, so as to implement the delay parameters of the sending buffer and the receiving buffer when the information of the signal receiving thread and the signal sending thread is exchanged through the forward processing interface and the acceleration interface, so as to utilize the delay parameters to determine the performance of the third-level cache, thereby realizing the performance evaluation of the central processing unit according to the delay parameters, selecting a central processing unit that matches the scenario to be used from multiple central processing units, and improving the matching degree between the scenario to be used and the selected central processing unit.
[0076] In an embodiment of the present application, a performance evaluation device of a central processing unit determines a process of delay parameters when copying data with a central processing unit according to an information transmission time slot type, a signal sending thread, a signal receiving thread, a sending buffer, and a receiving buffer, including: when the information transmission time slot type is a downlink time slot type, detecting a first time in a process of copying data in a third-level cache of the central processing unit to a receiving buffer using a signal sending thread; when the information transmission time slot type is an uplink time slot type, detecting a second time in a process of copying data in a sending buffer to a third-level cache using a signal receiving thread; and determining the delay parameters according to the first time and the second time.
[0077] In an embodiment of the present application, within a detection time period, the delay parameters for copying data with the central processing unit can be determined based on the information transmission time slot type, the signal sending thread, the signal receiving thread, the sending buffer, and the receiving buffer. The detection time period includes multiple uplink time slots and multiple downlink time slots, corresponding to multiple first times and multiple second times. The performance evaluation device of the central processing unit can determine a first time average based on the multiple first times, determine a second time average based on the multiple second times, and then use the first time average and the second time average as delay parameters.
[0078] It can be understood that the performance evaluation device of the central processing unit classifies the information transmission time slot type, determines the first time in the process of copying data in the third-level cache of the central processing unit to the receiving buffer using the signal sending thread, and the second time in the process of copying data in the sending buffer to the third-level cache using the signal receiving thread, thereby obtaining accurate delay parameters when the central processing unit and the simulated data source interact with each other through the forward processing interface and the acceleration interface information, and uses the delay parameters to determine the performance of the third-level cache, thereby realizing the performance evaluation of the central processing unit according to the delay parameters, selecting a central processing unit that matches the scenario to be used from multiple central processing units, and improving the matching degree between the scenario to be used and the selected central processing unit.
[0079] In an embodiment of the present application, a performance evaluation device of a central processing unit detects a process of delay parameters when a simulated data source and a central processing unit copy data, including: recording a third time in the process of copying data from a large page memory to a local memory at a first preset rate; recording a fourth time in the process of copying data from a local memory to a large page memory at a second preset rate; and determining a delay parameter based on the third time and the fourth time.
[0080] In an embodiment of the present application, the large page memory is initialized for use with the downlink data received by the simulated data return interface, and the local memory (local buffer) is initialized for use with the uplink data received by the simulated data return interface; the return-related application copies the downlink data from the large page memory to the local buffer, and copies the uplink data from the local buffer to the large page memory.
[0081] It can be understood that the performance evaluation device of the central processing unit obtains the delay parameters when the simulated data source interacts with the data return interface by recording the third time in the process of copying data from the large page memory to the local memory at the first preset rate and the fourth time in the process of copying data from the local memory to the large page memory at the second preset rate, so as to use the delay parameters to determine the performance of the third-level cache, thereby evaluating the performance of the central processing unit according to the delay parameters, selecting a central processing unit that matches the scenario to be used from multiple central processing units, and improving the matching degree between the scenario to be used and the selected central processing unit.
[0082] In an embodiment of the present application, the process of determining the delay parameter according to the third time and the fourth time by the performance evaluation device of the central processing unit includes: determining the average time consumption of the first copy according to the third time; determining the average time consumption of the second copy according to the fourth time; determining the delay parameter according to the average time consumption of the first copy and the average time consumption of the second copy.
[0083] In the embodiment of the present application, the number of the third time is multiple, and the number of the fourth time is also multiple.
[0084] In an embodiment of the present application, within a detection time period, the delay parameters when the analog data source and the central processing perform data copying can be detected. The detection time period includes multiple uplink time slots and multiple downlink time slots, corresponding to which there are multiple third times and multiple fourth times.
[0085] For example, for the data return interface, the process of detecting the delay parameters when the simulated data source and the central processing perform data copying is as follows: Figure 3 As shown: 1G huge page memory and 1G local buffer are allocated to the downlink test thread, and the value in the huge page memory is initialized as a unit of 1200 bytes to simulate the downlink data packet; the downlink test thread reads data from the huge page memory in units of 1200 bytes at a rate of 3.4Gbps, and writes it to the local buff in a loop; the time taken from the start of reading to the completion of writing each time is recorded, and the average time taken within a certain time (such as 2 seconds) is calculated (and printed); the uplink test thread allocates 512M huge page memory and 512M local buffer, and initializes the value in the local memory as a unit of 1200 bytes to simulate the uplink data packet; the uplink test thread reads data from the local buffer in units of 1200 bytes at a rate of 1.2Gbps, and writes it to the huge page memory in a loop; the time taken from the start of reading to the completion of writing each time is recorded, and the average time taken within a certain time (such as 2 seconds) is calculated (and printed).
[0086] It can be understood that the performance evaluation device of the central processing unit obtains multiple third times and multiple fourth times through detection, and determines the average time consumption of the first copy according to the multiple third times, and determines the average time consumption of the second copy according to the multiple fourth times, so as to determine the accurate delay parameter according to the average time consumption of the first copy and the average time consumption of the second copy, so as to use the delay parameter to determine the performance of the third-level cache, thereby realizing the performance evaluation of the central processing unit according to the delay parameter, selecting the central processing unit that matches the scenario to be used from multiple central processing units, and improving the matching degree between the scenario to be used and the selected central processing unit.
[0087] S104: Evaluate the performance of the central processing unit according to the delay parameter to obtain an evaluation result.
[0088] In the embodiment of the present application, after the performance evaluation device of the central processing unit detects the delay parameters when the simulated data source and the central processing unit copy data, the performance of the central processing unit can be evaluated according to the delay parameters to obtain an evaluation result.
[0089] In the embodiment of the present application, the less time consumed for the fronthaul processing interface, the acceleration interface and the data return interface, the better the performance of the central processing unit. If the delay parameters of each of the fronthaul processing interface, the acceleration interface and the data return interface meet the processing delay requirements of the wireless device, it indicates that the L3cache meets the performance requirements of the wireless device.
[0090] In an embodiment of the present application, a delay threshold parameter can be set. When the delay parameter is less than or equal to the delay threshold, the evaluation result is that the performance of the central processing unit is high; when the delay parameter is greater than the delay threshold, the evaluation result is that the performance of the central processing unit is low.
[0091] It should be noted that the delay parameters include a first delay parameter of the forwarding processing interface, a second delay parameter of the acceleration interface, and a third delay parameter of the data backhaul interface. The corresponding delay thresholds include a first threshold, a second threshold, and a third threshold.
[0092] In an embodiment of the present application, when the first delay parameter is less than or equal to the first threshold, the second delay parameter is less than or equal to the second threshold, and the third delay parameter is less than or equal to the third threshold, the evaluation result is determined to be that the performance of the central processing unit is high; otherwise, the evaluation result is determined to be that the performance of the central processing unit is low.
[0093] It should also be noted that the first threshold, the second threshold and the third threshold may be the same or different, and may be specifically determined according to actual conditions, and the embodiments of the present application do not limit this.
[0094] It is understandable that the performance evaluation method of the central processing unit in this application, combined with the characteristics of wireless communication data interaction, can effectively evaluate and guide the design of CPU L3 Cache indicators in the pre-silicon design stage, ensure product performance requirements, reduce production risks, and improve production efficiency. It can also be used for wireless performance test verification of CPU chips, effectively evaluate and compare the performance indicators of CPU chips in base station applications, provide guidance for CPU selection, enrich CPU evaluation dimensions, and improve device selection and adaptation efficiency.
[0095] For example, Figure 4As shown, the system L3Cache performance can be simulated through the simulation process of the fronthaul processing interface, the acceleration card interface (FEC acceleration interface) and the data return interface (data interface). Specifically: calculate the interface bandwidth, make a simulated data source, and determine the interface bandwidth data according to the number of cells, the number of transmitting and receiving antennas, the bandwidth or the data packet format and the bandwidth rate. Then, simulate the interface state to send and receive data: start the receiving and sending thread and the timer, and determine the buff size according to the number of cells, the wireless frame information or the packet length; send and receive information according to the timer or the uplink and downlink flag information, copy the data, and record the time consumption data; among them, the timer is determined according to the wireless frame information, including the frame length, the uplink and downlink time slot information, and the timer is consistent with the single time slot length. The data return interface does not involve the timer to directly copy the data according to the uplink and downlink rates. Finally, analyze the L3 cache performance according to the time consumption data: compare and test the processing time consumption of L3 caches of different sizes, and compare and analyze the performance satisfaction of different L3 caches through the time consumption data.
[0096] It can be understood that the performance evaluation device of the central processing unit obtains the environmental parameters when the central processing unit is applied in the scenario to be used, and uses the environmental parameters to determine the simulated data source for testing the central processing unit; by detecting the delay parameters when the simulated data source and the central processing unit copy data, that is, using the delay parameters to determine the performance of the three-level cache, thereby evaluating the performance of the central processing unit according to the delay parameters, selecting a central processing unit that matches the scenario to be used from multiple central processing units, and improving the matching degree between the scenario to be used and the selected central processing unit.
[0097] Based on the same inventive concept as the above-mentioned central processing unit performance evaluation method, the embodiment of the present application provides a central processing unit performance evaluation device 1, corresponding to a central processing unit performance evaluation method; Figure 5 A schematic diagram of the structure of a CPU performance evaluation device provided in an embodiment of the present application Figure 1 , the performance evaluation device 1 of the central processing unit may include:
[0098] An acquisition unit 11 is used to acquire application environment parameters;
[0099] A determination unit 12, configured to determine a simulated data source for testing a central processor according to the application environment parameters;
[0100] A detection unit 13, used for detecting a delay parameter when the analog data source and the central processing perform data copying;
[0101] The evaluation unit 14 is used to evaluate the performance of the central processing unit according to the delay parameter to obtain an evaluation result.
[0102] In some embodiments of the present application, the device further includes a startup unit and a configuration unit;
[0103] The starting unit is used to start a signal sending thread and a signal receiving thread using the simulated data source; and start a preset timer;
[0104] The configuration unit is used to configure a sending buffer corresponding to a signal sending thread and a receiving buffer corresponding to a signal receiving thread in the simulated data source;
[0105] The determination unit 12 is used to determine the information transmission time slot type according to the timer; and the delay parameters when copying data with the central processing unit according to the information transmission time slot type, the signal sending thread, the signal receiving thread, the sending buffer and the receiving buffer.
[0106] In some embodiments of the present application, the device further comprises a copy unit;
[0107] The detection unit 13 is used to detect the first time in the process of copying the data in the third-level cache of the central processing unit to the receiving buffer by using the signal sending thread when the information transmission time slot type is a downlink time slot type;
[0108] The copy unit is used for detecting the second time in the process of copying the data in the sending buffer to the third-level cache by using the signal receiving thread when the information transmission time slot type is an uplink time slot type;
[0109] The determining unit 12 is configured to determine the delay parameter according to the first time and the second time.
[0110] In some embodiments of the present application, the device further comprises a recording unit;
[0111] The recording unit is used to record a third time during the process of copying data from the large page memory to the local memory at a first preset rate; and to record a fourth time during the process of copying data from the local memory to the large page memory at a second preset rate;
[0112] The determining unit 12 is configured to determine the delay parameter according to the third time and the fourth time.
[0113] In some embodiments of the present application, the determination unit 12 is used to determine the average time consumed for the first copy based on the third time; determine the average time consumed for the second copy based on the fourth time; and determine the delay parameter based on the average time consumed for the first copy and the average time consumed for the second copy.
[0114] In some embodiments of the present application, the determination unit 12 is used to determine the communication interface bandwidth of the central processing unit according to the application environment parameters; and determine the simulation data source according to the communication interface bandwidth.
[0115] In some embodiments of the present application, the acquisition unit 11 is used to acquire the number of cells, the number of transmitting and receiving antennas, the bandwidth, the data packet format and the bandwidth speed from the application environment parameters;
[0116] The determining unit 12 is used to determine the communication interface bandwidth according to the number of cells, the number of transmitting and receiving antennas, the bandwidth, the data packet format and the bandwidth speed.
[0117] In some embodiments of the present application, the determination unit 12 is used to determine the first bandwidth of the forward transmission processing interface of the central processing unit, the second bandwidth of the acceleration interface of the central processing unit, and the third bandwidth of the data backhaul interface of the central processing unit according to the number of cells, the number of transceiver antennas, the bandwidth, the data packet format and the bandwidth speed; and determine the communication interface bandwidth according to the first bandwidth, the second bandwidth and the third bandwidth.
[0118] It should be noted that, in actual applications, the above-mentioned acquisition unit 11, determination unit 12, detection unit 13 and evaluation unit 14 can be implemented by a processor 15 on the performance evaluation device 1 of a central processing unit, specifically a CPU (Central Processing Unit), MPU (Microprocessor Unit), DSP (Digital Signal Processing) or a field programmable gate array (FPGA); the above-mentioned data storage can be implemented by a memory 16 on the performance evaluation device 1 of a central processing unit.
[0119] The present application also provides a CPU performance evaluation device 1, such as Figure 6 As shown, the performance evaluation device 1 of the central processing unit includes: a processor 15, a memory 16 and a communication bus 17. The memory 16 communicates with the processor 15 through the communication bus 17. The memory 16 stores a program executable by the processor 15. When the program is executed, the performance evaluation method of the central processing unit described above is executed by the processor 15.
[0120] In practical applications, the memory 16 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 15.
[0121] An embodiment of the present application provides a computer-readable storage medium having a computer program thereon, and when the program is executed by the processor 15, the performance evaluation method of the central processing unit as described above is implemented.
[0122] The embodiment of the present application further provides a computer program product, including a computer program, which can be executed by the processor 15 in the performance evaluation device of the central processing unit to complete the steps of the aforementioned performance evaluation method of the central processing unit.
[0123] It can be understood that the performance evaluation device of the central processing unit obtains the environmental parameters when the central processing unit is applied in the scenario to be used, and uses the environmental parameters to determine the simulated data source for testing the central processing unit; by detecting the delay parameters when the simulated data source and the central processing unit copy data, that is, using the delay parameters to determine the performance of the three-level cache, thereby evaluating the performance of the central processing unit according to the delay parameters, selecting a central processing unit that matches the scenario to be used from multiple central processing units, and improving the matching degree between the scenario to be used and the selected central processing unit.
[0124] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0125] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0126] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0128] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A method for evaluating the performance of a central processing unit, characterized in that: The method comprises: Get application environment parameters; Determine a simulated data source for testing a central processing unit according to the application environment parameters; Detecting a delay parameter when the analog data source and the central processing perform data copying; The performance of the central processing unit is evaluated according to the delay parameter to obtain an evaluation result.
2. The method according to claim 1, characterized in that The detecting of the delay parameter when the simulated data source and the central processing perform data copying includes: Using the simulated data source to start a signal sending thread and a signal receiving thread; Start the preset timer; In the simulated data source, a sending buffer corresponding to the signal sending thread and a receiving buffer corresponding to the signal receiving thread are configured; Determining the information transmission time slot type according to the timer; Delay parameters when copying data with the central processing unit are determined according to the information transmission time slot type, the signal sending thread, the signal receiving thread, the sending buffer, and the receiving buffer.
3. The method according to claim 2, characterized in that The step of determining a delay parameter for copying data with the central processing unit according to the information transmission time slot type, the signal sending thread, the signal receiving thread, the sending buffer, and the receiving buffer comprises: In the case where the information transmission time slot type is a downlink time slot type, detecting the first time in a process of copying data in the third-level cache of the central processing unit to a receiving buffer using a signal sending thread; In the case where the information transmission time slot type is an uplink time slot type, detecting a second time in a process in which the data in the sending buffer is copied to the third-level cache by using a signal receiving thread; The delay parameter is determined according to the first time and the second time.
4. The method according to claim 1, characterized in that: The detecting of the delay parameter when the simulated data source and the central processing perform data copying includes: Recording a third time in a process of copying data from the large page memory to the local memory at the first preset rate; Recording a fourth time in a process of copying data from the local memory to the large page memory at the second preset rate; The delay parameter is determined according to the third time and the fourth time.
5. The method according to claim 4, characterized in that Determining the delay parameter according to the third time and the fourth time includes: Determine a first copy time average according to the third time; Determine a second copy time average according to the fourth time; The delay parameter is determined according to the average time consumed by the first copy and the average time consumed by the second copy.
6. The method according to claim 1, characterized in that The step of determining a simulated data source for testing a central processor according to the application environment parameters includes: Determining the communication interface bandwidth of the central processing unit according to the application environment parameters; The analog data source is determined according to the communication interface bandwidth.
7. The method according to claim 6, characterized in that The determining the communication interface bandwidth of the central processing unit according to the application environment parameters includes: Obtaining the number of cells, the number of transmitting and receiving antennas, bandwidth, data packet format and bandwidth speed from the application environment parameters; The communication interface bandwidth is determined according to the number of cells, the number of transceiver antennas, the bandwidth, the data packet format and the bandwidth speed.
8. The method according to claim 7, characterized in that The determining the communication interface bandwidth according to the number of cells, the number of transceiver antennas, the bandwidth, the data packet format and the bandwidth speed includes: Determine a first bandwidth of a fronthaul processing interface of the central processing unit, a second bandwidth of an acceleration interface of the central processing unit, and a third bandwidth of a data backhaul interface of the central processing unit according to the number of cells, the number of transceiver antennas, the bandwidth, the data packet format, and the bandwidth speed; The communication interface bandwidth is determined according to the first bandwidth, the second bandwidth, and the third bandwidth.
9. A performance evaluation device for a central processing unit, characterized in that: The device comprises: An acquisition unit, used for acquiring application environment parameters; A determination unit, used to determine a simulated data source for testing a central processing unit according to the application environment parameters; A detection unit, used for detecting a delay parameter when the analog data source and the central processing perform data copying; The evaluation unit is used to evaluate the performance of the central processing unit according to the delay parameter to obtain an evaluation result.
10. A performance evaluation device for a central processing unit, characterized in that: The device comprises: A memory, a processor and a communication bus, wherein the memory communicates with the processor via the communication bus, the memory stores a program for evaluating the performance of a central processing unit executable by the processor, and when the program for evaluating the performance of the central processing unit is executed, the method according to any one of claims 1 to 8 is executed by the processor.
11. A storage medium having a computer program stored thereon, applied to a performance evaluation device for a central processing unit, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. A computer program product, comprising a computer program, characterized in that The computer program implements the method according to any one of claims 1 to 8 when executed by a processor.
