Cluster fine-grained memory management method

A memory management, fine-grained technology, applied in resource allocation, multi-program device, input/output to record carrier, etc., can solve the problems of space waste, large gap, affecting memory allocation and recovery efficiency, etc., and achieve memory utilization high effect

Active Publication Date: 2014-07-09
JIANGSU CAS JUNSHINE TECH
View PDF3 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But in this way, the size of the block will increase rapidly, and the gap between the following blocks will be large, which will easily cause space wast

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
  • Cluster fine-grained memory management method
  • Cluster fine-grained memory management method
  • Cluster fine-grained memory management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] The present invention will be further described below in conjunction with specific drawings and embodiments.

[0061] The present invention mainly divides the memory into two types of areas: the first type is the global shared area, which is mainly responsible for the allocation and recovery of large objects (size greater than or equal to 32KB); (less than 32KB in size) allocations can be satisfied directly from the thread-local cache. Memory is migrated from the global shared area to the thread-local cache as needed, and periodic garbage collections are used to migrate memory from the thread-local cache back to the global shared area. The relationship between the two is as figure 1 shown.

[0062] The following highlights: the structure of the thread local cache, the structure of the global shared area, and the process of object allocation and release.

[0063] 1. The structure of the thread local cache, such as figure 2 shown.

[0064] Although an application pr...

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 cluster fine-grained memory management method. The cluster fine-grained memory management method includes: step 1, dividing internal storage into two broad category regions, wherein the first category is a global shared region and responsible for allocating and recovering large objects larger than or equal to a threshold value in size, the second category comprises independent thread local caches for every thread and is used for allocating small objects smaller than the threshold value in size, the thread local cache is composed of multiple block groups, each block group is a free chain table of an internal storage object, blocks in one block group are identical in size, the blocks in different groups are in equal difference in size, and the global shared region comprises a small object distribution region and a global page cache; step 2, performing memory allocation for memory applied by an application program, and starting corresponding allocation modes after the large objects and the small objects are distinguished; step 3, releasing the memory. The cluster fine-grained memory management method is capable of allocating and releasing the large objects and the small objects, particularly suitable for multi-thread applications and high in memory utilization rate.

Description

technical field [0001] The invention relates to a fine-grained memory management method in a distributed cluster in the computer field, and the method is mainly aimed at a multi-threaded application scene with relatively large differences in memory size applied for in a distributed cluster. Background technique [0002] With the rapid popularization of the Internet, especially the mobile Internet, the degree of informatization has been continuously improved, and various interactive and personalized applications have caused the explosive growth of data in the Internet. Under this situation, the research on massive data storage develops rapidly. The business access volume of application systems is increasing day by day, and a large number of frequent and rapid data access requests place higher and higher requirements on application servers and data management systems. How to use limited resources to reasonably improve data access efficiency has become the key to improving sys...

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/06G06F9/50
Inventor 安丰春台宪青王艳军赵旦谱图博
Owner JIANGSU CAS JUNSHINE TECH
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