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

Method and device for reclaiming and allocating memory

A technology of memory allocation and memory recovery, which is applied in the field of computer applications, can solve the problems of local memory allocation that cannot be well guaranteed, large control granularity, and remote access to memory, so as to avoid remote access to memory and reduce system performance. effect of influence

Active Publication Date: 2016-03-30
海宁市黄湾镇资产经营有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The R&D personnel of this application have discovered in the long-term research and development that in the existing technical solutions, the "recycling mode" is a global attribute, and the system determines the value of the "recycling mode" based on whether there are any two nodes in the current system The distance between them is greater than the preset "recycling distance". This scheme of determining the value of "recycling mode" makes the control granularity of the system too large, which cannot guarantee the local allocation of local memory well, resulting in unnecessary remote memory access , affecting system performance

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 and device for reclaiming and allocating memory
  • Method and device for reclaiming and allocating memory
  • Method and device for reclaiming and allocating memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.

[0031] refer to figure 1 , figure 1 It is a schematic diagram of the NUMA system framework of the memory recovery and allocation method of the present invention. NUMA is a system composed of multiple nodes (nodes), which is a distributed architecture, and each node has a processor, memory, and peripherals. Under NUMA, memory access time depends on the processor's memory location, with the processor accessing its own local memory faster than non-local memory. The system block diagram that the technology of the present invention realizes is as figure 1 As shown, each node has local memory and remote memory. When memory is allocated, local memory allocation is generally performed. If local memory allocation fails, local memory recovery is considered before allocation or remote memory allocation is performed.

[0032] The present invention provides a m...

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 and device for memory recycle and allocation. The method comprises the following steps: a demand of memory allocation is received; after the demand of the memory allocation is received, if the memory of the current first memory management area dissatisfies the preset value, whether the recycle mode of the current first memory management area indicates recycle of the current first memory management area or not is judged, wherein the recycle mode of the current first memory management area is determined according to the topology condition of the node to which the current first memory management area belongs; if the recycle mode of the current first memory management area indicates recycle of the current first memory management area, the current first memory management area is recycled; the demand of the memory allocation is responded, and allocation is performed to the memory of the recycled current first memory management area. Through the mode, the method can ensure that the local memory can be in local allocation to the greatest extent, and avoids the unnecessary memory remote access to the greatest extent, so that the influence on the system performance is reduced.

Description

technical field [0001] The invention relates to the field of computer application technology, in particular to a method and device for reclaiming and allocating memory. Background technique [0002] With the rapid development of computer technology, people's demand for computers is increasing day by day. The computing power of a single processor (CPU) is limited, and people urgently need to combine multiple processors into a system. Non-uniform access distributed shared memory technology (NUMA, NonUniformMemoryAccessArchitecture), because of its high scalability, is becoming more and more It is widely used in the server field. [0003] NUMA is a distributed structure, which is characterized by: any processor can access any memory, peripherals, etc.; when each processor accesses different memories, there are different delays. Therefore, the main purpose of memory management is to allocate memory efficiently and quickly, so that each CPU can access local memory as much as po...

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
Inventor 吴建国裘稀石
Owner 海宁市黄湾镇资产经营有限公司
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