Method for managing embedded system memory
An embedded system and memory management technology, which is applied in the field of embedded system memory management, can solve problems such as the failure of allocation of statistical characteristics of memory blocks, and achieve the effect of increasing the probability of successful allocation and improving the success rate of allocation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] The present invention integrates memory blocks with consecutive addresses, and the reclaimed area formed can be re-segmented as a free area of the memory pool. In other words, the reclaimed area can be used as an effective expansion of the free area to increase the probability of successful allocation. When the statistical characteristics of the memory block change, a sufficient reclaimed area will meet the new requirements of memory allocation.
[0032] Example one includes the following steps:
[0033] 1. Traverse the memory pool and merge the free memory blocks with consecutive addresses into the recycling area;
[0034] 2. After receiving the memory allocation request, allocate memory from the reclaim area.
[0035] In the present invention, each divided size memory block has a memory header structure indicating some status information, and the memory header structure includes a status bit used to identify whether the memory block is in use or free, and also includes ...
Embodiment 2
[0047] As described above, the background sorting can be started when the memory blocks cannot be allocated from the free chain and the free area, which has a certain guarantee for meeting the real-time performance of the memory allocation. This embodiment focuses on further explaining this method.
[0048] See image 3 , Is the memory allocation flow chart of the second embodiment. include:
[0049] Step 301: Receive a request to allocate a memory block of a certain size; for example, request to allocate a memory block of SIZE6;
[0050] Step 302: Look up the free chain. Is there a free memory block of the right size (SIZE6)? If yes, go to step 303, otherwise, go to step 304;
[0051] Step 303: Allocate memory using a free memory block with a suitable size;
[0052] Step 304: Is the free area of the memory pool enough to allocate memory blocks of this size? If yes, go to step 305, otherwise, go to step 306;
[0053] Step 305: Allocate memory blocks from the free area of the m...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com