Supercharge Your Innovation With Domain-Expert AI Agents!

Memory allocation method and device

A memory allocation and memory technology, applied in the field of network communication, can solve problems such as affecting the concurrent processing performance of data processing equipment, and achieve the effect of improving memory allocation efficiency and concurrent processing performance, and achieving synchronous management.

Active Publication Date: 2019-09-17
HANGZHOU DPTECH TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For applications that require high-frequency application and release of memory, using the existing memory allocation method will affect the concurrent processing performance of the data processing device due to more synchronization locks and critical resource operations involved in the memory operation process.

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 Construction

[0027] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0028] An application scenario of the embodiment of the present invention is a process of identifying a network protocol by a network device. During the network protocol identification process, some network protocols are identified through pcre (Perl Compatible Regular Expressions, Perl Compatible Regular Expressions) features. In the identification process of pcre feature, to carry out regular expression matching, need to carry out memory application and release continuously, if the memory operation adopts the processing scheme used in the prior art to apply for when needed and release when not needed, because the memory operation Many synchronous locks and critical resource operations are involved in the process, which will affe...

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 apparatus. The method comprises the steps of establishing a memory node link table for each CPU and storing a head node of the memory node link table corresponding to each CPU in each CPU variable as an array element of each CPU variable; when the CPU runs an application, directly applying for a memory node from a corresponding memory node link table by utilizing each CPU variable mechanism; and when the CPU stops running of the application, releasing the memory node and returning the memory node to the corresponding memory node list table. According to the memory allocation method provided by the invention, each CPU variable mechanism is adopted and each CPU only operates the memory node in the corresponding memory node link table, so that critical resources can be synchronously managed without locking occupied memory resources in a program running process with high-frequency application and memory release requirements, and the memory allocation efficiency and concurrent processing performance of a device are improved.

Description

technical field [0001] The present invention relates to the technical field of network communication, in particular, to a memory allocation method and device. Background technique [0002] The memory is a storage space that can be directly addressed by the CPU, and the running of various software programs in the data processing device must be loaded into an appropriate location in the memory. Therefore, how to use an effective method to allocate memory resources is a key factor in improving the performance of data processing equipment. [0003] The existing technology generally adopts the memory allocation strategy of applying for it when needed and releasing it when it is not needed. Specifically, when starting an application program, the CPU applies for a piece of memory of the required size from the system memory block, and locks the block of memory. That is, other software programs are not allowed to use this block of memory during the running of this program, that is, ...

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/50
Inventor 张津才
Owner HANGZHOU DPTECH TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More