Memory allocation method and device

A memory allocation and memory pre-allocation technology, applied in the communication field, can solve problems such as memory not being released, memory pool exhaustion, task application memory failure, etc., to improve utilization and efficiency, enhance competitiveness, and improve performance Effect

Pending Publication Date: 2021-10-12
DATANG MOBILE COMM EQUIP CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem to be solved by the embodiment of the present application is to provide a memory allocation method and device to solve the memory allocation method in the prior art, which will increase the time delay for tasks and messages to apply for memory, and increase the time for tasks and messages to occupy memory , the memory cannot be released for a long time, and the free memory is getting less and less, which will cause the risk of failure to apply for memory for other tasks or the risk of exhaustion of the memory pool, and also seriously affect the stability and reliability of the product.

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 allocation method and device
  • Memory allocation method and device
  • Memory allocation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] refer to figure 2 , shows a flow chart of the steps of a memory allocation method provided by the embodiment of the present application, as shown in figure 2 As shown, the memory allocation method may specifically include the following steps:

[0060] Step 101: When the number of memory applications for the target task within a specified time period from the current time reaches a set number threshold, obtain the release time of the target task to release the memory after being invoked the closest to the current time.

[0061] The embodiment of the present application can be applied to a scenario in which a specified memory block is pre-allocated for a target task.

[0062] The specified duration refers to the duration threshold that is preset by business personnel from the current time to the preset duration. The specified duration can be 500ms, 600ms, etc. Specifically, it can be determined according to business requirements, and this embodiment does not impose li...

Embodiment 2

[0082] refer to image 3 , shows a flow chart of steps of another memory allocation method provided by the embodiment of the present application, as shown in image 3 As shown, the memory allocation method may specifically include the following steps:

[0083] Step 201: When the number of memory applications for the target task within a specified time period from the current time reaches a set number threshold, obtain the release time of the target task to release the memory after being called the closest to the current time.

[0084] The embodiment of the present application can be applied to a scenario in which a specified memory block is pre-allocated for a target task.

[0085] The specified duration refers to the duration threshold that is preset by business personnel from the current time to the preset duration. The specified duration can be 500ms, 600ms, etc. Specifically, it can be determined according to business requirements, and this embodiment does not impose lim...

Embodiment 3

[0126] refer to Figure 4 , shows a schematic structural diagram of a memory allocation device provided by an embodiment of the present application, as shown in Figure 4 As shown, the memory allocation device may specifically include the following modules:

[0127] The release time acquisition module 310 is used to obtain the latest call of the target task from the current time and then release the memory when the number of memory applications for the target task within a specified time period from the current time reaches the set number threshold release time;

[0128] The target memory block determination module 320 is configured to determine the target memory block according to the application memory carried by the target task in the number of memory application times when the time length between the release time and the current time is less than or equal to the preset time length. The target memory block corresponding to the task;

[0129] The target memory block alloc...

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 provides a memory allocation method and device. The method comprises the following steps: when the memory application frequency of a target task for applying for a memory within a specified time length from current time reaches a set frequency threshold value, obtaining the release time of the target task for releasing the memory after the target task is called for one time closest to the current time; under the condition that the duration of the release time and the current time is smaller than or equal to a preset duration, determining a target memory block corresponding to the target task according to an application memory carried by the target task in the memory application times; and allocating the target memory block to the target task in advance. According to the invention, the memory blocks are allocated to the tasks which are frequently executed in advance, so that the time delay of the system tasks and the interoffice message processing application program can be greatly improved, the utilization rate and the efficiency of a memory pool are further improved, the performance, the stability and the reliability of an LTE system are improved, and the competitiveness of LTE related products is enhanced.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a memory allocation method and device. Background technique [0002] With the long-term evolution of the LTE (Long Term Evolution, long-term evolution) system, the increasing number of users, more complex business models, and diverse and high-standard customer requirements have led to constantly iteratively updated software versions and new products, which make At present, the underlying operating system of mainstream communication network equipment is developing in the direction of multi-tasking, high-frequency, large-capacity, and multi-threading. Such mainstream communication network equipment includes but is not limited to BBU (Building Base band Unit, baseband processing unit), RRU (Radio Remote Unit, radio remote unit), OMC (Operation and Maintenance Center, operation and maintenance center), MME (Mobility Management Entity , control point for accessin...

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): G06F9/50
CPCG06F9/5016G06F9/5022
Inventor 魏晓可邹小龙
Owner DATANG MOBILE COMM EQUIP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products