Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Dynamic memory control method and dynamic memory control system

A technology of dynamic memory and control method, applied in the field of memory management of operating systems and operating system processes, can solve problems such as business interruption and operating system killing, and achieve the effect of strong versatility and practicability

Inactive Publication Date: 2015-12-16
PHICOMM (SHANGHAI) CO LTD
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a dynamic memory control method and system, which is used to solve the problems in the prior art that often cause the operating system to Some processes are killed due to memory exhaustion, causing business interruption

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
  • Dynamic memory control method and dynamic memory control system
  • Dynamic memory control method and dynamic memory control system
  • Dynamic memory control method and dynamic memory control system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention.

[0031] The purpose of this embodiment is to provide a dynamic memory control method and system, which is used to solve the problem that in the prior art, some businesses that need to repeatedly apply for and release a large number of memory blocks often cause the operating system to kill some memory blocks due to memory exhaustion. process, resulting in business interruption. The principle and implementation of a dynamic memory contro...

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 dynamic memory control method and a dynamic memory control system, which are used in memory control on a Linux operating system. The method comprises the following steps of: pre-allocating at least one first memory block which is not smaller than a memory mapping region allocating threshold to a user process in a memory mapping region of a process space; dividing the first memory block into at least two second memory blocks with the same sizes; when a process memory application of a memory being not greater than each second memory block is received, allocating the memory of each second memory block to a process corresponding to the process memory application; when the process releases the memory, returning the memory, occupied by the second memory blocks, of the process into the first memory block; and after all of the second memory blocks in the first memory block are released, returning the memory of the first memory block to the Linux operating system. The method and the system can effectively solve the problem that some services requiring repeated application and mass memory block release often cause service interruption of the operating system due to memory exhaust.

Description

technical field [0001] The invention relates to the technical field of operating systems, in particular to the technical field of memory management of operating system processes, and specifically relates to a dynamic memory control method and system. Background technique [0002] The memory management of user processes in the Linux operating system uses the ptmalloc mechanism by default. The ptmalloc memory management mechanism of the Linux operating system has the following characteristics: the user process of the Linux system applies for dynamic memory from two areas of the process space: brk area and mmap area, such as figure 1 shown. When the memory block size requested by the user is smaller than the mmap allocation threshold (the default value is 128K), the operating system allocates memory to the process from the brk area. Memory allocated from brk is not immediately returned to the operating system when it is freed. When the size of the memory block requested by t...

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): G06F3/06G06F12/02
Inventor 李智荣
Owner PHICOMM (SHANGHAI) 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
Eureka Blog
Learn More
PatSnap group products