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

Memory allocation method, device, storage medium and electronic device

A memory allocation and memory technology, applied in the field of communication, can solve the problems of low memory allocation efficiency and difficulty in meeting memory allocation requirements, and achieve the effect of improving memory allocation efficiency and performance overhead.

Active Publication Date: 2022-07-15
OPPO CHONGQING INTELLIGENT TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, during the running of the system and applications, there are often multiple consecutive memory allocation requests. This allocation scheme is difficult to meet the continuous memory allocation requirements, resulting in low memory allocation efficiency.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of this application.

[0025] Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicit...

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 embodiments of the present application disclose a memory allocation method, device, storage medium, and electronic device, wherein the embodiments of the present application count the number of historical requests for memory allocation requests received in the past preset time period at each preset time period, and determine the historical memory request amount corresponding to each historical memory allocation request; determine the expected memory request amount and the expected number of requests according to the number of historical requests and the historical memory request amount corresponding to each historical memory allocation request; perform memory fragmentation Arrange to obtain a continuous memory space whose memory amount is not less than the expected memory request amount, wherein the number of the continuous memory space matches the expected number of requests; when a memory allocation request is received, based on the continuous memory Space for memory allocation, which improves the performance overhead caused by memory fragmentation and improves the efficiency of memory allocation.

Description

technical field [0001] The present application relates to the field of communication technologies, and in particular, to a memory allocation method, apparatus, storage medium, and electronic device. Background technique [0002] During the memory allocation process of the Linux kernel, if the system memory does not meet the requirements, it will wake up the memory reclamation thread and try to reclaim a certain number of page frames. The memory reclamation thread wakes up another defragmentation thread and specifies the required amount of memory while waking up the thread. In the execution of the resize operation, this thread will continue to scan the entire memory domain until enough page frames are obtained to piece together a high-level memory block that meets the required amount of memory. However, during the running process of the system and the application, there are often multiple consecutive memory allocation requests. This allocation scheme is difficult to meet the...

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): G06F9/50
CPCG06F9/5016
Inventor 周华材
Owner OPPO CHONGQING INTELLIGENT TECH CO LTD
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