Performance test management method and system for virtualized CPU (Central Processing Unit)

By building the relationship between the test main environment and the test disk in the virtualized CPU performance test, the stability and efficiency problems in the virtualized CPU performance test are solved, and more efficient and accurate test results are achieved.

CN119759674AActive Publication Date: 2025-04-04WUXI RUIGESI INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

During the performance testing of virtualized CPUs, it is difficult to ensure the stability of the test and improve the efficiency of the test at the same time.

Method used

By formulating a test plan, setting up the test main environment and the test disk, and establishing an association between them, a test environment for virtualized CPU is built. The specific steps include copying the test grid to form a twin test grid, overlapping the test space in the twin test grid and the test disk, and realizing the correlation between the test main environment and the test disk.

Benefits of technology

Through this method, the running data of the virtualized CPU can be isolated under different test environments, improving testing efficiency and ensuring the accuracy of the test data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759674A_ABST
    Figure CN119759674A_ABST
Patent Text Reader

Abstract

The invention discloses a performance test management method and system for a virtualized CPU, and relates to the technical field of virtualized test.A test scheme is made for the virtualized CPU needing to be tested, and a test environment for the virtualized CPU is constructed according to the test scheme; and putting the virtualized CPU into a test environment, and obtaining operation data of the virtualized CPU in the test environment. According to the method, the test grids in the test main environment where the corresponding set points are located are copied to obtain the twin test grids, and the twin test grids are overlapped with the test spaces in the corresponding test disks to obtain the incidence relation between the test main environment and the test disks; according to the method, the isolation of the operation data of the virtualized CPU test in different test environments can be completed through the set points and the twin test grids, the performance analysis of the virtualized CPU test can be better carried out corresponding to the test environments, and the accuracy of the test data is ensured while the test efficiency is greatly improved.
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 in particular to a performance testing management method and system for a virtualized CPU. Background Art

[0002] CPU virtualization is the core part of virtualization technology, which allows multiple operating systems to run on the same physical CPU. CPU virtualization technology implements the scheduling and management of virtual CPUs through specific hardware and software support, so that each virtual machine can obtain independent CPU resources. Similarly, in the process of using virtualized CPUs, its performance is lower than that of physical machines. Therefore, understanding the performance of virtualized CPUs can better use virtualized CPUs. Through performance testing of virtualized CPUs, the performance of virtualized CPUs can be understood. In the process of virtualized CPU performance testing, it is difficult to simultaneously test and ensure the stability of the test, and it is difficult to improve the efficiency of virtualized CPU testing. Summary of the invention

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

[0004] In order to achieve the above object, the present invention provides the following technical solution: a performance test management method for a virtualized CPU, comprising the following steps: Formulate a test plan for the virtualized CPU that needs to be tested, set up a test main environment and a test disk, the test main environment includes multiple test grids and test labels corresponding to the test grids, multiple collection points are configured for the multiple test grids, the test disk includes multiple test spaces and test labels corresponding to the multiple test spaces, and the multiple collection points in the test main environment are all communicated and connected with the connection points of the corresponding test spaces in the test disk; The test grid in the test main environment where the corresponding collection point is located is copied to obtain a twin test grid, and the twin test grid 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. Based on the association relationship between the test main environment and the test disk, a test environment for the virtualized CPU is constructed through a test plan. Put the virtualized CPU into the test environment to obtain the running data of the virtualized CPU in the test environment; Collect and analyze the running data of the virtualized CPU to obtain the status information of the virtualized CPU test.

[0005] In a preferred embodiment, the step of constructing a test environment for a virtualized CPU includes: Determine the virtualized CPU to be tested, determine the test target of the virtualized CPU, and formulate multiple test plans based on the test target of the virtualized CPU; Build multiple test environments for virtualized CPUs corresponding to multiple test scenarios.

[0006] In a preferred embodiment, the step of constructing multiple test environments of the virtualized CPU corresponding to multiple test schemes includes: Develop the main test environment; Set up a test disk corresponding to the main test environment; Establish the association between the test main environment and the test disk; Multiple test plans are put into the test main environment, and based on the multiple test plans, the test spaces in the corresponding test disks are enabled through the test main environment, and based on the multiple test plans, the test spaces are associated to obtain multiple test environments.

[0007] In a preferred embodiment, the step of setting a test disk corresponding to the test main environment includes: Set up a base plate and set up connection points on the base plate; A plurality of test spaces identical to the test grids in the main test environment and test labels corresponding to the plurality of test spaces are set on the basic disk, and the plurality of test spaces are connected based on connection points to obtain a test disk.

[0008] In a preferred embodiment, the step of placing the virtualized CPU into a test environment and obtaining the operating data of the virtualized CPU in the test environment includes: Connect the collection points corresponding to the test environment to obtain a collection test group; The virtualized CPUs are replicated in the same number according to the number of the test groups, to obtain multiple virtualized CPUs. Multiple virtualized CPUs are put into the test environment one by one to obtain the running data of the virtualized CPUs in the test environment.

[0009] In a preferred embodiment, the step of collecting and analyzing the operation data of the virtualized CPU to obtain the state information of the virtualized CPU test includes: Formulate corresponding standard test parameters for the corresponding test plan; Obtain the operation data in the corresponding test space by gathering the test group, and compare the operation data with the corresponding standard test parameters to obtain the comparison results; The state information of the virtualized CPU corresponding to the comparison result that meets the preset condition is regarded as a qualified state.

[0010] The present invention also provides a performance test management system for a virtualized CPU, comprising: A formulation module is used to formulate a test plan for a virtualized CPU that needs to be tested, set a test main environment and a test disk, the test main environment includes multiple test grids and test labels corresponding to the test grids, multiple collection points are configured for the multiple test grids, the test disk includes multiple test spaces and test labels corresponding to the multiple test spaces, and the multiple collection points in the test main environment are all communicated and connected with the connection points of the corresponding test spaces in the test disk; The test grid in the test main environment where the corresponding collection point is located is copied to obtain a twin test grid, and the twin test grid 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. Based on the association relationship between the test main environment and the test disk, a test environment for the virtualized CPU is constructed through a test plan. The test module is connected to the formulation module and is used to put the virtualized CPU into the test environment and obtain the operation data of the virtualized CPU in the test environment; The analysis module is connected to the test module and is used to collect the operation data of the virtualized CPU for analysis to obtain the status information of the virtualized CPU test.

[0011] In the above technical solution, the technical effects and advantages provided by the present invention are: The present invention copies the test cell in the test main environment where the corresponding collection point is located to obtain a twin test cell, overlaps the twin test cell with the test space in the corresponding test disk, and obtains the association relationship between the test main environment and the test disk. The isolation of the running data of the virtualized CPU test in different test environments can be completed through the collection point and the twin test cell, and the performance analysis of the virtualized CPU test in the corresponding test environment can be better performed, which greatly improves the test efficiency while also ensuring the accuracy of the test data. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0013] Figure 1 The present invention is a flow chart of the method.

[0014] Figure 2 It is a system block diagram of the present invention. DETAILED DESCRIPTION

[0015] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0016] Example 1, please refer to Figure 1 As shown, the performance test management method of a virtualized CPU described in this embodiment includes the following steps: S1. Formulate a test plan for the virtualized CPU to be tested, set up a test main environment and a test disk, establish an association relationship between the test main environment and the test disk, and build a test environment for the virtualized CPU through the test plan based on the association relationship between the test main environment and the test disk; S2, putting the virtualized CPU into the test environment, and obtaining the operation data of the virtualized CPU in the test environment; S3, collecting and analyzing the operation data of the virtualized CPU to obtain the status information of the virtualized CPU test; 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. CPU virtualization technology implements the scheduling and management of virtual CPUs through specific hardware and software support, so that each virtual machine can obtain independent CPU resources. Similarly, in the process of using the virtualized CPU, its performance is reduced compared to the physical machine. Therefore, understanding the performance of the virtualized CPU can better use the virtualized CPU. Through the performance test of the virtualized CPU, the performance of the virtualized CPU can be understood. In the performance test process of the virtualized CPU, it is difficult to test at the same time while ensuring the stability of the test, and it is difficult to improve the efficiency of the virtualized CPU test; and the present application corresponds to the test grid in the test main environment where the collection point is located. The test grid is copied to obtain a twin test grid, and the twin test grid 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 virtualized CPU test in different test environments can be completed through the collection point and the twin test grid, and the performance analysis of the virtualized CPU test in the corresponding test environment can be better performed, which greatly improves the test efficiency and ensures the accuracy of the test data.

[0017] In one embodiment, step S1 of building a test environment for a virtualized CPU includes: S11, determining a virtualized CPU to be tested, determining a test target of the virtualized CPU, and formulating multiple test plans based on the test target of the virtualized CPU; S12, constructing multiple test environments of the virtualized CPU corresponding to multiple test schemes; As described in the above steps S11 and S12, the virtualized CPU that needs to be tested is determined. Before testing the virtualized CPU, the test objectives of the virtualized CPU need to be determined. The test objectives include test purposes such as system stability and reliability verification, throughput and response time measurement, and resource utilization evaluation. After that, multiple test plans can be formulated according to the test objectives of the virtualized CPU. After that, multiple test environments of the virtualized CPU can be constructed according to the multiple test plans. The virtualized CPU can be tested in multiple environments respectively, thereby improving the test effectiveness of the virtualized CPU and better understanding the performance of the virtualized CPU.

[0018] In one embodiment, the step S12 of constructing multiple test environments of the virtualized CPU corresponding to the multiple test schemes includes: S121. Develop the main test environment; S122, setting a test disk corresponding to the main test environment; S123, establishing an association relationship between the test main environment and the test disk; S124, putting multiple test plans into the test master environment, enabling the test spaces in the corresponding test disks through the test master environment based on the multiple test plans, and associating the test spaces based on the multiple test plans to obtain multiple test environments; As described in the above steps S121-S124, multiple test grids and test labels corresponding to the test grids are formulated in the cloud server as the test main environment. The multiple test grids in the test main environment include test spaces corresponding to all test links of the virtualized CPU. For example, the throughput and response time measurement of the virtualized CPU includes a test grid for preparing data and a running test space for measuring the data throughput and response time of the virtualized CPU. At the same time, the test grid for preparing data can also be used for other system stability tests. The test label is the function of the test grid. For example, the test grid for preparing data is used to randomly generate data for the data required in the virtualized CPU test process. The test label corresponding to the test space in the test disk represents the function of the test space. The test main environment is used to differentiate multiple test environments corresponding to the test scheme for the test of the virtualized CPU. 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, multiple test schemes are put into the test main environment. The test space in the corresponding test disk can be enabled through the test main environment. The test spaces are associated with the multiple test schemes to obtain multiple test environments. The test plan can determine the required test grid in the test main environment, call the collection point in the required test grid, and enable a test space where the connection point of a communication connection is located according to the collection point. Through the test plan, multiple test spaces can be enabled in the test disk. Based on the connection point, the enabled multiple test spaces are associated in a test order (the test order is the order in which the virtualized CPU is tested. For example, the throughput and response time measurement of the virtualized CPU includes the test grid for preparing data and the running test space for measuring the data throughput and response time of the virtualized CPU. The test space for preparing data is in front, and the virtualized CPU is tested for data throughput and response time measurement in the back. The test data prepared in the test space for preparing data is put into the test space for measuring the data throughput and response time of the virtualized CPU for use in the test of the virtualized CPU) to obtain a test environment. Multiple test plans obtain multiple test environments. The virtualized CPU can be tested through multiple test environments to ensure the test stability of the virtualized CPU, avoid the test environment affecting the test of the virtualized CPU, better complete the test of the virtualized CPU, and obtain the performance of the virtualized CPU.

[0019] In one embodiment, the step S121 of setting a test disk corresponding to the test main environment includes: S1211, setting a base plate, and setting connection points on the base plate; S1212, setting a plurality of test spaces identical to the test grids in the test main environment and test labels corresponding to the plurality of test spaces on the basic disk, and connecting the plurality of test spaces based on connection points to obtain a test disk; As described in the above steps S1211 and S1212, the basic disk is used to load multiple test spaces, and the basic disk is a cloud server. Since the multiple test spaces are the same as the test grid in the main test environment, the test space here is used for subsequent testing of the virtualized CPU. Since there are multiple test spaces, multiple test spaces are connected here through connection points. In the subsequent testing of the virtualized CPU, multiple test spaces will be enabled for testing. Therefore, the enabled multiple test spaces can be connected here through connection points, and can be combined into a test environment for the virtualized CPU. The virtualized CPU can be directly put into the test environment of the multiple test spaces after the combination for testing. To perform performance testing, multiple test environments can be tested on the virtualized CPU in the basic disk at the same time, which is efficient and can ensure the stability of the test environment and the collection of data. There are multiple test spaces on the basic disk that are the same as the test grids in the main test environment. For example, there are multiple test spaces for preparing data, and there are also multiple running test spaces for measuring data throughput and response time of the virtualized CPU. When there are test spaces using the same test label in multiple test schemes, there will be no conflict. If there are multiple test spaces with the same test label, the number of test spaces available for use can achieve the purpose of simultaneously performing performance testing on the virtualized CPU. Multiple collection points are all communicated with the connection points in the test space of the corresponding test disk. In order to ensure that the running data of the subsequent virtualized CPU tested in the test disk is quickly acquired and analyzed by the test main environment, the test grid in the test main environment where the corresponding collection point is located is copied to obtain a twin test grid, and the twin test grid 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 virtualized CPU test in different test environments can be completed through the collection point and the twin test grid, and the performance analysis of the virtualized CPU test can be better performed in the corresponding test environment, which greatly improves the test efficiency while also ensuring the accuracy of the test data.

[0020] In one embodiment, the step S2 of placing the virtualized CPU into a test environment and obtaining the operation data of the virtualized CPU in the test environment includes: S21, collectively connecting the collection points corresponding to the test environment to obtain a collective test group; S22, duplicating the same number of virtualized CPUs according to the number of the set test groups to obtain multiple virtualized CPUs; S23, putting multiple virtualized CPUs into the test environment one by one, and obtaining the operation data of the virtualized CPUs in the test environment; In one embodiment, the step S3 of collecting and analyzing the operation data of the virtualized CPU to obtain the state information of the virtualized CPU test includes: S31. Formulate corresponding standard test parameters for the corresponding test plan; S32, acquiring operation data in the corresponding test space by gathering the test group, and comparing the operation data with the corresponding standard test parameters to obtain a comparison result; S33, taking the state information of the virtualized CPU corresponding to the comparison result that meets the preset conditions as a qualified state; As described in the above steps S31-S33, the collection points corresponding to the test environment are collectively connected to obtain a collective test group. The collective test group here is used to collect and compare the operating data of the virtualized CPU corresponding to a test plan, and then multiple virtualized CPUs are put into the test environment one by one to obtain the operating data of the virtualized CPU in the test environment. The virtualized CPU can be tested in multiple test environments at the same time, and corresponding standard test parameters are formulated for the corresponding test plan. The operating data in the corresponding test space is obtained through the collective test group, and the operating data is compared with the corresponding standard test parameters to obtain a comparison result. The status information of the virtualized CPU corresponding to the comparison result that meets the preset conditions is used as a qualified status, so that the virtualized CPU can be tested quickly and stably.

[0021] Example 2, please refer to Figure 2 As shown, the performance test management system of a virtualized CPU described in this embodiment includes: A formulation module is used to formulate a test plan for a virtualized CPU that needs to be tested, set a test main environment and a test disk, the test main environment includes multiple test grids and test labels corresponding to the test grids, multiple collection points are configured for the multiple test grids, the test disk includes multiple test spaces and test labels corresponding to the multiple test spaces, and the multiple collection points in the test main environment are all communicated and connected with the connection points of the corresponding test spaces in the test disk; The test grid in the test main environment where the corresponding collection point is located is copied to obtain a twin test grid, and the twin test grid 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. Based on the association relationship between the test main environment and the test disk, a test environment for the virtualized CPU is constructed through a test plan. The test module is connected to the formulation module and is used to put the virtualized CPU into the test environment and obtain the operation data of the virtualized CPU in the test environment; The analysis module is connected to the test module and is used to collect the operation data of the virtualized CPU for analysis to obtain the status information of the virtualized CPU test.

[0022] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A performance test management method for a virtualized CPU, characterized in that: The following steps are involved: Formulate a test plan for the virtualized CPU that needs to be tested, set up a test main environment and a test disk, the test main environment includes multiple test grids and test labels corresponding to the test grids, multiple collection points are configured for the multiple test grids, the test disk includes multiple test spaces and test labels corresponding to the multiple test spaces, and the multiple collection points in the test main environment are all communicated and connected with the connection points of the corresponding test spaces in the test disk; The test grid in the test main environment where the corresponding collection point is located is copied to obtain a twin test grid, and the twin test grid 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. Based on the association relationship between the test main environment and the test disk, a test environment for the virtualized CPU is constructed through a test plan. Put the virtualized CPU into the test environment to obtain the running data of the virtualized CPU in the test environment; Collect and analyze the running data of the virtualized CPU to obtain the status information of the virtualized CPU test.

2. The performance test management method of a virtualized CPU according to claim 1, characterized in that: The steps to build a virtualized CPU test environment include: Determine the virtualized CPU to be tested, determine the test target of the virtualized CPU, and formulate multiple test plans based on the test target of the virtualized CPU; Build multiple test environments for virtualized CPUs corresponding to multiple test scenarios.

3. The performance test management method of a virtualized CPU according to claim 2, characterized in that: The step of constructing multiple test environments of the virtualized CPU corresponding to the multiple test schemes includes: Develop the main test environment; Set up a test disk corresponding to the main test environment; Establish the association between the test main environment and the test disk; Multiple test plans are put into the test main environment, and based on the multiple test plans, the test spaces in the corresponding test disks are enabled through the test main environment, and based on the multiple test plans, the test spaces are associated to obtain multiple test environments.

4. The performance test management method of a virtualized CPU according to claim 3, characterized in that: The step of setting a test disk corresponding to the test main environment includes: Set up a base plate and set connection points on the base plate; A plurality of test spaces identical to the test grids in the main test environment and test labels corresponding to the plurality of test spaces are set on the basic disk, and the plurality of test spaces are connected based on connection points to obtain a test disk.

5. The performance test management method of a virtualized CPU according to claim 1, characterized in that: The step of placing the virtualized CPU into a test environment and obtaining the operation data of the virtualized CPU in the test environment includes: Connect the collection points corresponding to the test environment to obtain a collection test group; The virtualized CPUs are replicated in the same number according to the number of the test groups, to obtain multiple virtualized CPUs. Multiple virtualized CPUs are put into the test environment one by one to obtain the running data of the virtualized CPUs in the test environment.

6. The performance test management method of a virtualized CPU according to claim 1, characterized in that: The step of collecting and analyzing the operation data of the virtualized CPU to obtain the state information of the virtualized CPU test includes: Formulate corresponding standard test parameters for the corresponding test plan; Obtain the operation data in the corresponding test space by gathering the test group, and compare the operation data with the corresponding standard test parameters to obtain the comparison results; The state information of the virtualized CPU corresponding to the comparison result that meets the preset condition is regarded as a qualified state.

7. A performance test management system for a virtualized CPU, used to implement a performance test management method for a virtualized CPU as claimed in any one of claims 1 to 6, characterized in that: include: A formulation module is used to formulate a test plan for a virtualized CPU that needs to be tested, set a test main environment and a test disk, the test main environment includes multiple test grids and test labels corresponding to the test grids, multiple collection points are configured for the multiple test grids, the test disk includes multiple test spaces and test labels corresponding to the multiple test spaces, and the multiple collection points in the test main environment are all communicated and connected with the connection points of the corresponding test spaces in the test disk; The test grid in the test main environment where the corresponding collection point is located is copied to obtain a twin test grid, and the twin test grid 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. Based on the association relationship between the test main environment and the test disk, a test environment for the virtualized CPU is constructed through a test plan. The test module is connected to the formulation module and is used to put the virtualized CPU into the test environment and obtain the operation data of the virtualized CPU in the test environment; The analysis module is connected to the test module and is used to collect the operation data of the virtualized CPU for analysis to obtain the status information of the virtualized CPU test.

Citation Information

Patent Citations

  • Server virtualization CPU performance testing method

    CN107590061A

  • Target controller digital twin system

    CN117056025A

  • Performance test management method and system for virtualized CPU (Central Processing Unit)

    CN117632378A

  • Investigation procedures for virtual machines

    US20240134760A1