CN113098730B - Server testing method and equipment - Google Patents

Server testing method and equipment Download PDF

Info

Publication number
CN113098730B
CN113098730B CN202010019215.3A CN202010019215A CN113098730B CN 113098730 B CN113098730 B CN 113098730B CN 202010019215 A CN202010019215 A CN 202010019215A CN 113098730 B CN113098730 B CN 113098730B
Authority
CN
China
Prior art keywords
arm server
test
tested
database
request
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.)
Active
Application number
CN202010019215.3A
Other languages
Chinese (zh)
Other versions
CN113098730A (en
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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010019215.3A priority Critical patent/CN113098730B/en
Publication of CN113098730A publication Critical patent/CN113098730A/en
Application granted granted Critical
Publication of CN113098730B publication Critical patent/CN113098730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes

Abstract

The embodiment of the invention discloses a method and equipment for testing a server. The method comprises the following steps: the method comprises the steps that a test device sends a concurrence request to a database in a tested ARM server based on communication connection established with the database in the tested ARM server; at least one virtual machine is established on the ARM server to be tested, and the database is deployed in each virtual machine; and the test equipment obtains relevant processing information corresponding to the concurrent request, and determines the evaluation information of the tested ARM server based on the relevant processing information.

Description

Server testing method and equipment
Technical Field
The invention relates to the field of server testing, in particular to a method and equipment for testing a server.
Background
There is no reference at present for performance testing of Network Function Virtualization (NFV) of servers. x86 server because of the uniqueness of processor selection, NFV of its hardware is rarely the subject of test studies. It is common to verify overall server performance on x86 servers, e.g., run out of processor capacity to verify performance, in a manner that does not take into account virtualization capabilities, nor processor performance under large concurrency conditions; and for example, a test tool is adopted to verify the support capability of the virtualized internet application, such as the comprehensive performance in scenes including Java, a mail system, a database and the like, but the method needs to establish a server cluster, the debugging configuration difficulty is high, the service model is complex, and the test tool does not support an ARM server.
Based on this, no effective solution exists at present for the NFV performance test of the ARM server.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention are intended to provide a method and an apparatus for testing a server.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a method for testing a server, which comprises the following steps:
the method comprises the steps that a test device sends a concurrence request to a database in a tested ARM server based on communication connection established with the database in the tested ARM server; at least one virtual machine is established on the ARM server to be tested, and the database is deployed in each virtual machine;
and the test equipment obtains relevant processing information corresponding to the concurrent request, and determines the evaluation information of the tested ARM server based on the relevant processing information.
In the foregoing solution, the obtaining, by the testing device, the relevant processing information corresponding to the concurrent request, and determining the evaluation information of the ARM server to be tested based on the relevant processing information includes:
the test equipment obtains relevant processing information corresponding to the concurrent request, wherein the relevant processing information at least comprises the test duration of the concurrent request and the number of responses corresponding to the concurrent request;
determining a first parameter based on the test duration of the concurrent request and the number of responses corresponding to the concurrent request, and determining the evaluation information of the tested ARM server based on the first parameter.
In the above scheme, the number of communication connections between the test equipment and the database in the tested ARM server is multiple;
before the test device sends a concurrency request to the database in the tested ARM server based on the communication connection established with the database in the tested ARM server, the method further comprises:
the test equipment configures N communication connections for testing from a plurality of communication connections; n is a positive integer;
the test equipment sends a concurrency request to a database in the tested ARM server based on the communication connection established with the database in the tested ARM server, and the concurrency request comprises the following steps:
and the test equipment sends a concurrency request to a database in the tested ARM server based on the N communication connections.
In the above scheme, under the condition that N is less than the first threshold, the evaluation information of the ARM server to be tested includes the computing capability information of the virtual machine of the ARM server to be tested.
In the above scheme, under the condition that N is greater than the second threshold, the evaluation information of the measured ARM server includes concurrent computation capability information of the measured ARM server.
An embodiment of the present invention further provides a testing device, where the testing device includes: a communication unit and an analysis processing unit; wherein the content of the first and second substances,
the communication unit is used for sending a concurrence request to a database in the tested ARM server based on the communication connection established with the database in the tested ARM server; at least one virtual machine is established on the ARM server to be tested, and the database is deployed in each virtual machine;
and the analysis processing unit is used for obtaining relevant processing information corresponding to the concurrent request and determining the evaluation information of the tested ARM server based on the relevant processing information.
In the foregoing solution, the analysis processing unit is configured to obtain relevant processing information corresponding to the concurrent request, where the relevant processing information at least includes a test duration of the concurrent request and a number of responses corresponding to the concurrent request; determining a first parameter based on the test duration of the concurrent request and the number of responses corresponding to the concurrent request, and determining the evaluation information of the tested ARM server based on the first parameter.
In the above scheme, the number of communication connections between the test equipment and the database in the tested ARM server is multiple;
the test equipment further comprises a configuration unit, wherein the configuration unit is used for configuring N communication connections for testing from a plurality of communication connections before the communication unit sends concurrent requests to a database in the tested ARM server based on the communication connection established with the database in the tested ARM server; n is a positive integer;
and the communication unit is used for sending a concurrency request to a database in the tested ARM server based on the N communication connections.
In the above scheme, under the condition that N is less than the first threshold, the evaluation information of the ARM server to be tested includes the computing capability information of the virtual machine of the ARM server to be tested.
In the above scheme, under the condition that N is greater than the second threshold, the evaluation information of the measured ARM server includes concurrent computation capability information of the measured ARM server.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method according to an embodiment of the present invention.
The embodiment of the invention also provides test equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the steps of the method of the embodiment of the invention are realized when the processor executes the program.
The embodiment of the invention provides a method and equipment for testing a server, wherein the method comprises the following steps: the method comprises the steps that a test device sends a concurrence request to a database in a tested ARM server based on communication connection established with the database in the tested ARM server; at least one virtual machine is established on the ARM server to be tested, and the database is deployed in each virtual machine; and the test equipment obtains relevant processing information corresponding to the concurrent request, and determines the evaluation information of the tested ARM server based on the relevant processing information. By adopting the technical scheme of the embodiment of the invention, the concurrent request is sent through the communication connection established by the test equipment and the database deployed in each virtual machine established in the ARM server to be tested; and determining the evaluation information of the tested ARM server according to the obtained related processing information corresponding to the concurrent request, thereby realizing the NFV performance test and capability evaluation of the ARM server.
Drawings
Fig. 1 is a schematic flowchart of a method for testing a server according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a component structure of a test system of a server according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a method for testing a server according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a component structure of a testing apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another exemplary embodiment of a test apparatus;
fig. 6 is a schematic diagram of a hardware component structure of the test equipment according to the embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention provides a test method of a server. Fig. 1 is a schematic flowchart of a method for testing a server according to an embodiment of the present invention; as shown in fig. 1, the method includes:
step 101: the method comprises the steps that a test device sends a concurrence request to a database in a tested ARM server based on communication connection established with the database in the tested ARM server; at least one virtual machine is established on the ARM server to be tested, and the database is deployed in each virtual machine;
step 102: and the test equipment obtains relevant processing information corresponding to the concurrent request, and determines the evaluation information of the tested ARM server based on the relevant processing information.
The test method of the server in the embodiment is applied to test equipment. The test equipment is used for testing the ARM server (i.e. the tested ARM server in this embodiment). In some embodiments, a test tool (or referred to as test software) may be installed in the test device, and after the test tool is loaded or the test software is run, the performance of the ARM server may be tested to obtain evaluation information of the ARM server, where the evaluation information characterizes the performance of the ARM server, and in particular, the NFV performance. In practical application, the testing device may be implemented by a Personal Computer (PC), or may be implemented by another server, and the type of the testing device is not specifically limited in this embodiment.
For NFV applications, the underlying hardware presents virtualized computing, storage, and network resources upwards, and the ARM architecture is the most different from the x86 architecture in terms of computing resources, mainly due to the difference in instruction sets. The Central Processing Unit (CPU) of the ARM architecture is characterized by a large number of cores, compared with the contemporary processor in 2019, 48 cores for an ARM spread spectrum 4826 single processor, and 16 cores for an intel 5218(intel 5218) single processor. Concurrent coordination among processor cores is made more important as the number of cores increases. Based on the test performance index of the ARM server and the test system architecture provided by the embodiment of the invention.
As an example, fig. 2 is a schematic structural diagram of a test system of a server according to an embodiment of the present invention; as shown in fig. 2, the system under test in this embodiment includes a test device and an ARM server under test; in this embodiment, at least one Virtual Machine (VM) is created on the ARM server to be tested, and as shown in fig. 2 as an example, two Virtual machines may be created on the ARM server to be tested. And the at least one virtual machine is a virtual machine with the same specification. In some examples, the at least one virtual machine may be a multi-core virtual machine, e.g., the at least one virtual machine is a 4-core virtual machine. However, it should be noted that the number of cores of the virtual machine is not specifically limited in the embodiment of the present invention.
In this embodiment, databases (DB, Data Base) are deployed separately in each virtual machine, and in some examples, the databases deployed in the virtual machines may be selected from relational databases, such as MariaDB (MariaDB is the mainstream substitute database for mySQL database, open source and fully compatible with mySQL).
In this embodiment, the concurrent request refers to a plurality of requests with the same transmission time (for example, a plurality of requests transmitted by a transmitting side at the same time) or a plurality of requests with similar transmission times (for example, a large number of requests transmitted by a transmitting side in a short period of time).
In an optional embodiment of the present invention, the number of the communication connections between the test device and the database in the ARM server under test is multiple; before the test device sends a concurrency request to the database in the tested ARM server based on the communication connection established with the database in the tested ARM server, the method further comprises: the test equipment configures N communication connections for testing from a plurality of communication connections; n is a positive integer. The test equipment sends a concurrency request to a database in the tested ARM server based on the communication connection established with the database in the tested ARM server, and the concurrency request comprises the following steps: and the test equipment sends a concurrency request to a database in the tested ARM server based on the N communication connections.
Referring to fig. 2, in this embodiment, a communication link is established between the test device and a database deployed in each virtual machine in the ARM server under test, and the test device can test the NFV capability of the ARM server under test through the communication link. Wherein the communication link may comprise a plurality of communication connections. Taking the database as MariaDB as an example, the communication connection number of MariaDB and the corresponding thread number are in one-to-one correspondence, so that the performance of the tested ARM server can be verified through the processing condition of the database under the test scene of different communication connection numbers.
In an optional embodiment of the present invention, the obtaining, by the testing device, relevant processing information corresponding to the concurrent request, and determining, based on the relevant processing information, evaluation information of the ARM server under test includes: the test equipment obtains relevant processing information corresponding to the concurrent request, wherein the relevant processing information at least comprises the test duration of the concurrent request and the number of responses corresponding to the concurrent request; determining a first parameter based on the test duration of the concurrent request and the number of responses corresponding to the concurrent request, and determining the evaluation information of the tested ARM server based on the first parameter.
In this embodiment, in one implementation, the first parameter may be transaction amount Per Second (TPS); one transaction refers to the process that the test equipment sends a request to the tested ARM server and the server reacts to the request. And the test equipment starts timing when sending the request and finishes timing after receiving the response of the tested ARM server so as to calculate the used time and the number of finished transactions. In another embodiment, the first parameter may also be a duration of use of a transaction (or may also be referred to as a transaction delay), which indicates a duration of use of processing a transaction.
In some optional embodiments of the present invention, the sending, by the testing device, a concurrent request to the database in the ARM server under test includes: the test equipment sends a concurrence request to a database in the tested ARM server within a preset test duration; the concurrent requests comprise X requests, wherein X is a positive integer; correspondingly, the obtaining, by the testing device, the relevant processing information corresponding to the concurrent request includes: the test equipment receives Y responses in the test duration; y is a positive integer less than or equal to X; determining the first parameter based on the test duration and the number Y.
In this embodiment, in some embodiments, the unit of the test duration may be converted into second, and the transaction amount per second is obtained by dividing the test duration (in seconds) by the number Y. In other embodiments, the test duration may be divided by the number Y to obtain a duration for processing a transaction.
In this embodiment, due to the increase of the number of cores of the processor of the ARM server, the concurrent coordination among the cores of the processor is more important. Based on this, the following indexes for describing the core capability of the processor of the tested ARM server are provided in the embodiment of the present invention: the computer capability information of the virtual machine of the tested ARM server and the concurrent computer capability information of the tested ARM server.
In an optional embodiment of the present invention, in a case that N is less than the first threshold, the measured ARM server evaluation information includes virtual machine computing capability information of the measured ARM server.
In an optional embodiment of the present invention, in a case that N is greater than the second threshold, the measured ARM server evaluation information includes concurrent computation capability information of the measured ARM server.
In this embodiment, the number of communication connections (i.e., the value of N) established between the test device and the database in the ARM server under test is adjustable. For example, the tester may configure the number of communication connections established with the database in the ARM server under test through the test tool in the test equipment. For example, the number of communication connections (i.e. the value of N) may be 8, 16, 32, 64, 128, 256, 512, and so on, and of course, the number of communication connections established between the testing device and the database in the ARM server under test (i.e. the value of N) in the embodiment of the present invention is not limited to the above example, and other values may also be within the protection scope of the embodiment of the present invention.
In this embodiment, values of the first threshold and the second threshold may be set based on the number of configured communication connections (i.e., a value of N). The first threshold and the second threshold may be the same or different. For example, in the scenario of the number of the eight types of communication connections, the first threshold may be 10, in order to test the virtual machine computing capability information of the ARM server under test, in a case that the number of the communication connections is the minimum value (that is, the value of N is 8), sending a concurrent request is performed, so as to obtain the virtual machine computing capability of the ARM server under test in the scenario of a low connection number. For example, in the scenario of the number of the eight types of communication connections, the second threshold may be 300, and in order to test the concurrent computation capability information of the measured ARM server, in the case that the number of the communication connections is the maximum value (that is, the value of N is 512), the concurrent request is sent, so that the concurrent computation capability of the measured ARM server in the scenario of a high number of connections is obtained.
In this embodiment, in a scenario, that is, in a case where N is less than a first threshold (a low concurrency scenario), the virtual machine computing capability information of the ARM server under test is determined according to the test duration of the concurrent request and a first parameter determined according to the number of responses corresponding to the concurrent request. Wherein the first parameter may be TPS and/or duration of one transaction use; the larger the numerical value of the TPS is, the stronger the computing power of the virtual machine of the tested ARM server is; the smaller the duration of one-time transaction use is, the stronger the virtual machine computing capacity of the tested ARM server is.
In another scenario, that is, in a case where N is greater than a second threshold (a high concurrency scenario), the concurrent computation capability information of the ARM server under test is determined according to a test duration of the concurrent request and a first parameter determined according to the number of responses corresponding to the concurrent request. Wherein the first parameter may be TPS and/or duration of one transaction use; the larger the numerical value of the TPS is, the stronger the concurrent computation capability of the ARM server to be tested is; the smaller the duration of one transaction, the stronger the concurrent computing capability of the tested ARM server.
Aiming at the characteristics of the ARM architecture, the number of cores of the processors of the ARM server is much greater than that of the processors in the x86 server, and the concurrent computing capacity is also the key performance of the processors in the multi-core-based virtualization environment of the NFV application. Based on this, the embodiment of the present invention provides an evaluation index for describing NVF performance of an ARM server, including but not limited to: virtual machine computing power, concurrent computing power; wherein the virtual machine computing power is suitable for low concurrency scenes and represents the most basic capability of the processor; the concurrency computing capability is suitable for high concurrency scenes, and the key performance of the multi-core processor can be embodied. Of course, the evaluation indexes for describing the NVF performance of the ARM server in the embodiment of the present invention are not limited to the above two types, and may further include: real-time support capability and encryption and decryption capability, etc.
The obtaining of the real-time support capability information may include: the test equipment sends a concurrency request to a database in the tested ARM server; each request in the concurrent requests carries a sending time; obtaining responses corresponding to the concurrent requests, and determining the receiving time of each response; determining delay information based on the transmission time and the reception time corresponding to each request, and determining real-time support capability information based on the delay information. Wherein, the larger the time delay is, the worse the real-time support capability is; the smaller the time delay, the stronger the real-time support capability can be shown.
The design of the real-time support capability information is mainly based on the previous ARM research, and the fact that the real-time performance of the NFV network cloud on a certain ARM server cannot meet the requirement is found in the early stage. The real-time performance is related to both hardware and software. Where cache coherency, timer implementation, etc. in the processor have a direct impact on performance. The purpose of designing the real-time support capability information in this embodiment is to verify that the performance required by the virtual layer in the NFV network cloud is based on the implementation of the ARM.
The encryption and decryption processing capacity is the performance of the important bottom layer implementation of network cloud security, meanwhile, a typical x86 instruction set has a large number of optimized scenes, ARM lacks optimization aiming at the instruction set, and the encryption and decryption implemented by the computing capacity of the processor is tested to verify the performance of the processor.
By adopting the technical scheme of the embodiment of the invention, on the first hand, the concurrent request is sent through the communication connection established between the test equipment and the database deployed in each virtual machine established in the ARM server to be tested; and determining the evaluation information of the tested ARM server according to the obtained related processing information corresponding to the concurrent request, thereby realizing the NFV performance test and capability evaluation of the ARM server.
In a second aspect, in this embodiment, by adjusting the number of communication connections, and under the condition of a smaller number of communication connections, the computing capability information of the virtual machine of the measured ARM server is obtained by sending a concurrent request; under the condition of larger communication connection quantity, the concurrent computing capacity information of the ARM server to be tested is obtained by sending the concurrent request, so that the NVF performance test of the ARM server under the high-concurrency scene or the low-concurrency scene is realized.
The following describes a method for testing a server according to an embodiment of the present invention with reference to a specific example.
In combination with the example shown in fig. 2, two virtual machines with the same specification and 4 cores and 24G memories are created on the ARM server under test, and a MariaDB is deployed in each virtual machine. The number of communication connections of the configuration test equipment to each mariad db may be eight communication connections, 8, 16, 32, 64, 128, 256, 512. The test equipment runs a test tool, which may be, for example, a sysbench test tool, and the following embodiments are presented taking the above scenario as an example.
FIG. 3 is a schematic flow chart illustrating a method for testing a server according to an embodiment of the present invention; as shown in fig. 3, the method includes:
step 201: the test equipment builds a table in preparation for sending a table build request to the maria db, which may be referred to as a Prepare (Prepare) process. For example, 250 tables are built by test equipment, the number of the table rows is 25000, and the configuration test time is 120 seconds;
step 202: the testing equipment performs performance testing on the ARM server to be tested, the sysbench testing tool configures the number of communication connections, and a form building request is sent to the MariaDB based on the configured number of communication connections, and the process can be called a running (Run) process. The MariaDB adopts default setting, namely one thread corresponds to one communication connection;
step 203: and when the test time is up, the test equipment ends the test. During testing, the test equipment may obtain a response corresponding to the request to build a table. This process may be referred to as a table clearing (clearup) process.
And the sysbench testing tool of the testing equipment counts TPS and time delay corresponding to each MariaDB after the test is finished, and the TPS and the time delay are used as NFV performance of the MariaDB on the tested ARM server, so that the NFV performance of the ARM server is verified.
After step 203, the testing device may change the number of communication connections, and re-execute steps 201 to 203, so as to implement the NFV performance test on the ARM server under different numbers of communication connections (i.e. under different concurrency scenarios).
According to the scheme, the computing capacity test under different concurrency times is ingeniously realized through application software in a virtualization environment, and the multithreading concurrency can be quantitatively tested. Meanwhile, the difficulty that the test conditions need to be unified under different architectures is overcome. The maximum difficulty of NFV performance comparison with x86 architecture after the ARM architecture is introduced is that the software of the middle layer has great influence on the performance test result. Software under different architectures of ARM and x86 needs to be aligned, and under the condition that the industry has no precedent, the scheme ensures standard unification from the aspects of deployment and configuration of a database and a virtual machine creation method.
The embodiment of the invention also provides test equipment. FIG. 4 is a schematic diagram of a component structure of a testing apparatus according to an embodiment of the present invention; as shown in fig. 4, the test apparatus includes: a communication unit 31 and an analysis processing unit 32; wherein the content of the first and second substances,
the communication unit 31 is configured to send a concurrence request to a database in the measured ARM server based on a communication connection established with the database in the measured ARM server; at least one virtual machine is established on the ARM server to be tested, and the database is deployed in each virtual machine;
the analysis processing unit 32 is configured to obtain related processing information corresponding to the concurrent request, and determine the evaluation information of the measured ARM server based on the related processing information.
In an optional embodiment of the present invention, the analysis processing unit 32 is configured to obtain relevant processing information corresponding to the concurrent request, where the relevant processing information at least includes a test duration of the concurrent request and a number of responses corresponding to the concurrent request; determining a first parameter based on the test duration of the concurrent request and the number of responses corresponding to the concurrent request, and determining the evaluation information of the tested ARM server based on the first parameter.
In an optional embodiment of the present invention, the number of the communication connections between the test device and the database in the ARM server under test is multiple;
as shown in fig. 5, the testing apparatus further includes a configuration unit 33, configured to configure, before the communication unit 31 sends a concurrent request to the database in the ARM server under test based on the communication connection established with the database in the ARM server under test, N communication connections for performing a test from among the plurality of communication connections; n is a positive integer;
the communication unit 31 is configured to send a concurrence request to the database in the measured ARM server based on the N communication connections.
In an optional embodiment of the present invention, in a case that N is less than the first threshold, the measured ARM server evaluation information includes virtual machine computing capability information of the measured ARM server.
In an optional embodiment of the present invention, in a case that N is greater than the second threshold, the measured ARM server evaluation information includes concurrent computation capability information of the measured ARM server.
In the embodiment of the present invention, the analysis Processing Unit and the configuration Unit in the test device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA) in the test device in practical application; the communication unit in the test equipment can be realized through a communication module (comprising a basic communication suite, an operating system, a communication module, a standardized interface, a protocol and the like) and a transceiving antenna in practical application.
It should be noted that: in the test device provided in the above embodiment, only the division of the program modules is exemplified when performing the test, and in practical applications, the processing may be distributed to different program modules according to needs, that is, the internal structure of the test device may be divided into different program modules to complete all or part of the processing described above. In addition, the embodiments of the testing method for the testing device and the server provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the embodiments of the methods and are not described herein again.
The embodiment of the invention also provides test equipment. Fig. 6 is a schematic diagram of a hardware component structure of a testing apparatus according to an embodiment of the present invention, and as shown in fig. 6, the testing apparatus 40 includes a memory 42, a processor 41, and a computer program stored in the memory 42 and capable of running on the processor 41, and when the processor executes the computer program, the steps of the testing method of the server according to the embodiment of the present invention are implemented.
Optionally, the testing device 40 may further comprise a communication interface 43. It will be appreciated that the various components of the test equipment 40 may be coupled together by a bus system 44. It will be appreciated that the bus system 44 is used to enable communications among the components. The bus system 44 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 44 in fig. 6.
It will be appreciated that the memory 42 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 42 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiments of the present invention may be applied to the processor 41, or implemented by the processor 41. The processor 41 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 41. The Processor 41 described above may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 41 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in memory 42, and processor 41 reads the information in memory 42 and performs the steps of the method described above in conjunction with its hardware.
In an exemplary embodiment, the test Device 40 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as a memory 42, comprising a computer program, which is executable by a processor 41 of a test device 40 to perform the steps of the aforementioned method. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for testing a server according to embodiments of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (12)

1. A method for testing NFV performance of a server, the method comprising:
the method comprises the steps that a test device sends a concurrence request to a database in a tested ARM server based on communication connection established with the database in the tested ARM server; at least one virtual machine is established on the ARM server to be tested, and the database is deployed in each virtual machine;
and the test equipment acquires relevant processing information corresponding to the concurrent request, and determines the NFV performance evaluation information of the tested ARM server based on the relevant processing information.
2. The method of claim 1, wherein the test device obtains related processing information corresponding to the concurrent request, and wherein determining the NFV performance evaluation information of the ARM server under test based on the related processing information comprises:
the test equipment obtains relevant processing information corresponding to the concurrent request, wherein the relevant processing information at least comprises the test duration of the concurrent request and the number of responses corresponding to the concurrent request;
determining a first parameter based on the test duration of the concurrent request and the number of responses corresponding to the concurrent request, and determining the NFV performance evaluation information of the tested ARM server based on the first parameter.
3. The method of claim 1 or wherein the number of communication connections of the test device to the database in the ARM server under test is plural;
before the test device sends a concurrency request to the database in the tested ARM server based on the communication connection established with the database in the tested ARM server, the method further comprises:
the test equipment configures N communication connections for testing from a plurality of communication connections; n is a positive integer;
the test equipment sends a concurrency request to a database in the tested ARM server based on the communication connection established with the database in the tested ARM server, and the concurrency request comprises the following steps:
and the test equipment sends a concurrency request to a database in the tested ARM server based on the N communication connections.
4. The method of claim 3, wherein the NFV performance evaluation information of the ARM server under test comprises virtual machine computing capability information of the ARM server under test if N is less than a first threshold.
5. The method of claim 3, wherein the NFV performance evaluation information of the ARM server under test comprises concurrent computing capability information of the ARM server under test if N is greater than a second threshold.
6. A test apparatus, characterized in that the test apparatus comprises: a communication unit and an analysis processing unit; wherein, the first and the second end of the pipe are connected with each other,
the communication unit is used for sending a concurrence request to a database in the tested ARM server based on the communication connection established with the database in the tested ARM server; at least one virtual machine is established on the ARM server to be tested, and the database is deployed in each virtual machine;
and the analysis processing unit is used for obtaining relevant processing information corresponding to the concurrent request and determining the NFV performance evaluation information of the tested ARM server based on the relevant processing information.
7. The testing device according to claim 6, wherein the analysis processing unit is configured to obtain related processing information corresponding to the concurrent request, where the related processing information at least includes a test duration of the concurrent request and a number of responses corresponding to the concurrent request; determining a first parameter based on the test duration of the concurrent request and the number of responses corresponding to the concurrent request, and determining the NFV performance evaluation information of the tested ARM server based on the first parameter.
8. The test equipment according to claim 6 or 7, wherein the number of the communication connection of the test equipment and the database in the tested ARM server is multiple;
the test equipment further comprises a configuration unit, wherein the configuration unit is used for configuring N communication connections for testing from a plurality of communication connections before the communication unit sends concurrent requests to a database in the tested ARM server based on the communication connection established with the database in the tested ARM server; n is a positive integer;
and the communication unit is used for sending a concurrency request to a database in the tested ARM server based on the N communication connections.
9. The test equipment of claim 8, wherein the NFV performance evaluation information of the ARM server under test comprises virtual machine computing capability information of the ARM server under test if N is less than a first threshold.
10. The test equipment of claim 8, wherein the NFV performance evaluation information for the ARM server under test comprises concurrent computing capability information for the ARM server under test if N is greater than a second threshold.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
12. A test apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 5 are implemented when the program is executed by the processor.
CN202010019215.3A 2020-01-08 2020-01-08 Server testing method and equipment Active CN113098730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010019215.3A CN113098730B (en) 2020-01-08 2020-01-08 Server testing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010019215.3A CN113098730B (en) 2020-01-08 2020-01-08 Server testing method and equipment

Publications (2)

Publication Number Publication Date
CN113098730A CN113098730A (en) 2021-07-09
CN113098730B true CN113098730B (en) 2022-08-05

Family

ID=76663529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010019215.3A Active CN113098730B (en) 2020-01-08 2020-01-08 Server testing method and equipment

Country Status (1)

Country Link
CN (1) CN113098730B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113609027A (en) * 2021-08-31 2021-11-05 北京百度网讯科技有限公司 ARM cloud server testing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709338A (en) * 2016-05-30 2017-05-24 腾讯科技(深圳)有限公司 Program detection method and device
WO2018200397A1 (en) * 2017-04-24 2018-11-01 Intel IP Corporation Network function virtualization infrastructure performance
CN109257241A (en) * 2017-07-13 2019-01-22 中国电信股份有限公司 Virtual NE functional module performance appraisal procedure, device and system
CN109460280A (en) * 2017-09-06 2019-03-12 中兴通讯股份有限公司 Run method, the terminal of program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709338A (en) * 2016-05-30 2017-05-24 腾讯科技(深圳)有限公司 Program detection method and device
WO2018200397A1 (en) * 2017-04-24 2018-11-01 Intel IP Corporation Network function virtualization infrastructure performance
CN110574339A (en) * 2017-04-24 2019-12-13 英特尔Ip公司 network function virtualization infrastructure performance
CN109257241A (en) * 2017-07-13 2019-01-22 中国电信股份有限公司 Virtual NE functional module performance appraisal procedure, device and system
CN109460280A (en) * 2017-09-06 2019-03-12 中兴通讯股份有限公司 Run method, the terminal of program

Also Published As

Publication number Publication date
CN113098730A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
Reaño et al. Local and remote GPUs perform similar with EDR 100G InfiniBand
US8473661B2 (en) System and method for providing multi-process protection using direct memory mapped control registers
US8327039B2 (en) Integrated DMA processor and PCI express switch for a hardware-based functional verification system
CN103150238B (en) A kind of service request processing method, simulated performance method of testing and device
US9607120B2 (en) Implementing system irritator accelerator FPGA unit (AFU) residing behind a coherent attached processors interface (CAPI) unit
US10180850B1 (en) Emulating applications that use hardware acceleration
CN114580344B (en) Test excitation generation method, verification system and related equipment
US9117030B2 (en) System and method to predict elapsed response time for a query during application development stage
Stuedi et al. jverbs: Ultra-low latency for data center applications
US20160299859A1 (en) Apparatus and method for external access to core resources of a processor, semiconductor systems development tool comprising the apparatus, and computer program product and non-transitory computer-readable storage medium associated with the method
US20130013283A1 (en) Distributed multi-pass microarchitecture simulation
Malladi et al. FlexDrive: A framework to explore NVMe storage solutions
CN113098730B (en) Server testing method and equipment
CN113191114B (en) Method and apparatus for validating a system
CN109101456B (en) Data interactive communication method and device in simulation SSD and terminal
CN108418730B (en) Network flow testing method, device, equipment and computer readable storage medium
Moltchanov et al. Statistical traffic properties and model inference for shared cache interface in multi-core CPUs
CN110727611A (en) Configurable consistency verification system with state monitoring function
Papakyriakou et al. Benchmarking and review of raspberry pi (rpi) 2b vs rpi 3b vs rpi 3b+ vs rpi 4b (8gb)
Manian et al. OMB-UM: Design, implementation, and evaluation of CUDA unified memory aware MPI benchmarks
CN111158994A (en) Pressure testing performance testing method and device
US10776139B2 (en) Simulation apparatus, simulation method, and computer readable medium
Wang et al. RVNet: A fast and high energy efficiency network packet processing system on RISC-V
CN116991544B (en) Simulation method and device of CXL (control information and automation) equipment, electronic equipment and client
CN109783331B (en) Database cluster pressure testing method and device

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
GR01 Patent grant
GR01 Patent grant