A memory performance testing method and related apparatus

CN115129570BActive Publication Date: 2026-09-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210763791.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2026-09-22
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

在现有的测试过程中,需要技术人员手动对每个测试的服务器安装测试环境并进行测试,不仅需要测试的效率较低,还容易导致出现测试问题

Benefits of technology

[0037]本申请所提供的一种内存性能测试方法,包括:对设备部署测试环境;当所述测试环境成功运行后,将所述测试环境的系统文件打包为系统镜像文件;将所述系统镜像文件部署于移动存储设备;当待测设备基于所述移动存储设备启动时,基于所述移动存储设备中的系统进行内存性能测试,得到测试结果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115129570B_ABST
    Figure CN115129570B_ABST
Patent Text Reader

Abstract

The application discloses a memory performance test method, comprising: deploying a test environment for a device; packing system files of the test environment into a system image file when the test environment successfully runs; deploying the system image file to a mobile storage device; and performing a memory performance test based on a system in the mobile storage device when a device to be tested starts based on the mobile storage device, to obtain a test result. The application improves the efficiency of the memory performance test and reduces the threshold for performing the test. The application also discloses a memory performance test device, a terminal device and a computer readable storage medium, which have the above beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a memory performance testing method, a memory performance testing device, a terminal device, and a computer-readable storage medium. Background Technology

[0002] With the continuous development of information technology and the continuous improvement of server technology, the demand for server testing during the server production process is increasing, and the requirements for testing are also becoming more stringent.

[0003] In related technologies, memory testing is required during server product service. Current testing methods require technicians to manually install the test environment and perform tests on each server, which is not only inefficient but also prone to causing testing problems.

[0004] Therefore, how to improve the efficiency of memory performance testing is a key issue of concern to those skilled in the art. Summary of the Invention

[0005] The purpose of this application is to provide a memory performance testing method, a memory performance testing apparatus, a terminal device, and a computer-readable storage medium to improve the efficiency of memory performance testing and lower the threshold for conducting the test.

[0006] To address the aforementioned technical problems, this application provides a memory performance testing method, comprising:

[0007] Deploy a test environment for the equipment;

[0008] Once the test environment is running successfully, the system files of the test environment will be packaged into a system image file;

[0009] Deploy the system image file to a mobile storage device;

[0010] When the device under test boots up based on the mobile storage device, a memory performance test is performed based on the system in the mobile storage device, and the test results are obtained.

[0011] Optionally, after deploying the system image file to a removable storage device, the method further includes:

[0012] The default startup order of the device under test is set to prioritize the startup of mobile storage devices.

[0013] Optionally, when the device under test boots up based on the mobile storage device, a memory performance test is performed based on the system in the mobile storage device to obtain test results, including:

[0014] When the device under test is started based on the mobile storage device, the optimization settings are performed based on the system optimization script in the mobile storage device.

[0015] Once the tuning settings are complete, perform a memory performance test using a testing tool.

[0016] When the memory performance test is completed, the test results will be saved to the mobile storage device.

[0017] Optionally, after the test environment runs successfully, the system files of the test environment are packaged into a system image file, including:

[0018] Once the test environment is running successfully, launch the CD image tool;

[0019] Select the system file directory of the test environment;

[0020] The data in the file directory is saved as a system image file using the optical disc imaging tool.

[0021] Optionally, after the test environment runs successfully, the system files of the test environment are packaged into a system image file, including:

[0022] Once the test environment is running successfully, the system files of the test environment are packaged into a system image file using a CD image tool.

[0023] Optionally, deploying the system image file to a removable storage device includes:

[0024] The system image file is written to the removable storage device using an optical disc imaging tool.

[0025] Optionally, a test environment may be deployed for the device, including:

[0026] Install the basic system and test tools on the equipment to obtain the basic test environment;

[0027] The test environment is obtained by pre-storing test scripts in the basic test environment and setting up automatic test commands at startup.

[0028] This application also provides a memory performance testing device, including:

[0029] The test environment deployment module is used to deploy the test environment on the device;

[0030] The image file packaging module is used to package the system files of the test environment into a system image file after the test environment runs successfully;

[0031] The image file deployment module is used to deploy the system image file to a mobile storage device;

[0032] The test execution module is used to perform memory performance tests based on the system in the mobile storage device when the device under test is started based on the mobile storage device, and obtain test results.

[0033] This application also provides a terminal device, including:

[0034] Memory, used to store computer programs;

[0035] A processor, used to implement the memory performance testing method described above when executing the computer program.

[0036] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the memory performance testing method described above.

[0037] The present application provides a memory performance testing method, comprising: deploying a test environment on a device; after the test environment runs successfully, packaging the system files of the test environment into a system image file; deploying the system image file on a mobile storage device; when the device under test starts based on the mobile storage device, performing a memory performance test based on the system in the mobile storage device, and obtaining the test results.

[0038] By first deploying a test environment on the device, and then packaging the system files of the test environment into a system image file after the test environment runs successfully, and deploying the system image file on a mobile storage device, the memory performance test can be directly executed on other devices under test using the mobile storage device, without having to deploy a corresponding test environment for each device. This improves the efficiency of memory performance testing and lowers the testing threshold.

[0039] This application also provides a memory performance testing device, a terminal device, and a computer-readable storage medium, which have the above-mentioned beneficial effects, and will not be elaborated here. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0041] Figure 1 A flowchart illustrating a memory performance testing method provided in an embodiment of this application;

[0042] Figure 2A flowchart illustrating another memory performance testing method provided in this application embodiment;

[0043] Figure 3 This is a schematic diagram of the structure of a memory performance testing device provided in an embodiment of this application;

[0044] Figure 4 This is a schematic diagram of the structure of a terminal device provided in this application. Detailed Implementation

[0045] The core of this application is to provide a memory performance testing method, a memory performance testing device, a terminal device, and a computer-readable storage medium to improve the efficiency of memory performance testing and lower the threshold for conducting the test.

[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0047] In related technologies, memory testing is required during server product service. Current testing methods require technicians to manually install the test environment and perform tests on each server, which is not only inefficient but also prone to causing testing problems.

[0048] Therefore, this application provides a memory performance testing method. First, a test environment is deployed on the device. Then, after the test environment runs successfully, the system files of the test environment are packaged into a system image file, and the system image file is deployed on a mobile storage device. Finally, the memory performance test is directly executed on other devices under test using the mobile storage device, without having to deploy a corresponding test environment for each device. This improves the efficiency of memory performance testing and lowers the testing threshold.

[0049] The following example illustrates a memory performance testing method provided in this application.

[0050] Please refer to Figure 1 , Figure 1 This is a flowchart of a memory performance testing method provided in an embodiment of this application.

[0051] In this embodiment, the method may include:

[0052] S101, Deploy a test environment for the equipment;

[0053] As can be seen, this step aims to deploy a test environment for the device. The device can be a device rapidly selected from a batch of test devices, a dedicated device for building the test environment, or a device for other purposes. As long as the device is the same as the device under test and belongs to the same batch, it can be used as the device in this embodiment.

[0054] Furthermore, the device can be a server under test, a terminal device under test, or any other device with computer hardware. If it's a server, the test environment can be deployed and built using methods specific to server environments. If it's a terminal device, the test environment can be deployed and built using methods specific to terminal devices. Similarly, if it's another device with computer hardware, the test environment can be deployed using methods specific to that device.

[0055] The test environment refers to the environment in which test operations are performed on the corresponding device. Once this test environment is deployed on a device, test operations can be performed through it. Different test environments can perform different tests; they may include memory tests, hard drive tests, and other hardware tests. Correspondingly, the test environment can be configured based on different scenarios and actual needs.

[0056] Furthermore, this embodiment primarily focuses on memory testing. Therefore, the necessary software tools, test instructions, and test scripts for memory testing can be deployed in the test environment. These software tools, test instructions, and test scripts can be selected based on needs, and no specific limitations are made here. In addition, this embodiment also requires a basic system within the device's hardware. This system can be a suitable operating system, or other operating systems can be selected, which will not be elaborated upon here.

[0057] Furthermore, this step may include:

[0058] Step 1: Install the basic system and testing tools on the equipment to obtain the basic testing environment;

[0059] Step 2: Pre-store test scripts in the basic test environment and set up automatic test commands at startup to obtain the test environment.

[0060] As can be seen, this optional solution mainly describes how to deploy the test environment. In this optional solution, a basic system and testing tools are installed on the device to obtain a basic test environment. Test scripts are pre-stored in the basic test environment, and automatic boot test commands are set up to obtain the test environment. Therefore, the deployment process of this optional solution includes, but is not limited to, installing the basic system, installing testing tools, pre-stored test scripts, and setting up automatic test commands.

[0061] S102, Once the test environment is running successfully, package the system files of the test environment into a system image file;

[0062] Building upon S101, this step aims to package the system files of the test environment into a system image file after the test environment has successfully run. In other words, it packages the files in the test environment into a single system image file, allowing the same test environment to be deployed directly on other devices by copying this system image file, without requiring a separate deployment step on each device, thus improving deployment efficiency.

[0063] This process involves packaging the system files of the test environment into a system image file. This can be done by selecting files from a preset path for packaging. For example, after the test environment runs successfully, the default path is retrieved, opened, and the files within that path are selected as the data files to be packaged. Alternatively, files can be packaged according to a chosen path. For instance, after the test environment runs successfully, the target path selected by the technical staff is retrieved, and the files from that target path are then packaged. The target path can be obtained from the management software's input interface, from the command execution window, or from the network.

[0064] The packaging method can be chosen differently depending on the software. Specifically, it can be packaged by compressing the entire document, using a preset format, or using an uncompressed method to improve the efficiency of file extraction.

[0065] Furthermore, this step may include:

[0066] Step 1: After the test environment runs successfully, start the CD image tool;

[0067] Step 2: Select the file directory of the test environment system;

[0068] Step 3: Use a CD image tool to save the data in the file directory as a system image file.

[0069] As can be seen, this optional solution mainly explains how to package and obtain a system image file. In this optional solution, after the test environment is successfully running, the CD image tool is launched, the system file directory of the test environment is selected, and the data in the file directory is saved as a system image file using the CD image tool.

[0070] Among them, the optical disc image tool is UltraSO, also known as Rufus. Rufus is a powerful and convenient tool for creating, editing, and converting optical disc image files. It can directly edit ISO (disc image file) files and extract files and directories from ISOs. It can also create optical disc images from CD-ROMs or create ISO files from files on the hard drive.

[0071] Furthermore, this step may include:

[0072] Once the test environment is running successfully, use a CD image tool to package the system files of the test environment into a system image file.

[0073] As can be seen, in this optional solution, the system files can be directly packaged into a system image file using the optical disc image tool, which means using the default operation method to improve packaging efficiency.

[0074] S103 deploys the system image file to a mobile storage device;

[0075] Building upon S102, this step aims to deploy the system image file to a removable storage device. This removable storage device can be, for example, a USB flash drive. Correspondingly, the terminal device can then boot from this removable storage device and execute the corresponding test functions.

[0076] Furthermore, depending on the size of the system image file, different capacities of removable storage devices can be selected; no specific limitations are made here.

[0077] The process of deploying the system image file to a removable storage device can involve directly copying the system image file to the removable storage device, exporting the packaged system image file to the removable storage device using software, or importing the system image file using other disk utilities. Therefore, the method of deploying the system image file in this embodiment is not unique and is not specifically limited here.

[0078] Furthermore, in this embodiment, dedicated software can be used to export the system image file to a mobile storage device.

[0079] Furthermore, there is no limit to the number of mobile storage devices. One mobile storage device can be deployed, multiple mobile storage devices can be deployed, and the number of mobile storage devices can be dynamically adjusted according to the number of devices under test.

[0080] When testing multiple devices under test, multiple mobile storage devices can be deployed, and performance testing can be performed simultaneously using multiple mobile storage devices in subsequent steps.

[0081] Furthermore, this step may include:

[0082] Write the system image file to a removable storage device using a CD imaging tool.

[0083] As can be seen, this optional solution mainly describes how to deploy the system image file. In this optional solution, the system image file is written to a removable storage device using a CD-ROM imaging tool. The CD-ROM imaging tool used is UltraSO, also known as Rufus. Rufus is a powerful and convenient tool for creating, editing, and converting CD-ROM images. It can directly edit ISO files and extract files and directories from ISOs, and can also create CD-ROM images from CD-ROMs or create ISO files from files on a hard drive.

[0084] S104, When the device under test boots up based on the mobile storage device, a memory performance test is performed based on the system in the mobile storage device to obtain the test results.

[0085] Building upon S103, this step aims to perform memory performance testing on the system within the mobile storage device when the device under test boots up based on the mobile storage device, and obtain the test results.

[0086] Because the mobile storage device contains a system image file of the test environment, it can be booted directly from the mobile storage device without having to deploy it again on the device under test.

[0087] Furthermore, after deploying the system image file to a removable storage device, the following steps are also included:

[0088] The default boot order of the device under test is set to prioritize removable storage devices.

[0089] As can be seen, in this optional solution, to enable booting from the removable storage device on the device under test, the boot order of the device under test can be configured to prioritize the removable storage device for booting. Furthermore, the default boot order can be set differently depending on the device. However, all settings prioritize the removable storage device for booting, allowing direct use of the system image file on the removable storage device for testing.

[0090] Furthermore, this step may include:

[0091] Step 1: When the device under test starts up based on the mobile storage device, perform optimization settings based on the system optimization script in the mobile storage device;

[0092] Step 2: Once the tuning settings are complete, perform a memory performance test using a testing tool.

[0093] Step 3: When the memory performance test is completed, save the test results to the removable storage device.

[0094] As can be seen, this optional solution mainly describes how to conduct the test. In this optional solution, when the device under test boots from the removable storage device, the system tuning script on the removable storage device is used for tuning settings. Once the tuning settings are complete, a memory performance test is performed using a testing tool. When the memory performance test is complete, the test results are saved to the removable storage device.

[0095] In summary, this embodiment first deploys a test environment on the device, then packages the system files of the test environment into a system image file after the test environment runs successfully, and deploys the system image file on a mobile storage device. Finally, the mobile storage device is used to directly perform memory performance tests on other devices under test, without having to deploy a corresponding test environment for each device. This improves the efficiency of memory performance testing and lowers the testing threshold.

[0096] The following specific embodiment further illustrates a memory performance testing method provided in this application.

[0097] Please refer to Figure 2 , Figure 2 A flowchart illustrating another memory performance testing method provided in an embodiment of this application.

[0098] In this embodiment, the method may include:

[0099] S201, Install the basic system and test tools on the device to obtain the basic test environment; pre-store test scripts in the basic test environment and set the automatic test command at startup to obtain the test environment.

[0100] Specifically, on a general-purpose Hygon 3 platform server, insert a USB flash drive (32GB or larger is recommended) and install a minimal OS (operating system) image required for testing onto the USB drive using a suitable method such as PXE (Preboot Execution Environment) or DVD (Digital Video Disc). This involves deploying the software environment required for memory performance testing within the system, installing the test stream tools, pre-storing tuning test scripts, and configuring the system for automatic startup testing.

[0101] Furthermore, the memory testing methods for the HanGuang 3 platform include:

[0102] a.cd / stream / STREAM / ;

[0103] b.. / autorun-perf.sh.

[0104] Once the program finishes running, the last line of numbers will be the average of the 30 test results.

[0105] Furthermore, the pre-installed system tuning and testing commands include:

[0106] #echo always> / sys / kernel / mm / transparent_hugepage / enabled;

[0107] #echo always> / sys / kernel / mm / transparent_hugepage / defrag.

[0108] Furthermore, the system configuration commands for automated startup testing include:

[0109] #chmod +x / etc / rc.local;

[0110] #echo "stream test command">> / etc / rc.local.

[0111] S202, After the test environment is successfully running, the system files of the test environment are packaged into a system image file using a CD image tool.

[0112] Using UltraSO (also known as Rufus, a powerful and convenient tool for creating, editing, and converting CD-ROM image files; it can directly edit ISO files and extract files and directories from ISOs, as well as create CD-ROM images from CD-ROMs or create ISO files from files on a hard drive), back up the system files installed and configured in the first step and save them as ISO image files. The saved ISO files are indiscriminately copyable and can be batch-copied on different USB drives, enabling batch deployment during production line operations.

[0113] Steps for backing up system files on a USB drive using UltraISO:

[0114] 1. Launch UltraISO software.

[0115] 2. Click to open the target system's file directory.

[0116] 3. Click File -> Save As -> Select file properties as ISO -> Save.

[0117] You will then obtain the backup test system image file.

[0118] S203, The system image file is written to the removable storage device using an optical disc imaging tool.

[0119] After obtaining a replicable test system image file in S202, the system files are restored to the third-party USB drive by inserting a third-party USB drive and using the UltraISO tool, thus completing the creation of the test fixture.

[0120] Steps for restoring system files to a USB drive using UltraISO:

[0121] 1. Click "Open" to open the test system ISO that was backed up in step two.

[0122] 2. Click Start -> Write Disk Image -> Select the name of the USB drive to write to -> Write.

[0123] 3. Once the display is written, the test fixture will be obtained.

[0124] S204, When the device under test starts based on the mobile storage device, a memory performance test is performed based on the system in the mobile storage device to obtain the test results.

[0125] Specifically, the server to be tested is configured according to the test requirements. The test fixture is inserted into the server's USB port, and the server is powered on. The server is then booted from the USB drive using the ipmitool command by default. After the server automatically boots into the test fixture's system, it will automatically begin memory test optimization settings and start the stream memory performance test. After the test is completed, the test data can be automatically saved to the test fixture, and then the process continues to the next server for memory performance testing.

[0126] As can be seen, this embodiment first deploys a test environment on the device, then packages the system files of the test environment into a system image file after the test environment runs successfully, and deploys the system image file on a mobile storage device. Finally, the mobile storage device directly performs memory performance testing on other devices under test, without having to deploy a corresponding test environment for each device, thereby improving the efficiency of memory performance testing and lowering the testing threshold.

[0127] The memory performance testing apparatus provided in the embodiments of this application is described below. The memory performance testing apparatus described below can be referred to in correspondence with the memory performance testing method described above.

[0128] Please refer to Figure 3 , Figure 3 This is a schematic diagram of a memory performance testing device provided in an embodiment of this application.

[0129] In this embodiment, the device may include:

[0130] Test environment deployment module 100 is used to deploy the test environment on the device;

[0131] The image file packaging module 200 is used to package the system files of the test environment into a system image file after the test environment runs successfully;

[0132] The image file deployment module 300 is used to deploy system image files to mobile storage devices;

[0133] The test execution module 400 is used to perform memory performance tests based on the system in the mobile storage device when the device under test is started based on the mobile storage device, and obtain the test results.

[0134] Optionally, after deploying the system image file to the removable storage device, the process may also include:

[0135] The default boot order of the device under test is set to prioritize removable storage devices.

[0136] Optionally, the test execution module 400 is specifically used to perform optimization settings based on the system optimization script in the mobile storage device when the device under test is started based on the mobile storage device; when the optimization settings are completed, the memory performance test is performed through the test tool; when the memory performance test is completed, the test results are saved to the mobile storage device.

[0137] Optionally, the image file packaging module 200 is specifically used to start the CD image tool after the test environment runs successfully; select the file directory of the test environment system; and save the data in the file directory as a system image file through the CD image tool.

[0138] Optionally, the image file packaging module 200 is specifically used to package the system files of the test environment into a system image file using a CD image tool after the test environment has run successfully.

[0139] Optionally, the image file deployment module 300 is specifically used to write the system image file to a removable storage device using an optical disc imaging tool.

[0140] Optionally, the test environment deployment module 100 is specifically used to install the basic system on the device and install test tools to obtain the basic test environment; to pre-store test scripts in the basic test environment and set up automatic test instructions at startup to obtain the test environment.

[0141] This application also provides a terminal device, please refer to... Figure 4 , Figure 4 This application provides a schematic diagram of the structure of a terminal device, which may include:

[0142] Memory, used to store computer programs;

[0143] A processor, used to execute computer programs, can implement the steps of any of the memory performance testing methods described above.

[0144] like Figure 4 The diagram shows the structural composition of a terminal device, which may include a processor 10, a memory 11, a communication interface 12, and a communication bus 13. The processor 10, memory 11, and communication interface 12 all communicate with each other through the communication bus 13.

[0145] In this embodiment, the processor 10 may be a central processing unit (CPU), an application-specific integrated circuit, a digital signal processor, a field-programmable gate array, or other programmable logic devices.

[0146] The processor 10 can call programs stored in the memory 11. Specifically, the processor 10 can execute the operations in the embodiments of the memory performance testing method.

[0147] The memory 11 is used to store one or more programs. The programs may include program code, which includes computer operation instructions. In this embodiment, the memory 11 stores at least a program for implementing the following functions:

[0148] Deploy a test environment for the equipment;

[0149] Once the test environment is running successfully, the system files of the test environment will be packaged into a system image file;

[0150] Deploy the system image file to a mobile storage device;

[0151] When the device under test boots up based on the mobile storage device, a memory performance test is performed based on the system in the mobile storage device, and the test results are obtained.

[0152] In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; and the data storage area may store data created during use.

[0153] In addition, memory 11 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0154] Communication interface 12 can be an interface for the communication module, used to connect with other devices or systems.

[0155] Of course, it should be noted that, Figure 4 The structure shown does not constitute a limitation on the terminal device in the embodiments of this application. In practical applications, the terminal device may include more than Figure 4 More or fewer components as shown, or combinations of certain components.

[0156] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps of any of the memory performance testing methods described above.

[0157] The computer-readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0158] For a description of the computer-readable storage medium provided in this application, please refer to the above method embodiments; further details will not be repeated here.

[0159] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0160] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0161] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0162] The foregoing has provided a detailed description of a memory performance testing method, a memory performance testing apparatus, a terminal device, and a computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A memory performance testing method, characterized in that, include: Deploy a test environment for the equipment; the process of deploying the test environment includes installing the basic system and test tools on the equipment to obtain the basic test environment, pre-storing test scripts in the basic test environment, and setting up automatic power-on test commands to obtain the test environment. Once the test environment is running successfully, the system files of the test environment will be packaged into a system image file; Deploy the system image file to a mobile storage device; When the device under test boots up based on the mobile storage device, a memory performance test is performed based on the system in the mobile storage device, and the test results are obtained. When the device under test boots up based on the mobile storage device, a memory performance test is performed based on the system in the mobile storage device, and the test results are obtained, including: When the device under test is started based on the mobile storage device, the optimization settings are performed based on the system optimization script in the mobile storage device. Once the tuning settings are complete, perform a memory performance test using a testing tool. When the memory performance test is completed, the test results will be saved to the mobile storage device. Once the test environment is successfully running, the system files of the test environment will be packaged into a system image file, including: Once the test environment is running successfully, launch the CD image tool; Select the system file directory of the test environment; The data in the file directory is saved as the system image file using the optical disc imaging tool. Once the test environment is successfully running, the system files of the test environment will be packaged into a system image file, including: Once the test environment is running successfully, the system files of the test environment are packaged into a system image file using a CD image tool. Deploying the system image file to a mobile storage device includes: The system image file is written to the removable storage device using an optical disc imaging tool.

2. The memory performance testing method according to claim 1, characterized in that, After deploying the system image file to a removable storage device, the process also includes: The default startup order of the device under test is set to prioritize the startup of mobile storage devices.

3. The memory performance testing method according to claim 1, characterized in that, Deploy a test environment for the equipment, including: Install the basic system and test tools on the equipment to obtain the basic test environment; The test environment is obtained by pre-storing test scripts in the basic test environment and setting up automatic test commands at startup.

4. A memory performance testing device, characterized in that, include: The test environment deployment module is used to deploy the test environment on the device. The process of deploying the test environment includes installing the basic system and test tools on the device to obtain the basic test environment, pre-storing test scripts in the basic test environment, and setting up automatic test instructions at startup to obtain the test environment. The image file packaging module is used to package the system files of the test environment into a system image file after the test environment runs successfully; The image file deployment module is used to deploy the system image file to a mobile storage device; The test execution module is used to perform memory performance tests based on the system in the mobile storage device when the device under test is started based on the mobile storage device, and obtain test results. The test execution module is specifically used to perform optimization settings based on the system optimization script in the mobile storage device when the device under test boots up from the mobile storage device; when the optimization settings are completed, it performs memory performance tests through the testing tool; when the memory performance tests are completed, it saves the test results to the mobile storage device. The image file packaging module is specifically used to launch the CD image tool after the test environment has run successfully; select the file directory of the test environment's system; and use the CD image tool to save the data in the file directory as a system image file. The image file packaging module is specifically used to package the system files of the test environment into a system image file using a CD image tool after the test environment has run successfully. The image file deployment module is specifically used to write system image files to removable storage devices using optical disc imaging tools.

5. A terminal device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the memory performance testing method as described in any one of claims 1 to 3 when executing the computer program.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the memory performance testing method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Moonlet ground testing method based on virtualization computer system

    CN104318091A

  • Memory testing method and system

    CN110491440A