CN111367745A - Memory pressure testing method and system without support of operating system and related components - Google Patents
Memory pressure testing method and system without support of operating system and related components Download PDFInfo
- Publication number
- CN111367745A CN111367745A CN202010177019.9A CN202010177019A CN111367745A CN 111367745 A CN111367745 A CN 111367745A CN 202010177019 A CN202010177019 A CN 202010177019A CN 111367745 A CN111367745 A CN 111367745A
- Authority
- CN
- China
- Prior art keywords
- memory pressure
- memory
- tool
- host
- pressure test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 227
- 238000000034 method Methods 0.000 claims abstract description 55
- 230000008569 process Effects 0.000 claims abstract description 23
- 238000010998 test method Methods 0.000 claims abstract description 7
- 238000004590 computer program Methods 0.000 claims description 10
- 238000009662 stress testing Methods 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 7
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000002349 favourable effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/073—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2247—Verification or detection of system hardware configuration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a memory pressure test method without support of an operating system, which comprises the following steps: installing a preset memory pressure testing tool in a non-system disk of a host to be tested; compiling a boot entry of a memory pressure test tool after the host is restarted and the MBR boot of the system disk is read by the BIOS; and operating the memory pressure testing tool based on the guide item of the memory pressure testing tool to test the memory pressure. By the aid of the scheme, occupied time of the system disk during memory pressure testing is reduced, and convenience is brought to development processes of workers. The application also provides a memory pressure test system without the support of the operating system and related components, and the memory pressure test system has corresponding technical effects.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and a system for testing memory pressure without support of an operating system, and related components.
Background
With the rapid development of scientific technology, technologies such as artificial intelligence and the internet of things are more and more common in the life of people. Large data applications require high-end servers to support. The memory is an important component of the server, and the operation data of the processor and the data exchanged by the external memory are both temporarily stored in the memory, so that the pressure test of the memory is one of important test indexes of the stability of the server.
At present, when a memory pressure test is performed, a memory test tool, such as a memtest tool, a stressaptest tool, and the like, which are operated under the Linux system, is generally operated under the Linux system. Taking the memtest tool as an example, the current memory pressure test scheme is to install the memtest tool in a system disk under a Linux system, and then compile, install and run the memtest tool. Specifically, after the memtest tool is installed, the BIOS (Basic Input Output System) performs self-check and obtains the first Boot device according to the setting of the BIOS, so as to read the Boot of the MBR (Master Boot Record) of the first Boot device. Then, an OS (Operating System) is loaded, specifically including loading a kernel, calling an init process, obtaining running level information, then executing an rc.sysinit file, starting each service in the kernel, and finally executing an/etc/rc.d/rc.local file. After the OS is loaded, the memtest tool is run by the OS to perform a memory stress test, for example, a memory stress test of 48 hours is usually performed.
However, during the whole process of performing the memory pressure test, for example, the 48-hour memory pressure test as described above, the system disk cannot be taken away for other purposes because the test is performed by the OS running the memtest tool. However, in the server development situation, the situation that the staff needs to take the system disk away for other project purposes often occurs, and the development efficiency is reduced due to long-time occupation of the system disk by the memory pressure test.
In summary, how to effectively reduce the occupied time of the system disk during the memory pressure test is a technical problem that needs to be solved urgently by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a memory pressure test method, a memory pressure test system and related components without support of an operating system, so as to effectively reduce the occupied time of a system disk during memory pressure test.
In order to solve the technical problems, the invention provides the following technical scheme:
a memory pressure test method without support of an operating system comprises the following steps:
installing a preset memory pressure testing tool in a non-system disk of a host to be tested;
compiling a boot entry of the memory pressure test tool after the host is restarted and the MBR boot of the system disk is read by the BIOS;
and operating the memory pressure testing tool based on the guide item of the memory pressure testing tool to test the memory pressure.
Preferably, the method further comprises the following steps:
and receiving a memory pressure test item adjusting instruction, and adjusting the test items in the memory pressure test tool according to the memory pressure test item adjusting instruction.
Preferably, after the host is restarted and the MBR boot of the system disk is read by the BIOS, before compiling the boot entry of the memory pressure test tool, the method further includes:
and when the kernel version of the host is judged to be inconsistent with the kernel version generated by the memory pressure testing tool, exiting the memory pressure testing process and outputting first prompt information.
Preferably, after the host is restarted and the MBR boot of the system disk is read by the BIOS, before compiling the boot entry of the memory pressure test tool, the method further includes:
and when the initrd file of the host is judged to be inconsistent with the initrd file generated by the memory pressure testing tool, exiting the memory pressure testing process and outputting second prompt information.
Preferably, after determining that the kernel version of the host is consistent with the kernel version generated by the memory pressure testing tool, and determining that the initrd file of the host is consistent with the initrd file generated by the memory pressure testing tool, before compiling the boot entry of the memory pressure testing tool, the method further includes:
judging whether the GRUB configuration file of the host is consistent with the GRUB configuration file generated by the memory pressure testing tool or not, and judging whether the LILO configuration file of the host is consistent with the LILO configuration file generated by the memory pressure testing tool or not;
if the two items are consistent, compiling a guide item of the memory pressure testing tool;
if at least one of the two items is inconsistent, the memory pressure testing process is exited and third prompt information is output.
Preferably, the memory pressure test tool is memtest86 +.
A memory stress testing system without operating system support, comprising:
the memory pressure test tool mounting unit is used for mounting a preset memory pressure test tool in a non-system disk of a host to be tested;
a boot entry compiling unit, configured to compile a boot entry of the memory pressure test tool after the host is restarted and the MBR boot of the system disk is read by the BIOS;
and the memory pressure test execution unit is used for operating the memory pressure test tool based on the guide item of the memory pressure test tool to perform the memory pressure test.
Preferably, the method further comprises the following steps:
and the test item adjusting unit is used for receiving the memory pressure test item adjusting instruction and adjusting the test items in the memory pressure test tool according to the memory pressure test item adjusting instruction.
A memory pressure testing device without support of an operating system comprises:
a memory for storing a computer program;
a processor configured to execute the computer program to implement the steps of the method for testing memory pressure without support of an operating system.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the above-described method for testing memory pressure without support of an operating system.
By applying the technical scheme provided by the embodiment of the invention, the memory pressure test tool can be directly operated on the hard disk, namely, the memory pressure test without the support of an operating system is realized. Specifically, the memory pressure testing tool is installed in the non-system disk of the host to be tested, so that when the memory pressure testing tool is subsequently utilized to perform the memory pressure testing, the system disk is taken away, and the operation of the memory pressure testing tool is not influenced. Meanwhile, the memory pressure testing tool does not need to run based on an operating system, and the specific mode is that after the host is restarted and the BIOS reads the MBR boot of the system disk, the boot item of the memory pressure testing tool is compiled, so that when the memory pressure testing tool is run, the compiled boot item of the memory pressure testing tool runs based on the program of the memory pressure testing tool, and the operating system does not need to run, and therefore the memory pressure testing tool can be directly run on the hard disk. And because this application is the memory pressure test instrument of direct operation on the hard disk, need not operating system's support, consequently when carrying out memory pressure test, the system dish can be taken away and be used for other project usage, and the scheme of this application is favorable to reducing the occupation time to the system dish when memory pressure test promptly, provides convenience for staff's development process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for testing memory pressure without OS support according to the present invention;
FIG. 2 is a schematic diagram of a memory stress test system without OS support according to the present invention;
FIG. 3 is a schematic structural diagram of a memory stress test apparatus without OS support according to the present invention.
Detailed Description
The core of the invention is to provide a memory pressure test method without support of an operating system, which is beneficial to reducing the occupied time of a system disk during memory pressure test and provides convenience for development processes of workers.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a method for testing memory pressure without os support according to the present invention, where the method for testing memory pressure without os support may include the following steps:
step S101: and installing a preset memory pressure testing tool in the non-system disk of the host to be tested.
Specifically, a memory pressure test tool may be installed in a Linux system, and the specific type of the memory pressure test tool may be set and adjusted according to actual needs, for example, in an embodiment of the present invention, the memory pressure test tool may be selected as a memtest86+ with a relatively complete function and a relatively wide application.
Of course, in addition to installing the memory pressure test tool in the Linux system, the memory pressure test tool may also be installed in other systems, for example, memtest86+ may be installed in Legacy mode of the RHEL system. It should be emphasized that the memory pressure test method without the os support described in this application refers to that when the memory pressure test is specifically executed in step S103, the memory pressure test tool may be directly run on the hard disk without the support of the os, and when the memory pressure test tool is installed in step S101, the system disk is still needed.
It can be understood that, since the solution of the present application needs to support that the system disk can be taken away for other project purposes when the memory pressure test is performed in step S103, the system disk needs to be installed in the non-system disk of the host to be tested when the memory pressure test tool is installed.
Step S102: after the host reboots and the BIOS reads the MBR boot of the system disk, the boot entry for the memory stress test tool is compiled.
After the memory pressure test tool is installed in the non-system disk of the host to be tested, the host needs to be restarted. After the host reboots, the BIOS typically checks itself and retrieves the first boot device, which is typically a system disk by default, based on the BIOS's own settings. After the system disk is acquired, the BIOS reads the boot of the MBR of the system disk.
In the conventional scheme, after the BIOS reads the boot of the MBR of the system disk, the subsequent OS boot process is executed.
Further, in order to determine whether the memory pressure testing tool is installed correctly, after the host is restarted and the BIOS reads the MBR boot of the system disk, the kernel version may be determined before the boot entry of the memory pressure testing tool is compiled.
Specifically, when the kernel version of the host and the kernel version generated by the memory pressure testing tool are judged to be inconsistent, it is indicated that the memory pressure testing tool is possibly installed incorrectly, and the implementation mode of the application can quit the memory pressure testing process and output first prompt information, so that a worker can find the abnormal condition in time.
In addition, in addition to determining the kernel version, in another embodiment of the present invention, determining the initrd file, that is, after the host reboots and the BIOS reads the MBR boot of the system disk, and before compiling the boot entry of the memory pressure test tool, further includes:
and when the initrd file of the host is judged to be inconsistent with the initrd file generated by the memory pressure testing tool, exiting the memory pressure testing process and outputting second prompt information.
The specific content and form of the first prompt message and the second prompt message can be set and adjusted according to needs, and in practical application, the judgment of the kernel version and the judgment sequence of the initrd file can be set and adjusted according to needs, or can be executed simultaneously. For example, in the embodiments disclosed in the following codes, the process of the memory pressure test of the present application is terminated when the kernel version and the initrd file are judged to be correct or incorrect based on the bootprefix program in the memory pressure test tool, and the kernel version or the initrd file is judged to be incorrect.
Further, in an embodiment of the present invention, in order to ensure that the memory pressure test can be correctly performed subsequently, considering that the GRUB (GRand UnifiedBootloader) configuration file and the LILO (Linux Loader, a Linux boot Loader) configuration file are also important files required by the memory pressure test tool when operating, after determining that the kernel version of the host is consistent with the kernel version generated by the memory pressure test tool, and determining that the initrd file of the host is consistent with the initrd file generated by the memory pressure test tool, before compiling the boot entry of the memory pressure test tool, the GRUB configuration file and the LILO configuration file are also judged correctly. Specifically, the method comprises the following steps:
judging whether a GRUB configuration file of the host is consistent with a GRUB configuration file generated by a memory pressure testing tool or not, and judging whether an LILO configuration file of the host is consistent with an LILO configuration file generated by the memory pressure testing tool or not;
if the two items are consistent, namely when the GRUB configuration file of the host is judged to be consistent with the GRUB configuration file generated by the memory pressure testing tool, and the LILO configuration file of the host is judged to be consistent with the LILO configuration file generated by the memory pressure testing tool, the subsequent operation of compiling the guide item of the memory pressure testing tool can be executed.
Correspondingly, if at least one of the two items is inconsistent, the memory pressure test process is exited and third prompt information is output.
In one embodiment, the code for making the positive and negative judgments for the GRUB configuration file and the LILO configuration file may be as follows:
in particular, the bootstrap of the memory pressure testing tool is usually compiled after determining that the kernel version, initrd file, GRUB configuration file, and LILO configuration file are all correct. For example, when the memory pressure test tool is memtest86+, the compiled guide item of the memory pressure test tool may specifically be: compiling the initrd file generates a lead item memtest86+ grub.
The code in one particular embodiment may be expressed as:
step S103: and operating the memory pressure testing tool based on the guide item of the memory pressure testing tool to test the memory pressure.
Because the guide item of the memory pressure testing tool is compiled, the memory pressure testing tool can be directly operated based on the guide item of the memory pressure testing tool without the support of an operating system to carry out memory pressure testing, and the memory pressure testing tool can be directly operated on the hard disk.
When performing a memory stress test, the memory stress test tool usually performs the test based on reading the memory and writing the memory. Of course, the specific test items may refer to items of a conventional memory pressure test, and the test items may also be adjusted as needed, that is, in an embodiment of the present invention, the method may further include:
and receiving a memory pressure test item adjusting instruction, and adjusting the test items in the memory pressure test tool according to the memory pressure test item adjusting instruction.
Through adjusting the test items in the memory pressure test tool, the flexibility of the memory pressure test is improved.
By applying the technical scheme provided by the embodiment of the invention, the memory pressure test tool can be directly operated on the hard disk, namely, the memory pressure test without the support of an operating system is realized. Specifically, the memory pressure testing tool is installed in the non-system disk of the host to be tested, so that when the memory pressure testing tool is subsequently utilized to perform the memory pressure testing, the system disk is taken away, and the operation of the memory pressure testing tool is not influenced. Meanwhile, the memory pressure testing tool does not need to run based on an operating system, and the specific mode is that after the host is restarted and the BIOS reads the MBR boot of the system disk, the boot item of the memory pressure testing tool is compiled, so that when the memory pressure testing tool is run, the compiled boot item of the memory pressure testing tool runs based on the program of the memory pressure testing tool, and the operating system does not need to run, and therefore the memory pressure testing tool can be directly run on the hard disk. And because this application is the memory pressure test instrument of direct operation on the hard disk, need not operating system's support, consequently when carrying out memory pressure test, the system dish can be taken away and be used for other project usage, and the scheme of this application is favorable to reducing the occupation time to the system dish when memory pressure test promptly, provides convenience for staff's development process.
Corresponding to the above method embodiments, the embodiment of the present invention further provides a memory pressure test system without support of an operating system, which can be referred to in correspondence with the above.
Referring to fig. 2, a schematic structural diagram of a memory pressure testing system without support of an operating system in the present invention is shown, including:
a memory pressure test tool mounting unit 201, configured to mount a preset memory pressure test tool in a non-system disk of a host to be tested;
a boot entry compiling unit 202, configured to compile a boot entry of the memory pressure test tool after the host is restarted and the MBR boot of the system disk is read by the BIOS;
the memory pressure test execution unit 203 is configured to run the memory pressure test tool based on the leading item of the memory pressure test tool to perform a memory pressure test.
In one embodiment of the present invention, the method further comprises:
and the test item adjusting unit is used for receiving the memory pressure test item adjusting instruction and adjusting the test items in the memory pressure test tool according to the memory pressure test item adjusting instruction.
In an embodiment of the present invention, after the host is restarted and the MBR boot of the system disk is read by the BIOS, before the boot item compiling unit 202 compiles the boot item of the memory pressure test tool, the method further includes:
and the first judgment unit is used for exiting the memory pressure test process and outputting first prompt information when the kernel version of the host is judged to be inconsistent with the kernel version generated by the memory pressure test tool.
In an embodiment of the present invention, after the host is restarted and the MBR boot of the system disk is read by the BIOS, before the boot item compiling unit 202 compiles the boot item of the memory pressure test tool, the method further includes:
and the second judging unit is used for exiting the memory pressure testing process and outputting second prompt information when the initrd file of the host is judged to be inconsistent with the initrd file generated by the memory pressure testing tool.
In an embodiment of the present invention, after the first determining unit determines that the kernel version of the host is consistent with the kernel version generated by the memory pressure testing tool, and the second determining unit determines that the initrd file of the host is consistent with the initrd file generated by the memory pressure testing tool, before the booting item compiling unit 202 compiles the booting item of the memory pressure testing tool, the method further includes:
a third judging unit, configured to judge whether a GRUB configuration file of the host is consistent with a GRUB configuration file generated by the memory pressure testing tool, and judge whether an LILO configuration file of the host is consistent with an LILO configuration file generated by the memory pressure testing tool;
if the two items are consistent, the guide item compiling unit 202 is triggered to compile the guide item of the memory pressure test tool;
if at least one of the two items is inconsistent, the memory pressure testing process is exited and third prompt information is output.
In one embodiment of the invention, the memory pressure test tool is memtest86 +.
Corresponding to the above method and system embodiments, the present invention further provides an apparatus for testing a memory pressure without support of an operating system and a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the steps of the method for testing a memory pressure without support of an operating system in any of the above embodiments. A computer-readable storage medium as referred to herein may include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The memory pressure testing device without the support of the operating system can comprise:
a memory 301 for storing a computer program;
the processor 302 is configured to execute a computer program to implement the steps of the method for testing memory pressure without support of the os in any of the above embodiments.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (10)
1. A memory pressure test method without support of an operating system is characterized by comprising the following steps:
installing a preset memory pressure testing tool in a non-system disk of a host to be tested;
compiling a boot entry of the memory pressure test tool after the host is restarted and the MBR boot of the system disk is read by the BIOS;
and operating the memory pressure testing tool based on the guide item of the memory pressure testing tool to test the memory pressure.
2. The method of claim 1, further comprising:
and receiving a memory pressure test item adjusting instruction, and adjusting the test items in the memory pressure test tool according to the memory pressure test item adjusting instruction.
3. The method of claim 1, further comprising, after the host is restarted and the BIOS reads the MBR boot of the system disk, before compiling the boot entry of the memory pressure test tool:
and when the kernel version of the host is judged to be inconsistent with the kernel version generated by the memory pressure testing tool, exiting the memory pressure testing process and outputting first prompt information.
4. The method of claim 3, further comprising, after the host reboots and the BIOS reads the MBR boot of the system disk, before compiling the boot entry of the memory stress test tool, the method further comprising:
and when the initrd file of the host is judged to be inconsistent with the initrd file generated by the memory pressure testing tool, exiting the memory pressure testing process and outputting second prompt information.
5. The method of claim 4, wherein after determining that the kernel version of the host is consistent with the kernel version generated by the memory pressure testing tool and determining that the initrd file of the host is consistent with the initrd file generated by the memory pressure testing tool, before compiling the boot entry of the memory pressure testing tool, the method further comprises:
judging whether the GRUB configuration file of the host is consistent with the GRUB configuration file generated by the memory pressure testing tool or not, and judging whether the LILO configuration file of the host is consistent with the LILO configuration file generated by the memory pressure testing tool or not;
if the two items are consistent, compiling a guide item of the memory pressure testing tool;
if at least one of the two items is inconsistent, the memory pressure testing process is exited and third prompt information is output.
6. The method of claim 1, wherein the memory pressure test tool is memtest86 +.
7. A memory stress testing system without os support, comprising:
the memory pressure test tool mounting unit is used for mounting a preset memory pressure test tool in a non-system disk of a host to be tested;
a boot entry compiling unit, configured to compile a boot entry of the memory pressure test tool after the host is restarted and the MBR boot of the system disk is read by the BIOS;
and the memory pressure test execution unit is used for operating the memory pressure test tool based on the guide item of the memory pressure test tool to perform the memory pressure test.
8. The os-unsupported memory stress test system of claim 7, further comprising:
and the test item adjusting unit is used for receiving the memory pressure test item adjusting instruction and adjusting the test items in the memory pressure test tool according to the memory pressure test item adjusting instruction.
9. A device for testing memory pressure without os support, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method for testing memory pressure without os support as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of testing memory pressure without os support of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010177019.9A CN111367745B (en) | 2020-03-13 | 2020-03-13 | Memory pressure testing method and system without support of operating system and related components |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010177019.9A CN111367745B (en) | 2020-03-13 | 2020-03-13 | Memory pressure testing method and system without support of operating system and related components |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111367745A true CN111367745A (en) | 2020-07-03 |
CN111367745B CN111367745B (en) | 2022-08-02 |
Family
ID=71207327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010177019.9A Active CN111367745B (en) | 2020-03-13 | 2020-03-13 | Memory pressure testing method and system without support of operating system and related components |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111367745B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111949529A (en) * | 2020-08-06 | 2020-11-17 | 曙光信息产业(北京)有限公司 | System debugging method and device, computer equipment and storage medium |
CN113468009A (en) * | 2021-07-21 | 2021-10-01 | 宁畅信息产业(北京)有限公司 | Pressure testing method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090113249A1 (en) * | 2007-10-24 | 2009-04-30 | Inventec Corporation | Stress testing method of file system |
CN103309706A (en) * | 2013-05-24 | 2013-09-18 | 中标软件有限公司 | Memory file system preparation method and unit based on Linux operation system |
CN110491440A (en) * | 2019-07-02 | 2019-11-22 | 深圳市金泰克半导体有限公司 | A kind of internal storage testing method and system |
-
2020
- 2020-03-13 CN CN202010177019.9A patent/CN111367745B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090113249A1 (en) * | 2007-10-24 | 2009-04-30 | Inventec Corporation | Stress testing method of file system |
CN103309706A (en) * | 2013-05-24 | 2013-09-18 | 中标软件有限公司 | Memory file system preparation method and unit based on Linux operation system |
CN110491440A (en) * | 2019-07-02 | 2019-11-22 | 深圳市金泰克半导体有限公司 | A kind of internal storage testing method and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111949529A (en) * | 2020-08-06 | 2020-11-17 | 曙光信息产业(北京)有限公司 | System debugging method and device, computer equipment and storage medium |
CN111949529B (en) * | 2020-08-06 | 2024-03-22 | 曙光信息产业(北京)有限公司 | System debugging method, device, computer equipment and storage medium |
CN113468009A (en) * | 2021-07-21 | 2021-10-01 | 宁畅信息产业(北京)有限公司 | Pressure testing method and device, electronic equipment and storage medium |
CN113468009B (en) * | 2021-07-21 | 2024-05-24 | 宁畅信息产业(北京)有限公司 | Pressure testing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111367745B (en) | 2022-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6353928B1 (en) | First run installer | |
CN110096314B (en) | Interface initialization method, device, equipment and computer readable storage medium | |
US7107588B2 (en) | System and method for installing window installer service without rebooting | |
US20140310698A1 (en) | Apparatus and method for upgrading firmware of mobile terminal | |
US20040088694A1 (en) | Systems and methods for updating software | |
CN110673924B (en) | Multi-architecture container cloud mirror image selection method, device, equipment and storage medium | |
CN111367745B (en) | Memory pressure testing method and system without support of operating system and related components | |
US8171272B1 (en) | Critical pre-OS driver verification | |
US20060190933A1 (en) | Method and apparatus for quickly developing an embedded operating system through utilizing an automated building framework | |
US7290250B2 (en) | System and method for determining when an EJB compiler needs to be executed | |
CN113377586B (en) | Automatic detection method and device for server and storage medium | |
CN110286953B (en) | Method and device for starting embedded system, embedded device and storage medium | |
CN115994003A (en) | Processing method and processing device for shared object in operating system | |
CN113127015B (en) | Mounting method and device and electronic equipment | |
CN111258617B (en) | Electronic equipment | |
CN114969720A (en) | Installation method and device of android application, storage medium and computer equipment | |
CN112463262A (en) | Android system GPS module self-adaption method and terminal | |
CN116107673A (en) | Screen adaptation method, vehicle-mounted terminal and computer storage medium | |
CN115113912A (en) | Method, apparatus and computer program product for composing modular firmware | |
WO2022050938A1 (en) | Firmware event recovery | |
CN111367537B (en) | Installation method and device of device driver, computer device and storage medium | |
CN106201546B (en) | Full-scale formatting method and system for large disks in linux system installation processes | |
CN111782282B (en) | Start program loading method and device, electronic equipment and storage medium | |
CN116991485A (en) | Operating system starting method and device, electronic equipment and readable storage medium | |
CN109901844B (en) | Guiding method suitable for different processors |
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 |