Memory allocation method and device and readable storage medium

A memory allocation and memory technology, applied in the computer field, can solve problems such as unallocated free memory and memory waste, and achieve the effects of improving memory allocation speed, reducing the range of intervals, and reducing the probability of lock conflicts

Pending Publication Date: 2021-01-15
北京中科网威信息技术有限公司
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The biggest advantage of this algorithm is that it can avoid memory fragmentation and quickly match the required free memory blocks. The biggest disadvantage is that memory waste and free memory cannot be allocated

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0027] In DPDK17.05.2, the free memory size interval in the free list is a power of 2, the number of intervals is 13, and the minimum free list memory size ranges from 0B to 256B, so the last interval will store memory blocks from 1GB to MAX SIZE. When a fixed-size memory needs to be allocated, the first memory block whose size meets the requireme...

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 embodiment of the invention provides a memory allocation method and device and a readable storage medium, and the method comprises the steps: obtaining the size of an applied memory, and carryingout the memory allocation based on a modified DPDK idle chain table according to the size of the applied memory, wherein the modified DPDK idle linked list is obtained by increasing the number of theDPDK idle linked lists based on a preset index, and the memory intervals of the idle linked lists are the same. By modifying the number of the DPDK idle linked lists, the interval range of the DPDK idle memory linked lists is reduced, meanwhile, the lock conflict probability when multiple CPUs apply for the memory at the same time is greatly reduced, and therefore the memory allocation speed is better increased.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a memory allocation method, device and readable storage medium. Background technique [0002] At present, the memory management used by the firewall system is the heap memory management mechanism in the open source suite of DPDK (Data Plane Development Kit, Data Plane Development Kit). Very good stability and memory allocation efficiency. This memory fragmentation algorithm uses the large page memory mechanism, which fundamentally solves the unstable performance caused by TLB miss (TLB: Translation Lookaside Buffer, translation lookaside buffer). This algorithm can also automatically merge adjacent memory fragments, reduce the generation of memory fragments, and improve memory usage efficiency. It is a stable and reliable memory allocation algorithm. Second level, so the speed of memory allocation is higher. After the system has been running for a period of time, the origina...

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): G06F9/50G06F12/02
CPCG06F9/5016G06F12/023
Inventor 雷印罡
Owner 北京中科网威信息技术有限公司
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