Method and device for memory recycle and allocation

A memory allocation and memory recycling technology, applied in the field of computer applications, can solve problems such as large control granularity, inability to ensure local memory allocation locally, and affecting system performance, so as to reduce the impact of system performance and avoid remote memory access. Effect

Active Publication Date: 2013-10-23
海宁市黄湾镇资产经营有限公司
View PDF6 Cites 9 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 memory recycle and allocation
  • Method and device for memory recycle and allocation
  • Method and device for memory recycle and allocation

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 Memory Access Architecture (NUMA, Non Uniform Memory Access Architecture), because of its high scalability, is being It is increasingly 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 possible, and release and ...

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
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