Dynamic testing system for computer memory
Technical Field
The invention relates to the technical field of computer memory monitoring, in particular to a computer memory dynamic test system.
Background
Computers are common devices, currently, the monitoring of computer memories utilizes manual acquisition of memory attributes, and process files generated in the execution process of the computers are acquired from the memory attributes, the process files are generally process data of different forms generated by system updating, system monitoring, computer task execution and user operation, generally, when the operations of reading, writing, deleting and the like of the process data are executed, users need to operate the process data, and for non-professional people, the process data are identified and cleared with certain difficulty.
Disclosure of Invention
In view of the above, the present invention is directed to a dynamic test system for computer memory, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
the computer memory dynamic test system includes:
the monitoring module is arranged between the CPU and the computer memory and used for sending a monitoring command to the information reading and writing module under the control of the CPU according to a set period;
the information reading and writing module executes monitoring reading of the computer memory after receiving the monitoring command, and sends an instruction to the data backup module after the monitoring reading of the computer memory exceeds a set threshold;
the data backup module receives the feedback instruction, acquires the read-write permission of the computer memory under the control of the CPU to read the process file recorded in the computer memory, backs up the process file to the virtual cache module, and starts a deletion command under the control of the CPU to delete the process file recorded in the computer memory in the current period after the backup is finished;
the analysis module loads the process files in the virtual cache module under the control of the CPU, processes and analyzes the process files, and marks out the process files formed by system updating, system monitoring and computer task execution;
and the migration module receives the process file marked in the analysis module under the control of the CPU and migrates the marked process file to a root directory preset in a computer hard disk.
Further, the virtual cache module is a storage unit established outside the memory of the computer;
or, under the control of CPU, the memory unit is divided from the computer memory;
after the storage unit is established, embedding a monitoring program into the storage unit through a data interface of a CPU (Central processing Unit); the monitoring program is initially installed by keying in an initialization command under the control of the CPU, and the control program which is preset to be accessed and read is deployed and installed in the memory of the computer under the open command of the CPU in the process of initial installation to form the information reading and writing module.
Furthermore, the information reading and writing module has the authority of reading and writing the computer memory according to the open command of the CPU.
Further, the data backup module has:
the read-write permission unit is used for sending read-write permission of the acquired computer memory to the CPU according to the feedback instruction;
the file backup unit is used for reading the process file recorded in the computer memory and backing up the process file to the virtual cache module after the read-write permission of the computer memory permitted by the CPU is obtained;
the deleting unit is used for sending a deleting command to control the deleting unit to delete the process file recorded in the memory of the computer in the current period after the backup is finished;
and the process monitoring unit is used for automatically filtering the process file and marking the process file if the process file is monitored to be deleted unsuccessfully in the process of deleting the process file recorded in the current period computer memory by the deleting unit executing the deleting command, and simultaneously feeding the marking command back to the analysis module.
Further, the analysis module has:
the loading unit is used for loading the process files in the virtual cache module to the processing unit according to the received file time sequence;
the processing unit is used for performing attribute read-write operation on the process file;
an analysis unit for analyzing attributes of the process files to mark the process files formed by the system update, the system monitoring, and the computer task execution, and the cache files other than the process files.
Furthermore, when the analysis unit marks the process file according to the attribute of the analysis process file, compressing the process file formed by system updating, system monitoring and computer task execution, writing the execution authority of the compressed file in the compression process, and migrating the compressed file to a first directory preset in a computer hard disk in the migration execution process;
and converting the format of the cache files except the process file to a file with a uniform format and transferring the file to a second directory preset in a hard disk of the computer.
The invention provides a system capable of automatically monitoring a computer memory, which is a storage unit established outside the computer memory; or, under the control of CPU, the memory unit is divided from the computer memory; after the storage unit is established, embedding a monitoring program into the storage unit through a data interface of a CPU (Central processing Unit); the monitoring program is initially installed by keying in an initialization command under the control of a CPU, the control program which is preset to be accessed and read is deployed and installed in a computer memory under the open command of the CPU in the initial installation process to form an information reading and writing module, and the monitoring module sends a monitoring command to the information reading and writing module under the control of the CPU according to a set period; the information reading and writing module executes monitoring reading of the computer memory after receiving the monitoring command, and sends an instruction to the data backup module after the monitoring reading of the computer memory exceeds a set threshold; the data backup module receives the feedback instruction, acquires the read-write permission of the computer memory under the control of the CPU to read the process file recorded in the computer memory, backs up the process file to the virtual cache module, and starts a deletion command under the control of the CPU to delete the process file recorded in the computer memory in the current period after the backup is finished; meanwhile, loading the process files in the virtual cache module under the control of the CPU, processing and analyzing the process files, and marking the process files formed by system updating, system monitoring and computer task execution; and migrating the marked process file to a preset root directory in a hard disk of the computer.
Therefore, the saved file can be obtained under the root directory preset in the hard disk of the computer, and complex operation is not needed.
Drawings
FIG. 1 is a schematic diagram of the general framework of the present invention;
fig. 2 is a detailed framework principle schematic diagram of the present invention.
Detailed Description
The present invention is described in detail below with reference to the accompanying drawings, which refer to fig. 1 to 2.
Referring to fig. 1 to 2, the present invention provides a dynamic test system for a computer memory, including:
the monitoring module is arranged between the CPU and the computer memory and used for sending a monitoring command to the information reading and writing module under the control of the CPU according to a set period;
the information reading and writing module receives the monitoring command and then executes monitoring reading on the computer memory, and when the monitoring reading of the computer memory exceeds a set threshold value, the information reading and writing module sends an instruction to the data backup module;
the data backup module receives the feedback instruction, acquires the read-write permission of the computer memory under the control of the CPU to read the process file recorded in the computer memory, backs up the process file to the virtual cache module, and starts a deletion command under the control of the CPU to delete the process file recorded in the computer memory in the current period after the backup is finished; the virtual cache module is a storage unit established outside a computer memory; or, under the control of CPU, the memory unit is divided from the computer memory; after the storage unit is established, embedding a monitoring program into the storage unit through a data interface of a CPU (Central processing Unit); the monitoring program is initially installed by keying in an initialization command under the control of the CPU, the control program which is preset to be accessed and read is deployed and installed in the internal memory of the computer under the open command of the CPU in the initial installation process to form the information reading and writing module, and the information reading and writing module has the right of reading and writing the internal memory of the computer formed according to the open command of the CPU.
The analysis module loads the process files in the virtual cache module under the control of the CPU, processes and analyzes the process files, and marks out the process files formed by system updating, system monitoring and computer task execution;
and the migration module receives the process file marked in the analysis module under the control of the CPU and migrates the marked process file to a root directory preset in a computer hard disk.
In the above, the data backup module includes:
the read-write permission unit is used for sending read-write permission of the acquired computer memory to the CPU according to the feedback instruction;
the file backup unit is used for reading the process file recorded in the computer memory and backing up the process file to the virtual cache module after the read-write permission of the computer memory permitted by the CPU is obtained;
the deleting unit is used for sending a deleting command to control the deleting unit to delete the process file recorded in the memory of the computer in the current period after the backup is finished;
and the process monitoring unit is used for automatically filtering the process file and marking the process file if the process file is monitored to be deleted unsuccessfully in the process of deleting the process file recorded in the current period computer memory by the deleting unit executing the deleting command, and simultaneously feeding the marking command back to the analysis module.
In the above, the analysis module has:
the loading unit is used for loading the process files in the virtual cache module to the processing unit according to the received file time sequence;
the processing unit is used for performing attribute read-write operation on the process file;
an analysis unit for analyzing attributes of the process files to mark process files formed by system update, system monitoring, and computer task execution, and cache files other than the process files.
In the above, when the analysis unit performs marking according to the attribute of the analysis process file, the analysis unit compresses the process file formed by system update, system monitoring and computer task execution, writes the execution authority of the compressed file in the compression process, and migrates the compressed file to a first root directory preset in a computer hard disk in the migration execution process;
and converting the format of the cache files except the process file to a file with a uniform format and transferring the file to a second directory preset in a hard disk of the computer.
Example 1
In the embodiment, a virtual memory is configured in a computer.
Because the existing computer has the function of memory expansion, the invention can add a memory hardware (adding a memory bank) or expand a memory block in the original hard disk as a virtual memory, the virtual memory is a storage unit built outside the memory of the computer, and after the storage unit is built, a monitoring program is embedded into the storage unit through a data interface of a CPU; the monitoring program is initialized and installed by keying in an initialization command under the control of a CPU, a control program which is preset to be accessed into a read-write mode is deployed and installed in a computer memory under an open command of the CPU in the initialization and installation process to form an information read-write module, the information read-write module has the right of performing read-write operation on the computer memory according to the open command of the CPU, and the monitoring module sends a monitoring command to the information read-write module under the control of the CPU according to a set period; the information reading and writing module executes monitoring reading of the computer memory after receiving the monitoring command, and sends an instruction to the data backup module after the monitoring reading of the computer memory exceeds a set threshold; the data backup module receives the feedback instruction, acquires the read-write permission of the computer memory under the control of the CPU to read the process file recorded in the computer memory, backs up the process file to the virtual cache module, and starts a deletion command under the control of the CPU to delete the process file recorded in the computer memory in the current period after the backup is finished; meanwhile, loading the process files in the virtual cache module under the control of the CPU, processing and analyzing the process files, and marking the process files formed by system updating, system monitoring and computer task execution; and migrating the marked process file to a preset root directory in a hard disk of the computer.
Example 2
In the embodiment, a monitoring program is embedded into a storage unit which is divided from a computer memory under the control of a CPU (central processing unit) through a data interface of the CPU after the storage unit is established; the monitoring program is initially installed by keying in an initialization command under the control of a CPU, a control program which is preset to be accessed into a read-write mode is deployed and installed in a computer memory under an open command of the CPU in the initial installation process to form an information read-write module, the information read-write module has the right of performing read-write operation on the computer memory according to the open command of the CPU, and the monitoring module sends a monitoring command to the information read-write module under the control of the CPU according to a set period; the information reading and writing module executes monitoring reading of the computer memory after receiving the monitoring command, and sends an instruction to the data backup module after the monitoring reading of the computer memory exceeds a set threshold; the data backup module receives the feedback instruction, acquires the read-write permission of the computer memory under the control of the CPU to read the process file recorded in the computer memory, backs up the process file to the virtual cache module, and starts a deletion command under the control of the CPU to delete the process file recorded in the computer memory in the current period after the backup is finished; meanwhile, loading the process files in the virtual cache module under the control of the CPU, processing and analyzing the process files, and marking the process files formed by system updating, system monitoring and computer task execution; and migrating the marked process file to a preset root directory in a hard disk of the computer.
The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts of the present invention. The foregoing is only a preferred embodiment of the present invention, and it should be noted that there are objectively infinite specific structures due to the limited character expressions, and it will be apparent to those skilled in the art that a plurality of modifications, decorations or changes may be made without departing from the principle of the present invention, and the technical features described above may be combined in a suitable manner; such modifications, variations, combinations, or adaptations of the invention using its spirit and scope, as defined by the claims, may be directed to other uses and embodiments.