CN107179989A - A method for testing CPU and DIMM pressure dynamic changes - Google Patents
A method for testing CPU and DIMM pressure dynamic changes Download PDFInfo
- Publication number
- CN107179989A CN107179989A CN201710343357.3A CN201710343357A CN107179989A CN 107179989 A CN107179989 A CN 107179989A CN 201710343357 A CN201710343357 A CN 201710343357A CN 107179989 A CN107179989 A CN 107179989A
- Authority
- CN
- China
- Prior art keywords
- dimm
- cpu
- test
- pressure
- log
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
本发明公开一种CPU和DIMM压力动态变化测试方法,涉及服务器测试技术,基于Linux系统下,通过一自动测试程序,使用shell语言调用intel的加压工具,进行CPU和DIMM压力参数的自动设置及软件的自动测试;测试过程中自动调整CPU和DIMM压力动态变化,并在设定测试周期完成后检查测试log是否符合要求,进行CPU和DIMM压力动态变化测试。本发明实现了对CPU和DIMM自动进行压力动态变化测试,简化了繁琐的安装及测试步骤,操作简单,自动化程度高,实用性较强,能够节省人力,有效验证服务器稳定性,提高服务器稳定性测试效率。The invention discloses a method for testing the dynamic change of CPU and DIMM pressure, which relates to server testing technology. Based on the Linux system, through an automatic test program, the shell language is used to call intel's pressurization tool to automatically set and control the pressure parameters of the CPU and DIMM. Automatic testing of the software; automatically adjust the dynamic changes of CPU and DIMM pressure during the test, and check whether the test log meets the requirements after the set test cycle is completed, and perform the dynamic change test of CPU and DIMM pressure. The present invention realizes automatic pressure dynamic change test on CPU and DIMM, simplifies cumbersome installation and test steps, simple operation, high degree of automation, strong practicability, can save manpower, effectively verify server stability, and improve server stability Test efficiency.
Description
技术领域technical field
本发明涉及服务器测试技术,具体的说是一种CPU和DIMM压力动态变化测试方法。The invention relates to server testing technology, in particular to a method for testing dynamic changes of CPU and DIMM pressure.
背景技术Background technique
随着互联网对服务器的要求越来越高,技术的更新换代时间越来越快。随着IT领域技术的不断发展,传统信息化服务以及日趋强大的云计算服务对服务器的要求也越来越高。随着IT服务器及互联网的高速发展,日常生活工作中形成海量数据信息交互,对服务器稳定性要求与日俱增。As the Internet's requirements for servers are getting higher and higher, the replacement time of technology is getting faster and faster. With the continuous development of IT technology, traditional information services and increasingly powerful cloud computing services have higher and higher requirements for servers. With the rapid development of IT servers and the Internet, massive data and information interactions are formed in daily work, and the requirements for server stability are increasing day by day.
进而,服务器稳定性测试的覆盖面以及测试力度,也有越来越高的标准和要求。为了达到服务器高稳定性的测试要求,势必带来越来越大的服务器测试成本。现有服务器稳定性测试中,需要进行CPU和DIMM压力参数设置,并安装或设置测试步骤,操作过程繁琐,耗费很大的测试时间和人力,不利于服务器稳定性测试的快速顺利开展。Furthermore, there are increasingly higher standards and requirements for the coverage and testing intensity of server stability testing. In order to meet the high stability test requirements of the server, it is bound to bring more and more server test costs. In the existing server stability test, it is necessary to set the CPU and DIMM pressure parameters, and install or set the test steps. The operation process is cumbersome and consumes a lot of test time and manpower, which is not conducive to the rapid and smooth development of the server stability test.
发明内容Contents of the invention
本发明针对目前技术发展的需求和不足之处,提供一种CPU和DIMM压力动态变化测试方法。The invention provides a method for testing the dynamic change of CPU and DIMM pressure aiming at the needs and deficiencies of the current technical development.
本发明所述一种CPU和DIMM压力动态变化测试方法,解决上述技术问题采用的技术方案如下:所述CPU和DIMM压力动态变化测试方法,基于Linux系统下,通过一自动测试程序,使用shell语言调用intel的加压工具,进行CPU和DIMM压力参数的自动设置及软件的自动测试;测试过程中自动调整CPU和DIMM压力动态变化,并在设定测试周期完成后检查测试log是否符合要求,进行CPU和DIMM压力动态变化测试。A kind of CPU and DIMM pressure dynamic change test method of the present invention, the technical scheme that solves the above-mentioned technical problem adopts is as follows: described CPU and DIMM pressure dynamic change test method, based on Linux system, by an automatic test program, use shell language Call intel's pressure tool to automatically set the CPU and DIMM pressure parameters and automatically test the software; automatically adjust the dynamic changes in CPU and DIMM pressure during the test process, and check whether the test log meets the requirements after the set test cycle is completed. CPU and DIMM pressure dynamic change test.
优选的,所述自动测试程序的具体实现内容如下:Preferably, the specific implementation content of the automatic test program is as follows:
#!/bin/bash#!/bin/bash
if [ -f /root/ptutest.log ];thenif [ -f /root/ptutest.log ];then
rm -rf /root/ptutest.log rm -rf /root/ptutest.log
fithe fi
for i in $(seq 1 144) for i in $(seq 1 144)
dodo
./ptugen -ct 2 -mt 3 -p 100 -t 300 >> /root/ptu/ptutest.log ./ptugen -ct 2 -mt 3 -p 100 -t 300 >> /root/ptu/ptutest.log
lscpu >> /root/ptu/ptutest.log lscpu >> /root/ptu/ptutest.log
sleep 300 sleep 300
done。done.
优选的,测试结果放在目录\root\ptutest.log中,测试人员能够查看log文件,进而判断测试结果是否符合要求。Preferably, the test results are placed in the directory \root\ptutest.log, and testers can view the log files to determine whether the test results meet the requirements.
优选的,所述CPU和DIMM压力动态变化测试方法,其具体操作过程如下:Preferably, described CPU and DIMM pressure dynamic change test method, its specific operation process is as follows:
第一,将自动测试程序加入到Linux系统目录/root/;First, add the automatic test program to the Linux system directory /root/;
第二,执行./ptutest.sh实现开机自动对CPU和DIMM进行压力动态变化测试;Second, execute ./ptutest.sh to automatically test the dynamic pressure changes of CPU and DIMM after booting;
第三,检查ptutest.log中CPU和DIMM参数是否符合要求。Third, check whether the CPU and DIMM parameters in ptutest.log meet the requirements.
本发明所述一种CPU和DIMM压力动态变化测试方法,与现有技术相比具有的有益效果是:本方法通过shell语言,进行CPU和DIMM压力参数的自动设置及软件的自动测试,实现了对CPU和DIMM自动进行压力动态变化测试,简化了繁琐的安装及测试步骤;该测试方法操作简单,自动化程度高,实用性较强,能够节省人力,有效验证服务器稳定性,提高服务器稳定性测试效率。A kind of CPU and DIMM pressure dynamic change test method described in the present invention has the beneficial effect compared with prior art: this method carries out the automatic setting of CPU and DIMM pressure parameter and the automatic test of software through shell language, has realized Automatic pressure dynamic change test for CPU and DIMM simplifies cumbersome installation and test steps; this test method is simple to operate, highly automated, and practical, can save manpower, effectively verify server stability, and improve server stability testing efficiency.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,对本发明所述一种CPU和DIMM压力动态变化测试方法进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the method for testing the dynamic change of CPU and DIMM pressure according to the present invention will be further described in detail below in conjunction with specific embodiments.
本发明提出的CPU和DIMM压力动态变化测试方法,在Linux系统下,使用shell语言,进行CPU和DIMM压力参数的自动设置及软件的自动测试,实现了对CPU和DIMM压力动态变化的自动化测试,能够有效验证产品的稳定性,省略了繁琐的压力参数设置,简化了繁琐的安装及测试步骤。The CPU and DIMM pressure dynamic change test method proposed by the present invention uses shell language under the Linux system to automatically set the CPU and DIMM pressure parameters and automatically test the software, and realizes the automatic test of the CPU and DIMM pressure dynamic changes. It can effectively verify the stability of the product, omit the cumbersome pressure parameter setting, and simplify the cumbersome installation and testing steps.
实施例:Example:
本实施例所述CPU和DIMM压力动态变化测试方法,基于Linux系统下,通过一自动测试程序,使用shell语言调用intel的加压工具,测试过程中自动调整CPU和DIMM压力动态变化,并在设定测试周期完成后检查测试log是否符合要求,实现CPU和DIMM压力动态变化测试。The CPU and DIMM pressure dynamic change testing method described in this embodiment is based on the Linux system, through an automatic test program, using the shell language to call the pressurization tool of intel, automatically adjusting the CPU and DIMM pressure dynamic changes in the test process, and setting After the test cycle is completed, check whether the test log meets the requirements, and realize the dynamic change test of CPU and DIMM pressure.
该CPU和DIMM压力动态变化测试方法,所述自动测试程序的具体实现内容如下:This CPU and DIMM pressure dynamic change test method, the specific realization content of described automatic test program is as follows:
#!/bin/bash#!/bin/bash
if [ -f /root/ptutest.log ];thenif [ -f /root/ptutest.log ];then
rm -rf /root/ptutest.log rm -rf /root/ptutest.log
fithe fi
for i in $(seq 1 144) for i in $(seq 1 144)
dodo
./ptugen -ct 2 -mt 3 -p 100 -t 300 >> /root/ptu/ptutest.log ./ptugen -ct 2 -mt 3 -p 100 -t 300 >> /root/ptu/ptutest.log
lscpu >> /root/ptu/ptutest.log lscpu >> /root/ptu/ptutest.log
sleep 300 sleep 300
donedone
执行完成后,测试结果放在目录\root\ptutest.log中,测试人员能够查看log文件,进而判断测试结果是否符合要求。After the execution is completed, the test results are placed in the directory \root\ptutest.log, and testers can view the log files to determine whether the test results meet the requirements.
实施上述CPU和DIMM压力动态变化测试方法,其具体操作过程如下:Implement the above-mentioned CPU and DIMM pressure dynamic change test method, and its specific operation process is as follows:
第一,将自动测试程序加入到Linux系统目录/root/;First, add the automatic test program to the Linux system directory /root/;
第二,执行./ptutest.sh实现开机自动对CPU和DIMM进行压力动态变化测试;Second, execute ./ptutest.sh to automatically test the dynamic pressure changes of CPU and DIMM after booting;
第三,检查ptutest.log中CPU和DIMM参数是否符合要求。Third, check whether the CPU and DIMM parameters in ptutest.log meet the requirements.
采用本实施例所述CPU和DIMM压力动态变化测试方法,通过shell语言调用Intel的加压工具,能够新增模拟客户应用的动态变化环境,实现对CPU和DIMM进行压力动态变化测试。该测试方法操作简单,自动化程度高,实用性较强,有效验证产品稳定性非常有效的方法。Using the CPU and DIMM pressure dynamic change testing method described in this embodiment, calling the Intel pressurization tool through the shell language, can add a dynamic change environment for simulating customer applications, and realize the pressure dynamic change test for the CPU and DIMM. The test method is simple to operate, highly automated, and practical, and is a very effective method for effectively verifying product stability.
具体实施方式仅是本发明的具体个案,本发明的专利保护范围包括但不限于上述具体实施方式,任何符合本发明的权利要求书的且任何所属技术领域的普通技术人员对其所做的适当变化或替换,皆应落入本发明的专利保护范围。The specific embodiment is only a specific case of the present invention, and the scope of patent protection of the present invention includes but is not limited to the above-mentioned specific embodiment, any suitable claims that conform to the claims of the present invention and any person of ordinary skill in the art. Changes or replacements should fall within the scope of patent protection of the present invention.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710343357.3A CN107179989A (en) | 2017-05-16 | 2017-05-16 | A method for testing CPU and DIMM pressure dynamic changes |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710343357.3A CN107179989A (en) | 2017-05-16 | 2017-05-16 | A method for testing CPU and DIMM pressure dynamic changes |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107179989A true CN107179989A (en) | 2017-09-19 |
Family
ID=59832179
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710343357.3A Pending CN107179989A (en) | 2017-05-16 | 2017-05-16 | A method for testing CPU and DIMM pressure dynamic changes |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107179989A (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100306590A1 (en) * | 2009-06-02 | 2010-12-02 | Rajan Anand | Automated Testing Platform for Event Driven Systems |
| CN103984627A (en) * | 2014-05-15 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Test method for memory pressure of Linux server |
| CN106055445A (en) * | 2016-06-14 | 2016-10-26 | 浪潮电子信息产业股份有限公司 | Automatic CPU pressure testing method |
-
2017
- 2017-05-16 CN CN201710343357.3A patent/CN107179989A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100306590A1 (en) * | 2009-06-02 | 2010-12-02 | Rajan Anand | Automated Testing Platform for Event Driven Systems |
| CN103984627A (en) * | 2014-05-15 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Test method for memory pressure of Linux server |
| CN106055445A (en) * | 2016-06-14 | 2016-10-26 | 浪潮电子信息产业股份有限公司 | Automatic CPU pressure testing method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104360922A (en) | Method for automatically monitoring BMC working state based on ipmitool | |
| CN105867975A (en) | Method for refreshing BMC in batches based on LINUX platform | |
| CN103593211A (en) | Method for refreshing and writing firmware programs through out-of-band isolation | |
| CN104615523A (en) | Fatigue test method for BMC management module based on IPMI protocol | |
| EP4513928A3 (en) | Account binding method, device, and system | |
| CN102799522A (en) | Managing method and system for software version tracing test | |
| CN108335722A (en) | A kind of method of automatic test SSD interface rate | |
| CN104461679A (en) | Automatic implementation method for binding network card to CPU | |
| CN103984613A (en) | Method for automatically testing floating point calculation performance of CPU (Central Processing Unit) | |
| CN104461888A (en) | Application testing method and system | |
| CN105242231B (en) | Digitalized electric energy metering performance detects and source tracing method and closed-loop system | |
| CN105487952A (en) | PCIE-SSD automatic testing method based on FIO | |
| CN103605814B (en) | Information processing method and information processing system in substation transformation process | |
| CN105740112A (en) | Method for automatically detecting hardware information during startup under Linux | |
| CN110334385A (en) | Test method, device and equipment for central controller of comprehensive energy system | |
| CN103412775A (en) | Method for refreshing BMC firmware intelligently and automatically | |
| CN107025891B (en) | A kind of display module defect fast repairing method and system | |
| CN105302602A (en) | Smooth online upgrading method for cloud platform application program | |
| CN105844162B (en) | A kind of method of windows virtual machine vulnerability scanning under virtual platform | |
| CN109739754B (en) | Application automatic testing method and system based on WeChat development | |
| CN103823750A (en) | Cloud-based software test service method | |
| CN107179989A (en) | A method for testing CPU and DIMM pressure dynamic changes | |
| CN104765679B (en) | A kind of business on-line testing method and apparatus based on user behavior | |
| CN107844427A (en) | A kind of Test Case Prioritization method perceived based on test resource | |
| CN107992388A (en) | A kind of method of automatic verification CPU power consumption limitation function |
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: 20170919 |