Memory allocation method, device and equipment and computer readable storage medium

A memory allocation and storage medium technology, applied in the field of memory compression, can solve problems such as poor applicability of memory allocation methods, reduced rationality of memory allocation, and inability to know the actual usage of system memory.

Pending Publication Date: 2021-05-07
SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, in the process of memory compression operation based on MXT, in order to enable the memory compression operating system to know the actual usage of system memory, it is necessary to modify the watermark of the memory management department in the operating system kernel, specifically changing the fixed watermark value to According to the variable watermark value of the compression ratio, the operating system can know the actual usage of the memory based on it, so as to facilitate reasonable and accurate memory allocation. However, because the memory compression operating system has restrictions on the modification authority of the user, therefore, Users cannot easily modify the kernel in the operating system, resulting in poor applicability of the above memory allocation methods
If the user cannot modify the kernel of the operating system, the operating system will not be able to know the actual usage of the system memory, which may lead to insufficient memory during memory allocation, thus reducing the rationality of memory allocation

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
  • Memory allocation method, device and equipment and computer readable storage medium
  • Memory allocation method, device and equipment and computer readable storage medium
  • Memory allocation method, device and equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Memory compression is a reasonable solution to the problem of memory capacity. Memory compression methods include software compression and hardware compression. Among them, hardware compression is the most representative of IBM's MXT. The compression and address translation of MXT are completed by hardware. , however, the operating system needs to be changed, specifically the watermark of the memory management department in the operating system kernel needs to be modified: from a fixed watermark value to a variable watermark value according to the compression ratio, and at the same time, IBM's MXT sets the SUR register so that Based on this, the operating system can know the actual usage of the system memory (specifically, the actual remaining status of the system memory), so that it can be allocated reasonably and accurately according to the actual usage of the system memory. However, because the user cannot easily Therefore, the memory allocation method in the above-me...

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 memory allocation method, device and equipment and a computer readable storage medium. The method comprises the following steps: acquiring memory remaining amount in each program; when the target program exists, distributing the current remaining memory of the system to the target program, wherein the target program is a program with the memory remaining amount smaller than the corresponding memory demand amount; judging whether the current memory surplus of the target program is smaller than the memory demand or not; and if yes, recycling the available memory from the remaining programs and distributing the available memory to the target program until the current memory remaining amount of the target program is equal to the memory demand amount. According to the technical scheme, memory allocation can be carried out under the condition that the actual use condition of the system memory is unknown, so that the memory remaining amount in each program can meet the corresponding memory demand, the reasonability of memory allocation is improved, and due to the fact that a kernel of an operating system does not need to be modified, the memory allocation applicability can be improved.

Description

technical field [0001] The present application relates to the technical field of memory compression, and more specifically, to a memory allocation method, device, device, and computer-readable storage medium. Background technique [0002] Existing memory compression methods are divided into software compression and hardware compression, wherein MXT (Memory Expansion Technology, memory expansion technology) of IBM is the most representative of hardware compression. [0003] At present, in the process of memory compression operation based on MXT, in order to enable the memory compression operating system to know the actual usage of system memory, it is necessary to modify the watermark of the memory management department in the operating system kernel, specifically changing the fixed watermark value to According to the variable watermark value of the compression ratio, the operating system can know the actual usage of the memory based on it, so as to facilitate reasonable 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): G06F9/50
CPCG06F9/5016G06F9/5022
Inventor 庄戌堃王骞
Owner SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT 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