# US 2017/0255566 A1 · Method and system for compressing data for a translation look aside buffer (tlb)

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0255566 A1
- Document ID: US20170255566A1
- Status: Published application
- Kind: A1
- Application number: 15/598,719
- Filed: 2017-05-18
- Published: 2017-09-07
- Earliest claimed: 2014-11-14
- Assignees: Cavium, Inc.
- Applicants: Cavium, Inc.
- Inventors: Anna Kujtkowski; Wilson P. Snyder, II
- Web page: https://patentgrep.com/patent/US20170255566A1

## CPC

- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 12/1009: using page tables, e.g. page table structures
- H04L 45/74591: {using content-addressable memories [CAM]}
- G06F 2212/1016: Performance improvement
- G06F 2212/401: Compressed data
- G06F 2212/68: Details of translation look-aside buffer [TLB]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An embodiment of the present disclosure includes a method for compressing data for a translation look aside buffer (TLB). The method includes: receiving an identifier at a content addressable memory (CAM), the identifier having a first bit length; compressing the identifier based on a location within the CAM the identifier is stored, the compressed identifier having a second bit length, the second bit length being smaller than the first bit length; and mapping at least the compressed identifier to a physical address in a buffer.

## Claims

### Claim 1

A method of memory management, the method comprising:
storing compressed virtual address related data in a translation look aside buffer (TLB); and
accessing physical memory using the compressed virtual address related data.

### Claim 2 (depends on 1)

The method of claim 1 further comprising mapping the compressed virtual address related data to a physical address.

### Claim 3 (depends on 1)

The method of claim 1 further comprising:
receiving the virtual address related data at a content addressable memory (CAM); and
compressing the virtual address related data based on a location the data is stored within the CAM.

### Claim 4 (depends on 3)

The method of claim 3 wherein the virtual address related data received by the CAM has a first bit length and the compressed virtual address related data has a second bit length which is smaller than the first bit length.

### Claim 5 (depends on 1)

The method of claim 1 wherein the virtual address related data is at least one of: a Virtual Machine Identifier (VMID) and Address Space Identifier (ASID), the VMID and ASID being parsed from a context associated with a virtual address.

### Claim 6 (depends on 5)

The method of claim 5 wherein the context is a logical data structure used by the TLB to identify a page table entry, the page table entry mapping a virtual address associated with the identifier to the physical address.

### Claim 7 (depends on 5)

The method of claim 5 wherein receiving the virtual address related data includes parsing the VMID into a first CAM and parsing the ASID into a second CAM, wherein each CAM is configured to compress received data based on a location the data is stored in each respective CAM.

### Claim 8 (depends on 3)

The method of claim 3 wherein compressing includes adjusting an allocation count in an allocation count register, the allocation count register being communicatively coupled to the CAM.

### Claim 9 (depends on 8)

The method of claim 8 further comprising:
identifying a replacement virtual address related data in the CAM; and
decreasing a first allocation count in the allocation count register corresponding to the replacement data in the CAM.

### Claim 10 (depends on 9)

The method of claim 9 further comprising:
if the virtual address related data is already represented in the CAM, increasing a second allocation count in the allocation count register corresponding to the virtual address related data stored in the CAM;
if the virtual address related data is not represented in the CAM, storing the identifier in a free location in the CAM and increasing a second allocation count in the allocation count register corresponding to the virtual address related data stored in free location in the CAM.

### Claim 11

A system for memory management, the system comprising:
a translation look aside buffer (TLB) configured to store compressed virtual address related data; and
a memory management unit (MMU) configured to access physical memory using the compressed virtual address related data.

### Claim 12 (depends on 11)

The system of claim 11 wherein the TLB is further configured to map the compressed virtual address related data to a physical address.

### Claim 13 (depends on 11)

The system of claim 11 further comprising:
a content addressable memory (CAM) configured to receive the virtual address related data, the CAM further configured to compress the virtual address related data based on a location within the CAM the identifier is stored.

### Claim 14 (depends on 13)

The system of claim 13 wherein the virtual address related data received by the CAM has a first bit length and the compressed virtual address related data has a second bit length which is smaller than the first bit length.

### Claim 15 (depends on 11)

The system of claim 11 wherein the virtual address related data is at least one of: a Virtual Machine Identifier (VMID) and Address Space Identifier (ASID), the VMID and ASID being parsed from a context associated with a virtual address.

### Claim 16 (depends on 15)

The system of claim 15 wherein the context is a logical data structure used by the TLB to identify a page table entry, the page table entry mapping a virtual address associated with the identifier to the physical address.

### Claim 17 (depends on 15)

The system of claim 15 wherein the MMU is further configured to parse the VMID into a first CAM and parse the ASID into a second CAM, wherein each CAM is configured to compress received data based on a location the data is stored in each respective CAM.

### Claim 18 (depends on 13)

The system of claim 13 further comprising an allocation count register configured to store an allocation count, the allocation count register being communicatively coupled to the CAM.

### Claim 19 (depends on 18)

The system of claim 18 wherein the MMU is further configured to:
identify a replacement virtual address related data in the CAM; and
decrease a first allocation count in the allocation count register corresponding to the replacement data in the CAM.

### Claim 20 (depends on 19)

The system of claim 19 wherein the MMU is further configured to:
if the virtual address related data is already represented in the CAM, increase a second allocation count in the allocation count register corresponding to the virtual address related data stored in the CAM;
if the virtual address related data is not represented in the CAM, store the identifier in a free location in the CAM and increase a second allocation count in the allocation count register corresponding to the virtual address related data stored in free location in the CAM.
