Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for distributing memory

A memory allocation and memory technology, applied in the computer field, can solve problems affecting memory access speed, large memory fragmentation, etc.

Inactive Publication Date: 2017-09-15
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, frequent use of API functions will cause a large amount of memory fragmentation. At the same time, when applying for memory allocation through API functions, there will also be a situation of cross-CPU (Central Processing Unit, central processing unit) node allocation of memory. When the memory required by the process will affect the memory access speed

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 distributing memory
  • Method and device for distributing memory
  • Method and device for distributing memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0050] Such as figure 1 As shown, the embodiment of the present invention provides a memory allocation method, which may include the following steps:

[0051] Step 101: Determine the CPU corresponding to the running process;

[0052] Step 102: apply for a memory pool corresponding to the running process in the determined local memory corresponding to ...

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 method and device for distributing memory. The method comprises following steps: determining a CPU corresponding to a running process; applying for a memory pool corresponding to the running process in the determined local memory corresponding to the CPU; when the running process applies for memory, allocating a corresponding memory area from the memory pool corresponding to the running process to the running process. The technical scheme can improve memory access speed.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a memory allocation method and device. Background technique [0002] Memory is one of the important components of a computer. All programs in the computer run in the memory, so the performance of the computer depends heavily on the performance of the memory. [0003] Currently, in the Linux system, we are usually accustomed to using API (Application Programming Interface, Application Programming Interface) functions such as malloc to apply for and allocate memory required by running processes. [0004] However, frequent use of API functions will cause a large amount of memory fragmentation. At the same time, when applying for memory allocation through API functions, there will also be a situation of cross-CPU (Central Processing Unit, central processing unit) node allocation of memory. When the memory required by the process, it will affect the memory access speed. Contents ...

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/5027
Inventor 王栋
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD