A method and system for performance test management of virtualized CPUs

The method and system for virtualization CPU performance testing through replicated environments and data association improve testing efficiency and accuracy, addressing inefficiencies and instability in existing virtualization CPU performance evaluation.

CN119759674BActive Publication Date: 2025-07-15WUXI RUIGESI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510237565.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-07-15
Estimated Expiration
2045-03-03

AI Technical Summary

Technical Problem

The prior art is difficult to ensure the stability and efficiency of the test in the performance test of virtualized CPUs, and it is difficult to effectively analyze the performance of virtualized CPUs.

Method used

By copying the twin test grid in the main test environment and overlapping with the test space in the test disk, we build an association relationship, realize the test environment of the virtualized CPU, and obtain and analyze the running data to determine the status information.

Benefits of technology

Improves the efficiency and data accuracy of virtualized CPU tests, ensuring the stability and efficiency of tests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759674B_ABST
    Figure CN119759674B_ABST
Patent Text Reader

Abstract

The present invention discloses a performance test management method and system for virtualized CPUs, which relates to the technical field of virtualization testing. A test plan is formulated for the virtualized CPUs to be tested, and a test environment for the virtualized CPUs is constructed according to the test plan; the virtualized CPUs are put into the test environment, and the operation data of the virtualized CPUs in the test environment is obtained. In the present invention, the test cells in the main test environment corresponding to the collection points are replicated to obtain twin test cells, and the twin test cells are overlapped with the test spaces in the corresponding test disks to obtain the association relationship between the main test environment and the test disks. The isolation of the operation data of the virtualized CPU tests in different test environments can be completed through the collection points and the twin test cells, and the performance analysis of the virtualized CPU tests can be better corresponding to the test environment, greatly improving the test efficiency and ensuring the accuracy of the test data at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of virtualization testing, and particularly relates to a performance testing management method and system for virtualized CPUs. Background Art

[0002] CPU virtualization is the core part of virtualization technology, which allows multiple operating systems to run on the same physical CPU. Through specific hardware and software support, CPU virtualization technology realizes the scheduling and management of virtual CPUs, enabling each virtual machine to obtain independent CPU resources. However, during the use of virtualized CPUs, their performance is lower than that of physical machines. Therefore, understanding the performance of virtualized CPUs can better utilize them. Through performance testing of virtualized CPUs, their usage performance can be understood. During the performance testing process of virtualized CPUs, it is difficult to ensure the stability of the test while conducting the test simultaneously, and it is difficult to improve the efficiency of testing virtualized CPUs. Summary of the Invention

[0003] The purpose of the present invention is to provide a performance testing management method and system for virtualized CPUs to solve the deficiencies in the background art.

[0004] To achieve the above purpose, the present invention provides the following technical solution: A performance testing management method for virtualized CPUs, comprising the following steps:

[0005] Formulate a test plan for the virtualized CPU to be tested, set up a test main environment and a test disk. The test main environment includes multiple test cells and test labels corresponding to the test cells. Multiple collection points are respectively configured for the multiple test cells. The test disk includes multiple test spaces and test labels corresponding to the multiple test spaces. Establish communication connections between the multiple collection points in the test main environment and the connection points of the corresponding test spaces in the test disk.

[0006] Copy the test cell in the test main environment where the collection point is located to obtain a twin test cell, overlap the twin test cell with the corresponding test space in the test disk to obtain the association relationship between the test main environment and the test disk, and construct a test environment for the virtualized CPU based on the association relationship between the test main environment and the test disk through the test plan.

[0007] Put the virtualized CPU into the test environment and obtain the operation data of the virtualized CPU in the test environment.

[0008] Collect and analyze the operation data of the virtualized CPU to obtain the status information of the virtualized CPU test.

[0009] In a preferred embodiment, the step of constructing a test environment for the virtualized CPU includes:

[0010] Determine the virtualized CPU to be tested, determine the test objectives of the virtualized CPU, and formulate multiple test scenarios based on the test objectives of the virtualized CPU;

[0011] Construct multiple test environments for the virtualized CPU corresponding to the multiple test scenarios.

[0012] In a preferred embodiment, the step of constructing multiple test environments for the virtualized CPU corresponding to the multiple test scenarios includes:

[0013] Formulate a test main environment;

[0014] Set a test disk corresponding to the test main environment;

[0015] Establish an association relationship between the test main environment and the test disk;

[0016] Put the multiple test scenarios into the test main environment, enable the test spaces in the corresponding test disks through the test main environment based on the multiple test scenarios, and associate the test spaces based on the multiple test scenarios to obtain multiple test environments.

[0017] In a preferred embodiment, the step of setting a test disk corresponding to the test main environment includes:

[0018] Set a basic disk, and set connection points on the basic disk;

[0019] Set multiple test spaces on the basic disk that are the same as the test cells in the test main environment and the test labels corresponding to the multiple test spaces, and connect the multiple test spaces based on the connection points to obtain a test disk.

[0020] In a preferred embodiment, the step of putting the virtualized CPU into the test environment and obtaining the running data of the virtualized CPU in the test environment includes:

[0021] Connect the set points corresponding to the test environment to obtain a set test group;

[0022] Duplicate the virtualized CPU the same number of times as the number of the set test group to obtain multiple virtualized CPUs;

[0023] Put the multiple virtualized CPUs into the test environment one by one, and obtain the running data of the virtualized CPU in the test environment.

[0024] In a preferred embodiment, the step of collecting the running data of the virtualized CPU and analyzing it to obtain the status information of the virtualized CPU test includes:

[0025] Formulate corresponding standard test parameters corresponding to the test scenarios;

[0026] Obtain the running data in the corresponding test space through the set test group, compare the running data with the corresponding standard test parameters, and obtain the comparison result;

[0027] Take the status information of the virtual CPU corresponding to the comparison result that meets the preset conditions as the qualified status.

[0028] The present invention also provides a performance test management system for a virtual CPU, including:

[0029] A formulation module, used to formulate a test plan for the virtual CPU to be tested, set the test main environment and the test disk. The test main environment includes multiple test cells and test labels corresponding to the test cells. Multiple collection points are respectively configured for the multiple test cells. The test disk includes multiple test spaces and test labels corresponding to the multiple test spaces. Communicate and connect between the multiple collection points in the test main environment and the connection points of the corresponding test spaces in the test disk;

[0030] Copy the test cell in the test main environment where the collection point is located to obtain a twin test cell, overlap the twin test cell with the corresponding test space in the test disk, obtain the association relationship between the test main environment and the test disk, and construct a test environment for the virtual CPU based on the association relationship between the test main environment and the test disk through the test plan;

[0031] A test module, connected to the formulation module, used to put the virtual CPU into the test environment and obtain the running data of the virtual CPU in the test environment;

[0032] An analysis module, connected to the test module, used to collect and analyze the running data of the virtual CPU to obtain the status information of the virtual CPU test.

[0033] In the above technical solution, the technical effects and advantages provided by the present invention:

[0034] The present invention copies the test cell in the test main environment where the collection point is located to obtain a twin test cell, overlaps the twin test cell with the corresponding test space in the test disk, and obtains the association relationship between the test main environment and the test disk. It can achieve the isolation of the running data of the virtual CPU test in different test environments through the collection point and the twin test cell, and can better perform performance analysis on the virtual CPU test corresponding to the test environment, greatly improving the test efficiency and ensuring the accuracy of the test data at the same time. Description of the Drawings

[0035] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments recorded in the present invention. For those of ordinary skill in the art, other accompanying drawings can also be obtained based on these drawings.

[0036] Figure 1 It is a flowchart of the method of the present invention.

[0037] Figure 2 It is a block diagram of the system of the present invention. Detailed implementation manners

[0038] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, rather than all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.

[0039] Embodiment 1. Please refer to Figure 1 As shown, a method for performance test management of a virtualized CPU in this embodiment includes the following steps:

[0040] S1. Develop a test plan for the virtualized CPU to be tested, set the test main environment and the test disk, establish an association relationship between the test main environment and the test disk, and construct a test environment for the virtualized CPU based on the association relationship between the test main environment and the test disk through the test plan;

[0041] S2. Put the virtualized CPU into the test environment and obtain the operation data of the virtualized CPU in the test environment;

[0042] S3. Collect and analyze the operation data of the virtualized CPU to obtain the status information of the virtualized CPU test;

[0043] As described in the above steps S1 - S3, CPU virtualization is the core part of virtualization technology, which allows multiple operating systems to run on the same physical CPU. Through specific hardware and software support, CPU virtualization technology realizes the scheduling and management of virtual CPUs, enabling each virtual machine to obtain independent CPU resources. However, during the use of virtualized CPUs, their performance is lower than that of physical machines. Therefore, understanding the performance of virtualized CPUs can better utilize them. By testing the performance of virtualized CPUs, we can understand their usage performance. During the performance testing of virtualized CPUs, it is difficult to ensure the stability of the test while conducting the test simultaneously, and it is also difficult to improve the efficiency of testing virtualized CPUs. In this application, the test cells in the main test environment corresponding to the collection point are replicated to obtain twin test cells, and the twin test cells are overlapped with the test spaces in the corresponding test disks to obtain the association relationship between the main test environment and the test disks. This can isolate the running data of virtualized CPU tests in different test environments through the collection point and the twin test cells, enabling better performance analysis of virtualized CPU tests in the corresponding test environments, greatly improving the test efficiency while ensuring the accuracy of test data.

[0044] In one embodiment, step S1 of constructing a test environment for a virtualized CPU includes:

[0045] S11. Determine the virtualized CPU to be tested, determine the test objectives of the virtualized CPU, and formulate multiple test plans based on the test objectives of the virtualized CPU;

[0046] S12. Construct multiple test environments for the virtualized CPU corresponding to the multiple test plans;

[0047] As described in the above steps S11 and S12, determine the virtualized CPU that needs to be tested. Before testing the virtualized CPU, it is necessary to determine the test objectives of the virtualized CPU. The test objectives include test purposes such as system stability and reliability verification, throughput and response time measurement, and resource utilization evaluation. Then, multiple test plans can be formulated according to the test objectives of the virtualized CPU, and multiple test environments for the virtualized CPU can be constructed according to the multiple test plans, enabling the virtualized CPU to be tested in multiple environments respectively, improving the test effectiveness of the virtualized CPU, and better understanding the performance of the virtualized CPU.

[0048] In one embodiment, step S12 of constructing multiple test environments for the virtualized CPU corresponding to the multiple test plans includes:

[0049] S121. Formulate the main test environment;

[0050] S122. Set the test disk corresponding to the main test environment;

[0051] S123. Establish the association relationship between the test main environment and the test disk;

[0052] S124. Put multiple test scenarios into the test main environment, enable the test spaces in the corresponding test disks based on the multiple test scenarios through the test main environment, and associate the test spaces based on the multiple test scenarios to obtain multiple test environments;

[0053] As described in the above steps S121 - S124, formulate multiple test cells and the test tags corresponding to the test cells in the cloud server as the test main environment. The multiple test cells in the test main environment include the test spaces corresponding to all test links for the virtualized CPU. For example, the measurement of the throughput and response time of the virtualized CPU includes the test cell for preparing data and the running test space for the virtualized CPU to measure the data throughput and response time. At the same time, the test cell for preparing data can also be used for other system stability tests. The test tag is the functional role of the test cell. For example, the test cell for preparing data is used to randomly generate the data required during the test process of the virtualized CPU. The test tag corresponding to the test space in the test disk represents the functional role of the test space. This test main environment is used to divide the test of the virtualized CPU into multiple test environments corresponding to the test scenarios. The test environment is determined on the test disk. Due to the relationship between the test main environment and the test disk, it can be enabled through the test main environment. Then, put multiple test scenarios into the test main environment. Through the test main environment, the test spaces in the corresponding test disks can be enabled. Corresponding to the multiple test scenarios, the test spaces are associated to obtain multiple test environments. Through the test scenario, the required test cells can be determined in the test main environment, the collection points in the required test cells can be called, and the test space where the connection point of a communication connection is located can be enabled according to the collection point. Through the test scenario, multiple test spaces can be enabled in the test disk. Based on the connection points, the enabled multiple test spaces are associated in the test order (the test order is the order for testing the virtualized CPU. For example, the measurement of the throughput and response time of the virtualized CPU includes the test cell for preparing data and the running test space for the virtualized CPU to measure the data throughput and response time. Just put the test space for preparing data first and the test space for the virtualized CPU to measure the data throughput and response time later to test the virtualized CPU. Put the test data prepared in the test space for preparing data into the test space for the virtualized CPU to measure the data throughput and response time for the use of testing the virtualized CPU) to obtain the test environment. Multiple test scenarios obtain multiple test environments, and the virtualized CPU can be tested through the multiple test environments, ensuring the test stability of the virtualized CPU, being able to avoid the test environment from affecting the test of the virtualized CPU, better completing the test of the virtualized CPU, and obtaining the performance of the virtualized CPU.

[0054] In one embodiment, step S121 of setting the test disk in the corresponding test main environment includes:

[0055] S1211. Set the base disk and set connection points on the base disk;

[0056] S1212. Set a plurality of test spaces on the base disk that are the same as the test cells in the test main environment, and test labels corresponding to the plurality of test spaces. Connect the plurality of test spaces based on the connection points to obtain a test disk;

[0057] As described in steps S1211 and S1212 above, the base disk is used to carry a plurality of test spaces. The base disk is a cloud server. Since the plurality of test spaces are the same as the test cells in the test main environment, the test spaces here are used for subsequent testing of virtual CPUs. Since there are a plurality of test spaces, the plurality of test spaces are connected here through the connection points. In the subsequent testing of virtual CPUs, a plurality of test spaces will be enabled for testing. Therefore, the enabled plurality of test spaces can be connected through the connection points, and a test environment for virtual CPUs can be combined. The virtual CPU can be directly put into the test environment of the plurality of test spaces after combination for performance testing. Multiple test environments for the virtual CPU can be tested simultaneously in the base disk, with relatively high efficiency, and the stability of the test environment and the integrity of the data can be ensured. There are a plurality of test spaces on the base disk that are the same as the test cells in the test main environment. For example, there are a plurality of test spaces for preparing data, and there are also a plurality of running test spaces for the virtual CPU to measure data throughput and response time. When there are test spaces using one test label in a plurality of test scenarios, no conflict will occur. There are a plurality of test spaces with one test label, and the quantity is available for use, and the purpose of simultaneously performing performance testing on the virtual CPU can be achieved;

[0058] All the plurality of aggregation points are communicatively connected to the connection points in the test spaces of the corresponding test disk. To ensure that the running data of the virtual CPU during testing in the test disk can be quickly obtained and analyzed by the test main environment, the test cell in the test main environment where the corresponding aggregation point is located is replicated to obtain a twin test cell, and the twin test cell is overlapped with the test space in the corresponding test disk to obtain the association relationship between the test main environment and the test disk. The isolation of the running data of the virtual CPU test in different test environments can be completed through the aggregation point and the twin test cell, and the performance analysis of the virtual CPU test in the corresponding test environment can be better performed, greatly improving the test efficiency while ensuring the accuracy of the test data.

[0059] In one embodiment, step S2 of putting the virtualized CPU into the test environment and obtaining the running data of the virtualized CPU in the test environment includes:

[0060] S21. Connect the collection points corresponding to the test environment to obtain a collection test group;

[0061] S22. Duplicate the virtualized CPU the same number of times as the number of the collection test groups to obtain multiple virtualized CPUs;

[0062] S23. Put the multiple virtualized CPUs into the test environment one by one to obtain the running data of the virtualized CPU in the test environment;

[0063] In one embodiment, step S3 of collecting the running data of the virtualized CPU, analyzing it, and obtaining the status information of the virtualized CPU test includes:

[0064] S31. Develop corresponding standard test parameters according to the test plan;

[0065] S32. Obtain the running data in the corresponding test space through the collection test group, compare the running data with the corresponding standard test parameters, and obtain a comparison result;

[0066] S33. Use the status information of the virtualized CPU corresponding to the comparison result that meets the preset conditions as the qualified status;

[0067] As described in steps S31 - S33 above, connect the collection points corresponding to the test environment to obtain a collection test group. Here, the collection test group is used to collect and compare the running data of the virtualized CPU corresponding to a test plan. Then, put the multiple virtualized CPUs into the test environment one by one to obtain the running data of the virtualized CPU in the test environment, which can simultaneously test the virtualized CPU in multiple test environments. Develop corresponding standard test parameters according to the test plan, obtain the running data in the corresponding test space through the collection test group, compare the running data with the corresponding standard test parameters, and obtain a comparison result. Use the status information of the virtualized CPU corresponding to the comparison result that meets the preset conditions as the qualified status, which can quickly and stably test the virtualized CPU.

[0068] Embodiment 2. Please refer to Figure 2 As shown, the performance test management system for a virtualized CPU in this embodiment includes:

[0069] A formulation module, which is used to formulate a test plan for the virtual CPU to be tested, set the test main environment and the test disk. The test main environment includes multiple test cells and test labels corresponding to the test cells. Multiple collection points are respectively configured for the multiple test cells. The test disk includes multiple test spaces and test labels corresponding to the multiple test spaces. Communication connections are made between the multiple collection points in the test main environment and the connection points of the corresponding test spaces in the test disk.

[0070] Copy the test cell in the test main environment where the collection point is located to obtain a twin test cell. Overlap the twin test cell with the corresponding test space in the test disk to obtain the association relationship between the test main environment and the test disk. Based on the association relationship between the test main environment and the test disk, construct a test environment for the virtual CPU through the test plan.

[0071] A test module, connected to the formulation module, which is used to put the virtual CPU into the test environment and obtain the operation data of the virtual CPU in the test environment.

[0072] An analysis module, connected to the test module, which is used to collect the operation data of the virtual CPU and analyze it to obtain the status information of the virtual CPU test.

[0073] As described above, it is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed by this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claimed rights.

Claims

1. A performance test management method for virtualized CPUs, characterized in that Including the following steps: Formulate a test plan for the virtualized CPU to be tested, set up a test main environment and a test disk. The test main environment includes multiple test cells and test tags corresponding to the test cells. Multiple collection points are respectively configured for the multiple test cells. The test disk includes multiple test spaces and test tags corresponding to the multiple test spaces. Establish communication connections between the multiple collection points in the test main environment and the connection points of the corresponding test spaces in the test disk; Copy the test cell in the test main environment where the collection point is located to obtain a twin test cell, overlap the twin test cell with the corresponding test space in the test disk to obtain the association relationship between the test main environment and the test disk, and build a test environment for the virtualized CPU based on the association relationship between the test main environment and the test disk through the test plan; The steps of building a test environment for the virtualized CPU include: Determine the virtualized CPU to be tested, determine the test objectives of the virtualized CPU, and formulate multiple test plans based on the test objectives of the virtualized CPU; Build multiple test environments for the virtualized CPU corresponding to the multiple test plans; Put the virtualized CPU into the test environment and obtain the operation data of the virtualized CPU in the test environment; The step of putting the virtualized CPU into the test environment and obtaining the operation data of the virtualized CPU in the test environment includes: Perform a collection connection on the collection points corresponding to the test environment to obtain a collection test group; Copy the virtualized CPU the same number of times as the number of the collection test groups to obtain multiple virtualized CPUs; Put the multiple virtualized CPUs into the test environment one by one and obtain the operation data of the virtualized CPU in the test environment; Collect the operation data of the virtualized CPU for analysis to obtain the status information of the virtualized CPU test.

2. The performance test management method for a virtualized CPU according to claim 1, characterized in that: The step of building multiple test environments for the virtualized CPU corresponding to the multiple test plans includes: Formulate a test main environment; Set up a test disk corresponding to the test main environment; Establish the association relationship between the test main environment and the test disk; Put the multiple test plans into the test main environment, enable the test spaces in the corresponding test disks based on the multiple test plans through the test main environment, and associate the test spaces based on the multiple test plans to obtain multiple test environments.

3. A performance test management method for a virtualized CPU according to claim 2, characterized in that: The step of setting up a test disk corresponding to the test main environment includes: Set up a basic disk and set connection points on the basic disk; Set up multiple test spaces on the basic disk that are the same as the test cells in the test main environment and test tags corresponding to the multiple test spaces, and connect the multiple test spaces based on the connection points to obtain a test disk.

4. The performance test management method of a virtualized CPU according to claim 1, characterized in that: The step of collecting the operation data of the virtualized CPU for analysis to obtain the status information of the virtualized CPU test includes: Formulate corresponding standard test parameters for the test plan; Obtain the operation data in the corresponding test space through the collection test group, compare the operation data with the corresponding standard test parameters to obtain a comparison result; Take the status information of the virtualized CPU corresponding to the comparison result that meets the preset conditions as the qualified status.

5. A performance test management system for virtualized CPUs, which is used to implement the performance test management method for virtualized CPUs according to any one of claims 1-4, characterized in that, Including: A formulation module is used to formulate a test plan for a virtual CPU to be tested, set up a test main environment and a test disk. The test main environment includes multiple test cells and test labels corresponding to the test cells. Multiple collection points are respectively configured for the multiple test cells. The test disk includes multiple test spaces and test labels corresponding to the multiple test spaces. Communication connections are made between the multiple collection points in the test main environment and the connection points of the corresponding test spaces in the test disk; Twin test cells are obtained by replicating the test cells in the test main environment where the collection points are located. The twin test cells are overlapped with the corresponding test spaces in the test disk to obtain the association relationship between the test main environment and the test disk. Based on the association relationship between the test main environment and the test disk, a test environment for the virtual CPU is constructed through the test plan; A test module, connected to the formulation module, is used to put the virtual CPU into the test environment and obtain the operation data of the virtual CPU in the test environment; An analysis module, connected to the test module, is used to collect and analyze the operation data of the virtual CPU to obtain the status information of the virtual CPU test.