Memory management method, memory management system and server

A memory management and memory technology, applied in the server field, can solve the problem of difficult to meet the requirements of server memory allocation, and achieve the effect of high concurrency and high allocation efficiency

Inactive Publication Date: 2010-05-05
关志航
View PDF0 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The purpose of the embodiments of the present invention is to provide a memory management method, which aims to solve the pr

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 management method, memory management system and server
  • Memory management method, memory management system and server
  • Memory management method, memory management system and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0032] In the embodiment of the present invention, at least two memory pools are pre-configured according to the size of the memory, and the memory pools include a common memory linked list and a large memory linked list, receive a user's memory application request, and locate the memory pool according to the requested memory size; When there is available memory in the commonly used memory linked list of the located memory pool, the control reads the memory of the commonly used memory linked list of the memory pool and allocates it to the applicant user; The memory of the large memory linked list o...

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 management method, a memory management system and a server, belonging to the technical field of the server. The memory management method comprises the following steps: presetting at least two memory pools which comprise frequently-used memory chain tables and big memory chain tables according to the size of the memory; receiving the user's request for applying for the memory and positioning the memory pool according to the size of the memory applied by the user; controlling and allotting the memory of the frequently-used memory chain table reading the memory pool to the user applying for the memory when there is available memory in the frequently-used memory chain table of the positioned memory pool; controlling and allotting the memory of the big memory chain table reading the memory pool to the user applying for the memory when there is no available memory in the frequently-used memory chain table of the positioned memory pool. The invention has high memory allotting efficiency and high memory allotting concurrency and realizes that the plurality of memory pools correspond to a plurality of parallel threads.

Description

technical field [0001] The invention belongs to the technical field of servers, and in particular relates to a memory management method, system and server. Background technique [0002] The traditional memory allocation is allocated directly through the functions provided by the operating system, and the specific execution process inside the function is as follows: [0003] 1. Lock the thread lock to prevent other threads from entering. [0004] 2. Take out memory blocks in multiples of 4096 bytes (no matter how much memory the user needs, 4096 is used as a page to allocate). [0005] 3. Release the thread lock and allow other threads to enter. [0006] 4. Return the successfully allocated memory to the user layer. [0007] The above process is sufficient to meet the requirements in ordinary programs, but it will greatly reduce program performance for server programs, specifically: [0008] The memory allocation and release frequency of the server is very high. Taking th...

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): G06F12/02G06F9/50
Inventor 王燊望
Owner 关志航
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