Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Memory management method and device, electronic device and storage medium

A memory management and memory technology, applied in the computer field, can solve the problems of reduced cpucache hit rate, high response delay, and discontinuous addresses.

Active Publication Date: 2021-07-06
深圳华云信息系统科技股份有限公司
View PDF12 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, several memories requested by the memory pool may have discontinuous and non-linear addresses, and the several memories may span several memory blocks, which requires the CPU to access memory in different memory blocks several times in succession, while the CPU To access the memory, you need to access the page table first. When multiple accesses are frequent, the hit rate of the cpu cache decreases, resulting in a very high response delay.

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 and device, electronic device and storage medium
  • Memory management method and device, electronic device and storage medium
  • Memory management method and device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0074] In the related technology, the addresses of several memories applied by the memory pool may be discontinuous and non-linear, and the several memories may span several memory blocks, so that the CPU needs to access the memory in different memory blocks several times in a row. However, when the CPU accesses the memory, it needs 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 relates to a memory management method and device, an electronic device and a storage medium. The memory management method comprises the steps of receiving a memory obtaining request, wherein a large-page memory is used for storing the large-page memory blocks; searching a target large-page memory block matched with the memory acquisition request in the large-page memory, wherein the target large-page memory block is a next large-page memory block to be distributed in the large-page memory; returning the address mapping information of the target large-page memory block in a shared memory corresponding to the large-page memory, and switching the use state of the target large-page memory block to a locking state, wherein the shared memory is used for storing the address mapping information between the large-page memory block in the large-page memory and the address range of the shared memory. According to the embodiment of the invention, a requester of the memory obtaining request can obtain a complete and continuous block of memory through one request, the situation that cross-memory-block access is continuously carried out for several times aiming at one request is avoided, the hit rate of the cpu cache is improved, and the delay of request response is reduced.

Description

technical field [0001] The present application relates to the technical field of computers, and in particular to a memory management method, device, electronic equipment and storage medium. Background technique [0002] Memory Pool is a memory allocation method, also known as fixed-size-blocks allocation. The memory pool is a technology that applies for the allocation of a certain number of memory blocks of equal size (generally) for backup before actually using the memory. When there is a new memory demand, a part of the memory block is allocated from the memory pool, and if the memory block is not enough, continue to apply for new memory. [0003] However, several memories requested by the memory pool may have discontinuous and non-linear addresses, and the several memories may span several memory blocks, which requires the CPU to access memory in different memory blocks several times in succession, while the CPU To access the memory, you need to access the page table fi...

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): G06F12/02G06F9/54G06F9/50
CPCG06F9/5016G06F9/5022G06F9/544G06F12/0284
Inventor 郭国峰祝磊许宏珍
Owner 深圳华云信息系统科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products