Compressed Memory Sector Mapping for Stable Address Translation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Compressed memory systems face challenges in managing variable-sized memory pages and efficiently locating data due to dynamic changes in compressibility, leading to issues with memory management and address translation, resulting in stability problems and poor memory utilization.

Innovation Solution

A sector-based memory compression system that represents compressed memory blocks as sectors with fixed logical sizes and varying physical sizes, using sector-based translation metadata to efficiently manage free space and locate data, while minimizing metadata overhead and internal fragmentation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If variable-sized memory pages are used in compressed memory systems, then memory compression efficiency is improved, but address translation complexity and management difficulty increase

Engineering Contradiction:
Improvememory compression efficiencyVSAvoidaddress translation complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The memory system is segmented into fixed-size sectors rather than using variable-sized pages. Each sector has a predetermined size, which simplifies address translation by eliminating the need for complex variable-length addressing logic. This segmentation approach maintains memory compression efficiency while reducing the complexity of managing variable-sized pages.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system changes the fundamental parameter of memory block size from variable (page-based) to fixed (sector-based). This parameter change simplifies the address translation mechanism while still allowing for effective compression through the use of compression metadata that tracks the actual compressed size of data within each fixed sector.

Inventive Principle:
Principle #35Parameter changes

2Adaptability or versatility

If variable-sized memory pages are used, then compression adaptability is improved, but memory management stability deteriorates

Engineering Contradiction:
Improvecompression adaptabilityVSAvoidmemory management stability
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

By segmenting memory into fixed-size sectors, the system achieves stability in memory management while maintaining compression adaptability through metadata. The fixed sector boundaries provide a stable foundation for memory management, while the compression metadata allows the system to adapt to varying compression ratios of different data sets.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Compression metadata acts as an intermediary between the fixed-sector structure and the variable compression needs. This metadata layer allows the system to maintain stable fixed-size sectors while adapting to different compression scenarios, thereby preserving both stability and adaptability.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Ease of manufacture

If traditional page-based compression is used, then implementation simplicity is improved, but memory utilization deteriorates due to internal fragmentation

Engineering Contradiction:
Improveimplementation simplicityVSAvoidmemory utilization
Core Design Contradiction:
Ease of manufactureVSQuantity of substance

Solution Approach 1:

The use of fixed-size sectors with compression metadata provides a practical implementation approach that balances simplicity with efficiency. The fixed sector size simplifies the basic structure, while the metadata mechanism efficiently tracks actual data usage, minimizing internal fragmentation and improving memory utilization compared to traditional page-based approaches.

Inventive Principle:
Principle #1Segmentation

4Loss of information

If compression metadata is reduced, then overhead is improved, but address translation precision deteriorates

Engineering Contradiction:
Improvemetadata overheadVSAvoidaddress translation precision
Core Design Contradiction:
Loss of informationVSMeasurement precision

Solution Approach 1:

The compression metadata is organized at the sector level rather than the page level, providing local quality information for each fixed-size sector. This localized metadata approach reduces overall overhead compared to page-based systems while maintaining sufficient precision for address translation within each sector's boundaries.

Inventive Principle:
Principle #3Local quality

Data Source

PatentEP3881187B1Accessing compressed computer memory
Publication Date: 2024.07.17 ZEROPOINT TECH AB
  • EP3881187B1 patent drawingFigure 1
  • EP3881187B1 patent drawingFigure 2
  • EP3881187B1 patent drawingFigure 3

AI summary

A method (4500) for accessing compressed computer memory residing in physical computer memory is disclosed. In the method, compressed memory blocks are represented (4510) as sectors, wherein all sectors contain a fixed number of compressed memory blocks such as cache lines, have a fixed logical size in the form of the fixed number of compressed memory blocks, and have varying physical sizes in the form of the total size of data stored in the respective compressed memory blocks. The method involves providing (4520) sector- based translation metadata to keep track of the sectors within a compressed memory page, receiving (4530) a physical memory access request comprising an address in the physical computer memory, using (4540) the address in the physical memory access request to derive a memory block index, using (4550) the memory block index and the fixed logical size of the sectors to determine a sector id, using (4560) the sector-based translation metadata to locate a sector having the sector id in the compressed memory page, and using (4570) the address of the physical memory access request to locate the requested data within said sector.