Shared Memory Allocation for Variable Data Transmission
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing information transmission systems waste memory resources and experience delays due to the need to initialize and reallocate shared memory units of fixed sizes, which are not adaptable to varying amounts of data, leading to inefficiencies in memory usage and transmission speed.
Innovation Solution
The method involves dividing shared memory into static and dynamic memory groups with varying unit sizes, allowing for the selection or reallocation of memory units based on the specific amount of data to be transmitted, minimizing waste and optimizing memory allocation by combining units in the dynamic group with reserved memory.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If fixed-size memory units are used in shared memory, then memory allocation is simplified, but memory resource waste increases and transmission delay increases
Solution Approach 1:
The shared memory is segmented into multiple memory groups, where each group contains memory units of a specific size. This segmentation allows the system to choose appropriate memory units based on the actual data transmission needs, reducing memory waste while maintaining manageable allocation complexity through structured organization.
Solution Approach 2:
Different memory groups are assigned different memory unit sizes according to specific transmission scenarios. This local quality approach ensures that the memory allocation characteristics match the actual needs of different types of information transmission, optimizing both memory utilization and allocation efficiency for specific use cases.
2Device complexity
If fixed-size memory units are used in shared memory, then memory structure is simplified, but transmission delay increases due to reallocation needs
Solution Approach 1:
Memory groups with different sized memory units are pre-established in the shared memory before transmission occurs. When data needs to be transmitted, the system can directly select from these pre-configured memory units without reallocation, eliminating reallocation delay while maintaining a relatively simple memory structure through the grouped organization.
3Adaptability or versatility
If additional space is reserved in memory units to store different amounts of information, then memory adaptability is improved, but memory resource waste increases
Solution Approach 1:
The system dynamically selects appropriate memory groups and memory units based on the actual size of data to be transmitted. This dynamic selection mechanism provides memory adaptability for different transmission scenarios while avoiding the waste associated with always reserving additional space, as memory units are chosen to closely match the actual data size requirements.
4Adaptability or versatility
If memory units are recycled and reallocated for different data amounts, then memory adaptability is improved, but transmission efficiency decreases
Solution Approach 1:
Multiple memory groups with different sized memory units are pre-configured in the shared memory before transmission operations. This preliminary action eliminates the need for reallocation during transmission, as the system can directly select from the pre-existing memory groups, thereby improving transmission efficiency while maintaining memory adaptability.
Data Source
AI summary
The present application discloses a method and an apparatus for transmitting information. A specific implementation of the method includes: sending first information to be transmitted to a shared memory; traversing memory groups in the shared memory, and acquiring a first memory unit suitable for the amount of the first information, each of the memory groups including at least one memory unit, each of memory units in the memory group having an identical size, and the memory units in different memory groups having different sizes; and storing the first information into the acquired first memory unit, so that the first information is read from the first memory unit by a receiving node. Through this implementation, the first information that needs to be transmitted is stored into the memory unit suitable for the amount of the first information, thereby saving memory resources.


