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

Method and apparatus for monitoring internal storage of application program and electronic equipment

An application, memory technology, applied in the computer field, can solve problems such as reducing availability, affecting the reliability of results, and running slow programs

Inactive Publication Date: 2017-08-22
ALIBABA GRP HLDG LTD
View PDF5 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, the execution of valgrind does not need to be recompiled, but it is in the same process as the application program, dynamically modifying the code to be executed, but it is precisely because of the working method of valgrind that the performance of the program drops sharply, depending on the amount of injected code , the performance will drop by 10-50 times, because its impact on performance reduces its usability in complex systems; the mtrace / muntrace function of GLIBC uses the malloc_hook mechanism, and the malloc_hook function needs to be reset after the recording is completed, so it can only Working in a single-process program, for multi-process programs, the confusion of the malloc_hook function will cause false positives or false negatives, so the usability for complex large-scale applications is not high; tcmalloc can check whether there are memory leaks and memory leak point information in the program and Memory performance and space hotspot analysis, helping to analyze the distribution of memory usage
However, the backtrace function needs to be called to obtain the call stack information, and this operation is a slow operation, so tcmalloc uses sampling to reduce the impact on application performance, and sampling may be biased, thus affecting the reliability of the results
[0005] It can be seen that under the existing monitoring memory scheme, due to false positives, false negatives, or due to the implementation method of the instrumentation or the complexity of the algorithm, the program runs slowly and reduces performance, thereby affecting the reliability of the results. Large, complex applications are less available and costly to use

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
  • Method and apparatus for monitoring internal storage of application program and electronic equipment
  • Method and apparatus for monitoring internal storage of application program and electronic equipment
  • Method and apparatus for monitoring internal storage of application program and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0120] In order to be able to understand the above objectives, features and advantages of the application more clearly, the application will be further described in detail below with reference to the accompanying drawings and specific implementations. It should be noted that the embodiments of the application and the features in the embodiments can be combined with each other if there is no conflict.

[0121] In the following description, many specific details are explained in order to fully understand this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotion without violating the connotation of this application. Therefore, this application is not limited by the specific implementation disclosed below.

[0122] The embodiment of the present application provides a method for monitoring the memory of an application program and a device for monitoring the memory of an...

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 method and an apparatus for monitoring internal storage of an application program, and electronic equipment. The method for monitoring the internal storage of the application program comprises the steps of additionally requesting an internal storage monitoring space with preset size from the internal storage when the application program applies an internal storage operating space; recording the current internal storage allocation information in the additionally requested internal storage monitoring space in allocating the applied internal storage operating space; and recording the current internal storage releasing information in the additionally requested internal storage monitoring space in releasing the applied internal storage operating space. By virtue of the technical scheme, the problem of performance degradation caused by slow program operating due to misinformation, report failure, or complexity of an instrumentation realization method or algorithm can be solved, thereby improving reliability of the result, and solving many problems existing in C / C++ program internal storage use; and in addition, high usability in complex large-scale application programs is realized, and the use cost is relatively low.

Description

Technical field [0001] This application relates to the field of computer technology, in particular to a method for monitoring application memory and a device for monitoring application memory; this application also relates to an electronic device. Background technique [0002] With the increasing scale of modern systems, the number of applications running in the system has increased significantly. These applications usually consume a certain amount of resources, such as memory. Some of these applications may cause memory leaks, double free objects, and out-of-bounds access addresses. In computer science, memory leaks refer to the situation where the program fails to release memory that is no longer used due to negligence or error. Memory leaks do not mean the physical disappearance of the memory, but after the application allocates a certain segment of memory, due to a design error, it loses control of the segment of memory, which causes a waste of memory; double free is actuall...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30
CPCG06F11/3037
Inventor 赵树起
Owner ALIBABA GRP HLDG 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