CN113778768A - Reconstruction server testing method and device, computer equipment and storage medium - Google Patents

Reconstruction server testing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113778768A
CN113778768A CN202110973507.5A CN202110973507A CN113778768A CN 113778768 A CN113778768 A CN 113778768A CN 202110973507 A CN202110973507 A CN 202110973507A CN 113778768 A CN113778768 A CN 113778768A
Authority
CN
China
Prior art keywords
image reconstruction
reconstruction
server
threads
thread
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110973507.5A
Other languages
Chinese (zh)
Inventor
李建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen United Imaging Research Institute of Innovative Medical Equipment
Original Assignee
Shenzhen United Imaging Research Institute of Innovative Medical Equipment
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen United Imaging Research Institute of Innovative Medical Equipment filed Critical Shenzhen United Imaging Research Institute of Innovative Medical Equipment
Priority to CN202110973507.5A priority Critical patent/CN113778768A/en
Publication of CN113778768A publication Critical patent/CN113778768A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a reconstruction server testing method, a reconstruction server testing device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps that a reconstruction server calls a preset number of threads to execute image reconstruction operation within a preset test time period, operation state parameters generated by the reconstruction server are obtained in the process that the preset number of threads execute the image reconstruction operation, and performance quantification results of the reconstruction server are determined according to the operation state parameters. In the method, the related operation state parameters of the reconstruction server are obtained in the process of executing the image reconstruction operation by the reconstruction server, the performance of the reconstruction server can be quantitatively evaluated based on each operation state parameter and the corresponding index thereof, the accuracy of the performance test of the reconstruction server is improved, in addition, the manual parameter configuration by operators is not needed in the method, the efficiency of the performance test of the reconstruction server is improved, and the process of the performance test of the reconstruction server is simplified.

Description

Reconstruction server testing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and an apparatus for testing a reconstruction server, a computer device, and a storage medium.
Background
The magnetic resonance reconstruction server belongs to an important component of a magnetic resonance system, the life cycle of the reconstruction server (including server hardware and an operating system) is short, the replacement is frequent, and along with the replacement requirement, performance evaluation needs to be carried out on the replaced reconstruction server so as to prejudge whether the replaced reconstruction server can meet the operation requirement of the magnetic resonance system.
The existing performance evaluation method of the reconstruction server generally includes that scanning software of a complete reconstruction server needs to be built, partial codes of the scanning software are modified based on a data source of the reconstruction server, data in a real reconstruction library are called to perform data analysis and image reconstruction based on the scanning software after the codes are modified, so that the reconstruction server is subjected to pressure test, for example, the reconstruction server is used for performing image reconstruction operation for three days and three nights continuously, and whether the reconstruction server is abnormal or not is observed.
However, the above method takes a long time, and the method of determining whether the reconstruction server has an abnormality based on the stress test result is not accurate for performance evaluation of the reconstruction server.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a reconstruction server testing method, apparatus, computer device and storage medium capable of quantitatively evaluating each index of a reconstruction server.
In a first aspect, a reconstruction server testing method is provided, and the method includes:
calling a preset number of threads to execute image reconstruction operation within a preset test time period;
acquiring running state parameters generated by a reconstruction server in the process of executing image reconstruction operation by a preset number of threads;
and determining a performance quantification result of the reconstruction server according to the operation state parameters.
In one optional embodiment, the running state parameters include parameter values corresponding to a plurality of indexes of the reconstruction server under the pressure of executing the image reconstruction operation by each thread.
In one optional embodiment, the running state parameter is a cycle duration of each thread executing the image reconstruction operation; acquiring the operating state parameters generated by the reconstruction server, wherein the operating state parameters comprise:
acquiring the starting time of starting to execute the image reconstruction operation by each thread;
acquiring the end time when the actual times of executing image reconstruction operation by each thread is equal to the preset times;
and determining the period duration corresponding to each thread according to the starting time and the ending time.
In one optional embodiment, the method further comprises:
calling a thread to execute image reconstruction operation in a first storage space to obtain an image reconstruction result corresponding to the image reconstruction operation;
storing the image reconstruction result to a second storage space of the thread;
and under the condition that the actual times of executing the image reconstruction operation of the thread is equal to the preset times, calculating the period duration corresponding to the thread.
In one optional embodiment, the method further comprises:
traversing the storage memory of the second storage space;
and if the storage memory of the second storage space is full, but the actual times of the thread for executing the image reconstruction operation are less than the preset times, releasing the second storage space, and continuing to execute the image reconstruction operation until the actual times of the thread for executing the image reconstruction operation are equal to the preset times.
In an optional embodiment, determining a performance quantization result of the reconstruction server according to the operating state parameter includes:
if the parameter value corresponding to each index in the operation state parameters meets the threshold value condition corresponding to each index, determining that the performance quantization result of the reconstruction server is qualified;
and if the parameter value corresponding to at least one index does not meet the threshold condition corresponding to the index, determining that the performance quantization result of the reconstruction server is unqualified.
In one optional embodiment, the step of determining the parameter value corresponding to each index satisfies the threshold condition corresponding to each index includes: the actual memory usage rate is smaller than a preset memory usage rate threshold, the actual CPU usage rate is smaller than a preset CPU usage rate threshold, the average cycle duration of image reconstruction operation executed by each thread in the reconstruction server is smaller than the average cycle duration of image reconstruction operation executed by each thread in the original server, the actual test duration of the reconstruction server is equal to the preset test duration, and the number of threads actually executing image reconstruction operation is equal to the preset number of threads.
In one optional embodiment, the method further comprises:
and if the number of threads actually executing the image reconstruction operation is smaller than the preset number of threads, returning to the step of executing the image reconstruction operation by calling the threads with the preset number until the number of threads actually executing the image reconstruction operation is equal to the preset number of threads.
In one optional embodiment, the method further comprises:
and if the number of times of executing the step of calling the threads with the preset number to execute the image reconstruction operation reaches a preset number threshold value and the number of the threads actually executing the image reconstruction operation is smaller than the preset number of threads, determining that the performance quantization result of the reconstruction server is unqualified and outputting the number of the threads actually executing the image reconstruction operation.
In one optional embodiment, the method further comprises:
and 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 quantization result of the reconstruction server is unqualified, and outputting the actual times of executing the image reconstruction operation in the actual test duration by each thread.
In a second aspect, a reconstruction server testing apparatus is provided, the apparatus comprising:
the reconstruction module is used for calling a preset number of threads to execute image reconstruction operation in a preset test time period;
the acquisition module is used for acquiring running state parameters generated by a reconstruction server in the process of executing image reconstruction operation by a preset number of threads;
and the determining module is used for determining the performance quantification result of the reconstruction server according to the operation state parameters.
In a third aspect, a computer device is provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the reconstruction server testing method according to any one of the first aspect when executing the computer program.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the reconstruction server testing method according to any one of the first aspect.
According to the reconstruction server testing method, the reconstruction server testing device, the computer equipment and the storage medium, the reconstruction server calls the threads with the preset number to execute the image reconstruction operation within the preset testing time period, the running state parameters generated by the reconstruction server are obtained in the process that the threads with the preset number execute the image reconstruction operation, and the performance quantization result of the reconstruction server is determined according to the running state parameters. In the method, the related operation state parameters of the reconstruction server are obtained in the process of executing the image reconstruction operation by the reconstruction server, the performance of the reconstruction server can be quantitatively evaluated based on each operation state parameter and the corresponding index thereof, the accuracy of the performance test of the reconstruction server is improved, in addition, the manual parameter configuration by operators is not needed in the method, the efficiency of the performance test of the reconstruction server is improved, and the process of the performance test of the reconstruction server is simplified.
Drawings
FIG. 1 is a diagram of an application environment of a reconstruction server test method in one embodiment;
FIG. 2 is a flow diagram illustrating a method for testing a reconstruction server in one embodiment;
FIG. 3 is a flowchart illustrating a reconstruction server testing method according to another embodiment;
FIG. 4 is a flowchart illustrating a reconstruction server testing method according to another embodiment;
FIG. 5 is a flowchart illustrating a reconstruction server testing method according to another embodiment;
FIG. 6 is a flowchart illustrating a reconstruction server testing method according to another embodiment;
FIG. 7 is a block diagram of a rebuild server test apparatus in one embodiment;
fig. 8 is a block diagram of a reconstruction server test apparatus according to another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The reconstruction server testing method provided by the application can be applied to the application environment shown in fig. 1. In one embodiment, a computer device is provided, which may be a reconstruction server, the internal structure of which may be as shown in fig. 1. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a reconstruction server testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. It should be noted that, in the reconstruction server testing method provided in the embodiments of fig. 2 to fig. 6 of the present application, the execution subject is a reconstruction server, and may also be a reconstruction server testing apparatus, and the reconstruction server testing apparatus may become a part or all of the reconstruction server through software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is a reconstruction server as an example.
In an embodiment, as shown in fig. 2, a method for testing a reconstruction server is provided, which relates to a process of invoking a preset number of threads to perform an image reconstruction operation within a preset test time period, acquiring an operation state parameter generated by the reconstruction server during the image reconstruction operation performed by the preset number of threads, and determining a performance quantization result of the reconstruction server according to the operation state parameter, and includes the following steps:
s201, calling a preset number of threads to execute image reconstruction operation in a preset test time period.
The preset test time period may be a default time period, for example, the default test time period is 43200 s. The predetermined number of threads may also be a default number, for example, the default number may be 1000 threads.
In this embodiment, a performance test operation of the reconstruction server is performed based on a preset default test duration and a default number of threads to be started, where the performance test performed on the reconstruction server refers to a performance state that is exhibited by the reconstruction server in an image reconstruction operation process, where the reconstruction server starts a preset number of threads and calls each thread to perform the image reconstruction operation. Optionally, each thread may acquire input data of an image reconstruction operation from a preset database, and perform the image reconstruction operation for a preset number of times based on the acquired input data, because this embodiment intends to make the reconstruction server in an operation state of performing image reconstruction, the input data of the image reconstruction here may be real case image data, or may be other open source data sets, which is not limited in this embodiment.
S202, acquiring running state parameters generated by a reconstruction server in the process of executing image reconstruction operation by a preset number of threads.
The running state parameters comprise parameter values corresponding to a plurality of indexes of the reconstruction server under the pressure of executing image reconstruction operation by each thread. Illustratively, the operating state parameters include a memory usage rate, a CPU usage rate, a cycle duration of the image reconstruction operation performed by each thread, a number of threads performing the image reconstruction operation, and a test duration of the reconstruction server under a pressure of performing the image reconstruction operation by each thread of the reconstruction server.
In this embodiment, a performance test result of the reconstruction server is determined by obtaining each operating state parameter of the reconstruction server under the pressure of executing the image reconstruction operation, and optionally, the test duration of the reconstruction server is used for representing the stability of the reconstruction server; the number of threads for executing image reconstruction operation is used for representing the maximum thread capacity of a reconstruction server and the bottom line of a self-protection mechanism; the CPU utilization rate is used for representing the CPU scheduling capacity of the reconstruction server; the memory usage rate is used for representing the robustness of frequent use \ release of the memory of the reconstruction server; the cycle duration of the image reconstruction operation executed by each thread is used for representing the calculation efficiency of the reconstruction server. Optionally, the performance of the reconstruction server may also be evaluated according to other operating parameters, for example, fault tolerance of the reconstruction server is detected according to the state of the reconstruction server, or the heat dissipation performance of the reconstruction server is determined according to the CPU temperature of the reconstruction server.
And S203, determining a performance quantification result of the reconstruction server according to the operation state parameters.
In this embodiment, the performance quantization result of the reconstruction server includes good performance or unqualified performance, in this case, if a certain operation state parameter of the reconstruction server is unqualified, the performance quantization result of the reconstruction server is determined to be unqualified performance. Or, the performance quantization result of the reconstruction server may further include a specific test result of each operating state parameter, and the performance quantization result may further include a quantization result of whether each operating state parameter is qualified or not, corresponding to the performance index of each operating state parameter. Different operation state parameters correspond to different test standards, and specific test standards and standard descriptions thereof can be referred to table 1.
TABLE 1
Figure BDA0003226535410000061
Figure BDA0003226535410000071
Wherein the original machine represents the old reconstruction server and the replacement machine represents the replacement reconstruction server. The above data are all illustrations, and the specific numerical value of each operating state parameter may be determined according to an actual situation, which is not limited in this embodiment.
In the reconstruction server testing method, the reconstruction server calls a preset number of threads to execute image reconstruction operation within a preset testing time period, obtains the running state parameters generated by the reconstruction server in the process of executing the image reconstruction operation by the preset number of threads, and determines the performance quantization result of the reconstruction server according to the running state parameters. In the method, the related operation state parameters of the reconstruction server are obtained in the process of executing the image reconstruction operation by the reconstruction server, the performance of the reconstruction server can be quantitatively evaluated based on each operation state parameter and the corresponding index thereof, the accuracy of the performance test of the reconstruction server is improved, in addition, the manual parameter configuration by operators is not needed in the method, the efficiency of the performance test of the reconstruction server is improved, and the process of the performance test of the reconstruction server is simplified.
The reconstruction server obtains an execution cycle of the image reconstruction operation of each thread to determine performance of the reconstruction server, and in one embodiment, as shown in fig. 3, the running state parameter is a cycle duration of the image reconstruction operation executed by each thread; acquiring the operating state parameters generated by the reconstruction server, wherein the operating state parameters comprise:
s301, acquiring the starting time of starting the execution of the image reconstruction operation by each thread.
In this embodiment, each thread is a sub-thread that performs an image reconstruction operation, and when each sub-thread starts to perform the image reconstruction operation, the reconstruction server main thread obtains each sub-thread start time, and optionally, the start time may be stored in a specified storage space.
S302, acquiring the end time when the actual times of executing the image reconstruction operation by each thread is equal to the preset times.
In this embodiment, each sub-thread executes an image reconstruction operation according to a preset number of times for executing image reconstruction, and obtains an end time corresponding to each sub-thread until the main thread monitors that the actual number of times for executing the image reconstruction operation by each sub-thread is equal to the preset number of times, and optionally, the end time may be stored in a designated storage space.
And S303, determining the period duration corresponding to each thread according to the starting time and the ending time.
In the present embodiment, the main thread determines the cycle duration of the image reconstruction operation performed a preset number of times by each sub-thread based on the start time and the end time of each sub-thread. Optionally, the main thread may also calculate an average cycle duration based on the cycle durations of all the sub-threads and the number of all the sub-threads performing the image reconstruction operation, which is not limited in this embodiment.
Optionally, each thread involves data-based execution and data storage in performing the image reconstruction operation, and in one embodiment, as shown in fig. 4, the method further includes:
s401, calling a thread to execute image reconstruction operation in the first storage space to obtain an image reconstruction result corresponding to the image reconstruction operation.
In this embodiment, each sub-thread performs an image reconstruction operation based on the first storage space, and optionally, each sub-thread performs a fundamental matrix operation and a fourier transform operation based on the first storage space, so as to implement the image reconstruction operation and obtain an image reconstruction result.
S402, storing the image reconstruction result into a second storage space of the thread.
In this embodiment, each sub-thread has a first storage space and a second storage space, and after an image reconstruction operation is performed once, each sub-thread stores an image reconstruction result in the corresponding second storage space, where the second storage space is mainly used for storing the image reconstruction result.
And S403, under the condition that the actual times of the thread for executing the image reconstruction operation is equal to the preset times, calculating the period duration corresponding to the thread.
In this embodiment, optionally, each sub-thread calculates the corresponding cycle duration when determining that the preset number of image reconstruction operations are completed, and the calculation manner may refer to the embodiment provided in fig. 3, which is not described in detail in this embodiment.
In the embodiment, the calculation operation and the storage operation of image reconstruction are respectively completed based on different storage spaces, and the image reconstruction operations performed by the first storage spaces of the sub-threads are the same, so that the calculation resources of the sub-threads are reduced.
The image reconstruction operation result is stored based on the second storage space corresponding to each thread, and since the second storage space is limited, the second storage space needs to be monitored and corresponding data processed, in an embodiment, as shown in fig. 5, the method further includes:
s501, traversing the storage memory of the second storage space.
The size of the storage space of the second storage space can be set according to actual conditions. In this embodiment, each sub-thread generates an image reconstruction result each time, stores the image reconstruction result in the second storage space, and optionally, the occupied space of the image reconstruction result in the second storage space each time may be regarded as 1%, and traversing the storage memory of the second storage space may also be understood as counting the image reconstruction results in the second storage space.
S502, if the storage memory of the second storage space is full, but the actual times of the thread for executing the image reconstruction operation are less than the preset times, releasing the second storage space, and continuing to execute the image reconstruction operation until the actual times of the thread for executing the image reconstruction operation are equal to the preset times.
In this embodiment, if the occupied space of each image reconstruction result in the second storage space is 1%, traversing the second storage space, that is, counting the image reconstruction results in the second storage space, and when the count is accumulated to 100%, it indicates that the storage memory of the second storage space is full, at this time, if it is determined that the number of times of performing the image reconstruction operation by each sub-thread has not met the preset number of times, it means that the image reconstruction result generated thereafter has no available storage space, in this case, each sub-thread may back up the image reconstruction result in the second storage space, clear data in the second storage space, release the memory resource of the second storage space, and then perform the image reconstruction operation until the actual number of times of performing the image reconstruction operation by the thread is equal to the preset number of times.
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 an effective storage space for a subsequent image reconstruction result, and ensure the effectiveness of executing the image reconstruction operation and the integrity of data.
Determining a performance quantization result of the reconstruction server according to each operation state parameter, and in one embodiment, determining a performance quantization result of the reconstruction server according to the operation state parameter includes:
if the parameter value corresponding to each index in the operation state parameters meets the threshold value condition corresponding to each index, determining that the performance quantization result of the reconstruction server is qualified; and if the parameter value corresponding to at least one index does not meet the threshold condition corresponding to the index, determining that the performance quantization result of the reconstruction server is unqualified.
In this embodiment, each operating state parameter of the reconstruction server corresponds to a respective test standard, and after the test is completed, a result of whether each operating state parameter of the reconstruction server is qualified may be obtained, and optionally, if at least one unqualified operating state parameter exists, the quantized result of the performance of the reconstruction server is determined to be unqualified. Alternatively, the performance test result of the replacement reconstruction server may be determined based on the operating state parameters of the original reconstruction server and the operating state parameters of the replacement reconstruction server.
Optionally, the parameter values corresponding to the indexes all satisfy the threshold conditions corresponding to the indexes, including: the actual memory usage rate is smaller than a preset memory usage rate threshold, the actual CPU usage rate is smaller than a preset CPU usage rate threshold, the average cycle duration of image reconstruction operation executed by each thread in the reconstruction server is smaller than the average cycle duration of image reconstruction operation executed by each thread in the original server, the actual test duration of the reconstruction server is equal to the preset test duration, and the number of threads actually executing image reconstruction operation is equal to the preset number of threads. By way of example, table 2 below gives a test example. The preset memory utilization rate threshold is 90%, the preset CPU utilization rate threshold is 90%, the preset test time is 12 hours, and the preset thread number is 1000.
TABLE 2
Index name Data of original machine Replacement machine data Threshold condition (detection standard)
Abnormality (S) Is free of Is free of Failure to make an exception
Length of operation 12 hours 12 hours >12 hours after
Number of threads 1000 1000 >1000 threads ═ 1000 threads
CPU utilization A% B% Average<90%
Memory usage rate C% D% Average<90%
Average completion time A first duration s A second time period s The time of the replacing machine is not more than 20 percent of the time of the original machine
Setting B% < 90% and D% > 90%, wherein the data examples show that the replacement reconstruction server has no abnormality in the performance test execution process, the memory usage threshold value is B% < 90%, the preset test time is 12 hours, the number of threads is 1000, the average cycle time of image reconstruction operation execution of each thread in the replacement reconstruction server is less than the average cycle time of image reconstruction operation execution of each thread in the original server, and the running state parameters all meet the respective corresponding threshold conditions; the CPU utilization rate threshold is D% more than 90%, and the corresponding threshold condition is not met; at this time, it is determined that the performance test result of the replacement reconstruction server is not qualified, which is not limited in this embodiment.
In this embodiment, the test result corresponding to each operating state parameter may be determined based on a plurality of operating state parameters of the reconstruction server, the performance test result of the reconstruction server may be determined based on the test result of each operating state parameter, and the performance status of the reconstruction server may be simply and accurately known due to quantization of the test index of the reconstruction server.
In another scenario, the performance result for evaluating the reconstruction server may further include the number of threads for performing the image reconstruction operation, and if the number of threads for performing the image reconstruction operation does not reach a preset default number, the reconstruction server needs to perform a thread starting operation repeatedly, in an embodiment, the method further includes:
and if the number of threads actually executing the image reconstruction operation is smaller than the preset number of threads, returning to the step of executing the image reconstruction operation by calling the threads with the preset number until the number of threads actually executing the image reconstruction operation is equal to the preset number of threads.
The preset number of threads may be 1000, or a default number of threads may be set according to an actual situation, generally, the reconstruction server of the sub-threads with the default number of threads is successfully started, the maximum thread capacity is good, and the bottom line of the self-protection mechanism is high.
In this embodiment, the reconstruction server obtains the actual number of threads for performing the image reconstruction operation based on the main thread, compares the actual number of threads with the preset number of threads, and if the actual number of threads is smaller than the preset number of threads, it indicates that there is a problem of a certain degree in the performance of the reconstruction server.
Optionally, if the number of times of executing the step of calling the threads with the preset number to perform the image reconstruction operation reaches a preset number threshold, and the number of threads actually performing the image reconstruction operation is smaller than the preset number of threads, determining that the performance quantization result of the reconstruction server is unqualified, and outputting the number of threads actually performing the image reconstruction operation.
In this embodiment, if the number of times that the main thread of the reconstruction server executes the step of calling the threads with the preset number to perform the image reconstruction operation reaches the preset number threshold, for example, the main thread is repeatedly executed for 5 times, and the actual number of threads is still smaller than the preset number of threads, in this case, it is determined that the performance quantization result of the reconstruction server is unqualified, and the unqualified performance quantization result of the reconstruction server and the number of threads actually performing the image reconstruction operation are output, which is not limited in this embodiment.
In this embodiment, when the number of times of executing the step of calling the threads with the preset number to perform the image reconstruction operation reaches the preset number threshold, it is determined that the number of threads actually performing the image reconstruction operation is smaller 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 result of the reconstruction server in terms of the maximum thread capacity and the bottom line of the self-protection mechanism can be definitely determined.
In another scenario, the result for evaluating the performance of the reconstruction server may further include an actual test duration of the reconstruction server, and if the actual test duration of the reconstruction server does not reach a preset default duration, it indicates that there is a problem in the performance of the reconstruction server, in this case, in an embodiment, the method further includes:
and 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 quantization result of the reconstruction server is unqualified, and outputting the actual times of executing the image reconstruction operation in the actual test duration by each thread.
The duration corresponding to the preset test time period may be 12 hours, and a default test duration may also be set according to an actual situation, generally speaking, a reconstruction server meeting the default test duration has good stability.
In this embodiment, a first time when the reconstruction server starts a performance test is obtained, a second time when the reconstruction server ends the performance test is obtained, an actual test duration of the reconstruction server is determined according to the first time and the second time, the actual test duration is compared with a duration corresponding to a preset test time period, if the actual test duration is less than the duration corresponding to the preset test time period, it is indicated that there is a problem of a certain degree in stability of the reconstruction server, at this time, it is determined that a performance quantization result of the reconstruction server is unqualified, optionally, when the reconstruction server ends the performance test operation, the reconstruction server main thread may obtain the number of times of image reconstruction operations performed by each sub-thread in the actual test duration, output the unqualified performance quantization result of the reconstruction server and the actual number of times of image reconstruction operations performed by each sub-thread in the actual test duration, this embodiment is not limited to this.
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 times of the image reconstruction operation executed by each sub-thread are output, so that the test result of the reconstruction server in the stability aspect can be determined.
To better explain the above method, as shown in fig. 6, the present embodiment provides a method for testing a reconstruction server, which specifically includes:
s101, acquiring the starting time of performance operation of a reconstruction server;
s102, calling a preset number of threads to execute image reconstruction operation;
s103, if the number of threads actually executing the image reconstruction operation is smaller than the preset number of threads, returning to the step 102 until the number of threads actually executing the image reconstruction operation is equal to the preset number of threads;
s104, if the number of times of executing the step of calling the threads with the preset number to execute the image reconstruction operation reaches a preset number threshold value and the number of the threads actually executing the image reconstruction operation is smaller than the preset number of threads, determining that the performance quantization result of the reconstruction server is unqualified, and outputting the number of the threads actually executing the image reconstruction operation;
s105, acquiring running state parameters generated by a reconstruction server in the process of executing image reconstruction operation by a preset number of threads;
s106, obtaining the ending time of ending the performance test of the reconstruction server, and determining the actual test duration of the reconstruction server according to the ending time and the starting time;
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 quantization result of the reconstruction server is unqualified, and outputting the actual times of executing the image reconstruction operation in the actual test duration by each thread;
and S108, outputting a performance quantification result of the determined reconstruction server.
In the embodiment, the relevant operation state parameters of the reconstruction server are obtained in the process of executing the image reconstruction operation by the reconstruction server, and the performance of the reconstruction server can be quantitatively evaluated based on each operation state parameter and the corresponding index thereof, so that the accuracy of the performance test of the reconstruction server is improved.
The implementation principle and technical effect of the method for testing a reconstruction server provided by the above embodiment are similar to those of the method embodiment, and are not described herein again.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 7, there is provided a reconstruction server testing apparatus including:
the reconstruction module 01 is used for calling a preset number of threads to execute image reconstruction operation within a preset test time period;
the acquiring module 02 is used for acquiring the running state parameters generated by the reconstruction server in the process of executing the image reconstruction operation by the threads with the preset number;
the determining module 03 is configured to determine a performance quantization result of the reconstruction server according to the operation state parameter.
In one optional embodiment, the running state parameters include parameter values corresponding to a plurality of indexes of the reconstruction server under the pressure of executing the image reconstruction operation by each thread; the running state parameters comprise the memory utilization rate, the CPU utilization rate, the cycle duration of the image reconstruction operation executed by each thread, the number of threads executing the image reconstruction operation and the test duration of the reconstruction server under the pressure of the image reconstruction operation executed by each thread.
In one optional embodiment, the running state parameter is a cycle duration of each thread executing the image reconstruction operation; the acquisition module is used for acquiring the starting time when each thread starts to execute the image reconstruction operation; acquiring the end time when the actual times of executing image reconstruction operation by each thread is equal to the preset times; and determining the period duration corresponding to each thread according to the starting time and the ending time.
In one optional embodiment, the reconstruction module is further configured to invoke a thread to perform an image reconstruction operation in the first storage space, so as to obtain an image reconstruction result corresponding to the image reconstruction operation; storing the image reconstruction result to a second storage space of the thread; and under the condition that the actual times of executing the image reconstruction operation of the thread is equal to the preset times, calculating the period duration corresponding to the thread.
In an optional embodiment, the reconstruction module is further configured to traverse a storage memory of the second storage space; and if the storage memory of the second storage space is full, but the actual times of the thread for executing the image reconstruction operation are less than the preset times, releasing the second storage space, and continuing to execute the image reconstruction operation until the actual times of the thread for executing the image reconstruction operation are equal to the preset times.
In one optional embodiment, the determining module is configured to determine that the performance quantization result of the reconstruction server is qualified if the parameter value corresponding to each index in each operation state parameter meets the threshold condition corresponding to each index; and if the parameter value corresponding to at least one index does not meet the threshold condition corresponding to the index, determining that the performance quantization result of the reconstruction server is unqualified.
In one optional embodiment, the step of determining the parameter value corresponding to each index satisfies the threshold condition corresponding to each index includes: the actual memory usage rate is smaller than a preset memory usage rate threshold, the actual CPU usage rate is smaller than a preset CPU usage rate threshold, the average cycle duration of image reconstruction operation executed by each thread in the reconstruction server is smaller than the average cycle duration of image reconstruction operation executed by each thread in the original server, the actual test duration of the reconstruction server is equal to the preset test duration, and the number of threads actually executing image reconstruction operation is equal to the preset number of threads.
In an optional embodiment, as shown in fig. 8, the reconstruction server testing apparatus further includes a determining module 04, configured to, if the number of threads actually performing the image reconstruction operation is smaller than the preset number of threads, return to the step of invoking the preset number of threads to perform the image reconstruction operation until the number of threads actually performing the image reconstruction operation is equal to the preset number of threads.
In an optional embodiment, the determining module 04 is further configured to determine that the performance quantization result of the reconstruction server is unqualified if the number of times of executing the step of invoking the 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 smaller than the preset number of threads, and output the number of threads actually performing the image reconstruction operation.
In an optional embodiment, the determining module 04 is further configured to determine that the performance quantization 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 that each thread executes the image reconstruction operation in the actual test duration.
For specific limitations of the reconstruction server testing apparatus, reference may be made to the above limitations of the reconstruction server testing method, which are not described herein again. The modules in the reconstruction server test device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
calling a preset number of threads to execute image reconstruction operation within a preset test time period;
acquiring running state parameters generated by a reconstruction server in the process of executing image reconstruction operation by a preset number of threads;
and determining a performance quantification result of the reconstruction server according to the operation state parameters.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
calling a preset number of threads to execute image reconstruction operation within a preset test time period;
acquiring running state parameters generated by a reconstruction server in the process of executing image reconstruction operation by a preset number of threads;
and determining a performance quantification result of the reconstruction server according to the operation state parameters.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A reconstruction server testing method, the method comprising:
calling a preset number of threads to execute image reconstruction operation within a preset test time period;
acquiring running state parameters generated by a reconstruction server in the process of executing image reconstruction operation by the threads with the preset number;
and determining a performance quantification result of the reconstruction server according to the operation state parameter.
2. The method of claim 1, wherein the operating state parameters include parameter values corresponding to a plurality of metrics of the reconstruction server under pressure of each of the threads performing the image reconstruction operation.
3. The method of claim 2, wherein the run state parameter is a cycle duration for each of the threads to perform an image reconstruction operation; the acquiring of the operating state parameters generated by the reconstruction server includes:
acquiring the starting time of starting to execute the image reconstruction operation by each thread;
acquiring the end time when the actual times of executing image reconstruction operation by each thread is equal to the preset times;
and determining the period duration corresponding to each thread according to the starting time and the ending time.
4. The method of claim 3, further comprising:
calling the thread to execute image reconstruction operation in a first storage space to obtain an image reconstruction result corresponding to the image reconstruction operation;
storing the image reconstruction result to a second storage space of the thread;
and under the condition that the actual times of executing the image reconstruction operation of the thread is equal to the preset times, calculating the period duration corresponding to the thread.
5. The method of claim 4, further comprising:
traversing the storage memory of the second storage space;
if the storage memory of the second storage space is full, but the actual times of executing the image reconstruction operation by the thread are less than the preset times, releasing the second storage space, and continuing to execute the image reconstruction operation until the actual times of executing the image reconstruction operation by the thread are equal to the preset times.
6. The method according to any one of claims 1 to 5, wherein the determining the performance quantification result of the reconstruction server according to the operating state parameter comprises:
if the parameter value corresponding to each index in the operation state parameters meets the threshold condition corresponding to each index, determining that the performance quantization result of the reconstruction server is qualified;
and if the parameter value corresponding to at least one index does not meet the threshold condition corresponding to the index, determining that the performance quantization result of the reconstruction server is unqualified.
7. The method according to any one of claims 1 to 5, further comprising:
and if the number of threads actually executing the image reconstruction operation is smaller than the preset number of threads, returning to the step of executing the image reconstruction operation by calling the threads with the preset number until the number of threads actually executing the image reconstruction operation is equal to the preset number of threads.
8. The method of claim 7, further comprising:
and if the number of times of executing the step of calling the threads with the preset number to execute the image reconstruction operation reaches a preset number threshold value and the number of the threads actually executing the image reconstruction operation is smaller than the preset number of threads, determining that the performance quantization result of the reconstruction server is unqualified and outputting the number of the threads actually executing the image reconstruction operation.
9. The method according to any one of claims 1 to 5, further comprising:
and 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 quantization result of the reconstruction server is unqualified, and outputting the actual times of executing the image reconstruction operation in the actual test duration by each thread.
10. A reconstruction server test apparatus, the apparatus comprising:
the reconstruction module is used for calling a preset number of threads to execute image reconstruction operation in a preset test time period;
the acquisition module is used for acquiring the running state parameters generated by the reconstruction server in the process of executing the image reconstruction operation by the threads with the preset number;
and the determining module is used for determining the performance quantification result of the reconstruction server according to the running state parameters.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 9 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9.
CN202110973507.5A 2021-08-24 2021-08-24 Reconstruction server testing method and device, computer equipment and storage medium Pending CN113778768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110973507.5A CN113778768A (en) 2021-08-24 2021-08-24 Reconstruction server testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110973507.5A CN113778768A (en) 2021-08-24 2021-08-24 Reconstruction server testing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113778768A true CN113778768A (en) 2021-12-10

Family

ID=78838863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110973507.5A Pending CN113778768A (en) 2021-08-24 2021-08-24 Reconstruction server testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113778768A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500278A (en) * 2021-12-30 2022-05-13 武汉思普崚技术有限公司 Method and device for upgrading feature library through proxy server

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140324953A1 (en) * 2013-04-24 2014-10-30 Samsung Electronics Co., Ltd. Terminal device and content displaying method thereof, server and controlling method thereof
CN107835101A (en) * 2017-10-19 2018-03-23 厦门美柚信息科技有限公司 Method and device, the terminal of pressure test are carried out to server
CN109815114A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Test method, management server, test equipment, computer equipment and medium
CN110175110A (en) * 2019-05-31 2019-08-27 深圳前海微众银行股份有限公司 Method for testing pressure, device, system, equipment and computer readable storage medium
CN111211937A (en) * 2019-12-28 2020-05-29 苏州浪潮智能科技有限公司 Method, device and system for testing stability of server link signals
CN111338924A (en) * 2020-03-09 2020-06-26 苏州浪潮智能科技有限公司 Server performance test method, system, equipment and medium
CN111611144A (en) * 2020-05-27 2020-09-01 中国工商银行股份有限公司 Method, apparatus, computing device, and medium for processing performance test data
WO2020233064A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Function test-based factor influence degree determination method and apparatus, and terminal device
CN112115005A (en) * 2020-08-11 2020-12-22 苏宁云计算有限公司 Test data acquisition method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140324953A1 (en) * 2013-04-24 2014-10-30 Samsung Electronics Co., Ltd. Terminal device and content displaying method thereof, server and controlling method thereof
CN107835101A (en) * 2017-10-19 2018-03-23 厦门美柚信息科技有限公司 Method and device, the terminal of pressure test are carried out to server
CN109815114A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Test method, management server, test equipment, computer equipment and medium
WO2020233064A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Function test-based factor influence degree determination method and apparatus, and terminal device
CN110175110A (en) * 2019-05-31 2019-08-27 深圳前海微众银行股份有限公司 Method for testing pressure, device, system, equipment and computer readable storage medium
CN111211937A (en) * 2019-12-28 2020-05-29 苏州浪潮智能科技有限公司 Method, device and system for testing stability of server link signals
CN111338924A (en) * 2020-03-09 2020-06-26 苏州浪潮智能科技有限公司 Server performance test method, system, equipment and medium
CN111611144A (en) * 2020-05-27 2020-09-01 中国工商银行股份有限公司 Method, apparatus, computing device, and medium for processing performance test data
CN112115005A (en) * 2020-08-11 2020-12-22 苏宁云计算有限公司 Test data acquisition method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
熊君丽: "基于多线程的RADIUS服务器性能测试方法研究", 现代电子技术, no. 16, 1 April 2006 (2006-04-01), pages 110 - 112 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500278A (en) * 2021-12-30 2022-05-13 武汉思普崚技术有限公司 Method and device for upgrading feature library through proxy server
CN114500278B (en) * 2021-12-30 2024-04-09 武汉思普崚技术有限公司 Method and device for upgrading feature library through proxy server

Similar Documents

Publication Publication Date Title
US8850270B2 (en) Test selection
US20150178178A1 (en) Call Graph Simplification/Comparison and Automatic Initial Suspects Finding of Performance Degradations
CN107924360B (en) Diagnostic framework in a computing system
CN109271290B (en) Method and device for monitoring thread utilization rate and storage device
Matias Jr et al. Using accelerated life tests to estimate time to software aging failure
US9134997B2 (en) Methods for assessing deliverable product quality and devices thereof
CN111143143A (en) Performance test method and device
CN113778768A (en) Reconstruction server testing method and device, computer equipment and storage medium
CN111522668A (en) Method and apparatus for resource configuration and computer-readable storage medium
CN110691118A (en) Service selection method and device in micro-service cluster
CN112381258B (en) Meter operation life cycle prediction method and device
CN111984527A (en) Software performance testing method, device, equipment and medium
WO2022198919A1 (en) Out-of-tolerance event recording method and apparatus for double-core smart electric meter, and computer device
CN113158435B (en) Complex system simulation running time prediction method and device based on ensemble learning
CN109634822B (en) Function time consumption statistical method and device, storage medium and terminal equipment
CN109213965B (en) System capacity prediction method, computer readable storage medium and terminal device
CN106294364B (en) Method and device for realizing web crawler to capture webpage
CN108255703B (en) SQL script fault repairing method and terminal thereof
CN112181821A (en) Interface test coverage detection method and device, electronic device and storage medium
CN108418730B (en) Network flow testing method, device, equipment and computer readable storage medium
CN113835953A (en) Statistical method and device of job information, computer equipment and storage medium
CN113220463B (en) Binding strategy inference method and device, electronic equipment and storage medium
CN110795255B (en) Data batch value adjusting method and device, readable storage medium and equipment
Zhao et al. Software rejuvenation scheduling using accelerated life testing
CN112506565A (en) Method, medium, and apparatus for determining importance of processor micro-architectural event

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination