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

Method and device for memory management

A memory management and memory technology, applied in the field of communication, can solve the problems of constant occupation, memory block occupation for a long time, memory leakage, etc.

Active Publication Date: 2018-08-21
DATANG MOBILE COMM EQUIP CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this solution, the duration threshold is difficult to determine. In some scenarios, the memory block may occupy a long time or has been occupied, for example: the community memory resource in the wireless network device, and the release of the memory in this solution has a lag, and the leaked memory needs to wait for the duration threshold before it can be released.
[0007] To sum up, none of the three solutions provided by the prior art can be used to solve the problem of memory leaks in network equipment. Application module users in network equipment are frequently accessed and deleted, and each application module user involves the establishment of multiple services. In the process of business deletion, due to program errors or other reasons, some memory blocks requested by application module users cannot be released, resulting in memory leaks, which in turn lead to single board failures, business abnormalities, and affect the normal use of network equipment

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 device for memory management
  • Method and device for memory management
  • Method and device for memory management

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The specific implementation manners of a memory management method and device provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0033] A memory management method provided by an embodiment of the present invention, such as figure 1 As shown, the method includes:

[0034] Step 102, when receiving a request message from an application module user to apply for memory, allocate a memory block to the application module user according to the request message, and create record information that the memory block is occupied by the application module user;

[0035] Step 104, when it is determined that any memory block allocated for the application module user needs to be released, release the memory block, and delete the record information that the memory block is occupied by the application module user;

[0036] Step 106, when it is necessary to release the application module user, if it is determ...

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 management method and device. The memory management method and device are used for fast recovering leaked memory when the memory is leaked, and therefore single board faults and service abnormity caused by memory leakage are avoided. The memory management method includes the steps that when a request message of applying for the memory from an application module user is received, a memory block is distributed for the application module user according to the request message, and record information indicating that the memory block is occupied by the application module user is set up; when it is determined that any memory block distributed for the application module user needs to be released, the memory block is released, and the record information indicating that the memory block is occupied by the application module user is deleted; when the application module user needs to be released, if it is determined that the record information indicating that the memory block corresponding to the application module user is occupied by the application module user exists, the recorded memory block occupied by the application module user in the record information is released, and the record information indicating that the memory block is occupied by the application module user is deleted.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a memory management method and device. Background technique [0002] During service transmission or cell switching in the communication system, application module users in the network equipment will frequently access and delete. Each application module user needs to maintain the information of multiple protocol entities, which involves the establishment and processing of multiple business processes. Delete. When a service is established, it is necessary to apply for a memory block for the service in the network device. When the service is deleted, it is necessary to release the memory block applied for the service in the network device. When a service is applied for due to a program error or other reasons When the memory blocks of the system fail to be released, memory leaks occur. When there are many memory leaks, it is easy to cause major problems such as board failures ...

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 Patents(China)
IPC IPC(8): G06F9/50G06F12/02
Inventor 唐洪川
Owner DATANG MOBILE COMM EQUIP 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