Memory Allocation via System Memory Cache for PCIe Bottleneck
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The inefficiency in allocating hard disk memory for applications due to the low transmission rate of the PCIe bus, which results in slow access to free memory information and inefficient memory allocation.
Innovation Solution
A method that reads free memory information of the hard disk memory from system memory, determines a first storage space to be allocated, and writes size information into a corresponding second storage space, allowing the target application to access and use the allocated memory efficiently.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If free memory information is read from hard disk memory through PCIe bus, then memory allocation can be performed, but the transmission rate is low and communication time is long
Solution Approach 1:
The patent introduces system memory as an intermediary component between the PCIe bus and hard disk memory. Free memory information is first copied to system memory, which then serves as a high-speed access point for allocation operations. This mediator eliminates the need for repeated slow PCIe transactions while maintaining data consistency through periodic synchronization.
Solution Approach 2:
The patent performs preliminary action by pre-copying free memory information from hard disk memory to system memory before actual allocation operations occur. This advance preparation ensures that when allocation requests arrive, the information is already available in high-speed system memory, eliminating wait time during critical allocation moments.
2Speed
If free memory information is stored in system memory, then access speed improves, but additional memory management complexity is introduced
Solution Approach 1:
The patent extracts only the critical free memory information (metadata) to system memory, rather than copying entire memory structures. This selective extraction minimizes the data volume requiring management in system memory, reducing the complexity burden while maintaining high access speeds for allocation decisions.
Solution Approach 2:
The patent implements feedback mechanisms where the system memory structure is periodically synchronized with hard disk memory status. This feedback loop ensures data consistency without requiring continuous complex management, as updates occur only when necessary based on actual memory state changes detected during normal operations.
Data Source
AI summary
The present disclosure provides a method for allocating memory, computer device and storage medium. The method can achieve allocation of hard disk memory to a target application through use of free memory information of the hard disk memory and size information written into a first storage space. In addition, the free memory information of the hard disk memory is stored in system memory, and during allocation for the hard disk memory, the free memory information of the hard disk memory is directly read from the system memory.


