A memory allocation method and device

A memory allocation and memory block technology, which is applied in the directions of memory address/allocation/relocation, energy-saving computing, climate sustainability, etc., can solve the problems of inconvenient memory system power consumption control, and achieve the effect of convenient power consumption control

Active Publication Date: 2016-08-10
SAMSUNG ELECTRONICS CO LTD +2
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing buddy system algorithm does not consider this feature, and does not differentiate memory block groups when allocating memory block groups, so that the memory block groups in each RANK have the same probability of being allocated statistically. This memory allocation method is not convenient for the memory system. power consumption control

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
  • A memory allocation method and device
  • A memory allocation method and device
  • A memory allocation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention proposes a memory allocation method, so that allocated memory block groups belong to as few RANKs as possible. The present invention is an improvement to the existing buddy system algorithm, called RANK-sensitive buddy system algorithm (RS-BUDDY).

[0035] Such as figure 2 It is a schematic structural diagram of the memory allocation algorithm proposed by the present invention.

[0036] The present invention adds a space for recording the attribution of the memory block group, and the space stores the RANK information to which the memory block group belongs.

[0037] Arrange the RANK in the system according to the minimum idle rate first (Min Free) method or the least recently used (LRU) method;

[0038] Among them, the Min Free method is: according to the RANK utilization rate from large to small, the purpose is to promote the priority allocation of RANK with the highest utilization rate, so that more RANKs are in an idle state.

[0039] The L...

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 memory allocation method and a memory allocation device. The memory allocation method includes recording a memory module (RANK) to which each memory block group belongs; arranging the RANKs in a system according to a minimum free time rate priority (Min Free) mode or a least recently used (LRU) mode; determining size of a memory needed to be allocated, aiming at each RANK after arrangement, sequentially executing a step A: A, adopting a buddy system (BUDDY) algorithm to find the memory block groups which can be allocated in the memory block groups belonging to the RANK, if the memory block groups which can be allocated exist, performing allocation, recording an RANK to which new memory block groups generated after allocation belong, and finishing current processes; if the memory block groups which can be allocated do not exist, aiming at a next RANK, repeatedly executing the step A until the memory block groups are allocated successfully. By the memory allocation method and the memory allocation device, allocated memory block groups are enabled to belong to few RANKs as far as possible, so that convenience is brought to power consumption control of a memory system.

Description

technical field [0001] The invention relates to the technical field of computer memory management, in particular to a memory allocation method and device. Background technique [0002] The BUDDY system algorithm has become the classic algorithm of the current Linux memory management system due to its excellent allocation efficiency and anti-fragmentation characteristics. It divides the memory unit into multiple block groups (PageBlock), that is, free_area[0...max_oder], and the size of each block group is the 0th power of 2 to the max_order power of 2 in units of pages (Page). For example: if max_order=10, the sizes of each block group are: 1, 2, 4, 8,...,1024. [0003] Each group of blocks of the same size is linked by a linked list for management. When it is necessary to allocate memory, the system will allocate it from the block group that is closest to and not smaller than the memory to be allocated, and split the remaining part into smaller block groups for management...

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
CPCY02D10/00
Inventor 朱宗卫陈浩童碧峰
Owner SAMSUNG ELECTRONICS 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
Try Eureka
PatSnap group products