Rebuilding server testing method, device, computer equipment and storage medium
By calling threads to perform image reconstruction operations and obtain running status parameters within a preset time period, the problem of time-consuming and inaccurate reconstruction server performance evaluation in the existing technology is solved, and an accurate and efficient quantitative evaluation of the reconstruction server performance is achieved. test.
Patent Information
- Application Number
- CN202110973507.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-08-24
AI Technical Summary
Existing performance evaluation methods for rebuilding servers are time-consuming and inaccurate, and cannot effectively predict whether the new server meets the computing requirements of the magnetic resonance system.
By calling a preset number of threads to perform image reconstruction operations within a preset test period, the running status parameters of the reconstruction server are obtained, and the performance quantification results are determined based on these parameters, including indicators such as memory usage, CPU usage, and cycle length. Determine whether the server performance is qualified.
It improves the accuracy and efficiency of rebuilding server performance testing, simplifies the testing process, and reduces the need for manual parameter configuration by operators.
Smart Images

Figure CN113778768B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method, device, computer equipment and storage medium for rebuilding a server test. Background Art
[0002] The MRI reconstruction server is an important component of the MRI system. The life cycle of the reconstruction server (including server hardware and operating system) is short and it is frequently replaced. As the replacement demand increases, it is necessary to perform a performance evaluation on the replaced reconstruction server to predict whether the replaced reconstruction server can meet the computing requirements of the MRI system.
[0003] The existing performance evaluation method for reconstruction servers usually requires building a complete scanning software for the reconstruction server and modifying part of the scanning software code based on the data source of the reconstruction server. Based on the scanning software with the modified code, the data in the real reconstruction library is called to perform data analysis and image reconstruction, so as to perform stress testing on the reconstruction server. For example, the reconstruction server is used to perform image reconstruction operations for three consecutive days and three nights to observe whether there are any abnormalities in the reconstruction server.
[0004] However, the above method is time-consuming, and the method of determining whether there is an abnormality in the rebuilt server based on the stress test result is not accurate for the performance evaluation of the rebuilt server. Summary of the invention
[0005] Based on this, it is necessary to provide a reconstruction server testing method, device, computer equipment and storage medium that can quantitatively evaluate various indicators of the reconstruction server in response to the above technical problems.
[0006] In a first aspect, a method for testing a reconstruction server is provided, the method comprising:
[0007] In a preset test time period, a preset number of threads are called to perform image reconstruction operations;
[0008] During the process of executing the image reconstruction operation by a preset number of threads, obtaining the operation status parameters generated by the reconstruction server;
[0009] According to the operating status parameters, the performance quantification results of the rebuilt server are determined.
[0010] In one of the optional embodiments, the operating status parameters include parameter values corresponding to multiple indicators of the reconstruction server under the pressure of each thread performing the image reconstruction operation.
[0011] In one of the optional embodiments, the running state parameter is the period duration of each thread performing the image reconstruction operation; obtaining the running state parameter generated by the reconstruction server includes:
[0012] Get the start time of each thread to start executing the image reconstruction operation;
[0013] Obtaining the end time when the actual number of times each thread performs the image reconstruction operation is equal to the preset number;
[0014] According to the start time and the end time, the cycle length corresponding to each thread is determined.
[0015] In one of the optional embodiments, the method further comprises:
[0016] The calling thread performs an image reconstruction operation in the first storage space to obtain an image reconstruction result corresponding to the image reconstruction operation;
[0017] Storing the image reconstruction result in the second storage space of the thread;
[0018] When the actual number of times the thread executes the image reconstruction operation is equal to the preset number of times, the cycle duration corresponding to the thread is calculated.
[0019] In one of the optional embodiments, the method further comprises:
[0020] Traversing the storage memory of the second storage space;
[0021] If the storage memory of the second storage space is full, but the actual number of times the thread executes the image reconstruction operation is less than the preset number, the second storage space is released and the image reconstruction operation is continued until the actual number of times the thread executes the image reconstruction operation is equal to the preset number.
[0022] In one of the optional embodiments, determining the performance quantification result of the reconstruction server according to the operating state parameter includes:
[0023] If the parameter value corresponding to each indicator in each operating status parameter satisfies the threshold condition corresponding to each indicator, the performance quantification result of the reconstructed server is determined to be qualified;
[0024] If there is at least one parameter value corresponding to an indicator that does not satisfy the threshold condition corresponding to the indicator, it is determined that the performance quantification result of the reconstruction server is unqualified.
[0025] In one of the optional embodiments, the parameter values corresponding to each indicator satisfy the threshold conditions corresponding to each indicator, including: the actual memory usage is less than the preset memory usage threshold, the actual CPU usage is less than the preset CPU usage threshold, the average cycle duration of each thread in the reconstruction server performing the image reconstruction operation is less than the average cycle duration of each thread in the original server performing the image reconstruction operation, the actual test duration of the reconstruction server is equal to the preset test duration, and the actual number of threads performing the image reconstruction operation is equal to the preset number of threads.
[0026] In one of the optional embodiments, the method further comprises:
[0027] If the number of threads actually executing the image reconstruction operation is less than the preset number of threads, the process returns to the step of calling the preset number of threads to execute the image reconstruction operation until the number of threads actually executing the image reconstruction operation is equal to the preset number of threads.
[0028] In one of the optional embodiments, the method further comprises:
[0029] If the number of times the step of calling a preset number of threads to perform the image reconstruction operation reaches a preset number threshold, and the number of threads actually performing the image reconstruction operation is less than the preset number of threads, it is determined that the performance quantification result of the reconstruction server is unqualified, and the number of threads actually performing the image reconstruction operation is output.
[0030] In one of the optional embodiments, the method further comprises:
[0031] If the actual test duration of the reconstruction server is less than the duration corresponding to the preset test time period, the performance quantification result of the reconstruction server is determined to be unqualified, and the actual number of times each thread performs the image reconstruction operation during the actual test duration is output.
[0032] In a second aspect, a reconstruction server testing device is provided, the device comprising:
[0033] A reconstruction module, used to call a preset number of threads to perform image reconstruction operations within a preset test time period;
[0034] An acquisition module, used for acquiring operation status parameters generated by a reconstruction server during the process of a preset number of threads executing an image reconstruction operation;
[0035] The determination module is used to determine the performance quantification result of the reconstruction server according to the operation status parameters.
[0036] According to a third aspect, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements any of the server reconstruction test methods described in the first aspect when executing the computer program.
[0037] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the server reconstruction test method described in any one of the first aspects is implemented.
[0038] In the above-mentioned reconstruction server testing method, device, computer equipment and storage medium, the reconstruction server calls a preset number of threads to perform image reconstruction operations within a preset test time period, obtains the operating status parameters generated by the reconstruction server during the process of the preset number of threads performing the image reconstruction operation, and determines the performance quantification result of the reconstruction server based on the operating status parameters. In this method, the relevant operating status parameters of the reconstruction server are obtained during the process of the reconstruction server performing the image reconstruction operation, and the performance of the reconstruction server can be quantitatively evaluated based on each operating status parameter and its corresponding indicator, thereby improving the accuracy of the performance test of the reconstruction server. In addition, in this method, the operator does not need to perform manual parameter configuration, thereby improving the efficiency of the reconstruction server performance test and simplifying the process of the reconstruction server performance test. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 An application environment diagram of a method for rebuilding a server test in an embodiment;
[0040] Figure 2 A schematic diagram of a process flow of a method for rebuilding a server test in one embodiment;
[0041] Figure 3 A schematic flow chart of a method for rebuilding a server test in another embodiment;
[0042] Figure 4 A schematic flow chart of a method for rebuilding a server test in another embodiment;
[0043] Figure 5 A schematic flow chart of a method for rebuilding a server test in another embodiment;
[0044] Figure 6 A schematic flow chart of a method for rebuilding a server test in another embodiment;
[0045] Figure 7 A structural block diagram of a reconstruction server testing device in one embodiment;
[0046] Figure 8 It is a structural block diagram of a reconstruction server testing device in another embodiment. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] The server reconstruction test method provided in this application can be applied to Figure 1In one embodiment, a computer device is provided, which may be a reconstruction server, and its internal structure diagram may be as shown in FIG. Figure 1 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for rebuilding a server test is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0049] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0050] The following will explain in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems through embodiments and in combination with the accompanying drawings. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. It should be noted that the present application Figure 2-Figure 6 The embodiment provides a method for testing a rebuilt server, the execution subject of which is a rebuilt server, or a rebuilt server testing device, which can be part or all of the rebuilt server through software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is taken as an example to illustrate.
[0051] In one embodiment, Figure 2 As shown, a reconstruction server test method is provided, which involves calling a preset number of threads to perform an image reconstruction operation within a preset test time period, obtaining operating status parameters generated by the reconstruction server during the process of the preset number of threads performing the image reconstruction operation, and determining a performance quantification result of the reconstruction server according to the operating status parameters, including the following steps:
[0052] S201. In a preset test time period, call a preset number of threads to perform an image reconstruction operation.
[0053] The preset test time period may be a default duration, for example, the default test duration is 43200s. The preset number of threads may also be a default number, for example, the default number may be 1000 threads.
[0054] In this embodiment, the performance test operation of the reconstruction server is performed based on the preset default test duration and the default number of threads to be started. Here, the performance test of the reconstruction server refers to the performance state of the reconstruction server during the image reconstruction operation, wherein the reconstruction server starts a preset number of threads and calls each thread to perform the image reconstruction operation. Optionally, each thread can obtain input data for the image reconstruction operation from a preset database, and perform a preset number of image reconstruction operations based on the obtained input data. Since this embodiment is intended to put the reconstruction server in an operating state of performing image reconstruction, the input data for image reconstruction here can be real case image data or other open source data sets, and this embodiment does not limit this.
[0055] S202: Acquire operation status parameters generated by a reconstruction server during the process in which a preset number of threads execute image reconstruction operations.
[0056] The operating status parameters include parameter values corresponding to multiple indicators of the reconstruction server under the pressure of each thread performing the image reconstruction operation. For example, the operating status parameters include the memory usage rate, CPU usage rate, cycle time of each thread performing the image reconstruction operation, number of threads performing the image reconstruction operation, and test time of the reconstruction server under the pressure of each thread performing the image reconstruction operation.
[0057] In this embodiment, the performance test result of the reconstruction server is determined by obtaining various operating status parameters of the reconstruction server under the pressure of performing image reconstruction operations. Optionally, the test duration of the reconstruction server is used to characterize the stability of the reconstruction server; the number of threads performing image reconstruction operations is used to characterize the maximum thread capacity of the reconstruction server and the bottom line of the self-protection mechanism; the CPU usage rate is used to characterize the CPU scheduling capability of the reconstruction server; the memory usage rate is used to characterize the robustness of the frequent use and release of the memory of the reconstruction server; the cycle duration of each thread performing the image reconstruction operation is used to characterize the computing efficiency of the reconstruction server. Optionally, the performance of the reconstruction server can also be evaluated based on other operating parameters, for example, the fault tolerance of the reconstruction server can be detected based on the state of the reconstruction server, or the heat dissipation performance of the reconstruction server can be determined based on the CPU temperature of the reconstruction server.
[0058] S203: Determine the performance quantification result of the reconstruction server according to the operating status parameters.
[0059] In this embodiment, the performance quantification result of the reconstructed server includes good performance or unqualified performance. In this case, if a certain operating state parameter of the reconstructed server is unqualified, the performance quantification result of the reconstructed server is determined to be unqualified performance. Alternatively, the performance quantification result of the reconstructed server may also include specific test results of each operating state parameter, corresponding to the performance index of each operating state parameter, and the performance quantification result may also include a quantified result of whether each operating state parameter is qualified. Different operating state parameters correspond to different test standards, and the specific test standards and standard descriptions thereof can be referred to as shown in Table 1.
[0060] Table 1
[0061]
[0062]
[0063] The original machine represents the old rebuilt server, and the replacement machine represents the replacement rebuilt server. The above data are all examples, and the specific values of each operating state parameter can be determined according to actual conditions, which is not limited in this embodiment.
[0064] In the above reconstruction server testing method, the reconstruction server calls a preset number of threads to perform image reconstruction operations within a preset test time period, obtains the operating status parameters generated by the reconstruction server during the image reconstruction operation performed by the preset number of threads, and determines the performance quantification results of the reconstruction server based on the operating status parameters. In this method, the relevant operating status parameters of the reconstruction server are obtained during the image reconstruction operation performed by the reconstruction server, and the performance of the reconstruction server can be quantitatively evaluated based on each operating status parameter and its corresponding indicator, thereby improving the accuracy of the performance test of the reconstruction server. In addition, in this method, the operator is not required to perform manual parameter configuration, thereby improving the efficiency of the reconstruction server performance test and simplifying the process of the reconstruction server performance test.
[0065] The reconstruction server obtains the execution cycle of the image reconstruction operation of each thread to determine the performance of the reconstruction server. In one embodiment, Figure 3 As shown, the running status parameter is the cycle time of each thread performing the image reconstruction operation; the running status parameter generated by the reconstruction server is obtained, including:
[0066] S301 : Obtain the start time of each thread starting to execute the image reconstruction operation.
[0067] In this embodiment, each thread is a sub-thread that performs image reconstruction operations. When each sub-thread starts to perform image reconstruction operations, the reconstruction server main thread obtains the start time of each sub-thread respectively. Optionally, the start time can be stored in a designated storage space.
[0068] S302: Obtain an end time when the actual number of times each thread executes the image reconstruction operation is equal to a preset number of times.
[0069] In this embodiment, each sub-thread executes the image reconstruction operation according to a preset number of image reconstruction executions until the main thread monitors that the actual number of times each sub-thread executes the image reconstruction operation is equal to the preset number, and then obtains the end time corresponding to each sub-thread. Optionally, the end time can be stored in a specified storage space.
[0070] S303: Determine the cycle duration corresponding to each thread according to the start time and the end time.
[0071] In this embodiment, the main thread determines the cycle duration of each sub-thread performing the preset number of image reconstruction operations based on the start time and end time of each sub-thread. Optionally, the main thread can also calculate the average cycle duration based on the cycle duration of all sub-threads and the number of all sub-threads performing image reconstruction operations, which is not limited in this embodiment.
[0072] Optionally, each thread involves data-based execution and data storage during the process of performing the image reconstruction operation. In one embodiment, Figure 4 As shown, the method also includes:
[0073] S401 . A calling thread performs an image reconstruction operation in a first storage space to obtain an image reconstruction result corresponding to the image reconstruction operation.
[0074] In this embodiment, each sub-thread performs an image reconstruction operation based on the first storage space. Optionally, each sub-thread performs basic matrix operations and Fourier transform operations based on the first storage space to implement the image reconstruction operation and obtain an image reconstruction result.
[0075] S402: Store the image reconstruction result in the second storage space of the thread.
[0076] In this embodiment, each sub-thread has a first storage space and a second storage space. After performing an image reconstruction operation, each sub-thread stores the image reconstruction result in its corresponding second storage space. The second storage space is mainly used to store the image reconstruction result.
[0077] S403: When the actual number of times the thread executes the image reconstruction operation is equal to the preset number of times, calculate the cycle duration corresponding to the thread.
[0078] In this embodiment, optionally, each sub-thread calculates the corresponding cycle length when determining that the preset number of image reconstruction operations are completed. The calculation method can refer to Figure 3 The embodiments provided are not described in detail in this embodiment.
[0079] In this embodiment, the computing operation and storage operation of image reconstruction are respectively completed based on different storage spaces, and the image reconstruction operation performed by the first storage space of each sub-thread is the same, thereby reducing the computing resources of each sub-thread.
[0080] The image reconstruction operation result is stored based on the second storage space corresponding to each thread. Since the second storage space is limited, it is necessary to monitor the second storage space and perform corresponding data processing. In one embodiment, Figure 5 As shown, the method also includes:
[0081] S501, traverse the storage memory of the second storage space.
[0082] The storage space size of the second storage space can be set according to actual conditions. In this embodiment, each sub-thread stores the image reconstruction result in the second storage space each time it generates an image reconstruction result. Optionally, the space occupied by each image reconstruction result in the second storage space can be regarded as 1%, and traversing the storage memory of the second storage space can also be understood as counting the image reconstruction results in the second storage space.
[0083] S502: If the storage memory of the second storage space is full, but the actual number of times the thread executes the image reconstruction operation is less than the preset number, release the second storage space and continue to execute the image reconstruction operation until the actual number of times the thread executes the image reconstruction operation is equal to the preset number.
[0084] In this embodiment, if the space occupied by the image reconstruction result of each time in the second storage space is 1%, the second storage space is traversed, that is, the image reconstruction results in the second storage space are counted. When the count accumulates to 100%, it means that the storage memory of the second storage space is full. At this time, if each sub-thread determines that the number of times it executes the image reconstruction operation has not met the preset number of times, it means that there is no storage space available for the image reconstruction results generated thereafter. In this case, each sub-thread can back up the image reconstruction results in the second storage space, clear the data in the second storage space, release the memory resources of the second storage space, and then execute the image reconstruction operation until the actual number of times the thread executes the image reconstruction operation is equal to the preset number of times.
[0085] In this embodiment, each sub-thread can monitor the second storage space in real time, and release the memory space in time when the second storage space is full, so as to provide effective storage space for subsequent image reconstruction results, thereby ensuring the effectiveness of image reconstruction operation and the integrity of data.
[0086] Determining the performance quantification result of the reconstruction server according to each operating state parameter. In one embodiment, determining the performance quantification result of the reconstruction server according to the operating state parameter includes:
[0087] If the parameter value corresponding to each indicator in each operating status parameter meets the threshold conditions corresponding to each indicator, the performance quantification result of the reconstructed server is determined to be qualified; if there is at least one indicator whose parameter value does not meet the threshold conditions corresponding to the indicator, the performance quantification result of the reconstructed server is determined to be unqualified.
[0088] In this embodiment, each operating state parameter of the reconstructed server corresponds to a respective test standard. After the test is completed, the result of whether each operating state parameter of the reconstructed server is qualified can be obtained. Optionally, if there is at least one unqualified operating state parameter, the performance quantification result of the reconstructed server is determined to be unqualified. Optionally, the performance test result of the replacement reconstructed server can be determined based on the operating state parameters of the original reconstructed server and the operating state parameters of the replacement reconstructed server.
[0089] Optionally, the parameter values corresponding to each indicator meet the threshold conditions corresponding to each indicator, including: the actual memory usage is less than the preset memory usage threshold, the actual CPU usage is less than the preset CPU usage threshold, the average cycle time of each thread in the reconstruction server performing the image reconstruction operation is less than the average cycle time of each thread in the original server performing the image reconstruction operation, the actual test time of the reconstruction server is equal to the preset test time, and the number of threads that actually perform the image reconstruction operation is equal to the preset number of threads. For example, the following Table 2 gives a test example. Among them, the preset memory usage threshold is 90%, the preset CPU usage threshold is 90%, the preset test time is 12 hours, and the preset number of threads is 1000.
[0090] Table 2
[0091] Indicator name Original machine data Replacement machine data Threshold conditions (detection criteria) abnormal none none No exceptions can occur Run time 12 hours 12 hours >=12 hours Number of threads 1000 1000 >=1000 threads CPU usage A% B% Average <90% Memory usage C% D% Average <90% Average completion time First duration Second duration Replacement unit does not exceed 20% of the original unit's operating time
[0092] Among them, it is set that B%<90%, D%>90%. From the above data examples, it can be seen that the replacement and reconstruction server has no abnormalities during the performance test, its memory usage threshold is B%<90%, the preset test time is 12 hours, the number of threads is 1000, and the average cycle time for each thread in the replacement machine reconstruction server to perform the image reconstruction operation is less than the average cycle time for each thread in the original server to perform the image reconstruction operation. These operating status parameters all meet their corresponding threshold conditions; the CPU usage threshold is D%>90%, which does not meet the corresponding threshold conditions; at this time, it is determined that the performance test result of the replacement and reconstruction server is unqualified, which is not limited in this embodiment.
[0093] In this embodiment, the test results corresponding to each operating status parameter can be determined based on multiple operating status parameters of the reconstructed server, and the performance test results of the reconstructed server can be determined based on the test results of each operating status parameter. Since the test indicators of the reconstructed server are quantified, the performance status of the reconstructed server can be simply and accurately known.
[0094] In another scenario, the performance result for evaluating the reconstruction server may also include the number of threads executing the image reconstruction operation. If the number of threads executing the image reconstruction operation does not reach a preset default number, the reconstruction server needs to repeatedly start the thread operation. In one embodiment, the method further includes:
[0095] If the number of threads actually executing the image reconstruction operation is less than the preset number of threads, the process returns to the step of calling the preset number of threads to execute the image reconstruction operation until the number of threads actually executing the image reconstruction operation is equal to the preset number of threads.
[0096] The preset number of threads may be 1000, or the default number of threads may be set according to actual conditions. Generally speaking, a rebuilt server that successfully starts the default number of threads has a good maximum thread capacity and a high bottom line of the self-protection mechanism.
[0097] In this embodiment, the reconstruction server obtains the actual number of threads that perform the image reconstruction operation based on the main thread, and compares the actual number of threads with the preset number of threads. If the actual number of threads is less than the preset number of threads, it indicates that there are certain problems with the performance of the reconstruction server. In order to avoid accidental problems, the main thread of the reconstruction server returns to execute the step of calling a preset number of threads to perform the image reconstruction operation until the actual number of threads that perform the image reconstruction operation is equal to the preset number of threads. This embodiment does not limit this.
[0098] Optionally, if the number of times the step of calling a preset number of threads to perform the image reconstruction operation reaches a preset number threshold, and the number of threads actually performing the image reconstruction operation is less than the preset number of threads, it is determined that the performance quantification result of the reconstruction server is unqualified, and the number of threads actually performing the image reconstruction operation is output.
[0099] In this embodiment, if the main thread of the reconstruction server executes the step of calling a preset number of threads to perform the image reconstruction operation, and the number of times reaches a preset number threshold, for example, it is repeated 5 times, and the actual number of threads is still less than the preset number of threads, in this case, it is determined that the performance quantification result of the reconstruction server is unqualified, and the unqualified performance quantification result of the reconstruction server and the actual number of threads performing the image reconstruction operation are output. This embodiment does not limit this.
[0100] In this embodiment, when the number of times the step of calling a preset number of threads to perform the image reconstruction operation reaches a preset number threshold, it is determined that the number of threads actually performing the image reconstruction operation is less than the preset number of threads, and the unqualified performance test result of the reconstruction server and the number of threads actually performing the image reconstruction operation are output, so that the test results of the reconstruction server in terms of the maximum thread capacity and the bottom line of the self-protection mechanism can be clarified.
[0101] In another scenario, the performance result for evaluating the rebuilt server may further include an actual test duration of the rebuilt server. If the actual test duration of the rebuilt server does not reach a preset default duration, it indicates that there is a problem with the performance of the rebuilt server. In this case, in one embodiment, the method further includes:
[0102] If the actual test duration of the reconstruction server is less than the duration corresponding to the preset test time period, the performance quantification result of the reconstruction server is determined to be unqualified, and the actual number of times each thread performs the image reconstruction operation during the actual test duration is output.
[0103] Among them, the duration corresponding to the preset test time period can be 12 hours, or the default test duration can be set according to actual conditions. Generally speaking, the rebuilt server that meets the default test duration has better stability.
[0104] In this embodiment, the first moment when the performance test of the reconstruction server is started is obtained, and the second moment when the performance test of the reconstruction server is ended is obtained. The actual test duration of the reconstruction server is determined based on the first moment and the second moment, and the actual test duration is compared with the duration corresponding to the preset test time period. If the actual test duration is less than the duration corresponding to the preset test time period, it indicates that there are some problems with the stability of the reconstruction server. At this time, the performance quantification result of the reconstruction server is determined to be unqualified. Optionally, when the performance test operation of the reconstruction server ends, the main thread of the reconstruction server can obtain the number of image reconstruction operations performed by each sub-thread in the actual test duration, and output the unqualified performance quantification result of the reconstruction server and the actual number of image reconstruction operations performed by each sub-thread in the actual test duration. This embodiment does not limit this.
[0105] In this embodiment, when the actual test duration of the reconstruction server is less than the duration corresponding to the preset time period, the unqualified performance test result of the reconstruction server and the actual number of image reconstruction operations performed by each sub-thread are output, so as to clarify the test result of the stability of the reconstruction server.
[0106] In order to better illustrate the above method, Figure 6 As shown, this embodiment provides a method for rebuilding a server test, which specifically includes:
[0107] S101, obtaining the start time of the performance operation of the reconstruction server;
[0108] S102, calling a preset number of threads to perform image reconstruction operations;
[0109] S103, if the number of threads actually executing the image reconstruction operation is less than the preset number of threads, return to step 102 and execute until the number of threads actually executing the image reconstruction operation is equal to the preset number of threads;
[0110] S104, if the number of times the step of calling a preset number of threads to perform the image reconstruction operation reaches a preset number threshold, and the number of threads actually performing the image reconstruction operation is less than the preset number of threads, it is determined that the performance quantification result of the reconstruction server is unqualified, and the number of threads actually performing the image reconstruction operation is output;
[0111] S105, obtaining operation status parameters generated by the reconstruction server during the process of a preset number of threads executing the image reconstruction operation;
[0112] S106, obtaining the end time of the performance test of the rebuilt server, and determining the actual test duration of the rebuilt server according to the end time and the start time;
[0113] S107, if the actual test duration of the reconstruction server is less than the duration corresponding to the preset test time period, determining that the performance quantification result of the reconstruction server is unqualified, and outputting the actual number of times each thread performs the image reconstruction operation during the actual test duration;
[0114] S108: Outputting a performance quantification result of determining the reconstruction server.
[0115] In this embodiment, relevant operating status parameters of the reconstruction server are obtained during the process of the reconstruction server performing an image reconstruction operation. Based on the various operating status parameters and their corresponding indicators, a quantitative evaluation of the performance of the reconstruction server can be achieved, thereby improving the accuracy of the performance test of the reconstruction server. In addition, this method does not require an operator to perform manual parameter configuration, thereby improving the efficiency of the performance test of the reconstruction server and simplifying the process of the performance test of the reconstruction server.
[0116] The implementation principle and technical effect of the server reconstruction test method provided in the above embodiment are similar to those of the above method embodiment, and will not be repeated here.
[0117] It should be understood that although Figure 2-6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-6 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0118] In one embodiment, Figure 7 As shown, a reconstruction server testing device is provided, comprising:
[0119] Reconstruction module 01, used to call a preset number of threads to perform image reconstruction operations within a preset test time period;
[0120] An acquisition module 02 is used to acquire the operation status parameters generated by the reconstruction server during the process of a preset number of threads executing the image reconstruction operation;
[0121] The determination module 03 is used to determine the performance quantification result of the reconstruction server according to the operation status parameters.
[0122] In one of the optional embodiments, the operating status parameters include parameter values corresponding to multiple indicators of the reconstruction server under the pressure of each thread performing an image reconstruction operation; the operating status parameters include the memory usage rate, CPU usage rate, the cycle duration of each thread performing the image reconstruction operation, the number of threads performing the image reconstruction operation, and the test duration of the reconstruction server under the pressure of each thread performing the image reconstruction operation.
[0123] In one of the optional embodiments, the running status parameter is the cycle duration of each thread performing the image reconstruction operation; the acquisition module is used to obtain the start time when each thread starts to perform the image reconstruction operation; obtain the end time when the actual number of times each thread performs the image reconstruction operation is equal to the preset number; and determine the cycle duration corresponding to each thread based on the start time and the end time.
[0124] In one of the optional embodiments, the reconstruction module is also used to call the thread to perform an image reconstruction operation in the first storage space to obtain an image reconstruction result corresponding to the image reconstruction operation; store the image reconstruction result in the second storage space of the thread; and when the actual number of times the thread performs the image reconstruction operation is equal to the preset number of times, calculate the corresponding cycle duration of the thread.
[0125] In one of the optional embodiments, the reconstruction module is also used to traverse the storage memory of the second storage space; if the storage memory of the second storage space is full, but the actual number of times the thread executes the image reconstruction operation is less than the preset number, the second storage space is released and the image reconstruction operation continues to be executed until the actual number of times the thread executes the image reconstruction operation is equal to the preset number.
[0126] In one of the optional embodiments, the determination module is used to determine that the performance quantification result of the reconstructed server is qualified if the parameter value corresponding to each indicator in each operating status parameter satisfies the threshold conditions corresponding to each indicator; if there is at least one indicator whose parameter value does not satisfy the threshold conditions corresponding to the indicator, the performance quantification result of the reconstructed server is determined to be unqualified.
[0127] In one of the optional embodiments, the parameter values corresponding to each indicator satisfy the threshold conditions corresponding to each indicator, including: the actual memory usage is less than the preset memory usage threshold, the actual CPU usage is less than the preset CPU usage threshold, the average cycle duration of each thread in the reconstruction server performing the image reconstruction operation is less than the average cycle duration of each thread in the original server performing the image reconstruction operation, the actual test duration of the reconstruction server is equal to the preset test duration, and the actual number of threads performing the image reconstruction operation is equal to the preset number of threads.
[0128] In one of the optional embodiments, Figure 8As shown, the reconstruction server testing device also includes a judgment module 04, which is used to return to the step of calling a preset number of threads to perform the image reconstruction operation if the number of threads actually performing the image reconstruction operation is less than the preset number of threads, until the number of threads actually performing the image reconstruction operation is equal to the preset number of threads.
[0129] In one of the optional embodiments, the judgment module 04 is also used to determine that the performance quantification result of the reconstruction server is unqualified and output the number of threads that actually execute the image reconstruction operation if the number of times the step of calling a preset number of threads to execute the image reconstruction operation reaches a preset number threshold, and the number of threads that actually execute the image reconstruction operation is less than the preset number of threads.
[0130] In one of the optional embodiments, the judgment module 04 is also used to determine that the performance quantification result of the reconstruction server is unqualified if the actual test duration of the reconstruction server is less than the duration corresponding to the preset test time period, and output the actual number of times each thread performs the image reconstruction operation during the actual test duration.
[0131] For the specific definition of the reconstruction server test device, please refer to the definition of the reconstruction server test method above, which will not be repeated here. Each module in the above-mentioned reconstruction server test device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0132] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0133] In a preset test time period, a preset number of threads are called to perform image reconstruction operations;
[0134] During the process of executing the image reconstruction operation by a preset number of threads, obtaining the operation status parameters generated by the reconstruction server;
[0135] According to the operating status parameters, the performance quantification results of the rebuilt server are determined.
[0136] The implementation principle and technical effect of the computer device provided in the above embodiment are similar to those of the above method embodiment, and will not be repeated here.
[0137] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0138] In a preset test time period, a preset number of threads are called to perform image reconstruction operations;
[0139] During the process of executing the image reconstruction operation by a preset number of threads, obtaining the operation status parameters generated by the reconstruction server;
[0140] According to the operating status parameters, the performance quantification results of the rebuilt server are determined.
[0141] The computer-readable storage medium provided in the above embodiment has similar implementation principles and technical effects as those of the above method embodiment, and will not be described in detail here.
[0142] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0143] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0144] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for testing a rebuilt server, characterized in that: The method comprises: In a preset test time period, a preset number of threads are called to perform image reconstruction operations; During the process of the preset number of threads performing the image reconstruction operation, obtaining the operating status parameters generated by the reconstruction server; the operating status parameters include parameter values corresponding to multiple indicators of the reconstruction server under the pressure of each of the threads performing the image reconstruction operation; A performance quantification result of the reconstruction server is determined according to the operating status parameter.
2. The method according to claim 1, characterized in that The operating status parameter is the cycle duration of each thread performing the image reconstruction operation; the obtaining of the operating status parameter generated by the reconstruction server includes: Obtaining the start time of each thread starting to execute the image reconstruction operation; Obtaining an end time when the actual number of times each thread performs the image reconstruction operation is equal to a preset number of times; The cycle duration corresponding to each of the threads is determined according to the start time and the end time.
3. The method according to claim 2, characterized in that The method further comprises: Calling the thread to perform an image reconstruction operation in the first storage space to obtain an image reconstruction result corresponding to the image reconstruction operation; Storing the image reconstruction result in the second storage space of the thread; When the actual number of times the thread performs the image reconstruction operation is equal to the preset number, the cycle duration corresponding to the thread is calculated.
4. The method according to claim 3, characterized in that The method further comprises: Traversing the storage memory of the second storage space; If the storage memory of the second storage space is full, but the actual number of times the thread executes the image reconstruction operation is less than the preset number, the second storage space is released and the image reconstruction operation continues to be executed until the actual number of times the thread executes the image reconstruction operation is equal to the preset number.
5. The method according to any one of claims 1 to 4, characterized in that: Determining the performance quantification result of the reconstruction server according to the operating status parameter includes: If the parameter value corresponding to each indicator in each of the operating status parameters satisfies the threshold condition corresponding to each of the indicators, it is determined that the performance quantification result of the reconstruction server is qualified; If there is at least one parameter value corresponding to the indicator that does not meet the threshold condition corresponding to the indicator, it is determined that the performance quantification result of the reconstruction server is unqualified.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: If the number of threads actually executing the image reconstruction operation is less than the preset number of threads, the process returns to the step of calling the preset number of threads to execute the image reconstruction operation until the number of threads actually executing the image reconstruction operation is equal to the preset number of threads.
7. The method according to claim 6, characterized in that The method further comprises: If the number of times the step of calling a preset number of threads to perform the image reconstruction operation is executed reaches a preset number threshold, and the number of threads actually performing the image reconstruction operation is less than the preset number of threads, it is determined that the performance quantification result of the reconstruction server is unqualified, and the number of threads actually performing the image reconstruction operation is output.
8. The method according to any one of claims 1 to 4, characterized in that The method further comprises: If the actual test duration of the reconstruction server is less than the duration corresponding to the preset test time period, the performance quantification result of the reconstruction server is determined to be unqualified, and the actual number of times each thread performs the image reconstruction operation during the actual test duration is output.
9. A reconstruction server testing device, characterized in that: The device comprises: A reconstruction module, used to call a preset number of threads to perform image reconstruction operations within a preset test time period; An acquisition module, configured to acquire, during the process of the preset number of threads executing the image reconstruction operation, operating status parameters generated by the reconstruction server; the operating status parameters include parameter values corresponding to a plurality of indicators of the reconstruction server under the pressure of each of the threads executing the image reconstruction operation; A determination module is used to determine the performance quantification result of the reconstruction server according to the operating status parameter.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
