Memory management method, memory management device and computer
A memory management and memory technology, applied in the fields of computers, memory management methods, and memory management devices, can solve problems such as unbalanced access of concurrent memory operation units, and achieve the effects of achieving balanced access and solving unreasonable allocation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] figure 1 It is a flow chart of Embodiment 1 of the memory management method of the present invention. The method is applicable to the management of the physical memory system when a program accesses the memory, and is especially applicable to the allocation of free physical memory pages. This method can be executed by a memory management device, such as figure 1 As shown, the method includes the following steps:
[0051] S101. When a physical memory page allocation request is obtained, select a memory concurrent operation unit with a low access rate as a memory concurrent operation unit to be allocated according to historical access information of each memory concurrent operation unit.
[0052] When the program applies for memory, but there is no physical memory page corresponding to its virtual memory page, a page fault interrupt will be generated, which is equivalent to a physical memory page allocation request. The memory concurrent operation unit is a physical uni...
Embodiment 2
[0057] figure 2 It is a flow chart of Embodiment 2 of the memory management method of the present invention, and this embodiment further optimizes Embodiment 1. Such as figure 2 As shown, the method of this embodiment may include:
[0058] S201. Obtain access information of each memory concurrent operation unit.
[0059] S202. Update historical access information of each memory concurrent operation unit according to the access information.
[0060] The memory management device continuously updates and records the historical access information. When the new access information of each memory concurrent operation unit is obtained, it can delete the earliest access information of each memory concurrent operation unit in the historical access information when updating, so as to ensure the history The amount of access information is fixed, improving the referenceability of historical access information.
[0061] S203. When a physical memory page allocation request is obtained,...
Embodiment 3
[0070] image 3 It is a flow chart of Embodiment 3 of the memory management method of the present invention. Such as image 3 As shown, this embodiment provides a complete preferred embodiment based on the foregoing embodiments, and the method may include:
[0071] S301. Obtain access information of each memory concurrent operation unit.
[0072] S302. Update historical access information of each memory concurrent operation unit according to the access information.
[0073] S303. When the allocation request of the physical memory page is obtained, according to the historical access information of each memory concurrent operation unit, select the memory concurrent operation unit with a low access rate as the memory concurrent operation unit to be allocated.
[0074] S304. Allocate a free physical memory page from the to-be-allocated memory concurrent operation unit.
[0075] S305 , judging whether the current scheduling cycle is over, if yes, return to S301 , if not, return...
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