Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Memory monitoring device and method for dynamically monitoring mistaken heap memory usage

A memory monitoring and dynamic monitoring technology, applied in the computer field, can solve problems such as not being suitable for embedded systems, affecting software running speed, occupying a lot of system resources, etc., achieving good promotion and application value, avoiding system overhead, and high execution efficiency Effect

Active Publication Date: 2017-09-05
SHANDONG INSPUR COMML SYST CO LTD
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Common dynamic memory analysis tools such as valgrind, etc., due to their large functions and too many dependencies, these tools themselves need to occupy a lot of system resources, coupled with portability considerations, are not suitable for some embedded systems with tight resources use
[0004] In addition, some existing dynamic memory tools, due to design reasons, always have defects of one kind or another, such as not being able to cover all memory errors, or being inefficient and thus affecting the running speed of the original software

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Memory monitoring device and method for dynamically monitoring mistaken heap memory usage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0090] This solution is not limited to a certain chip architecture or a certain operating system. Now, taking the embedded Linux system based on the ARM architecture as an example, an implementation solution is provided. The specific implementation steps are as follows:

[0091] 1) C language is used as the programming language of the device of the present invention, and the final code is compiled with a cross-compilation tool of arm to generate a dynamic library libmmonitor.so.

[0092] 2) Inside libmmonitor.so, at least the following functions will be implemented:

[0093] __attribute__ ((constructor)) void mm_init(void) This function is the constructor when the process is running;

[0094] void* malloc(int size) This function will be used to intercept the malloc function of the original system library;

[0095] void free(void*p) This function will be used to intercept the free function of the original system library;

[0096] __attribute__ ((destructor)) void mm_uninit (v...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a memory monitoring device and method for dynamically monitoring mistaken heap memory usage, wherein the memory monitoring device comprises a memory application interface and a memory release interface, a constructor interface, a memory management module, a destructor interface and an exception handling interface, and the method comprises the following steps: based on the memory monitoring device, applying for memory from a heap through introducing into operation memory, carrying out secondary packaging and record managing, and then returning a packaged memory address to monitored software; when the monitored software is used for carrying out cross-border reading and writing to the memory address, the memory monitoring module is used for stopping operating the monitored software and outputting mistaken information; and when the monitored software exits normally, the memory monitoring device is used for outputting all unreleased memory information. Compared with the prior art, the memory monitoring device and method for dynamically monitoring the mistaken heap memory usage are high in execution efficiency, and have a small impact on the operation efficiency of the monitored software; and the positioning is accurate, and the memory problems can be covered widely.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a memory monitoring device and method for dynamically monitoring heap memory use errors. Background technique [0002] The reliability of software is very important to a system, and the memory problem is the most important thing that affects the reliability of software. For example, illegal memory access may cause the system to crash, and may also lead to unpredictable operating results. Memory leaks will make the available memory of the system less and less, causing the system to run slower and slower or even crash. Therefore, tracking down memory errors is an essential job for a software developer. [0003] Common dynamic memory analysis tools such as valgrind, etc., due to their large functions and too many dependencies, these tools themselves need to occupy a lot of system resources, coupled with portability considerations, are not suitable for some embedded systems with t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/30
CPCG06F11/3037
Inventor 赵鲁波
Owner SHANDONG INSPUR COMML SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products