CN106021084A - Method and apparatus for testing server performance - Google Patents

Method and apparatus for testing server performance Download PDF

Info

Publication number
CN106021084A
CN106021084A CN201610344650.7A CN201610344650A CN106021084A CN 106021084 A CN106021084 A CN 106021084A CN 201610344650 A CN201610344650 A CN 201610344650A CN 106021084 A CN106021084 A CN 106021084A
Authority
CN
China
Prior art keywords
configuration information
test
value
current configuration
server
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
Application number
CN201610344650.7A
Other languages
Chinese (zh)
Inventor
曲洪磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610344650.7A priority Critical patent/CN106021084A/en
Publication of CN106021084A publication Critical patent/CN106021084A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3409Recording 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
    • G06F11/3414Workload generation, e.g. scripts, playback

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 present invention provides a method and apparatus for testing server performance. The method comprises the steps of first obtaining current configuration information of a server, generating a corresponding tuning scheme, and outputting the current configuration information and the tuning scheme, thereby facilitating check of workers; updating a configuration file of a test tool according to the current configuration information if the workers choose not to change the current configuration environment after checking is carried out, and then using the test tool to test the server performance; and obtaining changed configuration information again if the workers choose to change the current configuration environment, and executing the same subsequent operation steps. Due to the fact that implementation processes of test environment parameters determination, test environment creation and test performing can be automatically carried out without participation of the workers, manual operation faults can be avoided. Accordingly, accuracy of server performance test results can be improved.

Description

A kind of method and device carrying out server performance test
Technical field
The present invention relates to field of computer technology, particularly to a kind of method carrying out server performance test And device.
Background technology
Server is the important foundation of informatization, and the quality of server performance determines whole application system The performance of system.At present, the index weighing server performance is more, as server carries out the energy of floating-point operation Power.
When needs carry out server performance test, staff can check the actual disposition of server, And calculate to determine preferred test parameter in a large number by using, and according to this test parameter to perform Follow-up test process.
Artificially determine ambient parameter due to needs and build test environment, and the error of manual operation generally exists Institute is unavoidable, therefore existing implementation can reduce the accuracy of server performance test result.
Summary of the invention
The invention provides a kind of method and device carrying out server performance test, it is possible to increase server The accuracy of the performance test results.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
On the one hand, the invention provides a kind of method carrying out server performance test, predetermined test Instrument, also includes:
S1: obtain the current configuration information of server, and generate the tuning that described current configuration information is corresponding Scheme;
S2: export described current configuration information and described tuning scheme;
S3: when the stopping receiving input performs control instruction, perform S4, receiving continuing of input During continuous execution control instruction, perform S5;
S4: when the server update receiving input completes instruction, perform S1;
S5: according to described current configuration information, the configuration file of described testing tool is updated;
S6: according to the described configuration file after updating, utilize described testing tool to test.
Further, described current configuration information includes: total amount of memory, system bus number of passes, data (Non Uniform Memory Access Architecture, non-unified memory is visited for storehouse type, NUMA Ask framework), any one in IO (Input/Output, the input/output) idle port of operating system Plant or multiple.
Further, described current configuration information includes: total amount of memory, system bus number of passes, data Storehouse type, NUMA, the IO idle port of operating system;
Described S5, including: according to described current configuration information, calculate and obtain described total amount of memory correspondence Ns value, the PXQ value that described system bus number of passes is corresponding, NB value that described type of database is corresponding, Corresponding for described NUMA RFACTs value, the threshold that the IO idle port of described operating system is corresponding Value;By the described Ns value obtained, described PXQ value, described NB value, described RFACTs value, institute State in the configuration file that threshold value is written to described testing tool.
Further, also include after S5: remove the raw log files that described server is corresponding;
Also include after S6:
Generate corresponding test result, and preserve described test result;
Based on the described raw log files after removing, generate corresponding current log file;
Judge whether described current log file exists error message, if so, export described error message.
Further, described raw log files includes:
Kernel log file/var/log/messages, hardware monitoring journal file/var/log/mcelog and survey Trial work tool journal file/opt/intel/mp_linpack/ia64/log/xhpl.log.
Further, the method also includes: the predetermined ./fpo_qhl.sh corresponding with floating-point operation Test script;
Described S1, including: utilize terminal terminal to run described test script, by running described survey Training originally, obtains the current configuration information of server, and generates the tuning that described current configuration information is corresponding Scheme.
On the other hand, the invention provides a kind of device carrying out server performance test, including:
Determine unit, be used for determining testing tool;
First processing unit, for obtaining the current configuration information of server, and is currently configured described in generation The tuning scheme that information is corresponding;And export described current configuration information and described tuning scheme, and trigger First communication unit;
Described first communication unit, during for performing control instruction in the stopping receiving input, triggers the Two communication units, receiving when continuing executing with control instruction of input, trigger updating block;
Described second communication unit, for when the server update receiving input completes instruction, triggering First processing unit;
Described updating block, for according to described current configuration information, the configuration literary composition to described testing tool Part is updated;
Test cell, for according to the described configuration file after updating, utilizing described testing tool to survey Examination.
Further, described current configuration information includes: total amount of memory, system bus number of passes, data Storehouse type, NUMA, the IO idle port of operating system;
Described updating block, specifically for according to described current configuration information, calculates the described internal memory of acquisition total The Ns value that capacity is corresponding, the PXQ value that described system bus number of passes is corresponding, described type of database are corresponding NB value, RFACTs value corresponding for described NUMA, the IO idle port pair of described operating system The threshold value answered;By the described Ns value obtained, described PXQ value, described NB value, described RFACTs value, described threshold value are written in the configuration file of described testing tool.
Further, this device carrying out server performance test also includes:
Clearing cell, for removing the raw log files that described server is corresponding;
Second processing unit, is used for generating corresponding test result, and preserves described test result;And Based on the described raw log files after removing, generate corresponding current log file;
3rd processing unit, is used for judging whether there is error message, if so, in described current log file Export described error message.
Further, described determine unit, be additionally operable to determine the ./fpo_qhl.sh corresponding with floating-point operation Test script;
Described first processing unit is specifically for utilizing terminal terminal to run described test script, logical Cross and run described test script, obtain the current configuration information of server, and be currently configured letter described in generation The tuning scheme that breath is corresponding.
The invention provides a kind of method and device carrying out server performance test, first obtain server Current configuration information, generate corresponding tuning scheme, and export this current configuration information and tuning scheme, So that staff checks;If staff selects not change after checking is currently configured environment, Then according to current configuration information to update the configuration file of testing tool, recycling testing tool is tested; If staff selects change to be currently configured environment, then reacquire the configuration information after change, and hold The subsequent process steps that row is same.Owing to determining test environment parameter, build test environment and test The process that realizes can automatically carry out, it is not necessary to the participation of staff, such that it is able to avoid manual operation to lose By mistake.Therefore, the present invention can improve the accuracy of server performance test result.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is some embodiments of the present invention, for those of ordinary skill in the art, not On the premise of paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow process of a kind of method carrying out server performance test that one embodiment of the invention provides Figure;
Fig. 2 is the flow process that the another kind that one embodiment of the invention provides carries out the method for server performance test Figure;
Fig. 3 is the signal of a kind of device carrying out server performance test that one embodiment of the invention provides Figure;
Fig. 4 is the signal that the another kind that one embodiment of the invention provides carries out the device of server performance test Figure.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments, based on Embodiment in the present invention, those of ordinary skill in the art are institute on the premise of not making creative work The every other embodiment obtained, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, embodiments provide a kind of method carrying out server performance test, can To comprise the following steps:
Step 101: predetermined testing tool.
Step 102: obtain the current configuration information of server, and it is corresponding to generate described current configuration information Tuning scheme.
Step 103: export described current configuration information and described tuning scheme.
Step 104: when the stopping receiving input performs control instruction, perform step 105, receiving To when continuing executing with control instruction of input, perform step 106.
Step 105: when the server update receiving input completes instruction, perform step 102.
Step 106: according to described current configuration information, the configuration file of described testing tool is carried out more Newly.
Step 107: according to the described configuration file after updating, utilize described testing tool to test.
Embodiments provide a kind of method carrying out server performance test, first obtain server Current configuration information, generate corresponding tuning scheme, and export this current configuration information and tuning scheme, So that staff checks;If staff selects not change after checking is currently configured environment, Then according to current configuration information to update the configuration file of testing tool, recycling testing tool is tested; If staff selects change to be currently configured environment, then reacquire the configuration information after change, and hold The subsequent process steps that row is same.Owing to determining test environment parameter, build test environment and test The process that realizes can automatically carry out, it is not necessary to the participation of staff, such that it is able to avoid manual operation to lose By mistake.Therefore, the present invention can improve the accuracy of server performance test result.
In an embodiment of the invention, described current configuration information may include that total amount of memory, is Unite in the IO idle port of total Thread Count, type of database, NUMA, operating system any one Or it is multiple.
In an embodiment of the invention, in order to the update mode of the configuration file of a kind of testing tool is described, So,
Described current configuration information includes: total amount of memory, system bus number of passes, type of database, NUMA, the IO idle port of operating system;
Described step 106, including: according to described current configuration information, calculate the described internal memory of acquisition and always hold The Ns value of amount correspondence, the PXQ value that described system bus number of passes is corresponding, described type of database are corresponding NB value, RFACTs value corresponding for described NUMA, the IO idle port correspondence of described operating system Threshold value;By the described Ns value obtained, described PXQ value, described NB value, described RFACTs Value, described threshold value are written in the configuration file of described testing tool.
In an embodiment of the invention, in order to illustrate to utilize, testing tool carries out testing follow-up realized Journey, so,
After step 106, farther include: remove the raw log files that described server is corresponding;
After step 107, farther include: generate corresponding test result, and preserve described test Result;Based on the described raw log files after removing, generate corresponding current log file;Judge institute State in current log file and whether there is error message, if so, export described error message.
In an embodiment of the invention, described raw log files includes: kernel log file / var/log/messages, hardware monitoring journal file/var/log/mcelog and testing tool journal file /opt/intel/mp_linpack/ia64/log/xhpl.log。
In an embodiment of the invention, the method may further include: predetermined and floating-point operation Corresponding ./fpo_qhl.sh test script;
Described step 102, including: utilize terminal terminal to run described test script, by running Described test script, obtains the current configuration information of server, and it is corresponding to generate described current configuration information Tuning scheme.
As in figure 2 it is shown, one embodiment of the invention provides a kind of method carrying out server performance test, The method may comprise steps of:
Step 201: determine testing tool, determines the test script corresponding with floating-point operation.
Floating-point operation is carried out owing to a very important index of measurement server performance is server Ability, therefore in the present embodiment, the side carrying out server performance test that can propose according to this programme Method, tests with the floating-point operation performance to server.
Before testing, first may determine that corresponding testing tool and test script.Wherein, should Test script can be ./fpo_qhl.sh test script, and this test process can be at linux system Under carry out based on shell script.
Step 202: utilize terminal testing results script, by testing results script, obtains service The current configuration information of device, and generate the tuning scheme that current configuration information is corresponding.
In detail, current configuration information can include total amount of memory, system bus number of passes, class database Type, NUMA, operating system IO idle port in any one or more.
Such as, in the present embodiment, utilize terminal to run ./fpo_qhl.sh test script, can With obtain the current total amount of memory of server and system bus number of passes, i.e. hyperthread for opening, in save as Full configuration.
For this current configuration information, it is computed can determine that server current configuration information is corresponding Tuning scheme be hyperthread close, in save as 1/2 configuration.
By terminal testing results script, terminal can have 3 promptings, it may be assumed that
A, server be currently configured as follows;
B, tuning allocation plan are as follows;
C, whether continue to test according to being currently configured.
Corresponding to above-mentioned prompting A, in one embodiment of the invention, corresponding mainly the holding of this prompting Line code can be as follows:
Corresponding to above-mentioned prompting B and prompting C, in one embodiment of the invention, this prompting is corresponding Main execution code can be as follows:
NODE number:1
Sockets number:1
memory policy:1/3DPS
BIOS setup:
HT:disable
EIST:enable
Turbo:enable
T/C state:disable
Energy performance:performance
Do you want to continus using this configuration(Y/N)
Step 203: output current configuration information and tuning scheme.
When determining the current configuration information of server and corresponding tuning scheme, can output it, as Can show at display interface, in order to staff is analyzed checking.
In one embodiment of the invention, one group of functional keys can be provided on display interface simultaneously, Such as YES/NO, to prompt the user to choose whether to test according to being currently configured environment.Assume work people Member selected again to build server configures environment in this stage, then it can click on NO button.
Step 204: when the stopping receiving input performs control instruction, perform step 205, connecing Receive when continuing executing with control instruction of input, perform step 206.
When staff clicks on NO button with input stopping execution control instruction, system can be closed automatically Close server.Staff can be according to above-mentioned tuning scheme, to close hyperthread, and by memory configurations Change to 1/2 configuration, to complete again building of test environment.
In the present embodiment, system can be according to the current configuration information of server to recommend corresponding tuning Scheme, so that staff selects according to the actual requirements.This implementation is without staff people For obtaining server configuration information, and calculate preferred test environment parameter without artificial, such that it is able to joint The input of human-saving resource and time put into, and avoid the error that may bring because of manual operation to ask Topic, therefore accuracy and the authority of floating-point operation the performance test results can be improved.
Step 205: when the server update receiving input completes instruction, perform step 202.
After completing again the building of test environment, staff can open server, i.e. system can The server update inputted to get staff completes instruction, such that it is able to again perform step 202, the most again obtain the current configuration information of server.
According to above-mentioned narration, the current configuration information again got can be hyperthread close, interior Depositing 1/2 configuration, corresponding tuning scheme is and is currently configured environment optimum.Therefore staff can click on YES button on display interface continues executing with control instruction with input, such that it is able to perform step 206. In a kind of possible implementation, if staff now clicks on NO button, then test script knot Bundle.
Step 206: according to current configuration information, calculates and obtains corresponding test parameter value.
In detail, test parameter value can include Ns value corresponding to total amount of memory, system bus number of passes Corresponding PXQ value, the NB value that type of database is corresponding, RFACTs value corresponding for NUMA, behaviour Make any one or more in the threshold value that the IO idle port of system is corresponding.
Wherein, for RFACTs value, 0=left, 1=Crout, 2=Right.
In the present embodiment, according to the total amount of memory in the server current configuration information got be Unite total Thread Count, corresponding Ns value and PXQ value can be calculated respectively.Testing tool is performing survey During examination, can test according to this Ns value and PXQ value.
Step 207: test parameter value is written in the configuration file of testing tool, and removes server Corresponding raw log files.
When completing the calculating of test parameter value, can be right according to calculating the Ns value and PXQ value obtained The HPL configuration file of testing tool is updated.In detail, can automatically Ns value and PXQ value be write Enter in the configuration file of testing tool, to update replacement accordingly.
In one embodiment of the invention, the raw log files that server is corresponding can record Original warning message, owing to this original warning message may not correspond with current server configuration surroundings, therefore Before testing, this raw log files can be emptied, to avoid the occurrence of false alarm situation.
In detail, raw log files can be:
Kernel log file/var/log/messages, hardware monitoring journal file/var/log/mcelog and survey Trial work tool journal file/opt/intel/mp_linpack/ia64/log/xhpl.log.
In embodiments of the present invention, can be according to server configuration information to calculate survey by Run Script Test ring border relevant parameter, according to this relevant parameter with more new configuration file, and removes log information.In detail Carefully, this main execution code realizing process corresponding can be as follows:
Step 208: according to the configuration file after updating, utilize testing tool to test, and preserve life The test result become.
When the configuration file of testing tool has updated, it is possible to use testing tool is tested automatically, Floating-point operation performance with testing service device.And when test completes, can be to the test result generated Preserve.Certainly, the test result generated can also be shown by system.
In the present embodiment, proceed by test according to configuration file, and automatically collect test result, this The one main execution code realizing process corresponding can be as follows:
Echo OMP_NUM_THREADS=$ NUMPROC numactl
--physcpubind=$ { cpuset [NUMSOCK] }--interleave=all./xhpl_intel64 | tee -a$runlog
OMP_NUM_THREADS=$ NUMPROC numactl
--physcpubind=$ { cpuset [NUMSOCK] }
--interleave=all./xhpl_offload_intel64 |
Step 209: based on the raw log files after removing, generate corresponding current log file.
In test process, on the raw log files basis after removing, can generate corresponding to working as The journal file of front test process.
Step 210: judge whether there is error message in current log file, if so, output error letter Breath.
For the current log file generated, the most whether system can exist error message with automatic decision, And the error message output prompting that will determine that out, in order to staff carries out corresponding analysis process.
In the present embodiment, after testing is complete, journal file can automatically be detected, if existing The relevant informations such as error can be pointed out, and is preserved by test result automatic synchronization in test process.
The corresponding main execution code of audit log information can be as follows:
cat/var/log/messages|grep-i error
cat/var/log/messages|grep-i temperature
cat/var/log/messages|grep-i warning
The corresponding main execution code that result automatic synchronization preserves can be as follows:
tee-a$runlog
Temp=`grep'WC06C2C4'$ runlog | awk'{print $ NF}'`
echo$ttime,$MACHINECONF,$NUMPROC,${NUMSOCK}-Socket, $psize,$temp>>$resfile
In the present embodiment, it is possible to use shell script is to realize server floating-point operation test environment Build and test, easy to use, simple to operate, it is not necessary to veteran staff is the quickest It is accurately finished test, therefore is of value to a large amount of inputs reducing human resources, improve work efficiency.
As it is shown on figure 3, embodiments provide a kind of device carrying out server performance test, bag Include:
Determine unit 301, be used for determining testing tool;
First processing unit 302, for obtaining the current configuration information of server, and generate described currently The tuning scheme that configuration information is corresponding;And export described current configuration information and described tuning scheme, and Trigger the first communication unit 303;
Described first communication unit 303, during for performing control instruction in the stopping receiving input, touches Send out the second communication unit 304, receiving when continuing executing with control instruction of input, trigger updating block 305;
Described second communication unit 304, is used for when the server update receiving input completes instruction, Trigger the first processing unit 302;
Described updating block 305, for according to described current configuration information, joins described testing tool Put file to be updated;
Test cell 306, for according to the described configuration file after updating, utilizing described testing tool to enter Row test.
In an embodiment of the invention, described current configuration information includes: total amount of memory, system are total Thread Count, type of database, NUMA, the IO idle port of operating system;
Described updating block 305, specifically for according to described current configuration information, calculates acquisition described interior Deposit Ns value corresponding to total capacity, the PXQ value that described system bus number of passes is corresponding, described type of database Corresponding NB value, RFACTs value corresponding for described NUMA, the IO free time end of described operating system The threshold value that mouth is corresponding;By the described Ns value obtained, described PXQ value, described NB value, institute State RFACTs value, described threshold value is written in the configuration file of described testing tool.
In an embodiment of the invention, refer to Fig. 4, this carries out the device of server performance test also May include that
Clearing cell 401, for removing the raw log files that described server is corresponding;
Second processing unit 402, is used for generating corresponding test result, and preserves described test result; And based on the described raw log files after removing, generate corresponding current log file;
3rd processing unit 403, is used for judging whether there is error message in described current log file, If so, described error message is exported.
In an embodiment of the invention, described determine unit 301, be further used for determining and floating-point fortune Corresponding ./fpo_qhl.sh test script;
Described first processing unit 302, specifically for utilizing terminal terminal to run described test script, By running described test script, obtain the current configuration information of server, and be currently configured described in generation The tuning scheme that information is corresponding.
The contents such as the information between each unit in said apparatus is mutual, execution process, due to the present invention Embodiment of the method is based on same design, and particular content can be found in the narration in the inventive method embodiment, this Place repeats no more.
In sum, each embodiment of the present invention at least has the advantages that
1, in the embodiment of the present invention, first obtain the current configuration information of server, generate corresponding tuning Scheme, and export this current configuration information and tuning scheme, in order to staff checks;If work Make personnel to select not change after checking and be currently configured environment, then according to current configuration information to update test The configuration file of instrument, recycling testing tool is tested;If staff selects change to be currently configured Environment, then reacquire the configuration information after change, and perform same subsequent process steps.Due to Determine test environment parameter, build test environment and the process that realizes that carries out testing can be carried out automatically, nothing Need the participation of staff, such that it is able to avoid human operational error.Therefore, the present invention can improve clothes The accuracy of business device the performance test results.
2, in the embodiment of the present invention, system can be corresponding to recommend according to the current configuration information of server Tuning scheme, so that staff selects according to the actual requirements.This implementation is without the people that works Member artificially obtains server configuration information, and calculates preferred test environment parameter without artificial, thus can Put into the input and time saving human resources, and avoid the error that may bring because of manual operation Problem, therefore accuracy and the authority of floating-point operation the performance test results can be improved.
3, in the embodiment of the present invention, it is possible to use shell script is to realize server floating-point operation test wrapper Building and testing of border, easy to use, simple to operate, it is not necessary to veteran staff is equally Complete test rapidly and accurately, therefore be of value to a large amount of inputs reducing human resources, improve work efficiency.
It should be noted that in this article, the relational terms of such as first and second etc be used merely to by One entity or operation separate with another entity or operating space, and not necessarily require or imply this Relation or the order of any this reality is there is between a little entities or operation.And, term " includes ", " comprise " or its any other variant is intended to comprising of nonexcludability, so that include that one is The process of row key element, method, article or equipment not only include those key elements, but also include the brightest Other key elements really listed, or also include intrinsic for this process, method, article or equipment Key element.In the case of there is no more restriction, statement " include one " and limit Key element, it is not excluded that there is also another in including the process of described key element, method, article or equipment Outer same factor.
One of ordinary skill in the art will appreciate that: realize all or part of step of said method embodiment Can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in embodied on computer readable Storage medium in, this program upon execution, performs to include the step of said method embodiment;And it is aforementioned Storage medium include: various Jie that can store program code such as ROM, RAM, magnetic disc or CD In matter.
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate this The technical scheme of invention, is not intended to limit protection scope of the present invention.All spirit in the present invention and former Any modification, equivalent substitution and improvement etc. done within then, are all contained in protection scope of the present invention.

Claims (10)

1. the method carrying out server performance test, it is characterised in that predetermined testing tool, Also include:
S1: obtain the current configuration information of server, and generate the tuning that described current configuration information is corresponding Scheme;
S2: export described current configuration information and described tuning scheme;
S3: when the stopping receiving input performs control instruction, perform S4, receiving continuing of input During continuous execution control instruction, perform S5;
S4: when the server update receiving input completes instruction, perform S1;
S5: according to described current configuration information, the configuration file of described testing tool is updated;
S6: according to the described configuration file after updating, utilize described testing tool to test.
Method the most according to claim 1, it is characterised in that
Described current configuration information includes: total amount of memory, system bus number of passes, type of database, non- Uniform memory access framework NUMA, operating system input/output IO idle port in any one Or it is multiple.
Method the most according to claim 1, it is characterised in that
Described current configuration information includes: total amount of memory, system bus number of passes, type of database, NUMA, the IO idle port of operating system;
Described S5, including:
According to described current configuration information, calculate and obtain Ns value corresponding to described total amount of memory, described The NB value that the PXQ value that system bus number of passes is corresponding, described type of database are corresponding, described NUMA Corresponding RFACTs value, the threshold value that the IO idle port of described operating system is corresponding;
By the described Ns value obtained, described PXQ value, described NB value, described RFACTs value, institute State in the configuration file that threshold value is written to described testing tool.
Method the most according to claim 1, it is characterised in that
After S5, farther include: remove the raw log files that described server is corresponding;
After S6, farther include:
Generate corresponding test result, and preserve described test result;
Based on the described raw log files after removing, generate corresponding current log file;
Judge whether described current log file exists error message, if so, export described error message.
Method the most according to claim 4, it is characterised in that described raw log files includes: Kernel log file/var/log/messages, hardware monitoring journal file/var/log/mcelog and test work Tool journal file/opt/intel/mp_linpack/ia64/log/xhpl.log.
6. according to described method arbitrary in claim 1 to 5, it is characterised in that
Farther include: the predetermined ./fpo_qhl.sh test script corresponding with floating-point operation;
Described S1, including: utilize terminal terminal to run described test script, by running described survey Training originally, obtains the current configuration information of server, and generates the tuning that described current configuration information is corresponding Scheme.
7. the device carrying out server performance test, it is characterised in that including:
Determine unit, be used for determining testing tool;
First processing unit, for obtaining the current configuration information of server, and is currently configured described in generation The tuning scheme that information is corresponding;And export described current configuration information and described tuning scheme, and trigger First communication unit;
Described first communication unit, during for performing control instruction in the stopping receiving input, triggers the Two communication units, receiving when continuing executing with control instruction of input, trigger updating block;
Described second communication unit, for when the server update receiving input completes instruction, triggering First processing unit;
Described updating block, for according to described current configuration information, the configuration literary composition to described testing tool Part is updated;
Test cell, for according to the described configuration file after updating, utilizing described testing tool to survey Examination.
The device carrying out server performance test the most according to claim 7, it is characterised in that
Described current configuration information includes: total amount of memory, system bus number of passes, type of database, non- Uniform memory access framework NUMA, the input/output IO idle port of operating system;
Described updating block, specifically for according to described current configuration information, calculates the described internal memory of acquisition total The Ns value that capacity is corresponding, the PXQ value that described system bus number of passes is corresponding, described type of database are corresponding NB value, RFACTs value corresponding for described NUMA, the IO idle port pair of described operating system The threshold value answered;By the described Ns value obtained, described PXQ value, described NB value, described RFACTs value, described threshold value are written in the configuration file of described testing tool.
The device carrying out server performance test the most according to claim 7, it is characterised in that also Including:
Clearing cell, for removing the raw log files that described server is corresponding;
Second processing unit, is used for generating corresponding test result, and preserves described test result;And Based on the described raw log files after removing, generate corresponding current log file;
3rd processing unit, is used for judging whether there is error message, if so, in described current log file Export described error message.
10. according to the described device carrying out server performance test arbitrary in claim 7 to 9, its It is characterised by,
Described determine unit, be further used for determining the ./fpo_qhl.sh test corresponding with floating-point operation Script;
Described first processing unit is specifically for utilizing terminal terminal to run described test script, logical Cross and run described test script, obtain the current configuration information of server, and be currently configured letter described in generation The tuning scheme that breath is corresponding.
CN201610344650.7A 2016-05-23 2016-05-23 Method and apparatus for testing server performance Pending CN106021084A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610344650.7A CN106021084A (en) 2016-05-23 2016-05-23 Method and apparatus for testing server performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610344650.7A CN106021084A (en) 2016-05-23 2016-05-23 Method and apparatus for testing server performance

Publications (1)

Publication Number Publication Date
CN106021084A true CN106021084A (en) 2016-10-12

Family

ID=57096891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610344650.7A Pending CN106021084A (en) 2016-05-23 2016-05-23 Method and apparatus for testing server performance

Country Status (1)

Country Link
CN (1) CN106021084A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179969A (en) * 2017-05-12 2017-09-19 郑州云海信息技术有限公司 One key sets the device and method of the BIOS option of Benchmark tests
CN107276855A (en) * 2017-07-27 2017-10-20 郑州云海信息技术有限公司 A kind of automatically-monitored method of server stress based on linux system
CN108718263A (en) * 2018-06-13 2018-10-30 郑州云海信息技术有限公司 A kind of network bandwidth test system based on the configuration of HCA cards
CN108769074A (en) * 2018-07-05 2018-11-06 郑州云海信息技术有限公司 A kind of web server method for testing security and system
CN109032977A (en) * 2018-08-13 2018-12-18 郑州云海信息技术有限公司 A kind of optimization method and server of PCIE SSD IO
CN109240750A (en) * 2018-08-29 2019-01-18 郑州云海信息技术有限公司 A kind of method and its server of data processing
CN111125005A (en) * 2019-12-03 2020-05-08 苏州浪潮智能科技有限公司 Method, system and equipment for optimizing IO performance of HDFS distributed file system
CN111124889A (en) * 2019-11-30 2020-05-08 苏州浪潮智能科技有限公司 Host Numa testing method, system and equipment based on ICOS system
CN111262753A (en) * 2020-01-13 2020-06-09 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for automatically configuring number of NUMA nodes

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070115860A1 (en) * 2005-11-11 2007-05-24 Antonio Samele End-to-end test and diagnostic management system
CN104407951A (en) * 2014-11-05 2015-03-11 浪潮电子信息产业股份有限公司 Method for automatically testing complete server
CN104811353A (en) * 2015-05-05 2015-07-29 浪潮电子信息产业股份有限公司 Linux system based automatic network card performance test environment construction method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070115860A1 (en) * 2005-11-11 2007-05-24 Antonio Samele End-to-end test and diagnostic management system
CN104407951A (en) * 2014-11-05 2015-03-11 浪潮电子信息产业股份有限公司 Method for automatically testing complete server
CN104811353A (en) * 2015-05-05 2015-07-29 浪潮电子信息产业股份有限公司 Linux system based automatic network card performance test environment construction method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179969B (en) * 2017-05-12 2020-02-21 郑州云海信息技术有限公司 Device and method for setting BIOS option of Benchmark test by one key
CN107179969A (en) * 2017-05-12 2017-09-19 郑州云海信息技术有限公司 One key sets the device and method of the BIOS option of Benchmark tests
CN107276855A (en) * 2017-07-27 2017-10-20 郑州云海信息技术有限公司 A kind of automatically-monitored method of server stress based on linux system
CN108718263A (en) * 2018-06-13 2018-10-30 郑州云海信息技术有限公司 A kind of network bandwidth test system based on the configuration of HCA cards
CN108769074A (en) * 2018-07-05 2018-11-06 郑州云海信息技术有限公司 A kind of web server method for testing security and system
CN108769074B (en) * 2018-07-05 2021-02-09 苏州浪潮智能科技有限公司 Web server security testing method
CN109032977A (en) * 2018-08-13 2018-12-18 郑州云海信息技术有限公司 A kind of optimization method and server of PCIE SSD IO
CN109240750A (en) * 2018-08-29 2019-01-18 郑州云海信息技术有限公司 A kind of method and its server of data processing
CN111124889A (en) * 2019-11-30 2020-05-08 苏州浪潮智能科技有限公司 Host Numa testing method, system and equipment based on ICOS system
CN111124889B (en) * 2019-11-30 2023-01-10 苏州浪潮智能科技有限公司 ICOS system-based host Numa test method, system and equipment
CN111125005A (en) * 2019-12-03 2020-05-08 苏州浪潮智能科技有限公司 Method, system and equipment for optimizing IO performance of HDFS distributed file system
CN111125005B (en) * 2019-12-03 2022-07-08 苏州浪潮智能科技有限公司 Method, system and equipment for optimizing IO performance of HDFS distributed file system
CN111262753A (en) * 2020-01-13 2020-06-09 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for automatically configuring number of NUMA nodes
CN111262753B (en) * 2020-01-13 2021-11-05 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for automatically configuring number of NUMA nodes

Similar Documents

Publication Publication Date Title
CN106021084A (en) Method and apparatus for testing server performance
Theisen et al. Approximating attack surfaces with stack traces
WO2019085061A1 (en) Automatic test management method, apparatus and device for fund system, and storage medium
US10120783B2 (en) Determining test case efficiency
US9064048B2 (en) Memory leak detection
US20200242010A1 (en) Fault detection and localization using combinatorial test design techniques while adhering to architectural restrictions
CN103425574A (en) Method and device for testing applications
CN102402479B (en) For the intermediate representation structure of static analysis
US11232020B2 (en) Fault detection using breakpoint value-based fingerprints of failing regression test cases
CN109884533B (en) Method and device for diagnosing battery fault, equipment and storage medium
CN103605606B (en) A kind of embedded software test use-case batch execution method that can automatically change
US20200394121A1 (en) Associating attribute seeds of regression test cases with breakpoint value-based fingerprints
CN110109768A (en) A kind of quality of data method for inspecting and device
CN107038120A (en) A kind of method for testing software and equipment
Zhang et al. An empirical study of the impact of bad designs on defect proneness
US11663113B2 (en) Real time fault localization using combinatorial test design techniques and test case priority selection
Badri et al. Predicting unit testing effort levels of classes: An exploratory study based on multinomial logistic regression modeling
US10970197B2 (en) Breakpoint value-based version control
CN106021043A (en) Method and device for acquiring configuration information of server
WO2022095847A1 (en) System upgrading method and apparatus, device, and storage medium
CN109542444A (en) Monitoring method, device, server and the storage medium of JAVA application
CN108446213A (en) A kind of static code mass analysis method and device
CN115840560A (en) Management system for software development process
CN111144429A (en) Object classification method and system, computer system and computer readable medium
US11176026B2 (en) Assignment of test case priorities based on combinatorial test design model analysis

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20161012