Cluster fine-grained memory management method

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

Active Publication Date: 2016-11-23
JIANGSU R & D CENTER FOR INTERNET OF THINGS
View PDF3 Cites 1 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 waste
In addition, the solution must adopt a locking mechanism in the case of multi-threading, which affects the efficiency of memory allocation and recovery

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 with reference to the specific drawings and embodiments.

[0061] The 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); the second type is the thread local cache of each thread alone, for small objects Allocations (less than 32KB in size) can be served directly from the thread-local cache. Memory is migrated from the global shared area to the thread-local cache if needed, while periodic garbage collection is used to move 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 focuses on the structure of the thread local cache, the structure of the global shared area, and the allocation and release process of objects.

[0063] 1. The structure of the thread local...

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 multi-threaded application scenarios in which the memory size difference applied for in the distributed cluster is relatively large. 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 mass data storage has developed rapidly. The business access volume of application systems is increasing day by day, and a large number of frequent and fast data access requests have 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 im...

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): G06F3/06G06F9/50
Inventor 安丰春台宪青王艳军赵旦谱图博
Owner JIANGSU R & D CENTER FOR INTERNET OF THINGS
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