CN111061619A - Method for testing CPU virtualization performance based on SPECCPU - Google Patents
Method for testing CPU virtualization performance based on SPECCPU Download PDFInfo
- Publication number
- CN111061619A CN111061619A CN201911367882.4A CN201911367882A CN111061619A CN 111061619 A CN111061619 A CN 111061619A CN 201911367882 A CN201911367882 A CN 201911367882A CN 111061619 A CN111061619 A CN 111061619A
- Authority
- CN
- China
- Prior art keywords
- speccpu
- cpu
- mode
- cloud host
- testing
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording 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/3409—Recording 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 invention discloses a method for testing CPU virtualization performance based on SPECCPU, which comprises the following steps: s1: modifying the mode of a server cloud host CPU model; s2: the SPECCPU calls the AVX2 instruction set in the modified mode of the server cloud host CPU model for testing. The CPU mode description under the XML file under the server cloud host is modified into the host-mode description, so that the mode of the server cloud host CPU model is modified, the SPECCPU is restarted, and the SPECCPU can generate a test report of the server cloud host CPU model.
Description
Technical Field
The invention relates to the field of CPU performance testing, in particular to a method for testing CPU virtualization performance based on SPECCPU.
Background
Specpu 2006 is CPU Performance evaluation software published by SPEC organization (SPEC, Standard Performance evaluation corporation). Which can measure and compare the integer performance and floating point performance of a CPU. For a server platform, the testing tool can directly call the instruction set of the CPU under the system to perform testing.
In the public cloud, in order to ensure high availability of the cloud host of the client, when the server is abnormal, the cloud host can be migrated to a normal server, so that the CPU mode of the cloud host adopts a compatible mode to meet the requirement that the cloud host can be used on different servers.
SPECCPU2006 cannot interpret different servers, so in a SPECCPU test, when a server is in a compatible mode, the AVX2 instruction set used by SPECCPU2006 cannot be found under the system, so that a test exception interrupt cannot generate a test report.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a method for testing the CPU virtualization performance based on a SPECCPU (speed and speed control protocol), which can test a CPU of a cloud host of a server through the SPECCPU.
In order to achieve the above object, a method for testing CPU virtualization performance based on SPECCPU of the present invention includes the following steps: s1: modifying the mode of a server cloud host CPU model; s2: the SPECCPU calls the AVX2 instruction set in the modified mode of the server cloud host CPU model for testing.
Further, in S1, the CPU mode description in the XML file under the server cloud host is modified to a host-model description.
Further, in S2, the SPECCPU calls the AVX2 command and generates a test report under the result directory of the SPECCPU.
Further, in S1, the server cloud host CPU model is modified from the compatible mode to the host matching mode.
Further, the server cloud host simulates the CPU model through QEMU-KVM.
Has the advantages that: the CPU mode description under the XML file under the server cloud host is modified into the host-mode description, so that the mode of the server cloud host CPU model is modified, the SPECCPU is restarted, and the SPECCPU can generate a test report of the server cloud host CPU model.
Drawings
The present invention will be further described and illustrated with reference to the following drawings.
FIG. 1 is a flow chart of the present application;
Detailed Description
The technical solution of the present invention will be more clearly and completely explained by the description of the preferred embodiments of the present invention with reference to the accompanying drawings.
A method for testing CPU virtualization performance based on a SPECCPU (speed and speed measurement CPU control Unit) comprises the following steps: s1: modifying the mode of a server cloud host CPU model;
SPECCPU2006 is CPU Performance Evaluation software published by the SPEC organization (SPEC, Standard Performance Evaluation Corporation). Which can measure and compare the integer performance and floating point performance of a CPU. For server platforms, such testing tools may invoke the instruction set of the CPU (AVX2 instructions) directly under the system to perform the test.
Libvirt (API for managing the open source of the virtualization platform, background program and management tool) enables KVM (virtual machine) to pass through the CPU instruction set of the host to the virtual machine, so the virtual machine can use the CPU instruction set of the host to the maximum extent, but it requires the CPU of the destination node and the source node to be consistent during live migration.
Because the cluster comprises servers with various types of CPUs, in order to improve the high availability of the cloud host, the CPU model in the cloud host is a compatible mode (custom), but for a virtualization platform managed in a cluster mode in the cloud industry, simulation of the CPU is provided by QEMU-KVM in the cloud host, the QEMU-KVM is used for creating and managing various virtual hardware through actual simulation, is a branch of the QEMU (simulation processor for distributing source codes by GPL license) specific to a KVM acceleration module, contains a lot of specific codes related to KVM, and is used together with the KVM module. But this mode cannot be tested using SPECCPU.
In the application, an original CPU model of a cloud host in a server is a compatible mode (custom), and the XML describes the following modes:
the modification is as follows:
the CPU model in the cloud host is a host matching mode (host-model), and the corresponding description in the XML file of the cloud host after the change is as follows:
the modified AVX2 instruction set is newly added in the system view.
S2: the SPECCPU calls the AVX2 instruction set for testing in the modified mode of the server cloud host CPU model.
After the SPECCPU calls the AVX2 instruction, a test report is generated in a result directory of the SPECCPU, the SPECCPU2006 can run normally, and the SPECCPU2006 calls the AVX2 instruction to generate the test report as a file in a format of txt, PDF, HTML and the like.
The above detailed description merely describes preferred embodiments of the present invention and does not limit the scope of the invention. Without departing from the spirit and scope of the present invention, it should be understood that various changes, substitutions and alterations can be made herein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents. The scope of the invention is defined by the claims.
Claims (5)
1. A method for testing CPU virtualization performance based on a SPECCPU (speed, power and control unit), which is characterized by comprising the following steps:
s1: modifying the mode of a server cloud host CPU model;
s2: the SPECCPU calls the AVX2 instruction set in the modified mode of the server cloud host CPU model for testing.
2. The method for testing CPU virtualization performance based on a SPECCPU according to claim 1, wherein in S1, the CPU mode description under the XML file under the server cloud host is modified to host-model description.
3. The method of claim 2, wherein in S2, the SPECCPU calls the AVX2 command and generates a test report under the result list of the SPECCPU.
4. The method for testing CPU virtualization performance based on a SPECCPU according to claim 2, wherein the server cloud host CPU model is modified from a compatible mode to a host matching mode in S1.
5. The SPECCPU-based method for testing CPU virtualization performance of claim 2, wherein the server cloud host simulates the CPU model with QEMU-KVM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911367882.4A CN111061619A (en) | 2019-12-26 | 2019-12-26 | Method for testing CPU virtualization performance based on SPECCPU |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911367882.4A CN111061619A (en) | 2019-12-26 | 2019-12-26 | Method for testing CPU virtualization performance based on SPECCPU |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111061619A true CN111061619A (en) | 2020-04-24 |
Family
ID=70303937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911367882.4A Pending CN111061619A (en) | 2019-12-26 | 2019-12-26 | Method for testing CPU virtualization performance based on SPECCPU |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111061619A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107590061A (en) * | 2017-09-29 | 2018-01-16 | 郑州云海信息技术有限公司 | A kind of server virtualization cpu performance method of testing |
CN109002344A (en) * | 2018-06-12 | 2018-12-14 | 广东睿江云计算股份有限公司 | A kind of method of cloud management platform resetting KVM virtual machine password |
-
2019
- 2019-12-26 CN CN201911367882.4A patent/CN111061619A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107590061A (en) * | 2017-09-29 | 2018-01-16 | 郑州云海信息技术有限公司 | A kind of server virtualization cpu performance method of testing |
CN109002344A (en) * | 2018-06-12 | 2018-12-14 | 广东睿江云计算股份有限公司 | A kind of method of cloud management platform resetting KVM virtual machine password |
Non-Patent Citations (2)
Title |
---|
HELLO_ROCK: "KVM cpu配置模式分类", 《HTTPS://BLOG.51CTO.COM/U_12210861/1865081》 * |
MB5FE190725E8A3: "基于RedHatEnterpriseLinux V7(RHEL7)下SPEC CPU 2006环境搭建以及测试流程(之一)——介绍、安装准备、安装、config文件以及运行脚本介绍", 《HTTPS://BLOG.51CTO.COM/U_15064650/4606873》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11442841B2 (en) | Computer-implemented methods and systems for determining application matching status | |
CN108768730B (en) | Method and device for operating intelligent network card | |
CN108667859A (en) | A kind of method and device for realizing scheduling of resource | |
WO2018036273A1 (en) | Simulation test method, server, device, and computer-readable storage medium | |
RU2658190C2 (en) | Controlling runtime access to application programming interfaces | |
US10789111B2 (en) | Message oriented middleware with integrated rules engine | |
CN109002344A (en) | A kind of method of cloud management platform resetting KVM virtual machine password | |
JP2022003507A (en) | Stress test method and device, electronic apparatus, computer-readable storage medium, and computer program | |
CN110955409B (en) | Method and device for creating resources on cloud platform | |
CN112199273B (en) | Virtual machine pressure/performance testing method and system | |
WO2019075994A1 (en) | Method, device and system for mock data at ios end, and storage medium | |
CN102981949A (en) | Method for on-line automatic tests of server | |
CN105279036A (en) | Inter-process communication method and device and electronic equipment | |
WO2012080262A1 (en) | Software error code injection | |
US20140156252A1 (en) | Hybrid platform-dependent simulation interface | |
US20190317845A1 (en) | Device based automated tool integration for lifecycle management platform | |
CN114116393A (en) | Method, device and equipment for collecting GPU performance data of virtual machine | |
CN112965895B (en) | Desktop application program automatic test method, device, equipment and storage medium | |
US9262151B2 (en) | Methods and systems for automatic configuration of algorithms in a system based on self aware algorithms | |
CN111061619A (en) | Method for testing CPU virtualization performance based on SPECCPU | |
US9836387B1 (en) | System and method for implementing a debugger as a server | |
US20240095003A1 (en) | Deployment of a multi-technology-stack application | |
Gong et al. | Performance overhead analysis of virtualisation on ARM | |
US10776148B1 (en) | System and method for utilizing computational power of a server farm | |
Säteri | Comparison of container runtimes in embedded context |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200424 |