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

Method, device and computer storage medium for avoiding linux kernel memory fragmentation

A memory fragmentation and kernel technology, applied in computing, memory system, memory address/allocation/relocation, etc., to improve utilization and solve fragmentation

Active Publication Date: 2021-02-05
PENG CHENG LAB
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of this, a method to avoid Linux kernel memory fragmentation is provided to solve the problem of Linux kernel memory fragmentation and improve the utilization rate of Linux kernel memory

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, device and computer storage medium for avoiding linux kernel memory fragmentation
  • Method, device and computer storage medium for avoiding linux kernel memory fragmentation
  • Method, device and computer storage medium for avoiding linux kernel memory fragmentation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0053] The main solution of the embodiment of the present invention is: remove the linear mapping rule of the virtual address and the physical address in the Linux kernel memory; when receiving the allocation request for the Linux kernel memory, search the available physical page frame in the Linux kernel memory , and sequentially assigning the available physical page frames to continuous logical pages; maintaining the mapping relationship between the logical pages and available physical page frames; wherein, the available physical page frames assigned to continuous logical pages are continuous or Discontinuous. Completely solve the problem of Linux kernel memory fragmentation. The technical effect of improving the memory utilization rate of the Linux kernel is achieved.

[0054]In order to better understand the abo...

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 for avoiding memory fragmentation of the Linux kernel. The method includes: removing the linear mapping rule between virtual addresses and physical addresses in the Linux kernel memory; when receiving an allocation request for the Linux kernel memory, searching for the Linux kernel Available physical page frames in memory, and the available physical page frames are allocated to continuous logical pages in turn; wherein, the available physical page frames allocated to continuous logical pages are continuous or discontinuous; maintaining the logical pages and The mapping relationship between available physical page frames. Completely solve the problem of Linux kernel memory fragmentation. The technical effect of improving the memory utilization rate of the Linux kernel is achieved.

Description

technical field [0001] The invention relates to the technical field of computer memory management, in particular to a method for avoiding Linux kernel memory fragmentation. Background technique [0002] At present, in order to reduce the problem of memory fragmentation, the Linux system has proposed a series of solutions, including buddy system, organizing pages according to mobility to avoid memory fragmentation, and separately setting virtual removable memory domains to avoid memory fragmentation. However, the buddy system can only alleviate the problem of memory fragmentation. When there are a large number of discontinuous single pages, the problem of memory fragmentation will still occur; according to the method of organizing pages by mobility, memory pages are divided into non-movable pages, movable pages and Recyclable pages, which still have non-movable pages, will cause memory fragmentation problems; the method of setting up a virtual movable memory domain separately...

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): G06F12/02
CPCG06F12/0253
Inventor 厉雷刚许雪松郭磊
Owner PENG CHENG LAB
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