CN108897675A - A kind of server test method and device - Google Patents
A kind of server test method and device Download PDFInfo
- Publication number
- CN108897675A CN108897675A CN201810831190.XA CN201810831190A CN108897675A CN 108897675 A CN108897675 A CN 108897675A CN 201810831190 A CN201810831190 A CN 201810831190A CN 108897675 A CN108897675 A CN 108897675A
- Authority
- CN
- China
- Prior art keywords
- server
- test
- unit
- program
- server test
- 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; 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
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 kind of server test methods, including:Server test program is write, the server test program includes power standard Performance Evaluation SpecPower software program;Running environment is configured, the running environment can satisfy the normal operation of the server test program;Server to be measured is connected, the server test program is run, obtains test result.In addition, the embodiment of the invention also provides a kind of server test devices.
Description
Technical field
The present invention relates to server testing field, espespecially a kind of server test method and device.
Background technique
In recent years, with the fast development of the new high-tech industries such as artificial intelligence, Internet of Things, cloud computing and big data, number
A kind of " hard demand " is turned into according to center.However, there is highly energy-consuming in data center, with the propulsion of informationized society
With the increasing of construction amount, the sternness of this problem is also more highlighted.It can be seen that data center is to used server
Power consumption requirements are increasingly stringenter.
Currently, server will do it power consumption test in occasions such as research and development, test, biddings.The power consumption of existing server
Test method is, by runtime server test software SpecPower software, to simulate actual application scenarios and obtain service
The Energy Efficiency Ratio of device.Wherein, SpecPower software is by standard performance appraisal agency (Standard Performance
Evaluation Corporation, abbreviation SPEC) it provides, dedicated for the power consumption test of computer product.
However, the power consumption test method of existing server, process is relatively complicated, and testing efficiency is low.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of server test method and devices, can.
In order to reach the object of the invention, in a first aspect, the embodiment of the invention provides a kind of server test method, packet
It includes:
Server test program is write, the server test program includes power standard Performance Evaluation SpecPower soft
Part program;
Running environment is configured, the running environment can satisfy the normal operation of the server test program;
Server to be measured is connected, the server test program is run, obtains test result.
Optionally, described to write server test program, including:Server test journey is write by way of writing script
Sequence.
Optionally, after the acquisition test result, method further includes:According to the test result to operating system into
The optimization of row system parameter.
Optionally, described that system parameter optimization is carried out to operating system according to the test result, including:According to the survey
Test result carries out optimised power consumption to operating system.
Optionally, described that system parameter optimization is carried out to operating system according to the test result, including:According to the survey
Test result optimizes the power management in operating system.
Second aspect, the embodiment of the invention provides a kind of server test devices, which is characterized in that including writing list
Member, configuration unit and running unit, wherein:
Described to write unit, for writing server test program, the server test program includes power standard
SpecPower software program can be assessed;
The configuration unit, for configuring running environment, the running environment, which can satisfy, described writes what unit was write
The normal operation of the server test program;
The running unit writes the server test that unit is write for connecting server to be measured described in operation
Program obtains test result.
Optionally, described to write unit, it is specifically used for:Server test program is write by way of writing script.
Optionally, described device further includes optimization unit, and the optimization unit is used for:It is tested in the running unit
As a result after, system parameter optimization is carried out to operating system according to the test result.
Optionally, the optimization unit, is specifically used for:The test result obtained according to the running unit is to operation
System carries out optimised power consumption.
Optionally, the optimization unit, is specifically used for:The test result obtained according to the running unit is to operation
Power management module in system optimizes.
Compared with prior art, the present invention includes at least and writes server test program, the server test program package
Include power standard Performance Evaluation SpecPower software program;Running environment is configured, the running environment can satisfy the service
The normal operation of device test program;Server to be measured is connected, the server test program is run, obtains test result.From this
Invent provide technical solution as it can be seen that due to completely by way of script automatically dispose test environment, improve into
The working efficiency of row server energy consumption test simplifies a large amount of manual operation step, expands being applicable in for SpecPower test
Range.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow diagram of server test method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another server test method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another server test method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of server test device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another server test device provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Embodiment one
The embodiment of the present invention provides a kind of server test method, as shown in Figure 1, this method includes:
Step 101:Server test program is write, server test program includes power standard Performance Evaluation
(SpecPower, Standard Performance Evaluation Corporation Power) software program;
It should be noted that server test program includes server power test program.Server test program is used for
Automatic test is carried out to server various aspects of performance.For example, the power to server is tested.
Optionally, writing server test program includes that server test program is write by way of writing script.
For example, server test program can be write by way of writing Windows Batch script.Certainly,
The embodiment of the present invention is write script using which kind of programming language and is not done specific limit to the mode for writing script, such as application program
It is fixed.
Further, SpecPower software program includes SpecPower software, JAVA running environment (JRE, Java
Runtime Environment) software, decompression tool, operation instruction, power management optimization script, installation script etc..Namely
It says, SpecPower software program has included whole software resources needed for server carries out SpecPower power consumption test environment,
To realize the automatic operation of server test, separately installed any other software is no longer needed to.
Step 102:Running environment is configured, running environment can satisfy the normal operation of server test program;
In practical application, the running environment of configuration server test program can be configured according to actual needs, including
It sets.
Step 103:Server to be measured is connected, runtime server test program obtains test result.
In practical application, it can guarantee that client and server to be measured carry out network communication by connecting server to be measured,
Realize data transmission.
Specifically, connecting server to be measured and runtime server test program, including closes system firewall, opens remotely
Desktop connection, locking page in memory page, to realize the optimization of software operation.
As shown in Fig. 2, method further includes step 104, specially after step 103:
Step 104:System parameter optimization is carried out to operating system according to test result.
Specifically, carrying out system parameter optimization to operating system according to test result, including according to test result to operation
System carries out optimised power consumption.
Specifically, carrying out system parameter optimization to operating system according to test result, including according to test result to operation
Power management in system carries out system parameter optimization.
In practical application, optimised power consumption can also be carried out to the modules in operating system according to test result, wherein
Can carry out optimised power consumption to the power management in operating system is only a kind of illustration.
In conclusion being automatically performed SpecPower software installation, JAVA environment is set by runtime server test program
Set, steerable system power management optimization etc. operation.Software installation in server energy consumption test process, environmental variance are arranged,
The operations such as system parameter optimization are integrated into same step, are realized automatically dispose server energy consumption test environment, are avoided
Before running SpecPower software, need to carry out to test the operation of environment deployment manually under an operating system.
Embodiment two
The embodiment of the invention provides another server test methods, as shown in figure 3, this method includes:
Step 201:By way of writing Windows Batch script, SpecPower software package is obtained;
Wherein, SpecPower software package is tested for realizing the Automated power of server.
It should be noted that SpecPower software package include SpecPower software, JAVA jre software, decompression tool,
Operation instruction, power management optimization script, installation script etc..That is, SpecPower software program included server into
Whole software resources needed for row SpecPower power consumption test environment, to realize the automatic operation of server test, nothing
Need separately installed any other software again.
Step 202:It is decompressed in the operating system of server and SpecPower software package is installed;
It should be noted that decompressing in the operating system of server and installing SpecPower software package includes decompressing simultaneously
All programs in SpecPower software package are installed.For example, being decompressed in the operating system of server and to install JAVA JRE soft
Part packet.
It should be noted that the effect of installation JAVA jre software packet, can configure the running environment of Java.
Step 203:SpecPower software package is run, all programs that SpecPower software package is included are automatically performed.
Concrete operations are that above-mentioned software installation packet is copied in Windows operating system and decompressed, and double-click operation installation
Script waits program to be automatically performed all operations.
Step 204:In all the end of the programs that SpecPower software package is included, carried out according to prompt information
Subsequent operation.
In practice, in all the end of the programs that SpecPower software package is included, clothes are restarted according to prompt information
Business device exits the program, and certainly, specifically carries out which kind of operation needs to be judged according to the actual situation.
In this way, by once running installation script, be automatically performed SpecPower software installation, JAVA environment setting,
The operations such as steerable system power management optimization.By the software installation in server energy consumption test process, environmental variance setting, system
The operations such as parameter optimization are integrated into same step.Automatically dispose server energy consumption test environment is realized, avoids and is transporting
Before row SpecPower software, the operation of test environment deployment is carried out manually under an operating system.
In practical applications, by way of writing Windows Batch script, obtaining SpecPower software package includes
A variety of implementations, the embodiment of the present invention are not specifically limited it.The following are a kind of implementations of SpecPower software package
For example, its program code is as follows:
@echo off
::log current directory
Set fileDir=%CD%
::copy files
copy"SPEC power ssj20008.zip"C:\
copy jre.zip C:\
copy 7z.dll c:\
copy 7z.exe c:\
copy input c:\
::unzip compressed packages
cd C:\
7z.exe x"SPEC power ssj20008.zip"
7z.exe x jre.zip
::set environment variables
Setx/M PATH " %PATH%;C:\jre\bin;"
::install specpower
cd"C:\SPEC power ssj20008"
"C:\jre\bin\java.exe"-jar setup.jar-i console<C:\input
::copy script
Cd%fileDir%
copy runssj_test.bat"C:\SPECpower_ssj2008\ssj\"
::remove temp files
cd C:\
rmdir/Q/S"SPEC power ssj20008"
del/Q"SPEC power ssj20008.zip"
del/Q"jre.zip"
del/Q input
del/Q 7z.dll
del/Q 7z.exe
::Tuning OS parameters
echo Tuning OS parameters...
Cd%fileDir%
SpecPowerOSTune.bat
Above procedure code is explained below, wherein:
::Unzip compressed packages, to be decompressed to software package.
::Set environment variables, for setting.
::Install specpower, for installing specpower.
Embodiment three
The embodiment of the invention provides a kind of server test devices, as shown in figure 4, the server test device, including
Unit 401, configuration unit 402 and running unit 403 are write, wherein:
Described to write unit, for writing server test program, the server test program includes power standard
SpecPower software program can be assessed;
The configuration unit, for configuring running environment, the running environment, which can satisfy, described writes what unit was write
The normal operation of the server test program;
The running unit writes the server test that unit is write for connecting server to be measured described in operation
Program obtains test result.
It should be noted that server test program includes server power test program.Server test program is used for
Automatic test is carried out to server various aspects of performance.For example, the power to server is tested.
In practical application, the running environment of configuration server test program can be configured according to actual needs, including
It sets.
In practical application, it can guarantee that client and server to be measured carry out network communication by connecting server to be measured,
Realize data transmission.
Specifically, connecting server to be measured and runtime server test program, including closes system firewall, opens remotely
Desktop connection, locking page in memory page, to realize the optimization of software operation.
Specifically, described write unit, for writing server test program by way of writing script.
For example, server test program can be write by way of writing Windows Batch script.Certainly,
The embodiment of the present invention is write script using which kind of programming language and is not done specific limit to the mode for writing script, such as application program
It is fixed.
Further, SpecPower software program includes SpecPower software, JAVA running environment (JRE, Java
Runtime Environment) software, decompression tool, operation instruction, power management optimization script, installation script etc..Namely
It says, SpecPower software program has included whole software resources needed for server carries out SpecPower power consumption test environment,
To realize the automatic operation of server test, separately installed any other software is no longer needed to.
Optionally, described device further includes optimization unit 404, and the optimization unit is used for:It is obtained in the running unit
After test result, system parameter optimization is carried out to operating system according to the test result.
Illustratively, the optimization unit, specifically for the test result that is obtained according to the running unit to behaviour
Make system and carries out optimised power consumption.
Illustratively, the optimization unit, specifically for the test result that is obtained according to the running unit to behaviour
The power management module made in system optimizes.
In practical application, optimised power consumption can also be carried out to the modules in operating system according to test result, wherein
Can carry out optimised power consumption to the power management in operating system is only a kind of illustration.
In conclusion being automatically performed SpecPower software installation, JAVA environment is set by runtime server test program
Set, steerable system power management optimization etc. operation.Software installation in server energy consumption test process, environmental variance are arranged,
The operations such as system parameter optimization are integrated into same step, are realized automatically dispose server energy consumption test environment, are avoided
Before running SpecPower software, need to carry out to test the operation of environment deployment manually under an operating system.
Example IV
The embodiment of the invention discloses a server testers, including:Processor, storage medium, communication bus,
In, pocessor and storage media is connected by communication bus;
Processor calls the server of storage medium storage to test relative program, and executes following steps:
Server test program is write, the server test program includes power standard Performance Evaluation SpecPower soft
Part program;
Running environment is configured, the running environment can satisfy the normal operation of the server test program;
Server to be measured is connected, the server test program is run, obtains test result.
On the other hand, one embodiment of the invention proposes a kind of computer storage medium, is applied to server tester
In, computer storage medium is stored with one or more server test relative programs, one or more server tests phase
Closing program can be executed by one or more processor, to realize the method such as above-mentioned any server test.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product.
Therefore, the form of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention.And
And it wherein includes the computer-usable storage medium of computer usable program code that the present invention, which can be used in one or more,
The form for the computer program product implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use
Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (10)
1. a kind of server test method, which is characterized in that including:
Server test program is write, the server test program includes power standard Performance Evaluation SpecPower software journey
Sequence;
Running environment is configured, the running environment can satisfy the normal operation of the server test program;
Server to be measured is connected, the server test program is run, obtains test result.
2. processing method according to claim 1, which is characterized in that it is described to write server test program, including:
Server test program is write by way of writing script.
3. processing method according to claim 1, which is characterized in that after the acquisition test result, method is also wrapped
It includes:
System parameter optimization is carried out to operating system according to the test result.
4. processing method according to claim 3, which is characterized in that it is described according to the test result to operating system into
The optimization of row system parameter, including:
Optimised power consumption is carried out to operating system according to the test result.
5. processing method according to claim 3, which is characterized in that it is described according to the test result to operating system into
The optimization of row system parameter, including:
The power management in operating system is optimized according to the test result.
6. a kind of server test device, which is characterized in that including writing unit, configuration unit and running unit, wherein:
Described to write unit, for writing server test program, the server test program includes that power standard performance is commented
Estimate SpecPower software program;
The configuration unit, for configuring running environment, the running environment can satisfy it is described write unit write it is described
The normal operation of server test program;
The running unit writes the server test program that unit is write for connecting server to be measured described in operation,
Obtain test result.
7. server test device according to claim 6, which is characterized in that it is described to write unit, it is specifically used for:
Server test program is write by way of writing script.
8. server test device according to claim 6, which is characterized in that described device further includes optimization unit, institute
Optimization unit is stated to be used for:
After the running unit obtains test result, it is excellent that system parameter is carried out to operating system according to the test result
Change.
9. server test device according to claim 8, which is characterized in that the optimization unit is specifically used for:
Optimised power consumption is carried out to operating system according to the test result that the running unit obtains.
10. server test device according to claim 8, which is characterized in that the optimization unit is specifically used for:
The power management module in operating system is optimized according to the test result that the running unit obtains.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810831190.XA CN108897675A (en) | 2018-07-26 | 2018-07-26 | A kind of server test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810831190.XA CN108897675A (en) | 2018-07-26 | 2018-07-26 | A kind of server test method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108897675A true CN108897675A (en) | 2018-11-27 |
Family
ID=64352552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810831190.XA Pending CN108897675A (en) | 2018-07-26 | 2018-07-26 | A kind of server test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108897675A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399259A (en) * | 2019-07-30 | 2019-11-01 | 浪潮商用机器有限公司 | A kind of test method of server energy consumption, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104182288A (en) * | 2014-08-18 | 2014-12-03 | 浪潮电子信息产业股份有限公司 | Method for automatically testing power consumption of server cluster system |
CN104572419A (en) * | 2015-01-30 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Method for testing dynamic power consumption of servers |
CN104598273A (en) * | 2015-01-08 | 2015-05-06 | 浪潮电子信息产业股份有限公司 | Method for optimizing and testing complete machine by specpower |
CN105740152A (en) * | 2016-02-04 | 2016-07-06 | 浪潮电子信息产业股份有限公司 | Pressure testing method for multi-node batch deployment system |
-
2018
- 2018-07-26 CN CN201810831190.XA patent/CN108897675A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104182288A (en) * | 2014-08-18 | 2014-12-03 | 浪潮电子信息产业股份有限公司 | Method for automatically testing power consumption of server cluster system |
CN104598273A (en) * | 2015-01-08 | 2015-05-06 | 浪潮电子信息产业股份有限公司 | Method for optimizing and testing complete machine by specpower |
CN104572419A (en) * | 2015-01-30 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Method for testing dynamic power consumption of servers |
CN105740152A (en) * | 2016-02-04 | 2016-07-06 | 浪潮电子信息产业股份有限公司 | Pressure testing method for multi-node batch deployment system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399259A (en) * | 2019-07-30 | 2019-11-01 | 浪潮商用机器有限公司 | A kind of test method of server energy consumption, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7437706B2 (en) | Automating the life cycle of a distributed computing application | |
US8935573B2 (en) | Reliable unit testing through cached mocking | |
US20150052501A1 (en) | Continuous deployment of code changes | |
US9093841B2 (en) | Power distribution network event correlation and analysis | |
US9176852B2 (en) | Role-oriented testbed environments for use in test automation | |
CN115698941A (en) | Efficient packaging of components | |
US20140351664A1 (en) | Testing an integrated circuit | |
CN112579446A (en) | Interface testing method and device, electronic equipment and storage medium | |
US9117018B2 (en) | Method of debugging software and corresponding computer program product | |
CN112445692B (en) | Case testing method and terminal | |
CN108231132B (en) | NAND flash memory verification device and verification system | |
CN108628729A (en) | A kind of method for testing software and software test client | |
US20130125093A1 (en) | Generating object-oriented programming language code from a multi-domain dynamic simulation model | |
CN103176903B (en) | The test method and equipment of MapReduce distributed system program | |
CA3144852A1 (en) | Automatic generation of integrated test procedures using system test procedures | |
CN108897675A (en) | A kind of server test method and device | |
CN117291145A (en) | Verification method and system of system on chip and electronic device | |
US20230367936A1 (en) | Verification method, electronic device and storage medium | |
CN115952089A (en) | Software automation unit testing method and device, server and storage medium | |
CN111580789A (en) | Function block framework generation | |
CN114116487B (en) | Pressure testing method and device, electronic equipment and storage medium | |
CN115185570A (en) | JIRA system-based task flow processing method, system, device, medium, and computer program product | |
Lee et al. | Collecting big data from automotive ECUs beyond the CAN bandwidth for fault visualization | |
CN111158645B (en) | System and method for providing an integrated development environment | |
CN114385493A (en) | Performance test method and device, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181127 |
|
RJ01 | Rejection of invention patent application after publication |