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

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

A technology of memory fragmentation and kernel, applied in computing, memory system, memory address/allocation/relocation, etc.

Active Publication Date: 2020-10-23
PENG CHENG LAB
View PDF6 Cites 6 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 for avoiding Linux kernel memory fragmentation, device and computer storage medium
  • Method for avoiding Linux kernel memory fragmentation, device and computer storage medium
  • Method for avoiding Linux kernel memory fragmentation, device and computer storage medium

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 Linux kernel memory fragmentation. The method comprises the following steps of: removing a linear mapping rule of a virtual address and a physical addressin a Linux kernel memory; under the condition that an allocation request for the Linux kernel memory is received, searching available physical page frames in the Linux kernel memory, and sequentiallyallocating the available physical page frames to continuous logic pages, the available physical page frames allocated to the continuous logic pages being continuous or discontinuous; and maintainingmapping relationships between the logic pages and the available physical page frames. And the problem of fragmentation of the Linux kernel memory is thoroughly solved. The technical effect of improving the utilization rate of the Linux kernel memory 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 Applications(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